Skip to contents

Fitting models

Construct and fit linear and generalized linear mixed models.

lmm()
Fit a linear mixed-effects model
glmm()
Fit a generalized linear mixed model
mm_negative_binomial()
Negative-binomial family for glmm()
supported_models()
The supported model envelope
compile_model()
Compile a mixed-effects model spec without fitting
mm_control()
Control mixeff fitting behavior

Extractors (lme4-compatible)

The familiar lme4 accessor surface.

Diagnostics and influence

Residual and random-effect plots, leverage, influence, R2 and ICC.

Inference

Contrasts, term tests, degrees of freedom, intervals, and bootstrap.

contrast()
Contrast fixed effects
test_effect()
Test a fixed-effect term
test_random_effect()
Test a random-effect variance component
anova(<mm_lmm>)
Analysis of variance for a mixeff LMM
anova(<mm_glmm>)
Analysis of deviance for GLMMs
drop1(<mm_lmm>)
Drop one fixed-effect term at a time
drop1(<mm_glmm>)
Drop one fixed-effect term at a time from a GLMM
confint(<mm_lmm>)
Confidence intervals for a mixeff LMM
confint(<mm_glmm>)
Confidence intervals for fixed effects of a mixeff GLMM
profile(<mm_lmm>)
Profile a fitted linear mixed model
df_for_contrast()
Degrees of freedom for a contrast
estimability()
Assess contrast estimability
inference_options()
Inspect inference methods available for this fit
inference_table()
Fixed-effect inference table
bootstrap_control()
Fixed-effect bootstrap control
parametric_bootstrap()
Parametric bootstrap likelihood-ratio comparison
mm_bootmer()
Parametric bootstrap of any statistic of a fitted LMM

Marginal effects & emmeans

mm_grid() mm_predictions() mm_means() mm_comparisons()
Marginal grids, predictions, means, and comparisons
mm_lincomb()
Wald inference on a linear combination of fixed effects
recover_data.mm_lmm() emm_basis.mm_lmm() recover_data.mm_glmm() emm_basis.mm_glmm()
Optional emmeans support for mixeff models

Model comparison & reporting

compare()
Compare fitted mixeff models
compare_covariance()
Compare covariance parameterizations for current random terms
step()
Stepwise model selection
step(<mm_lmm>)
Backward elimination of random and fixed effects (lmerTest's step())
mm_allfit()
Refit a model with every available optimizer
model_report() reporting_table()
Produce reporting tables for a fitted mixeff model

Audit-first verbs

Make the model’s design, reductions, and optimizer state explicit.

audit()
Audit a compiled model spec or fitted model
audit_design()
Deprecated alias for audit()
explain_model()
Explain the random-effects structure of a compiled model
changes()
Show requested, effective, and fitted model-state changes
diagnostics() fit_status()
Inspect mixeff diagnostics and fit status
parameterization()
Inspect covariance parameterization
random_options()
Inspect nearby random-effect spellings for one grouping factor
random_blocks()
Inspect random-effect blocks
roles()
Declare or inspect design roles
optimizer_certificate()
Inspect the optimizer certificate
verify_convergence()
Verify convergence of a fitted mixed model
reproducibility()
Inspect reproducibility metadata

broom / broom.mixed

mm_broom
Tidy, glance, and augment methods for mixeff fits

Persistence

as_json()
Serialize a mixeff spec or fit to JSON
revive()
Revive a serialized mixeff object
fit_handle_alive()
Test whether a mixeff fit has a live native handle

Formula & schema internals

mm_parse_formula()
Parse and canonicalize an lme4-style formula
mm_formula_manifest()
The wrapper's formula manifest
mm_json_negotiate()
Negotiate a JSON schema header against what mixeff supports
mm_json_known_schemas()
Closed list of schema/version pairs the wrapper understands

Package

mixeff mixeff-package
mixeff: Mixed-Effects Models via the 'mixeff-rs' Rust Crate