adaptive_regression: Adaptive Regression

View source: R/alert_regression.R

adaptive_regressionR Documentation

Adaptive Regression

Description

Adaptive Regression helper function for Adaptive Multiple Regression.

Usage

adaptive_regression(df, t, y, B, g)

Arguments

df

A data frame, data frame extension (e.g. a tibble), or a lazy data frame

t

Name of the column of type Date containing the dates

y

Name of the column of type Numeric containing counts or percentages

B

Baseline parameter. The baseline length is the number of days to which each liner model is fit.

g

Guardband parameter. The guardband length is the number of days separating the baseline from the current date in consideration for alerting.

Value

A data frame.


CDCgov/Rnssp documentation built on May 12, 2024, 1:32 a.m.