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")

Example output

sh: 1: cannot create /dev/null: Permission denied
sh: 1: wc: Permission denied
Could not detect number of cores, defaulting to 1.
Warning message:
In checkMatrixPackageVersion() : Package version inconsistency detected.
TMB was built with Matrix version 1.2.10
Current Matrix version is 1.2.11
Please re-install 'TMB' from source or restore original 'Matrix' package

EMAtools documentation built on Nov. 1, 2021, 1:07 a.m.