Skip to content

Commit

Permalink
update epiparameter interface
Browse files Browse the repository at this point in the history
  • Loading branch information
avallecam committed Nov 1, 2024
1 parent 199b575 commit bc41992
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion analyses/estimate_severity/cfr-stratified-severity.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ dat_incidence
delay_onset_death <-
epiparameter::epiparameter_db(
disease = "ebola",
epi_dist = "onset to death",
epi_name = "onset to death",
single_epiparameter = TRUE
)
Expand Down
4 changes: 2 additions & 2 deletions analyses/forecast_cases/projections_incidence_epitrix.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ incidence2_fit <-
# Extract parameter by disease, distribution, author
epidist_ebola_si <-
epiparameter::epidist_db(
epiparameter::epiparameter_db(
disease = "Ebola",
epi_dist = "serial_interval",
epi_name = "serial_interval",
single_epiparameter = TRUE
)
Expand Down
20 changes: 10 additions & 10 deletions analyses/reconstruct_transmission/estimate_infections.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ incidence_data
# Define parameters
# Extract infection-to-death distribution (from Aloon et al)
incubation_period_in <-
epiparameter::epidist_db(
epiparameter::epiparameter_db(
disease = "covid",
epi_dist = "incubation",
epi_name = "incubation",
single_epiparameter = TRUE
)
Expand All @@ -97,9 +97,9 @@ incubation_period <- EpiNow2::LogNormal(
## Set onset to death period (from Linton et al)
onset_to_death_period_in <-
epiparameter::epidist_db(
epiparameter::epiparameter_db(
disease = "covid",
epi_dist = "onset to death",
epi_name = "onset to death",
single_epiparameter = TRUE
)
Expand All @@ -126,9 +126,9 @@ infection_to_death <- incubation_period + onset_to_death_period
# Extract serial interval distribution distribution (from Yang et al)
serial_interval_in <-
epiparameter::epidist_db(
epiparameter::epiparameter_db(
disease = "covid",
epi_dist = "serial",
epi_name = "serial",
single_epiparameter = TRUE
)
Expand Down Expand Up @@ -220,9 +220,9 @@ incidence_data_ebola
# Extract infection-to-death distribution (from WHO Ebola Response Team)
incubation_period_ebola_in <-
epiparameter::epidist_db(
epiparameter::epiparameter_db(
disease = "ebola",
epi_dist = "incubation",
epi_name = "incubation",
single_epiparameter = TRUE
)
Expand All @@ -247,9 +247,9 @@ incubation_period_ebola <- EpiNow2::Gamma(
# Extract serial interval distribution distribution
# (from WHO Ebola Response Team)
serial_interval_ebola_in <-
epiparameter::epidist_db(
epiparameter::epiparameter_db(
disease = "ebola",
epi_dist = "serial",
epi_name = "serial",
single_epiparameter = TRUE
)
Expand Down

0 comments on commit bc41992

Please sign in to comment.