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

NestedGrouping
NestedGrouping[g1,g2,...]

​forms an ordered composite level from two or more grouping variables.
constructs an explicit composite grouping level.
NestedGrouping is inert until row values are substituted.
To model classrooms nested within schools, include a school random structure and a NestedGrouping[school,classroom] structure.
Argument order is significant and every constituent value must be supplied during prediction.
NestedGrouping has no options.
See Also
MixedEffectsModelFit
▪
GeneralizedMixedEffectsModelFit
▪
NonlinearMixedEffectsModelFit
Related Guides
MMA MixedEffects
Related Links
MixedEffectsModelFit
▪
NonlinearMixedEffectsModelFit
Examples Initialization
Needs["MarcoThiel`MMAMixedEffects`"];
Examples
MoreExamples⊳
Represent subjects nested within sites explicitly:
NestedGrouping[site,subject]
NestedGrouping[Site 1,Subject A]
​
Visualize the hierarchy represented by the composite keys:
More Examples
Scope
Inspect composite levels:
fit["GroupLevelsByFactor"]
NestedGrouping[siteValue,subjectValue] keys.
Properties & Relations
Crossed factors use the factor directly rather than NestedGrouping:
MixedEffectsModelFit[data,{1,x},{{{1},subject},{{1},item}},{x,subject,item}]
Crossed subject and item effects.

© 2026 Wolfram. All rights reserved.

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