find_adj_date: Find the the date which needs to be adjusted further

Description Usage Arguments Value

View source: R/find_adj_date.R

Description

Find the the date which needs to be adjusted further

Usage

1
find_adj_date(data, vars = c("date", "y"), lambda = 1.5, weekday.sep = FALSE)

Arguments

data

A data frame.

vars

The column name of the data frame, date and "distance".

lambda

A number. See find_outlier.

weekday.sep

A logical value indicating whether find outliers separately by weekdays

Value

A list contains two data frame. One is date with fixed date, and the other one is the date with fixed weekday. In the fixed date data frame, which is called fixD.dat, there are three columns and they are the month of a year, the day of the month, and number of times the date has been treated as an outlier. In the fixed weekday data frame, which is called fixWD.dat, there are four columns and they are the month of a day, the nth week of the month, the weekday of the weekday, and the number of times such day has been treated as an outlier.


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