estimate_r_in_window: Estimate r in a set time window

Description Usage Arguments Value

View source: R/estimate_littler.R

Description

Estimate r in a set time window

Usage

1
2
3
4
5
6
estimate_r_in_window(
  onsets = NULL,
  min_time = NULL,
  max_time = NULL,
  bootstrap_samples = 1000
)

Arguments

onsets

A list of samples datasets nested within the dataset sampled from.

min_time

Numeric, the minimum time to fit the model to.

max_time

Numeric, the maximum time to fit the model to.

bootstrap_samples

Numeric, defaults to 1000. The number of samples to take when bootstrapping little r to account for model uncertainty.

Value

A list of 3 dataframes containing estimates for little r, doubling time and model goodness of fit.


epiforecasts/EpiNow documentation built on Oct. 26, 2020, 2:38 p.m.