find.matches: Set up a dataframe for regression

Description Usage Arguments

Description

This function, when supplied a vector, looks for matches based on correlation or coefficient determination and returns a data frame preparing for a regression model. The function also outputs "newdata" to be used in the forecast horizon if needed, and the location in the data set where the match begins.

Usage

1
2
find.matches(data, n.hist = 35, n.fore = 15, n.match = NULL,
  model = c("linear", "ves", "ces"), use.cd = TRUE)

Arguments

data

vector or times series

n.hist

number of data points used for Y in a regression model

n.fore

number of data points in the forecast horizon

n.match

number of matches requested from data set

model

linear, ves - variable elasticity, or ces - constant elasticity

use.cd

whether to use the coefficient determination or correlation


drewgriffith15/griffun documentation built on May 15, 2019, 1:56 p.m.