Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Early Epidemic Comparisons #175

Open
4 tasks done
mmcleod89 opened this issue Jan 29, 2024 · 4 comments
Open
4 tasks done

Early Epidemic Comparisons #175

mmcleod89 opened this issue Jan 29, 2024 · 4 comments
Projects

Comments

@mmcleod89
Copy link
Collaborator

mmcleod89 commented Jan 29, 2024

Direct comparisons between Python and SAS
From 1989 to 1995

  • Population demographics: age / sex
  • Non HIV death rates
  • Number of short term partners (by age and sex)
  • Partner balance
@mmcleod89 mmcleod89 added this to To do in HIVpy via automation Jan 29, 2024
@mmcleod89 mmcleod89 moved this from To do to In progress in HIVpy Jan 29, 2024
@pineapple-cat
Copy link
Collaborator

Hi @UCL/hiv-modelling, here are some early epidemic comparison graphs of mean averages between 25 HIVpy runs (population size: 100k) and the 100 core SAS runs kindly provided by Jenny.

Population

  • Population (15-49)s_alive1549
  • Population (15-49, male)s_alive1549_m
  • Population (15-49, female)s_alive1549_w

Comparison of Population (15-49) Over Time
Comparison of Population (15-49, Male) Over Time
Comparison of Population (15-49, Female) Over Time

Deaths

  • Deaths (tot)s_dead_all
  • Non-HIV deaths (tot)s_dead_all - s_death_hiv
  • Non-HIV deaths (ratio) → (s_dead_all - s_death_hiv) / (s_alive_m + s_alive_w)

Comparison of Deaths (Tot) Over Time
Comparison of Non-Hiv Deaths (Tot) Over Time
Comparison of Non-Hiv Deaths (Ratio) Over Time

Short Term Partners

  • At least 1 short term partner (ratio)s_newp_ge1 / (s_alive_m + s_alive_w)
  • Short term partners (15-49, male) → (s_m_1524_newp + s_m_2534_newp + s_m_3544_newp) / s_alive1549_m
  • Short term partners (15-49, female) → (s_w_1524_newp + s_w_2534_newp + s_w_3544_newp) / s_alive1549_w

Comparison of At Least 1 Short Term Partner (Ratio) Over Time
Comparison of Short Term Partners (15-49, Male) Over Time
Comparison of Short Term Partners (15-49, Female) Over Time

Partner Balance

@mmcleod89 is currently in the process of making improvements to the partner balance regulation code so we don't need to take too much stock of these graphs, but having them here for later comparison won't hurt.

  • Partner sex balance (15-24, male) → log(m15r, 10)
  • Partner sex balance (15-24, female) → log(w15r, 10)
  • Partner sex balance (25-34, male) → log(m25r, 10)
  • Partner sex balance (25-34, female) → log(w25r, 10)
  • Partner sex balance (35-44, male) → log(m35r, 10)
  • Partner sex balance (35-44, female) → log(w35r, 10)

Comparison of Partner Sex Balance (15-24, Male) Over Time
Comparison of Partner Sex Balance (15-24, Female) Over Time
Comparison of Partner Sex Balance (25-34, Male) Over Time
Comparison of Partner Sex Balance (25-34, Female) Over Time
Comparison of Partner Sex Balance (35-44, Male) Over Time
Comparison of Partner Sex Balance (35-44, Female) Over Time

@andrew-phillips-1
Copy link

Thanks @pineapple-cat Good to start to compare these graphically. For the earlier graphs I would suggest having the y axis start at 0 to enable comparison visually.
I'm afraid I won't be on the call this coming Tuesday but hopefully you all can go ahead and discuss them.

@ValentinaCambiano
Copy link

ValentinaCambiano commented Feb 19, 2024 via email

@pineapple-cat
Copy link
Collaborator

Hi @ValentinaCambiano, thanks for your comments.

  • You are correct that Non-HIV deaths (ratio) is trying to calculate the death rate. I decided to add this metric when I noticed how different the population sizes were between the HIVpy and SAS models to see if that accounted for the increased number of deaths in the SAS runs.
  • Short term partners (15-49, male) and Short term partners (15-49, female) are imperfectly calculated from the SAS runs because there are no s_m_4549_newp or s_w_4549_newp columns, there are only s_m_4554_newp or s_w_4554_newp, so I tried to get as close as I could without their inclusion. The bigger problem seems to be that I forgot to exclude sex workers from the HIVpy Short term partners (15-49, female) data, so I'll be sure to add that as a constraint in my next round of plots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
HIVpy
In progress
Development

No branches or pull requests

4 participants