Learn R Programming

coxme (version 2.2-1)

fixef.lmekin: Extraction functions for Lmekin

Description

Extract the fixed effects, random effects, variance of the fixed effects, or variance of the random effects from a linear mixed effects model fit with lmekin.

Usage

## S3 method for class 'lmekin':
fixef(object, \dots)
## S3 method for class 'lmekin':
ranef(object, \dots)
## S3 method for class 'lmekin':
vcov(object, \dots)
## S3 method for class 'lmekin':
VarCorr(x, \dots)

Arguments

object
an object inheriting from class lmekin representing the result of a mixed effects model.
x
an object inheriting from class lmekin representing the result of a mixed effects model.
...
some methods for this generic require additional arguments. None are used in this method.

Value

  • the fixed effects are a vector and the variance of the fixed effects is a matrix. The random effects will be a list with one element for each random effects terms, as will be their variance.

See Also

lmekin, random.effects, fixed.effects

Examples

Run this code
efit <-  lmekin(effort ~ Type + (1|Subject), ergoStool)
ranef(efit)

Run the code above in your browser using DataLab