Non Linear, Regression, R, Modelling.
Overfitting is always a problem, and since I have lost the biological relevance of the non-linear function, I want to make at least sure that this data-driven model is looking at the right things. pred<-fitted(gamm_fit2$lme);pred pred<-fitted(gamm_fit2$gam);pred data_grouped$pred<-pred