View source: R/alert_regression.R
adaptive_regression | R Documentation |
Adaptive Regression helper function for Adaptive Multiple Regression.
adaptive_regression(df, t, y, B, g)
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. |
A data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.