statsmodels.genmod.generalized_estimating_equations.GEEResults.plot_added_variable
-
GEEResults.plot_added_variable(focus_exog, resid_type=
None, use_glm_weights=True, fit_kwargs=None, ax=None)[source]
为拟合的回归模型创建一个附加变量图。
- Parameters:
- focus_exog
int or str exog的列索引或变量名称,指示在回归中要评估其角色的变量。
- resid_type
str 用于因变量的残差类型。如果为None,则对于GLM/GEE使用resid_deviance,否则使用resid。
- use_glm_weightsbool
仅在模型为GLM或GEE时使用。如果为True,则使用WLS计算焦点预测变量的残差,权重来自拟合GLM时的IRLS计算。如果为False,则使用未加权的回归。
- fit_kwargs
dict, optional 在重新拟合模型时传递给 fit 的关键字参数。
- ax: Axes
Matplotlib Axes 实例
- Returns:
Figure一个matplotlib图形实例。
Last update:
Oct 16, 2024