statsmodels.othermod.betareg.BetaModel.get_distribution

BetaModel.get_distribution(params, exog=None, exog_precision=None)[source]

返回预测分布的一个实例。

Parameters:
paramsarray_like

模型参数。

exogarray_like

用于均值的预测变量数组。

exog_precisionarray_like

用于均值的预测变量数组。

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