glmmTMB_spatial_1 | R Documentation |
Model of class glmmTMB
glmmTMB_spatial_1
An object of class glmmTMB
of length 7.
## Not run:
library(geoR)
data(ca20)
dat <- data.frame(
x = ca20$coords[, 1],
y = ca20$coords[, 2],
calcium = ca20$data,
elevation = ca20$covariate[, 1],
region = factor(ca20$covariate[, 2])
)
dat$pos <- numFactor(scale(dat$x), scale(dat$y))
dat$ID <- factor(rep(1, nrow(dat)))
glmmTMB(calcium ~ elevation + region + mat(pos + 0 | ID), data = dat)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.