Skip to content

Commit

Permalink
Merge pull request #13 from mrc-ide/new_vignette
Browse files Browse the repository at this point in the history
New vignette
  • Loading branch information
tinigarske authored Jun 10, 2024
2 parents fd1f747 + 5979e50 commit 7546e6b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
10 changes: 6 additions & 4 deletions R/vacc_from_immunity.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@
##' also never be picked up as this age group will have aged out of
##' the population (i.e., died) before the immunity is updated in the
##' next year.
##' @param pop `popim_population` object for which vaccination activities
##' are to be inferred.
##' @param pop `popim_population` object for which vaccination
##' activities are to be inferred.
##' @param targeting character, determines the assumption of how doses
##' are allocated. Valid options are "random", "correlated",
##' "targeted".
##' are allocated. Valid options are "random" (the default),
##' "correlated", "targeted", see [apply_vacc()] for details of
##' these options.
##' @param n_digits number of digits to which the coverage is to be
##' rounded, defaults to 10.
##' @return popim_vacc_activites object
##' @seealso [apply_vacc()]
##' @export
##' @author Tini Garske
vacc_from_immunity <- function(pop, targeting = "random", n_digits = 10) {
Expand Down
12 changes: 8 additions & 4 deletions man/vacc_from_immunity.Rd

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

3 changes: 2 additions & 1 deletion vignettes/popim.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ vignette: >
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
comment = "#>",
echo = FALSE
)
```

Expand Down

0 comments on commit 7546e6b

Please sign in to comment.