View source: R/KPSS.N.breaks.R
KPSS.N.breaks | R Documentation |
Procedure to compute the KPSS test with multiple known structural breaks
KPSS.N.breaks(
y,
x,
model,
break.point,
const = FALSE,
trend = FALSE,
weakly.exog = TRUE,
lags.init,
leads.init,
max.lag,
kernel,
criterion = "bic"
)
y |
A time series of interest. |
x |
A matrix of explanatory stochastic regressors. |
model |
A scalar or vector of
|
break.point |
Array of structural breaks. |
const , trend |
Whether a constant or trend should be included. |
weakly.exog |
Boolean where we specify whether the stochastic regressors are exogenous or not
|
lags.init , leads.init |
Scalars defininig the initial number of lags and leads for DOLS. |
max.lag |
scalar, with the maximum order of the parametric correction. The final order of the parametric correction is selected using the BIC information criterion. |
kernel |
Kernel for calculating long-run variance
|
criterion |
Information criterion for DOLS lags and leads selection: aic, bic, hq, or lwz. |
The code provided is based on the original code by Carrion-i-Silvestre and Sansó.
A list of
beta
: DOLS estimates of the coefficients,
tests
: SC test (coinKPSS-test),
resid
: Residuals of the model,
t.beta
: t
-statistics for beta
,
DOLS.lags
: The estimated number of lags and leads in DOLS,
break_point
: Break points.
Carrion-i-Silvestre, Josep Lluís, and Andreu Sansó. “Testing the Null of Cointegration with Structural Breaks.” Oxford Bulletin of Economics and Statistics 68, no. 5 (October 2006): 623–46. https://doi.org/10.1111/j.1468-0084.2006.00180.x.
Carrion-i-Silvestre, Josep Lluís, and Andreu Sansó. “The KPSS Test with Two Structural Breaks.” Spanish Economic Review 9, no. 2 (May 16, 2007): 105–27. https://doi.org/10.1007/s10108-006-9017-8.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.