Function to allow a model of class gamMRSea
to be updated to include a panel structure or shortnames to make summary and anova outputs more readable. Function to update an lm
or glm
model to class gamMRSea
.
Usage
make.gamMRSea(
model,
panelid = NULL,
splineParams = NULL,
varshortnames = NULL,
gamMRSea = FALSE
)
Arguments
- model
model object of class glm or gamMRSea
- panelid
vector of length of the data containing the panel identification for each row of data
- splineParams
MRSea based list object
- varshortnames
vector containing the short names for each variable. These are used in summary and anova
- gamMRSea
logical stating whether the call of the model should be changed to 'gamMRSea' from
glm