rev_cusum_ucl: Calculates upper control limits for the reverse cusum control...

Description Usage Arguments Value Examples

View source: R/count_metrics.R

Description

Calculates upper control limits for the reverse cusum control chart based on a 3σ significance level.

Usage

1
rev_cusum_ucl(curr, delta_t)

Arguments

curr

vector of counts for current period (must be non-negative integer)

delta_t

number of time periods back in time.

Value

the smallest count greater than curr that would produce a statistically significant poisson.test

Examples

1
2
#For 3 weeks into the past using 7-day binned counts
rev_cusum_ucl(curr = 100L, delta_t = 3L)

Skomim/COVID_trajectory_Madison documentation built on July 19, 2020, 12:34 a.m.