improve.fit: Compare the improvement in fit from a baseline model

Description Usage Arguments Details Value Author(s) Examples

View source: R/improve.fit.R

Description

Compare the improvement in fit from a baseline model

Usage

1
improve.fit(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

1
2
3
4
5
data(math)
require(lme4)
baseline.model = lmer(MathAch~1 + (1|School), data=d)
full.model = lmer(MathAch~SES + (SES|School), data=d)
improve.fit(full.model, baseline.model)

dustinfife/fifer documentation built on Oct. 31, 2020, 3:36 p.m.