lme.dscore: Calculate d scores from an lme4 or nlme object

Description Usage Arguments Value Note Examples

View source: R/lme.dscore.R

Description

This will calculate Cohen's D for each effect in an lme4 object.

Usage

1

Arguments

mod

An lme4 or nlme object

data

The dataset the lme4 or nlme object was drawn from

type

Either "lme4" or "nlme"

Value

A table of d-scores.

Note

lme4 and nlme models will produce slightly different estimates. This is because when using type="lme4", the numerator DF will be calculated using the Satterthwaite approximations to degrees of freedom (via the lmerTest package), whereas nlme includes Kenward-Roger numerator degress of freedom. If you have sufficent level-1 samples, the difference between models will be miniscule.

Examples

1
2
## Not run: model1<-lmer(DV~IV1+IV2+IV3+(1|subject),data=DATA_1)
 ## Not run: lme.dscore(model1,data=DATA_1,type="lme4")

ekleiman1/EMAtools documentation built on Oct. 31, 2021, 10:20 p.m.