@@ -916,7 +916,7 @@ class StratifiedTable(object):
916
916
An estimate of the pooled log odds ratio. This is the
917
917
Mantel-Haenszel estimate of an odds ratio that is common to
918
918
all the tables.
919
- log_oddsratio_se : float
919
+ logodds_pooled_se : float
920
920
The estimated standard error of the pooled log odds ratio,
921
921
following Robins, Breslow and Greenland (Biometrics
922
922
42:311-323).
@@ -1058,20 +1058,15 @@ def test_null_odds(self, correction=False):
1058
1058
1059
1059
@cache_readonly
1060
1060
def oddsratio_pooled (self ):
1061
- # doc for cached attributes in init above
1062
-
1063
1061
odds_ratio = np .sum (self ._ad / self ._n ) / np .sum (self ._bc / self ._n )
1064
1062
return odds_ratio
1065
1063
1066
1064
@cache_readonly
1067
1065
def logodds_pooled (self ):
1068
- # doc for cached attributes in init above
1069
-
1070
1066
return np .log (self .oddsratio_pooled )
1071
1067
1072
1068
@cache_readonly
1073
1069
def riskratio_pooled (self ):
1074
- # doc for cached attributes in init above
1075
1070
1076
1071
acd = self .table [0 , 0 , :] * self ._cpd
1077
1072
cab = self .table [1 , 0 , :] * self ._apb
@@ -1086,7 +1081,6 @@ def risk_pooled(self):
1086
1081
1087
1082
@cache_readonly
1088
1083
def logodds_pooled_se (self ):
1089
- # doc for cached attributes in init above
1090
1084
1091
1085
adns = np .sum (self ._ad / self ._n )
1092
1086
bcns = np .sum (self ._bc / self ._n )
0 commit comments