[R-sig-ME] spatial covariance structure in glmmTMB
Alice Domalik
adomalik at sfu.ca
Mon Oct 9 15:22:12 CEST 2017
Dear list,
I am fitting mixed effects models using the package glmmTMB to investigate habitat use.
My current model has the form m1<-glmmTMB(count~waterdepth + temperature + chl.conc + (1|individual), family=list(family="truncated_nbinom1", link="log"), data=mydata)
I would like to add a spatial covariance structure based on geographic coordinates (mydata$x and mydata$y).
However, I do not know how to modify my model formula to include a spatial covariance structure. Does anyone have example code to show how this is done?
Any help would be much appreciated!
[[alternative HTML version deleted]]
More information about the R-sig-mixed-models
mailing list