Skip to contents

Estimate the time-varying reproduction number from incidence data

Usage

fit_epifilter(N, C, w, is_sampling = TRUE, ...)

Arguments

N

number of data points

C

case counts

w

discretised serial interval

is_sampling

Boolean indicating if sampling is to be used (if TRUE) or optimisation (if FALSE). Defaults to TRUE

...

Arguments passed to rstan::sampling() (if is_sampling=TRUE) or rstan::optimizing() (if is_sampling=FALSE)

Value

a stanfit object