statsmodels.regression.mixed_linear_model.MixedLM.get_distribution#

MixedLM.get_distribution(params, scale, exog)[source]#

Return a random number generator for the model’s distribution

Parameters:
paramsarray_like

A parameter vector defining a mixed linear model. See _mixedlm_distribution for more information.

scalescalar

The unexplained variance

exogarray_like

An array of fixed effect covariates. If None, model.exog is used.

Returns:
_mixedlm_distribution

The distribution instance, which can be used to simulate data from the model via its rvs method.