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

Fixes to rolling and time-varying methods #98

Merged
merged 6 commits into from
Nov 1, 2023
Merged

Conversation

pratikunterwegs
Copy link
Collaborator

This PR fixes #95 and #97.

  1. cfr_rolling() has been updated to follow a similar logic to cfr_time_varying(), where the binom.test function is only run on data indices where cumulative cases >= cumulative deaths, and cumulative cases > 0,
  2. cfr_rolling() has been updated to have the same return format as cfr_time_varying(),
  3. known_outcomes() has been updated to account for NaN from zero divisions (see Rename known_outcomes() to estimate_outcomes() #93 as well),
  4. estimate_severity() has been updated to deal with any two of total cases, deaths or outcomes being 0.

@pratikunterwegs pratikunterwegs merged commit 01f33e0 into main Nov 1, 2023
9 checks passed
@pratikunterwegs pratikunterwegs deleted the dev/fix-rolling branch November 1, 2023 12:23
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.

Different return values across cfr_*() functions
1 participant