What’s this about?

Stata now fits nonlinear models with random effects. This means that when your science says that the model should be nonlinear in the parameters, as in the constant elasticity of substitution (CES) production function or in a growth curve for adoption of a new technology, you can now fit that model even when you have panel data. Parameters in the fixed portion of the model and random effects can both enter the model nonlinearly.


Now instead of fitting a linear model with random effects Uj, such as



we can fit a nonlinear model with random effects, such as



The new menl command fits these models. The command is discussed in detail here. In particular, an example with random intercepts is presented under Random intercepts. You can also fit models with random coefficients as shown in the Random coefficients and random-effects covariance structures example. You can even fit models with additional levels. See the Nonlinear three-level model: CES production function.

Tell me more

Learn more about Stata’s panel-data features.

Read more about nonlinear multilevel models in [ME] menl.