estimate_little_r: Estimate r

Description Usage Arguments Value Examples

View source: R/estimate_littler.R

Description

Estimate r

Usage

1
estimate_little_r(sample, min_time = NULL, max_time = NULL)

Arguments

sample

A datatable containing a numeric cases variable.

min_time

Numeric, minimum time to use to fit the model.

max_time

Numeric, maximum time to use to fit the model.

Value

A datatable containing an estimate of r, its standard deviation and a measure of the goodness of fit.

Examples

1
2
3
4
cases <- data.table::setDT(EpiSoon::example_obs_cases)[, 
                          cases := as.integer(cases)]

estimate_little_r(cases)

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