Welcome to community!
I would really encourage you to review the following guide, FAQ: Tips for writing R-related questions.
For example, the guide emphasizes asking coding questions with a reprex
. You may have noticed that many people here request issues come in the form of a minimal reprex
, that's because asking questions this way saves answerers a lot of time helping you get your issue resolved, reducing the number of back-and-forths requires.
With the information given, I am not sure you'll get much more help than pointers to resources like CRAN introductions and vignettes.
Here's one guide: Response-Surface Methods in R, Using rsm