| estfun.glmmTMB | R Documentation |
This method for estfun extracts the
clusterwise score vectors (empirical estimating functions)
from a fitted glmmTMB model.
## S3 method for class 'glmmTMB'
estfun(x, full = FALSE, cluster = getGroups(x), rawnames = FALSE, ...)
x |
a |
full |
logical; if |
cluster |
a factor indicating the cluster structure of the data. |
rawnames |
logical; if |
... |
additional arguments (ignored). |
A matrix where each row corresponds to a cluster and each column corresponds to a parameter in the model. The values are the empirical estimating functions (score vectors) for each parameter in each cluster.
If crossed random effects are used in the model, this function will not correctly calculate the score vectors in general, and warnings will be issued. In general, this function should be used with models with a single level of random effects or nested random effects only.
m <- glmmTMB(count ~ mined + (1 | spp), data = Salamanders, family = nbinom1)
estfun(m)
estfun(m, full = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.