Learn R Programming

multilevelTools

Effect sizes, diagnostics and performance metrics for multilevel and mixed effects models. Includes marginal and conditional R2 estimates for linear mixed effects models based on Johnson 2014.

The vignette shows a complete example.

Installation

To get the version from CRAN:


install.packages("multilevelTools")

To get the latest development version, use:


#install.packages("devtools")
devtools::install_github("JWiley/multilevelTools")

Copy Link

Version

Install

install.packages('multilevelTools')

Monthly Downloads

668

Version

0.2.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Joshua F Wiley

Last Published

April 13th, 2025

Functions in multilevelTools (0.2.0)

nEffective

Estimate the effective sample size from longitudinal data
meanDeviations

Function to calculate the mean and deviations from mean
plot.modelDiagnostics.merMod

Plot Diagnostics for an lmer model
ranef2long

Convert ranef() output to long format
plot.modelDiagnostics.lme

Plot Diagnostics for an lme model
weighted.sma

Weighted Simple Moving Average
modelPerformance.merMod

modelPerformance method for merMod objects
residualDiagnostics.lme

residualDiagnostics methods for lme objects
residualDiagnostics.merMod

residualDiagnostics methods for merMod objects
modelCompare.merMod

Compare two lmer models
meanDecompose

Mean decomposition of a variable by group(s)
APAStyler.modelTest.merMod

Format results from a linear mixed model
modelDiagnostics.lme

modelDiagnostics method for lme objects
acfByID

Estimate the autocorrelation by unit (ID)
evaluateLags

Create lag variables and evaluate models with different number of lags
ranefdata

Create data and plots for brms random effect models
iccMixed

Intraclass Correlation Coefficient (ICC) from Mixed Models
R2.merMod

merMod method for R2
omegaSEM

Calculate multilevel omega reliability
.summary.ID

Summarize a Variable in a Long Dataset by ID
modelTest.merMod

estimate detailed results per variable and effect sizes for both fixed and random effects from lmer models
modelDiagnostics.merMod

modelDiagnostics method for merMod objects