Skip to content

Commit

Permalink
modify mean of R(t) RW step size
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitejohnson committed Oct 30, 2024
1 parent 06e79f8 commit f192eee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions R/get_stan_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ get_stan_data <- function(input_count_data,
sd_log_sigma_ww_site_prior_sd =
params$sd_log_sigma_ww_site_prior_sd,
eta_sd_sd = params$eta_sd_sd,
eta_sd_mean = params$eta_sd_mean,
sigma_i_first_obs_prior_mode = params$sigma_i_first_obs_prior_mode,
sigma_i_first_obs_prior_sd = params$sigma_i_first_obs_prior_sd,
p_hosp_prior_mean = params$p_hosp_mean,
Expand Down
8 changes: 5 additions & 3 deletions inst/extdata/example_params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ offset_ref_initial_exp_growth_rate_prior_sd = 0.025

autoreg_p_hosp_a = 1 # shape1 parameter of autoreg term on IHR(t) trend
autoreg_p_hosp_b = 100 # shape2 parameter of autoreg term on IHR(t) trend
eta_sd_sd = 0.01
infection_feedback_prior_logmean = 0 # log(mode) + q^2 mode = 1, q = 0.3
infection_feedback_prior_logsd = 3
eta_sd_mean = 0.0278 # from posteriorof long time series fit
eta_sd_sd = 0.0097
infection_feedback_prior_logmean = 4.498 # log(~90) from posterior of fit to long
# time series
infection_feedback_prior_logsd = 0.636 # log(~1.9)

[hospital_admission_observation_process]
# Hospitalization parameters (informative priors)
Expand Down
3 changes: 2 additions & 1 deletion inst/stan/wwinference.stan
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ data {
real sd_log_sigma_ww_site_prior_mode;
real<lower=0> sd_log_sigma_ww_site_prior_sd;
real<lower=0> eta_sd_sd;
real<lower=0> eta_sd_mean;
real p_hosp_prior_mean;
real<lower=0> p_hosp_sd_logit;
real<lower=0> p_hosp_w_sd_sd;
Expand Down Expand Up @@ -325,7 +326,7 @@ model {
offset_ref_logit_i_first_obs_prior_sd);
offset_ref_initial_exp_growth_rate ~ normal(offset_ref_initial_exp_growth_rate_prior_mean,
offset_ref_initial_exp_growth_rate_prior_sd);
eta_sd ~ normal(0, eta_sd_sd);
eta_sd ~ normal(eta_sd_mean, eta_sd_sd);
autoreg_rt_subpop ~ beta(autoreg_rt_subpop_a, autoreg_rt_subpop_b);

autoreg_rt ~ beta(autoreg_rt_a, autoreg_rt_b);
Expand Down

0 comments on commit f192eee

Please sign in to comment.