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:
Instance of a scipy frozen distribution based on estimated
parameters.

另请参阅

predict

注释

此函数委托给 predict 方法来处理 exog 和 exog_precision,这反过来会进行任何必要的转换。

由于 scipy.stats.distributions 对象 的行为,返回的随机数生成器必须使用 gen.rvs(n) 调用,其中 n 是用于拟合模型的数据集中观测值的数量。如果为 n 使用其他值,将会产生误导性的结果。


Last update: Oct 16, 2024