Main Content

Mixed Effects

Nonlinear mixed-effects models


nlmefitNonlinear mixed-effects estimation
nlmefitsaFit nonlinear mixed-effects model with stochastic EM algorithm

Examples and How To

Mixed-Effects Models Using nlmefit and nlmefitsa

Fit a mixed-effects model, plot predictions and residuals, and interpret the results.

Examining Residuals for Model Verification

Examine the stats structure, which is returned by both nlmefit and nlmefitsa, to determine the quality of your model.


Mixed-Effects Models

Mixed-effects models account for both fixed effects (which represent population parameters, assumed to be the same each time data is collected) and random effects (which act like additional error terms).