rt_estimation_ci: Estimate r(t) with confidence intervals

Description Usage Arguments Value

View source: R/rt.R

Description

Estimate r(t) with confidence intervals

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)


matthewcso/rtFilterEstim documentation built on Dec. 21, 2021, 2:55 p.m.