View source: R/rq.est.regime.R
rq.est.regime | R Documentation |
This function estimates the coefficients for each regime, given the break dates.
rq.est.regime(y, x, v.tau, vec.date, n.size = 1)
y |
A vector of dependent variables ( |
x |
A matrix of regressors ( |
v.tau |
The quantile of interest. |
vec.date |
A vector of estimated break dates. |
n.size |
The cross-sectional sample size ( |
A list containing the estimated coefficients for each regime.
## data
data(gdp)
y = gdp$gdp
x = gdp[,c("lag1", "lag2")]
## quantile
v.tau = 0.8
## break date
vec.date = 146
# cross-sectional size
n.size = 1
## estimation
result = rq.est.regime(y, x, v.tau, vec.date, n.size)
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.