statsmodels.gam.generalized_加性模型.GLMGamResults.plot_partial
-
GLMGamResults.plot_partial(smooth_index, plot_se=
True, cpr=False, include_constant=True, ax=None)[source]
绘制平滑项对线性预测的贡献
- Parameters:
- smooth_index
int 平滑项在平滑项列表中的索引
- plot_sebool
如果 plot_se 为真,则线性预测的置信区间将被添加到图中。
- cprbool
如果 cpr(成分加残差)为真,则散点图的偏工作残差将被添加到图中。
- include_constantbool
如果为真,则将估计的截距添加到预测中,并添加其标准误差。这避免了置信区间在施加的识别约束处具有零宽度,例如在参考点或均值处。
- ax
None or matplotlib axis instance 如果 ax 不为 None,则图将被添加到其中。
- Returns:
Figure如果 ax 为 None,则创建图形。否则,为 ax 连接的 Figure。
Last update:
Oct 16, 2024