Skip to contents

Obtains standardized regression coefficients from the results of a model fit by the lme4() function of the lmer package.

Usage

lm.beta.lmer(model)

Arguments

model

name of lmer() model object.

Value

Standardized regression coefficients of lmer() model object.

Details

Obtains standardized regression coefficients from the results of a model fit by the lmer() function of the lme4 package.

Examples

# Fit Model
library("lme4")
#> Loading required package: Matrix

sleepstudy$DaySq <- sleepstudy$Days^2
model <- lme4::lmer(Reaction ~ Days + DaySq + (Days | Subject), sleepstudy)

# Standardized regression coefficients
lm.beta.lmer(model)
#>      Days     DaySq 
#> 0.3801317 0.1611094 




Developmental Psychopathology Lab