Skip to content

Commit

Permalink
Remove empty vector creation
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikunterwegs committed Sep 15, 2023
1 parent 4668a31 commit 703b4ce
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion R/estimate_severity.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ estimate_severity <- function(total_cases,

# Calculate likelihood - use binomial for small samples and Poisson
# approximation for larger numbers
lik <- numeric()
if (total_cases < poisson_threshold) {
lik <- log(choose(round(u_t * total_cases), total_deaths)) +
(total_deaths * log(pprange)) +
Expand Down

0 comments on commit 703b4ce

Please sign in to comment.