In mgcv::gam smooths are represented using basis functions. The `k' argument
of `s' specifies the number of basis functions to use. Its default value is
10. If you have fewer than k unique covariate values then the basis can not
be set up. So you need to reduce k to at most the number of unique
Hello useRs!
I have % cover data for different plant species in 300 plots, and I use
the ARCSINE transformation (to deal with % cover data).
When I use a GLM I do not have any problem.
But when I am trying to use a GAM model using mgcv package, to account for
non-linearity I get an âerror messa
2 matches
Mail list logo