Skip to content

Commit a6790c9

Browse files
committed
central summary measure is median not mean
1 parent 08b17bb commit a6790c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tlo/analysis/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ def summarize(results: pd.DataFrame, only_mean: bool = False, collapse_columns:
313313

314314
summary = pd.concat(
315315
{
316-
'mean': results.groupby(axis=1, by='draw', sort=False).mean(),
316+
'mean': results.groupby(axis=1, by='draw', sort=False).median(), # ***** NB. Central summary measure is
317+
# the MEDIAN but the column is labelled
318+
# as "mean". *****
317319
'lower': results.groupby(axis=1, by='draw', sort=False).quantile(0.025),
318320
'upper': results.groupby(axis=1, by='draw', sort=False).quantile(0.975),
319321
},

0 commit comments

Comments
 (0)