Learn R Programming

glmmTMB (version 1.1.2.2)

fixef: Extract fixed-effects estimates

Description

Extract Fixed Effects

Usage

# S3 method for glmmTMB
fixef(object, ...)

Arguments

object

any fitted model object from which fixed effects estimates can be extracted.

optional additional arguments. Currently none are used in any methods.

Value

an object of class fixef.glmmTMB comprising a list of components (cond, zi, disp), each containing a (possibly zero-length) numeric vector of coefficients

Details

Extract fixed effects from a fitted glmmTMB model.

The print method for fixef.glmmTMB object only displays non-trivial components: in particular, the dispersion parameter estimate is not printed for models with a single (intercept) dispersion parameter (see examples)

Examples

Run this code
# NOT RUN {
data(sleepstudy, package = "lme4")
fm1 <- glmmTMB(Reaction ~ Days, sleepstudy)
(f1 <- fixef(fm1))
f1$cond
## show full coefficients, including dispersion parameter
unlist(f1)
print.default(f1)
# }

Run the code above in your browser using DataLab