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

update loc_table to utilize top-down pull approach #23

Open
d-hergott opened this issue Dec 4, 2024 · 1 comment
Open

update loc_table to utilize top-down pull approach #23

d-hergott opened this issue Dec 4, 2024 · 1 comment

Comments

@d-hergott
Copy link
Contributor

The current loc_table in ramptools uses a branching approach that starts at the health facility and then pulls in the parents to those health facilities. This results in some subcounties, which don't have health facilities, not included in this version of loc_table. This becomes problematic when trying to link with shapefiles or calculate overall statistics for a district (population, subcounty count, etc.)

Therefore, will replace with a version created from a "top-down" approach, in which the children of each region is pulled. Austin pulled this on 08MAY2024.

@d-hergott
Copy link
Contributor Author

I merged if with the bottom_up approach (also pulled in May) to get a combined file. Script for this is in my Scratch folder in Box. loc_table_merge_May2024_version

This combines the bottom up loc_table pulled on 240508_location_hierarchy with the top-down location table pulled 240524_location_hierarchy.

Updated loc_table has the information below.

> loc_table[,.N,level]
   level     N
   <int> <int>
1:     1     1
2:     2    15
3:     3   146
4:     4  2312
5:     5  8504

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

No branches or pull requests

1 participant