gen_features: Estimate a battery of statistical tests for unit roots and...

Description Usage Arguments Details Value Author(s) Examples

View source: R/gen_features.R

Description

Returns a data frame of unit root tests and time series features

Usage

1
gen_features(bank, cval = 0.05, run_par = TRUE)

Arguments

bank

A list of time series objects constructed by gen_bank function

cval

A critical value as a p-value

run_par

Boolean indicating whether to compute in parallel.

Details

Returns a set of commonly used time series statistical tests and time series features.

Value

Returns a list object of time series objects with their attributes.

A data frame

Author(s)

Gary Cornwall and Jeffrey Chen

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#Create simulated time series using Enders 1
new_series <- gen_bank(iter = 300,
                       dgp_params = list(dgp = "dgp_enders1",
                                         periods = 100,
                                         sd = 1,
                                         alpha0 = 1,
                                         alpha2 =  .005,
                                         gamma = 1))
#Generate features
feat <- gen_features(bank = new_series)

DataScienceForPublicPolicy/hypML documentation built on Dec. 17, 2021, 4:06 p.m.