# \donttest{
## Example 1
## Time series example, using GDP data
## data
data(gdp)
y = gdp$gdp
x = gdp[,c("lag1", "lag2")]
vec.time = gdp$yq
## the maximum number of breaks allowed
m.max = 3
## the signifance level for sequenatial testing
## 1, 2 or 3 for 10%, 5% or 1%, respectively
v.a = 2
## the significance level for the confidence intervals of estimated break dates.
## 1 or 2 for 90% and 95%, respectively.
v.b = 2
## the size of the cross-section
N = 1
## the trimming proportion for estimating the break dates
## (represents the minimum length of a regime; used to exclude
## the boundaries of the sample)
trim.e = 0.15
## quantiles
vec.tau = seq(0.20, 0.80, by = 0.150)
verbose = FALSE #do not print
## main estimation
res = rq.break(y, x, vec.tau, N, trim.e, vec.time, m.max, v.a, v.b, verbose)
# }
Run the code above in your browser using DataLab