Skip to content

Commit

Permalink
update vignettes with new epiparameter constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlambert committed Sep 25, 2024
1 parent 2d634d2 commit 23e83c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions vignettes/epiparameter.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ covid_incubation <- epiparameter(
disease = "COVID-19",
pathogen = "SARS-CoV-2",
epi_dist = "incubation period",
prob_distribution = "gamma",
prob_distribution_params = c(shape = 2, scale = 1),
prob_distribution = create_prob_distribution(
prob_distribution = "gamma",
prob_distribution_params = c(shape = 2, scale = 1)
),
summary_stats = create_summary_stats(mean = 2),
citation = create_citation(
author = person(
Expand Down
6 changes: 4 additions & 2 deletions vignettes/extract_convert.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ ep <- epiparameter(
disease = "<Disease name>",
pathogen = "<Pathogen name>",
epi_dist = "<Epidemilogical Distribution name>",
prob_distribution = "gamma",
prob_distribution_params = c(shape = 2.5, scale = 1.5)
prob_distribution = create_prob_distribution(
prob_distribution = "gamma",
prob_distribution_params = c(shape = 2.5, scale = 1.5)
)
)
convert_params_to_summary_stats(ep)
```
Expand Down

0 comments on commit 23e83c7

Please sign in to comment.