Software
multilevelmod

multilevelmod

Parsnip wrappers for mixed-level and hierarchical models

R

multilevelmod enables the use of multi-level models (also called mixed-effects models, hierarchical models, or random effects models) within the tidymodels framework through the parsnip package. It provides a consistent interface for fitting these models across different computational engines.

The package supports multiple modeling engines including lme4, nlme, geepack, and rstanarm, covering linear, logistic, and Poisson regression with random effects. It allows you to specify models using standard mixed model formula syntax (like (Days | Subject)) while working within the tidymodels ecosystem. This makes it possible to use mixed models in tidymodels workflows alongside preprocessing, tuning, and validation tools.

Contributors