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 authored and Bisaloo committed Feb 8, 2024
1 parent 82492c0 commit ee73e96
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 @@ -395,9 +395,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 ee73e96

Please sign in to comment.