lmer.rsquared: R^2 for Linear Mixed Effects Models

View source: R/lmer.rsquared.R

lmer.rsquaredR Documentation

R^2 for Linear Mixed Effects Models

Description

Returns the R^2 value for a linear mixed effect model.

Usage

lmer.rsquared(model)

Arguments

model

a model of class merMod for which the R^2 value should be obtained.

Details

In a mixed effects model, much of the variance will be "explained" in a theoretically uninformative way simply by the random effects (e.g., "some people are different from others"). To the extent that an R^2 value is useful for these models, it will be useful when comparing the R^2 of a model that incorporates some fixed effect(s) of interest to that of a model that does not.

Value

R^2 value between 0 and 1.

References

Baayen, R.H. (2008). Analyzing linguistic data: A practical introduction to statistics. Cambridge, UK: Cambridge University Press.

Baayen, R.H., & Milin, P. (2010). Analyzing reacion times, 3, 12-28.


sfraundorf/psycholing documentation built on April 23, 2022, 2:50 a.m.