Closed robynstuart closed 6 years ago
@robynstuart another way to handle this would be to include it as a Timepar
, which would allow variation over both age and time (it could be entered in the databook just under the background mortality rate table). it's a bit messy either way, because people aren't used to entering metaparameters in the databook...
another option would be to introduce additional constants for defined age bands. then it should be fairly straightforward to decide which mortality rate to use for each population the user has entered.
i don't have a strong preference, and probably have a slight preference for the way you've implemented it in this PR, but it might be worth considering these options...
@cliffckerr I considered both options:
I started out doing it that way, but decided against it because HIV death rates are currently constant & therefore applied outside the time-loop, and I was concerned it'd slow things down to bring it inside the time loop. Also, I don't know it there's a great deal of evidence for time variation in HIV mortality (other than what's already captured via treatment, obviously)
I considered this too, but preferred to do things this way as it means people can also include higher mortality for groups like PWID, who may be at greater risk of opportunistic infections.
@robynstuart ok, sounds good, will review & merge as-is
@cliffckerr please review
Adds a parameter to control HIV death rates by population, as requested by WB. (see https://trello.com/c/KEM2koVP/998-age-specific-mortality-rates).