Skip to content

Commit

Permalink
Revert "temporary change to utils for this analysis only"
Browse files Browse the repository at this point in the history
This reverts commit adefb05.
  • Loading branch information
BinglingICL committed Feb 13, 2025
1 parent aa5dfd4 commit f5b21a3
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 f5b21a3

Please sign in to comment.