lme.dscore {EMAtools}R Documentation

Calculate d scores from an lme4 or nlme object

Description

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

Usage

lme.dscore(mod, data, type)

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

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

[Package EMAtools version 0.1.4 Index]