I wanted to build a model of nonlinear mixed effects, but after the code was written, there was no way to get the results, and it was always wrong. I don't know what's wrong. Can someone help me?
Just like this:
model2<-gamm(feno~s(lag0pm2.5,k=3),random=list(id=~1),data=data)
Error in gamm(feno ~ s(lag0pm2.5, k = 3), random = list(id = ~1), data = data) :
Not enough (non-NA) data to do anything meaningful rsquared(model)
Response family link method Marginal Conditional
1 fev1 gaussian identity none 0.1043005 0.9087206
> AIC(model)
[1] -264.2586