lmer_cohenD: Find Cohen's D for lmer model

View source: R/lmer_cohenD.R

lmer_cohenDR Documentation

Find Cohen's D for lmer model

Description

Calculate a heuristic Cohen's D for each fixed effect in an lmer model. Uses a fairly naive calculation: abs(b)/(SE*sqrt(df)), where df is approximated using a Kenward-Rogers approximation (package pbkrtest via lmSupport::modelSummary). Returns the lmSupport::modelSummary output with the addition of $cohen_d.

Usage

lmer_cohenD(lmerMod)

Arguments

lmerMod

Model fit by lme4::lmer()

Details

As with (& because of the underlying K-R approximation in) lmSupport::modelSummary, this can take a very long time for large or complex models.


akcochrane/ACmisc documentation built on Nov. 24, 2024, 11:22 a.m.