modify_pred: Modify the prediction by auto-adjusting

Description Usage Arguments Value

View source: R/modify_pred.R

Description

Modify the prediction by auto-adjusting

Usage

1
2
3
4
5
6
7
8
modify_pred(
  data,
  vars = c("date", "y"),
  time.window = NULL,
  par = list(lambda = 1.5, n = NULL),
  holiday = NULL,
  weekday.sep = FALSE
)

Arguments

data

A data framem includes a column called date.

vars

A charater vector represents the names of date and the numeric vector of proportion error.

time.window

A numeric vector shows the begining date and ending date, see build_date.

par

A list of nuisance parameters. lambda=1.5, a number decribes the "distance" between the outliers and numeric variable var. n, the threshold number of times the fixed date or the fixed weekday is treated as outliers. If n = NULL, it takes the half number of years.

holiday

A data frame includes date and name columns. If users want to adjust more holidays, simply add the date and name of the holidays. The date should be in date format, and the name should be charater.

weekday.sep

A logical value indicating whether modify the value separately by weekdays

Value

A list includes:


placeboo/amplify documentation built on Oct. 6, 2020, 9:04 a.m.