{
  "name": "Mixed-effects modelling software compared: model classes, estimation and inference features (R and Python)",
  "description": "Compiled from the official CRAN package pages, lme4 reference manual pages and statsmodels documentation: which model classes each tool fits, its stated estimation method and what its documentation says about inference and crossed effects. Cells state only what the cited page says.",
  "page": "https://casrai.org/guides/mixed-effects-models-random-vs-fixed-effects",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-17T00:43:25Z",
  "temporalCoverage": "2026",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Tool",
      "unit": "",
      "description": ""
    },
    {
      "name": "Language",
      "unit": "",
      "description": ""
    },
    {
      "name": "Model classes (as documented)",
      "unit": "",
      "description": ""
    },
    {
      "name": "Estimation (as documented)",
      "unit": "",
      "description": ""
    },
    {
      "name": "Inference / limitation noted in documentation",
      "unit": "",
      "description": ""
    },
    {
      "name": "Version read",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Tool": "lme4::lmer",
      "Language": "R",
      "Model classes (as documented)": "Linear mixed-effects models",
      "Estimation (as documented)": "REML (default, REML = TRUE) or maximum likelihood",
      "Inference / limitation noted in documentation": "p-values not reported by lme4 itself; see lmerTest",
      "Version read": "Reference manual (current CRAN)"
    },
    {
      "Tool": "lme4::glmer",
      "Language": "R",
      "Model classes (as documented)": "Generalized linear mixed models (glmer.nb for negative binomial)",
      "Estimation (as documented)": "Laplace approximation by default (nAGQ = 1); nAGQ = 0 is faster and less exact",
      "Inference / limitation noted in documentation": "Adaptive Gauss-Hermite quadrature only for a single scalar random effect",
      "Version read": "Reference manual (current CRAN)"
    },
    {
      "Tool": "lmerTest",
      "Language": "R",
      "Model classes (as documented)": "Adds p-values and ANOVA tables (type I, II, III) to lmer fits",
      "Estimation (as documented)": "Not applicable (extends lmer)",
      "Inference / limitation noted in documentation": "Satterthwaite degrees of freedom; Kenward-Roger via pbkrtest",
      "Version read": "3.2-1 (2026-03-05)"
    },
    {
      "Tool": "glmmTMB",
      "Language": "R",
      "Model classes (as documented)": "Linear and generalized linear mixed models, including zero-inflated variants",
      "Estimation (as documented)": "Maximum likelihood via TMB; Laplace approximation",
      "Inference / limitation noted in documentation": "Random effects Gaussian on the linear predictor scale",
      "Version read": "1.1.15.2 (2026-09-29)"
    },
    {
      "Tool": "statsmodels MixedLM",
      "Language": "Python",
      "Model classes (as documented)": "Linear mixed models with random intercepts and slopes",
      "Estimation (as documented)": "ML or REML",
      "Inference / limitation noted in documentation": "Handles most non-crossed and some crossed models; errors i.i.d. normal; GEE suggested if only the marginal mean matters",
      "Version read": "0.15.0 docs"
    }
  ],
  "sources": [
    {
      "title": "lme4 lmer reference page",
      "url": "https://search.r-project.org/CRAN/refmans/lme4/html/lmer.html",
      "accessed": "2026-11-16"
    },
    {
      "title": "lme4 glmer reference page",
      "url": "https://search.r-project.org/CRAN/refmans/lme4/html/glmer.html",
      "accessed": "2026-11-16"
    },
    {
      "title": "lmerTest CRAN page",
      "url": "https://cran.r-project.org/package=lmerTest",
      "accessed": "2026-11-16"
    },
    {
      "title": "glmmTMB CRAN page",
      "url": "https://cran.r-project.org/web/packages/glmmTMB/index.html",
      "accessed": "2026-11-16"
    },
    {
      "title": "statsmodels Linear Mixed Effects Models",
      "url": "https://www.statsmodels.org/stable/mixed_linear.html",
      "accessed": "2026-11-16"
    }
  ]
}