statsmodels.genmod.bayes_mixed_glm.BayesMixedGLMResults.predict

BayesMixedGLMResults.predict(exog=None, linear=False)[source]

返回均值结构的预测值。

Parameters:
exogarray_like

均值结构的设计矩阵。如果为 None,则使用模型的设计矩阵。

linearbool

如果为真,返回线性预测器,否则使用链接函数转换线性预测器。

Returns:
A one-dimensional array of fitted values.

Last update: Oct 16, 2024