[R] gam mgcv family=scat
rhs206 at exeter.ac.uk
Wed Dec 24 12:23:23 CET 2014
Dear R users,
I'm currently analysing some data with the gam function from the mgcv package. I'm looking at the relationship between spatially referenced budburst dates (recorded as number of days from January 1st) and two continuous variables, and their interaction, where they are found. I'm particularly interested in testing the significance of the interaction, whilst accounting for spatial trends in the data.
I've set up my model as such, with year as a random factor (10 years of data):
I initially set up the model with the default Gaussian family, but the qqplot looked a bit heavy tailed with the points on the left of the plot particularly, curving down below the straight line. I have just found the (family=scat - scaled t for heavy tailed data) option in a newer version of mgcv, which it states are:
"for regression type models dependent on a single linear predictor, and with a log likelihood which is a sum of independent terms, each coprresponding to a single response observation. Usable only with gam, with smoothing parameter estimation by "REML" or "ML" (the latter does not integrate the unpenalized and parameteric effects out of the marginal likelihood optimized for the smoothing parameters)."
Question: I can find very few examples using this scat family, and was hoping someone could tell me whether the model specified above is theoretically sound (i.e. is it okay to include these different smooth types (ti, s & bs="re") with this family)?
Any advice would be greatly appreciated. Thanks in advance.
[[alternative HTML version deleted]]
More information about the R-help