Learn R Programming

PANICr (version 0.0.0.2)

adf: ADF test for PANIC (2010)

Description

This function performs the ADF tests on the idiosyncratic and common components for PANIC (2010).

Usage

adf(y,k,p)

Arguments

y
NxT matrix of data.
k
An integer specifying the maximum lag order for individual ADF regressions. Bai and Ng (2004) suggest 4*(Time)^(.25) rounded to the nearest whole number as the maximum number of lags.
p
A binary selection for 0 or 1. p is the order of the determinisitic function in the regression. 0 is for constant only and 1 is to include a trend.

Value

  • tstat A vector of t statistics for each column of the input matrix