Skip to content

Commit

Permalink
removed num_init_infect default value from probability_contain and up…
Browse files Browse the repository at this point in the history
…dated examples
  • Loading branch information
joshwlambert committed Dec 14, 2023
1 parent 22b041b commit ea049df
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
20 changes: 18 additions & 2 deletions R/probability_contain.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,26 @@
#' Nature, 438(7066), 355-359. \doi{10.1038/nature04153}
#'
#' @examples
#' probability_contain(R = 1.5, k = 0.5, control = 1)
#' # population-level control measures
#' probability_contain(R = 1.5, k = 0.5, num_init_infect = 1, pop_control = 0.1)
#'
#' # individual-level control measures
#' probability_contain(R = 1.5, k = 0.5, num_init_infect = 1, ind_control = 0.1)
#'
#' # both levels of control measures
#' probability_contain(
#' R = 1.5,
#' k = 0.5,
#' num_init_infect = 1,
#' ind_control = 0.1,
#' pop_control = 0.1
#' )
#'
#' # multi initial infections with population-level control measures
#' probability_contain(R = 1.5, k = 0.5, num_init_infect = 5, pop_control = 0.1)
probability_contain <- function(R,
k,
num_init_infect = 1,
num_init_infect,
ind_control = 0,
pop_control = 0,
stochastic = FALSE,
Expand Down
20 changes: 18 additions & 2 deletions man/probability_contain.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ea049df

Please sign in to comment.