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

 

yij=β0+β1xij+Uj+ϵij

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

 

yij=(β1+Uj)/[1+exp{(timeijβ2)/β3}]+ϵij

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.