You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As recommended by the maintainer of the mgcv package, Simon Wood, it might be better to set method = "REML" in the gam() call for geom_smooth(). I quote:
REML smoothing parameter estimation is less prone to occasional under-smoothing than GCV (e.g. gam(..., method="REML"))