Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fixef.merModList

Extract fixed-effects estimates for a merModList


Description

Extract fixed-effects estimates for a merModList

Usage

## S3 method for class 'merModList'
fixef(object, add.dropped = FALSE, ...)

Arguments

object

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

add.dropped

for models with rank-deficient design matrix, reconstitute the full-length parameter vector by adding NA values in appropriate locations?

...

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

Details

Extract the estimates of the fixed-effects parameters from a list of fitted merMod models. Takes the mean of the individual fixef objects for each of the component models in the merModList.

Value

a named, numeric vector of fixed-effects estimates.

Examples

sim_list <- replicate(n = 10,
        expr = sleepstudy[sample(row.names(sleepstudy), 180),],
        simplify=FALSE)
fml <- "Reaction ~ Days + (Days | Subject)"
mod <- lmerModList(fml, data = sim_list)
fixef(mod)

merTools

Tools for Analyzing Mixed Effect Regression Models

v0.5.2
GPL (>= 2)
Authors
Jared E. Knowles [aut, cre], Carl Frederick [aut], Alex Whitworth [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.