scipy.stats._result_classes.
OddsRatioResult#
- class scipy.stats._result_classes.OddsRatioResult(_table, _kind, statistic)[source]#
scipy.stats.contingency.odds_ratio的结果。有关更多详细信息,请参阅 odds_ratio 的文档字符串。- 属性:
- statisticfloat
计算出的优势比。
如果 kind 是
'sample',这是样本(或无条件)估计,由table[0, 0]*table[1, 1]/(table[0, 1]*table[1, 0])确定。如果 kind 是
'conditional',这是优势比的条件最大似然估计。它是具有与 table 相同的超几何参数,且其平均值为table[0, 0]的 Fisher 非中心超几何分布的非中心性参数。
方法
confidence_interval([置信度水平,...])优势比的置信区间。