statsmodels.regression.mixed_linear_model.MixedLM.predict

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

Return predicted values from a design matrix.

Parameters:
  • params (array-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.
  • exog (array-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.

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.regression.mixed_linear_model.MixedLM.predict.html