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

  • MMAMixedEffects

Symbols

  • GeneralizedMixedEffectsModelFit
  • MixedEffectsFamily
  • MixedEffectsModelFit
  • MixedEffectsModel
  • NestedGrouping
  • NonlinearMixedEffectsModelFit
New in:
1.0
| Modified in:
1.2.4
| Obsolete in:
Categorization

Keywords

Syntax Templates

MixedEffectsFamily
MixedEffectsFamily[]

​lists available core and advanced families.​
​
MixedEffectsFamily[name]

​returns a validated family Association.​
​
MixedEffectsFamily[association]

​sets family-specific size, precision, scale, or degrees-of-freedom parameters.
constructs validated response-family definitions for generalized mixed models.
A family definition contains normalized log density, support, variance, link, derivatives, mean semantics, simulation metadata, and dispersion parameterization.
NegativeBinomial2 uses Size equal to glmmTMB theta and reciprocal to the common statsmodels alpha convention.
ZeroInflatedFamily and HurdleFamily wrap supported count families and preserve normalized likelihoods.
Invalid mixture probabilities, nonpositive dispersion parameters, and unsupported links return Failure rather than silently changing family.
The following options can be given:
LinkFunction
Automatic
Use the documented family default or a supported explicit link.
See Also
GeneralizedMixedEffectsModelFit
▪
MixedEffectsModel
Related Guides
MMA MixedEffects
Related Links
ZeroInflatedFamily
▪
HurdleFamily
Examples Initialization
Needs["MarcoThiel`MMAMixedEffects`"];
Examples
MoreExamples⊳
Compare mean-variance relationships represented by three families:
Plotmu,mu+
2
mu
2.5`
,0.25`
2
mu
,{mu,0.05`,8},PlotLegends{"Poisson","NegativeBinomial2","Gamma"}
Poisson
negative binomial 2
Gamma
​
Inspect the explicit NB2 parameter convention:
KeyTake[MixedEffectsFamily[Association["Family""NegativeBinomial2","Size"2.5`]],{"Family","Parameters","WeightInterpretation","OffsetScale"}]
FamilyNegativeBinomial2,ParametersSize2.5,WeightInterpretationFrequency,OffsetScaleLink
More Examples
Properties & Relations
Inspect parameter metadata:
KeyTake[MixedEffectsFamily[Association["Family""NegativeBinomial2","Size"2.5`]],{"Family","Parameters","WeightInterpretation","OffsetScale"}]
Parameter conventions used during fitting.
Possible Issues
Reject an invalid probability:
ZeroInflatedFamily["Poisson",1.2`]
Failure[InvalidZeroProbability,...].

© 2026 Wolfram. All rights reserved.

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