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

temporary code to create deprivation file #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

monicamcgibbon
Copy link
Contributor

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)

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.

1 participant