Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

MMAMixedEffects

Guides

  • MMA MixedEffects

Symbols

  • GeneralizedMixedEffectsModelFit
  • MixedEffectsFamily
  • MixedEffectsModelFit
  • MixedEffectsModel
  • NestedGrouping
  • NonlinearMixedEffectsModelFit
MarcoThiel`MMAMixedEffects`
MixedEffectsModel
​
model["property"]
extracts one fitted-model property.
​
​
model[{"property1","property2",...}]
extracts an Association of properties.
​
​
model[x1,x2,...]
predicts from positional variable values.
​
​
model[association]
predicts from named variable values.
​
Details and Options
▪
represents a fitted mixed-effects model.
▪
MixedEffectsModel objects are returned by all three fitting functions and are not normally constructed directly.
▪
The compact summary box reports model class, approximation, observation count, grouping count, convergence, and singularity.
▪
IncludeRandomEffects controls conditional versus population prediction; NewGroupAction controls unseen levels.
▪
Property lists are stable Associations for one or many grouping structures; no output changes type solely because a second factor is added.
▪
Properties returns the complete supported property list.
▪
The following options can be given:
IncludeRandomEffects
True
Include known-level conditional random effects in prediction.
NewGroupAction
"Population"
Use zero random effect for an unseen level or use "Fail".
▪
The fitted object supports the following property groups:
▪
Data and design
"Data"
Rows used for fitting after missing-data processing.
"Variables"
Ordered predictor and grouping variables.
"IncludedRowIndices"
Original row indices retained for fitting.
"ExcludedRowIndices"
Original row indices excluded from fitting.
"FixedEffectsDesignMatrix"
Fixed-effect design matrix.
"RandomEffectsDesignMatrix"
Sparse random-effect design matrix.
▪
Fixed effects
"FixedEffects"
Association of fixed-effect estimates.
"ParameterTableEntries"
Machine-readable parameter inference entries.
"FixedEffectCovariance"
Estimated covariance matrix of fixed effects.
"FixedEffectCorrelationMatrix"
Corresponding correlation matrix.
▪
Random and residual effects
"RandomEffects"
Conditional modes grouped by random-effect structure.
"RandomEffectCovariances"
Association of estimated covariance matrices.
"ResidualVariance"
Gaussian residual variance, when applicable.
"ResidualParameterEstimates"
Estimated residual correlation and variance-function parameters.
▪
Predictions and residuals
"PopulationPredictedResponse"
Training predictions with random effects set to zero.
"ConditionalPredictedResponse"
Training predictions using conditional random effects.
"MarginalPredictedResponse"
Response-scale predictions integrated over random effects.
"Residuals"
Conditional response residuals.
"PearsonResiduals"
Variance-standardized residuals.
"DevianceResiduals"
Signed deviance residuals when defined.
▪
Likelihood and diagnostics
"LogLikelihood"
Constants-inclusive maximized or approximated log likelihood.
"AIC"
Akaike information criterion.
"BIC"
Bayesian information criterion.
"ConvergenceReport"
Gradient, error, optimizer, mode, and tolerance diagnostics.
"Converged"
True only when documented numerical gates pass.
"SingularFit"
Whether a random-effect covariance lies on a rank boundary.
"Warnings"
Statistical and numerical warnings retained with the fit.
​
Examples  
(4)
Basic Examples  
(1)
Extract several properties at once as an Association:
In[1]:=
fit[{"FixedEffects","AIC","Converged","Warnings"}]
Out[1]=
FixedEffects1251.405,days10.4673,AIC1755.63,ConvergedTrue,Warnings{}
​
Distinguish population, known-group conditional, and marginal predictions:
In[1]:=
Plot[Evaluate[predictionFunctions],{time,0,6},PlotLegends{"population","conditional group","marginal"}]
Out[1]=
population
conditional group
marginal
Scope  
(1)

Properties & Relations  
(1)

Possible Issues  
(1)

SeeAlso
MixedEffectsModelFit
▪
GeneralizedMixedEffectsModelFit
▪
NonlinearMixedEffectsModelFit
TechNotes
▪
Mixed-Effects Model Theory
RelatedGuides
▪
MMA MixedEffects
RelatedLinks
▪
MixedEffectsModelFit
​​
▪
​​
GeneralizedMixedEffectsModelFit
​​
▪
​​
NonlinearMixedEffectsModelFit
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com