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

Error bars #12

Open
lubo93 opened this issue Oct 8, 2020 · 2 comments
Open

Error bars #12

lubo93 opened this issue Oct 8, 2020 · 2 comments

Comments

@lubo93
Copy link

lubo93 commented Oct 8, 2020

Hi, thanks a lot for the great work you're doing. Would it be possible to add error bars in your .csv files? The CDC included an Upper Bound Threshold in their files and it would be quite helpful if you could do the same in your analysis.

The CDC error bars are based on 95% confidence intervals (see https://www.cdc.gov/nchs/nvss/vsrr/covid19/excess_deaths.htm). Using Gaussian error statistics, one can obtain Upper Bound Threshold via Upper Bound Threshold = Average Expected Count + 1.96*Standard Deviation.

Thanks!

@lubo93
Copy link
Author

lubo93 commented Oct 10, 2020

Maybe one could just use mutate(expected_deaths = predict(expected_deaths_model,.,interval = "confidence") in the get_excess_deaths function. The default confidence interval is the 95% CI.

@sondreus
Copy link
Contributor

sondreus commented Sep 21, 2021

Hi, sorry for the late reply. This is an interesting suggestion. Would happily have a look at a pull request with this suggested change. Thanks!

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

2 participants