statsmodels.discrete.discrete_model.NegativeBinomial.get_distribution

NegativeBinomial.get_distribution(params, exog=None, exposure=None, offset=None)[source]

获取分布的冻结实例 基于预测参数获取分布的冻结实例。

Parameters:
paramsarray_like

模型的参数。

exogndarray, optional

主计数模型的解释变量。 如果 exog 为 None,则将使用模型中的数据。

offsetndarray, optional

偏移量被添加到均值函数的线性预测器中,系数等于1。 如果exog不为None,则默认值为零;如果exog为None,则默认值为模型偏移量。

exposurendarray, optional

Log(exposure) 被添加到均值函数的线性预测器中,系数等于1。如果指定了exposure,则该方法会对其进行对数处理。用户不需要先对其进行对数处理。如果exog不为None,则默认值为1;如果exog为None,则默认值为模型的exposure。

Returns:
Instance of frozen scipy distribution subclass.

Last update: Oct 16, 2024