-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add geographical methods #4
Comments
Aggregating indices to different levels of geography is a key part of making an index, so let's move those geographical aggregation functions into this package. {compositr} doesn't necessarily need to work with spatial data though. The aggregation functions just need lookup tables (provided by {geographr}) and population counts (provided by {geographr}) but I can't think of any need for boundaries and other spatial data. |
Should |
Yes please. They're also separately implemented and used in IMD, so can be removed from there too once added to compositr. |
I've been reviewing/refactoring the existing methods, and am confused about what you currently have for
|
The main purpose of the function is to aggregate data from a smaller unit (e.g. LSOA) into higher-level units (e.g. LA). The original goal of the function was to calculate the proportion of X% most deprived/vulnerable/etc. areas within a higher-level geography - see https://github.com/humaniverse/IMD/blob/master/R/proportion.R I've completely forgotten why I generalised this function beyond its original purpose - and I clearly forgot to change the function description to reflect that it was generalised. |
Which version do you want adding in compositr? Generalised? Would a version which allows the user to set the percentage threshold be helpful (e.g., 10% most deprived, 20% most deprived, etc.)? |
Let's use the generalised version.
This would be brilliant, thanks. |
The text was updated successfully, but these errors were encountered: