Skip to content

Commit c81918a

Browse files
committed
print key stats
1 parent a6790c9 commit c81918a

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

src/scripts/overview_paper/C_impact_of_healthsystem_assumptions/analysis_impact_of_healthsystem.py

+29-1
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,32 @@ def rename_scenarios_in_index(ser: pd.Series) -> pd.Series:
202202
fig.show()
203203
plt.close(fig)
204204

205+
# DALYS Averted vs No Healthcare System
206+
print(
207+
summarize(
208+
-1.0 *
209+
pd.DataFrame(
210+
find_difference_relative_to_comparison(
211+
num_dalys.loc[0],
212+
comparison='No Healthcare System')
213+
).T
214+
).iloc[0].unstack().reindex(param_names) / 1e6
215+
)
216+
217+
# DALYS Averted Due to the Squeezing Being Allowable (= Dalys Averted in Hard Constraints vs Status Quo Scenario)
218+
print(
219+
summarize(
220+
-1.0 *
221+
pd.DataFrame(
222+
find_difference_relative_to_comparison(
223+
num_dalys.loc[0],
224+
comparison="With Hard Constraints")
225+
).T
226+
).iloc[0].unstack().reindex(param_names).loc["Status Quo"] / 1e6
227+
)
228+
229+
230+
205231
# %% Deaths and DALYS averted relative to Status Quo
206232
num_deaths_averted = summarize(
207233
-1.0 *
@@ -452,6 +478,8 @@ def get_total_num_dalys_by_wealth_and_label(_df):
452478

453479
apply(
454480
results_folder=args.results_folder,
455-
output_folder=args.results_folder,
481+
output_folder=Path(
482+
'/Users/tbh03/Library/CloudStorage/OneDrive-ImperialCollegeLondon/Documents/TLM/Papers/Introductory Model Paper/2024_07_11_RESUBMISSION_TO_THE_LANCET_GLOBAL_HEALTH/Comparing results between mean and median/3 - upated using median/healthsystem_under_different_assumptions-2023-11-13T194641Z'
483+
),
456484
resourcefilepath=Path('./resources')
457485
)

0 commit comments

Comments
 (0)