rsq_change: Compare the improvement in R squared from a baseline model

View source: R/rsq_change.R

rsq_changeR Documentation

Compare the improvement in R squared from a baseline model

Description

Compare the improvement in R squared from a baseline model

Usage

rsq_change(full, reduced)

Arguments

full

the full mixed model

reduced

the reduced mixed model (typically a random effect ANOVA model)

Details

Compare the improvement in fit from a baseline model, using mixed models

Value

A vector containing the proportion change in fit for each random effects parameter

Author(s)

Dustin Fife

Examples

data(math)
require(lme4)
baseline.model = lmer(MathAch~1 + (1|School), data=math)
full.model = lmer(MathAch~SES + (SES|School), data=math)
rsq_change(full.model, baseline.model)

dustinfife/flexplot documentation built on Sept. 23, 2024, 9:01 p.m.