| lme.dscore | R Documentation |
This will calculate Cohen's D for each effect in an lme4 object.
lme.dscore(mod, data, type)
mod |
An lme4 or nlme object |
data |
The dataset the lme4 or nlme object was drawn from |
type |
Either "lme4" or "nlme" |
A table of d-scores.
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.
data(sleepstudy, package = "lme4")
model1 <- Reaction ~ Days + (1 | Subject)
lme.dscore(model1, data = sleepstudy, type = "lme4")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.