fixef: Extract fixed-effects estimates

Description Usage Arguments Details Value Examples

Description

Extract Fixed Effects

Usage

1
2
## S3 method for class '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.

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)

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

Examples

1
2
3
4
5
6
7
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)

Example output

Warning message:
In checkMatrixPackageVersion() : Package version inconsistency detected.
TMB was built with Matrix version 1.2.15
Current Matrix version is 1.2.17
Please re-install 'TMB' from source using install.packages('TMB', type = 'source') or ask CRAN for a binary version of 'TMB' matching CRAN's 'Matrix' package

Conditional model:
(Intercept)         Days  
     251.41        10.47  
(Intercept)        Days 
  251.40511    10.46728 
cond.(Intercept)        cond.Days disp.(Intercept) 
      251.405110        10.467285         7.719306 
$cond
(Intercept)        Days 
  251.40511    10.46728 

$zi
numeric(0)

$disp
(Intercept) 
   7.719306 

attr(,"class")
[1] "fixef.glmmTMB"

glmmTMB documentation built on July 20, 2021, 9:06 a.m.