Learn R Programming

glmmTMB (version 1.1.13)

estfun.glmmTMB: Extract Empirical Estimating Functions

Description

This method for estfun extracts the clusterwise score vectors (empirical estimating functions) from a fitted glmmTMB model.

Usage

# S3 method for glmmTMB
estfun(x, full = FALSE, cluster = getGroups(x), rawnames = FALSE, ...)

Value

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.

Arguments

x

a glmmTMB object fitted with ML (REML is not supported).

full

logical; if TRUE, return the full score vectors including random effects, otherwise only the fixed effects part.

cluster

a factor indicating the cluster structure of the data.

rawnames

logical; if TRUE, return the raw names of the parameters as in the TMB object. By default, FALSE such that the names are sanitized to user friendly names.

...

additional arguments (ignored).

Examples

Run this code
m <- glmmTMB(count ~ mined + (1 | spp), data = Salamanders, family = nbinom1)
estfun(m)
estfun(m, full = TRUE)

Run the code above in your browser using DataLab