Plotting using gratia::draw #294
-
I fit a GAM model: gam(y ~ trt, s(time, by=trt, method="REML"), where the response y is measured at times |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I would like to plot on the original scale of the response rather than on the partial effect scale. |
Beta Was this translation helpful? Give feedback.
-
What you're looking for is to predict from the model. This is usually done via
|
Beta Was this translation helpful? Give feedback.
What you're looking for is to predict from the model. This is usually done via
predict()
, butgratia::fitted_values()
can will facilitate this: