Estimate r(t) with confidence intervals

rt_estimation_ci(
  incidence,
  ci_lower,
  ci_higher,
  n_resample = 200,
  level = 0.95,
  shift_amt = 0,
  n = 7,
  hide_invalid = TRUE
)

Arguments

incidence

incidence timeseries, vector

ci_lower

lower confidence interval estimated from linear_filter, vector

ci_higher

upper confidence interval estimated from linear_filter, vector

n_resample

number of bootstrapping attempts for confidence interval estimation

level

confidence interval level

shift_amt

number of timesteps to shift estimation back by (integer)

n

number of timesteps to filter (longer is smoother), must be odd

hide_invalid

whether or not to return NA for the first/last n-1 times

Value

dataframe with estimated r(t)