statsmodels.othermod.betareg.BetaResults.get_distribution¶
-
BetaResults.get_distribution(exog=
None, exog_precision=None, transform=True)[source]¶ 返回预测分布的一个实例。
- Parameters:¶
- exogarray_like
用于均值的预测变量数组。
- exog_precisionarray_like
用于均值的预测变量数组。
- transformbool
如果 transform 为 True 且使用了公式,则预测变量
exog会经过公式处理。默认值为 True。
- Returns:¶
Instanceofascipyfrozendistributionbasedonestimated- parameters.
另请参阅
注释
此函数委托给 predict 方法来处理 exog 和 exog_precision,这反过来会进行任何必要的转换。
由于
scipy.stats.distributions 对象的行为,返回的随机数生成器必须使用gen.rvs(n)调用,其中n是用于拟合模型的数据集中观测值的数量。如果为n使用其他值,将会产生误导性的结果。
Last update:
Oct 16, 2024