Displaying 1 result from an estimated 1 matches for "sinlunar".
Did you mean:
singular
2010 May 19
8
Generating all possible models from full model
...here. It is also difficult to alter models if I want to change a term. For example, below are the set of models I would like to run. Is there a way to specify the full model and have R generate the rest? I.e. specify
m1234567<-glm.convert(glm.nb(mantas~site*year+cosmonth+sinmonth+coslunar+sinlunar+plankton, data=mydata))
and have R run all the other models.
library(MASS)
#Intercept only
m0<-glm.convert(glm.nb(mantas~1,data=mydata))
#One term - 7 models
#Manta abundance is greater at one of the two sites
m1<-glm.convert(glm.nb(mantas~site,data=mydata))
#Manta abundance inc...