Skip to content

Commit

Permalink
Useq seq() for numeric sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikunterwegs committed Feb 8, 2024
1 parent eb7151d commit 3a8b492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/model_ebola.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ prob_discrete_erlang <- function(shape, rate) {
one_sub_cumulative_probs[n_bin] <- sum(total)
cumulative_prob <- 1 - one_sub_cumulative_probs[n_bin]
}
one_sub_cumulative_probs <- c(1, one_sub_cumulative_probs[1:n_bin])
one_sub_cumulative_probs <- c(1, one_sub_cumulative_probs[seq(n_bin)])

density_prob <-
utils::head(one_sub_cumulative_probs, -1) -
Expand Down

0 comments on commit 3a8b492

Please sign in to comment.