Skip to content

Commit

Permalink
fix rebase errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Jul 4, 2023
1 parent 01de920 commit 998cadd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/create.R
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ create_initial_conditions <- function(data) {
if (data$seeding_time > 1) {
out$initial_growth <- array(rnorm(1, data$prior_growth, 0.01))
}
out$base_cov <- rnorm(
out$base_cov <- array(rnorm(
n = 1, mean = convert_to_logmean(data$r_mean, data$r_sd),
sd = convert_to_logsd(data$r_mean, data$r_sd) * 0.1
))
Expand Down
1 change: 0 additions & 1 deletion inst/stan/data/simulation_rt.stan
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
real initial_infections[seeding_time ? n : 0, 1]; // initial logged infections
real initial_growth[seeding_time > 1 ? n : 0, 1]; //initial growth
int gt_dist[1]; // 0 = lognormal; 1 = gamma
vector[n] R[t - seeding_time]; // reproduction number
int pop; // susceptible population

Expand Down
8 changes: 6 additions & 2 deletions inst/stan/simulate_secondary.stan
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,13 @@ generated quantities {
);
// weekly reporting effect
if (week_effect > 1) {
secondary = day_of_week_effect(secondary, day_of_week, to_vector(day_of_week_simplex[i]));
secondary = day_of_week_effect(
secondary, day_of_week, to_vector(day_of_week_simplex[i])
);
}
// simulate secondary reports
sim_secondary[i] = report_rng(tail(secondary, all_dates ? t : h), rep_phi[i], obs_dist);
sim_secondary[i] = report_rng(
tail(secondary, all_dates ? t : h), rep_phi[i], obs_dist
);
}
}

0 comments on commit 998cadd

Please sign in to comment.