Skip to content

Commit

Permalink
Revert "Revert "Revert "temporary change to utils for this analysis o…
Browse files Browse the repository at this point in the history
…nly"""

This reverts commit 4fc56d3.
  • Loading branch information
BinglingICL committed Feb 14, 2025
1 parent 3b2b659 commit e3c184f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tlo/analysis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def compute_summary_statistics(
results: pd.DataFrame,
central_measure: Union[Literal["mean", "median"], None] = None,
width_of_range: float = 0.95,
use_standard_error: bool = True,
use_standard_error: bool = False,
only_central: bool = False,
collapse_columns: bool = False,
) -> pd.DataFrame:
Expand Down Expand Up @@ -414,7 +414,6 @@ def compute_summary_statistics(
stats["lower"] = stats['central'] - z_value * std_error
stats["upper"] = stats['central'] + z_value * std_error

# summary = pd.concat(stats, axis=1).stack(level=1) # move cause from column to index
summary = pd.concat(stats, axis=1)
summary.columns = summary.columns.swaplevel(1, 0)
summary.columns.names = ['draw', 'stat']
Expand Down

0 comments on commit e3c184f

Please sign in to comment.