Displaying 1 result from an estimated 1 matches for "sp5cover".
2007 Oct 17
1
Error message in GAM
...blem.
But when I am trying to use a GAM model using mgcv package, to account for
non-linearity I get an ?error message?.
I use the following model:
sp1.gam<-gam(asin(sqrt(0.01*SP1COVER))~ s(asin(sqrt(0.01*SP2COVER)))+
s(asin(sqrt(0.01*SP3COVER)))+ s(asin(sqrt(0.01*SP4COVER)))+
s(asin(sqrt(0.01*SP5COVER))), family=gaussian, data=plantcover,
na.action=na.pass)
The error message is the following:
"Error in smooth.construct.tp.smooth.spec(object, data, knots) :
A term has fewer unique covariate combinations than specified maximum
degrees of freedom"
It seems that some variables in the mo...