statsmodels.regression.mixed_linear_model.MixedLM.predict

MixedLM.predict(params, exog=None)[source]

Return predicted values from a design matrix.

Parameters:
paramsarray_like

Parameters of a mixed linear model. Can be either a MixedLMParams instance, or a vector containing the packed model parameters in which the fixed effects parameters are at the beginning of the vector, or a vector containing only the fixed effects parameters.

exogarray_like, optional

Design / exogenous data for the fixed effects. Model exog is used if None.

Returns:
An array of fitted values. Note that these predicted values
only reflect the fixed effects mean structure of the model.

Last update: Oct 12, 2024