Skip to content

Commit

Permalink
Creating epidist for manually supplied parameters so that `epiparamet…
Browse files Browse the repository at this point in the history
…er` functions can be used uniformly in subsequent steps
  • Loading branch information
CarmenTamayo committed Jan 8, 2024
1 parent dc71d31 commit 8799aee
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions inst/rmarkdown/templates/transmissibility/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,13 @@ si_mean <- params$si_mean
si_sd <- params$si_sd
si_dist <- params$si_dist
si_cv <- si_sd / si_mean
si_params <- epiparameter::convert_summary_stats_to_params(
distribution = params$si_dist, mean = si_mean, sd = si_sd
)
si_epidist <- epidist(
disease = params$disease_name,
epi_dist = "serial_interval",
prob_distribution = params$si_dist,
summary_stats = create_epidist_summary_stats(mean = params$si_mean,
sd = params$si_sd),
auto_calc_params = TRUE)
```

```{r}
Expand Down

0 comments on commit 8799aee

Please sign in to comment.