Draw posterior results from the Infection Curve (Cubic Spline)

draw_posterior_infxn_cubic_splines(
  IFRmodel_inf,
  whichrung = "rung1",
  dwnsmpl,
  by_chain = TRUE,
  by_strata = FALSE
)

Arguments

IFRmodel_inf

R6 class; The result of the IFR Model MCMC run along with the model input.

whichrung

character; Specify which rung to sample from (default is rung1)

dwnsmpl

integer; Number of posterior results to draw -- weighted by posterior prob

by_chain

logical; Whether or not credible intervals should be reported with respect to individual chains (TRUE) or not.

by_strata

logical; Whether posterior infection curves should be split by strata

Details

Given sampling iterations with posterior-log-likes greater than or equal to a specific threshold, posterior results for the linear spline are generated. Assumed that the spline was fit in "un-transformed" space