statsmodels.discrete.count_model.ZeroInflatedPoisson.get_distribution¶
-
ZeroInflatedPoisson.get_distribution(params, exog=
None, exog_infl=None, exposure=None, offset=None)[source]¶ 获取基于预测参数的分布的冻结实例。
- Parameters:¶
- paramsarray_like
模型的参数。
- exog
ndarray,optional 主计数模型的解释变量。 如果
exog为 None,则将使用模型中的数据。- exog_infl
ndarray,optional 零膨胀模型的解释变量。
exog_infl必须在exog提供的情况下提供,除非exog_infl在模型中仅是一个常数。- offset
ndarray,optional 偏移量被添加到均值函数的线性预测器中,系数等于1。 如果exog不为None,则默认值为零;如果exog为None,则默认值为模型偏移量。
- exposure
ndarray,optional Log(exposure) 被添加到均值函数的线性预测器中,系数等于1。如果指定了exposure,则该方法会对其进行对数处理。用户不需要先对其进行对数处理。如果exog不为None,则默认值为1;如果exog为None,则默认值为模型的exposure。
- Returns:¶
Instanceoffrozenscipydistributionsubclass.
Last update:
Oct 16, 2024