Open Karrrramba opened 1 month ago
Does the distribution of the response need to be estimated and adjusted in the gam parameters first?
One way to imporve the fit is to change the type of basis function in the smooth term via the "bs" argument. start with adaptive splives (ad) since for most profiles there will be lots of 0 intensity values, and try cubic splines (cr) or default thin plate splines (tp). Cubic regression splines are not as computationally heavy with large data sets. This might be easier then trying to determine the distribution of the response (comment #1).
Optimize wiggliness through lambda so that the residuals of the alternative model equal zero. This would eliminate the instances where RSS of the null model < RSS alt model. (?)