Skip to content

Commit f54a116

Browse files
Jingjing TangJingjing Tang
Jingjing Tang
authored and
Jingjing Tang
committed
Merge branch 'jeffreys-correction-for-quidel' of https://github.com/cmu-delphi/covidcast-indicators into jeffreys-correction-for-quidel
2 parents 823acb2 + 7afb38f commit f54a116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quidel_covidtest/delphi_quidel_covidtest/data_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def raw_positive_prop(positives, tests, min_obs):
167167
# this also elegantly sidesteps 0/0 division.
168168
tests[tests < min_obs] = np.nan
169169
# Jeffreys Correction for estimates
170-
positive_prop = (positives+0.5) / (tests+1)
170+
positive_prop = (positives + 0.5) / (tests + 1)
171171
se = np.sqrt(_prop_var(positive_prop, tests))
172172
sample_size = tests
173173
return positive_prop, se, sample_size

0 commit comments

Comments
 (0)