flag: flag

Description Usage Arguments Value

View source: R/flag.R

Description

Compare the latest in historical data with the prediction range from the earlier data

Usage

1
flag(df, level = 0.9)

Arguments

df

tibble, as multiple rows produced by to_row()

level

value between 0 and 1, confidence level used for prediction confidence interval

Value

a named list (names are variables from df, other than timestamp), each element is a list with components fit (prediction value), lwr, upr (lower and upper limits of prediction confindence interval), obs (observed value), flag (1 if obs>upr, -1 if obs<lwr, 0 otherwise).


rushkin/argus documentation built on Feb. 18, 2021, 8:13 p.m.