Entry point for the whole computation of the algorithm of Bai, Lumsdaine, and Stock (1998)
Main(
mat.y,
mat.x = NULL,
trend = FALSE,
intercept = TRUE,
ci = c(0.9, 0.95, 0.99),
est.mode = "OLS",
iter = 3,
aic.bic.mode = "AIC",
q.max = 2,
trim = 0.15,
pos.break = FALSE
)A list of the vector of f-statistics, the maximum f-statistic retained, the confidence interval, the critical values, the break date, the original matrix of time series tested, the matrix with breaking and not breaking covariates, the index of the break in the time series, the size of the break (mean.shift), the optimal "AIC" or "BIC", a ggplot object (g1), and the trimmed dates.
The matrix object of time series
The matrix of optional covariates
Whether we add a trend. Default = FALSE
Whether the break test is on the intercept only. Default = TRUE
A vector of confidence intervals. Default = c(0.9, 0.95, 0.99)
Estimation mode. Can be "OLS", "FGLS", or "IGLS"
Maximum number of iterations in the "IGLS" mode. Default to 3
Can be "AIC" or "BIC" depending on the criterion chosen for the lag selection
Maximum lag tested for the AIC or BIC criterion
Percentage for the trim value for the starting and ending window over which the algorithm is not tested. Default to 15%
Whether we want to select the maximum positive break only and discard the negative ones. Default to FALSE
# \donttest{
data(example_data)
list.results <- Main(mat.y = example_data, q = 2)# }
Run the code above in your browser using DataLab