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

First draft of IMD variable #3

Merged
merged 4 commits into from
Oct 24, 2024
Merged

Conversation

wjchulme
Copy link
Contributor

No description provided.

@wjchulme wjchulme self-assigned this Oct 17, 2024
* integer
* uniform over 100, 200, ..., 32000
* 5% values missing
* use include.lowest=TRUE (meaning include highest when right=TRUE!) to ensure highrst possible value is included in top quintile.
* right=FALSE means closed on the left, so that zero is included. Note zeroes only occur in IMD because ranks are rounded to 100. So values from 1 to 49 become 0. (even though 1 is the lowest possible rank)
* if value is <0, set to NA (rather than lowest quintile). As we're not expected any <0 values.
* Keep missing values as `NA`. Labelling as "unknown" can occur when plotting, so that "NA as missing" is used consistently across all variables.
@wjchulme wjchulme marked this pull request as ready for review October 24, 2024 13:44
@wjchulme wjchulme merged commit d87ecff into main Oct 24, 2024
1 check passed
@wjchulme wjchulme deleted the martina_IMD_deprived_variable branch October 24, 2024 13:45
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

Successfully merging this pull request may close these issues.

2 participants