s2ar | R Documentation |
This function finds the optimal lag kstar for the dfgls test.
s2ar(yts, penalty, kmax, kmin)
yts |
A matrix containing the data to find kstar for. |
penalty |
a binary selection of 0 or 1. 0 uses the MAIC, a penalty on k that accounts for the bias in the sum of the autoregressive coefficients. 1 uses the more general form MIC. |
kmax |
An integer of the maximum number of lags for the vector autoregressions. An
upper bound of |
kmin |
An integer of the minimum number of lags for the vector autoregression. k equal to 0 is a reasonable point. |
kstar A vector of optimal lags for each column of yts
Schwert, G. W. 1989. Tests for unit roots: A Monte Carlo investigation. Journal of Business and Economic Statistics 2: 147-159.
Serana Ng and P. Perron. 2000. Lag length selection and the construction of unit root tests with good size and power. Econometrica 69:1519-1554.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.