##load the data
data(mesa.data)
##create a simple set of covariates
default.LUR.list(mesa.data, list(c(1:3),1,2))
##or a structure with the same covariates for all
##temporal trends
default.LUR.list(mesa.data, c(1,2))
##or a structure with only intercept for the temporal trends
default.LUR.list(mesa.data, list(c(1:3),NULL,NULL))
##Ask for covariates by name
default.LUR.list(mesa.data, list(c("log10.m.to.a1","log10.m.to.a2"),
"log10.m.to.a1","log10.m.to.a1"))
##Ask for non-existent covariate by name (produces three warnings, one
##for each temporal trend)
default.LUR.list(mesa.data, "log10.m.to.a4")
##create a simple set of spatio-temporal covariates
default.ST.list(mesa.data, 1)
##or create a empty set of spatio-temporal covariates
default.ST.list(mesa.data, NULL)
Run the code above in your browser using DataLab