statsmodels.genmod.generalized_estimating_equations.GEE.get_distribution

GEE.get_distribution(params, scale=None, exog=None, exposure=None, offset=None, var_weights=1.0, n_trials=1.0)

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

Parameters:
paramsarray_like

模型参数。

scalescalar

比例参数。

exogarray_like

预测变量矩阵。

offsetarray_like or None

预测均值的偏移变量。

exposurearray_like or None

将对线性预测添加对数(曝光)。

var_weightsarray_like

1维方差(分析)权重数组。默认值为 None。

n_trialsint

二项分布的试验次数。默认值为1,对应于伯努利随机变量。

Returns:
gen

基于估计参数的scipy冻结分布实例。 使用rvs方法生成随机值。

注释

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


Last update: Oct 16, 2024