temporary code to create deprivation file #93
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Vicky,
Before I attempt to build in some logic to the new deprivation function and amend this script again, could you please sense check that what I've done for this indicator is correct when you have a chance? I've just pulled out some bits from the original deprivation function that I think are relevant to create a deprivation file.
This is for the smoking quit attempts at 4 weeks follow-up indicator where I'm trying to create a deprivation file so we can just have 1 overall indicator, rather than 6 separate indicators.
This is a percentage indicator where the data is already aggregated by quintile at council area level, but we have the numerator and denominator to calculate for HB and Scotland level rates. At the moment the new deprivation function only takes Scotland level data where rates/CIs are already calculated.
I've added the file to the test folder as well and it looks ok in the dashboard, when I compare the original indicators that were split out by quintile in the trend tab against the indicator in the deprivation function (when I'm on Scottish quintiles. I still don't fully understand the difference between Scottish and local quintiles though so I have no idea if what I've done is sensible)