Description Usage Arguments Value
This function performs a modified Dickey-Fuller t test for a unit root in which the series has been modified by a generalized least squares regression.
1 | adfp(y, penalty, kmax, kmin, p)
|
y |
A matrix of data |
penalty |
An integer value of either 0 or 1. 0 uses the MAIC, a penalty on k that accounts for the bias in the sum of the autoregressive coefficient. 1 uses the more general form MIC. |
kmax |
An integer of the maximum number of lags for the vector autoregressions. An upper bound of (12*(T/100)^.25)^8 is suggested in Schwert (1989) |
kmin |
An integer of the minimum number of lags for the vector autoregression. k = 0 is a reasonable point. |
p |
An integer with value of either 0 or -1. a value of -1 will modify the series with a generalized least squares regression. |
adf A numeric vector of t tests for the dfgls of each column. Will have to find rejection levels
kstar A numeric vector of the lags for each column's vector autoregression.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.