The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
pecanr computes partial eta-squared (eta2p) effect
sizes for fixed effects in linear mixed models fitted with
lme4. It correctly handles crossed and nested random
effects structures – including random slopes – using a variance
decomposition approach that translates slope variances to the outcome
scale.
pecanr accounts for:
You can install the development version of pecanr from GitHub:
# install.packages("pak")
pak::pak("bcohen0901/pecanr")Once on CRAN:
install.packages("pecanr")library(lme4)
library(pecanr)
model <- lmer(y ~ condition + (1 | subject) + (1 | item), data = my_data)
eta2p(model, effect = "condition", data = my_data,
design = "crossed",
cross_vars = c("subject", "item"))model3 <- lmer(y ~ condition + (1 | subject) + (1 | item) + (1 | rater),
data = my_data)
eta2p(model3, effect = "condition", data = my_data,
design = "crossed",
cross_vars = c("subject", "item", "rater"))model_nested <- lmer(y ~ treatment + (1 | school/class), data = my_data)
eta2p(model_nested, effect = "treatment", data = my_data,
design = "nested",
nest_vars = c("class", "school"))batch_eta2p(model, data = my_data,
design = "crossed",
cross_vars = c("subject", "item"))eta2p(model, effect = "condition", data = my_data,
design = "crossed",
cross_vars = c("subject", "item"),
operative = TRUE)Correll, J., Mellinger, C., McClelland, G. H., & Judd, C. M. (2020). Avoid Cohen’s “Small”, “Medium”, and “Large” for Power Analysis. Trends in Cognitive Sciences, 24(3), 200-207.
Rights, J. D., & Sterba, S. K. (2019). Quantifying explained variance in multilevel models: An integrative framework for defining R-squared measures. Psychological Methods, 24(3), 309-338.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.