EpiNow2 Stan Functions
rt.stan File Reference

Functions in this File

vector hold_forward (vector x, int t)
 Extend a vector to length t by repeating its last value.
 
vector gp_log_path (vector noise, int t, int stationary)
 Uncentred Gaussian process contribution to log Rt.
 
vector bp_log_levels (vector bp_effects)
 Uncentred log Rt level of each breakpoint segment.
 
real centred_log_intercept (real R0, vector gp, vector bp, array[] int bps, int stationary, int n_centre)
 Log Rt intercept that centres the paths over the centring window.
 
vector update_Rt (int t, real R0, vector noise, array[] int bps, vector bp_effects, int stationary, int n_centre)
 Update a vector of effective reproduction numbers (Rt) based on an intercept, breakpoints (i.e. a random walk), and a Gaussian process.
 
void rt_lp (array[] real initial_infections_scale, vector bp_effects, array[] real bp_sd, int bp_n, array[] int cases, real initial_infections_guess)
 
real R_to_r (real R, vector gt_rev_pmf, data real abs_tol)