statsmodels.regression.mixed_linear_model.MixedLM.predict

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

从设计矩阵返回预测值。

Parameters:
paramsarray_like

混合线性模型的参数。可以是 MixedLMParams 实例,或者是包含打包模型参数的向量,其中固定效应参数位于向量的开头,或者是仅包含固定效应参数的向量。

exogarray_like, optional

设计 / 固定效应的外生数据。如果为 None,则使用模型 exog。

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

Last update: Oct 16, 2024