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

FEATURE: life table aggregation function for non-age variables #76

Open
krpaulson opened this issue Jul 16, 2021 · 0 comments
Open

FEATURE: life table aggregation function for non-age variables #76

krpaulson opened this issue Jul 16, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@krpaulson
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
We have agg_lt for aggregating life tables over age. However, a different approach is required when aggregating over other variables, like location hierarchy.

Describe the solution you'd like

  1. mx * population --> deaths
  2. ax * deaths --> death-weighted ax
  3. aggregate deaths and death-weighted ax with sum function within hierarchyUtils::agg
  4. death-weigthed ax / aggregated deaths = aggregated ax
  5. aggregated deaths / aggregated population = aggregated mx
  6. recompute any other life table parameters needed

Describe alternatives you've considered
Could also just write up a guide for this instead of writing a new hierarchyUtils::agg wrapper function.

Additional context
For IHME team members, see current FLT code here:
https://github.com/ihmeuw/ihme-modeling/blob/master/gbd_2019/mortality_code/full_life_tables/03_aggregate_lts.R

@krpaulson krpaulson added the enhancement New feature or request label Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant