fixef {actuaRE}R Documentation

Extract fixed-effects estimates

Description

Extract the fixed-effects estimates

Arguments

object

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

Details

Extract the estimates of the fixed-effects parameters from a fitted model.

Value

a named, numeric vector of fixed-effects estimates.

Examples

  
  library(lme4)
  fixef(lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy))
  fm2 <- lmer(Reaction ~ Days + Days2 + (1|Subject),
              data=transform(sleepstudy,Days2=Days))
  fixef(fm2,add.dropped=TRUE)
  ## first two parameters are the same ...
  stopifnot(all.equal(fixef(fm2,add.dropped=TRUE)[1:2],
                      fixef(fm2)))
  

[Package actuaRE version 0.1.5 Index]