model_estimation | R Documentation |
Function executes main procedures described in Bai and Perron
model_estimation( y_name, z_name = NULL, x_name = NULL, data, eps1 = 0.15, m = -1, prewhit = 1, robust = 1, hetdat = 1, hetvar = 1, hetomega = 1, hetq = 1, procedure = c("doglob", "dotest", "dospflp1", "doorder", "dosequa", "dorepart"), CI = 1, method = c("BIC", "LWZ", "seq", "rep", "fix"), maxi = 10, fixb = 0, eps = 1e-05, betaini = 0, fixn = -1, printd = 0 )
data |
the data set for estimation |
m |
Maximum number of structural changes allowed. If not specify,
m will be set to |
prewhit |
set to |
robust |
set to |
hetdat |
option for the construction of the F tests. Set to 1 if want to
allow different moment matrices of the regressors across segments.
If |
hetvar |
option for the construction of the F tests.Set to |
hetomega |
used in the construction of the confidence intervals for the break
dates. If |
hetq |
used in the construction of the confidence intervals for the break
dates. If |
procedure |
Selectable procedures to execute:
|
CI |
Option to estimate dates, model parameters and their confidence intervals.
If |
method |
|
maxi |
number of maximum iterations for recursive calculations of finding
global minimizers. |
fixb |
Option to use initial values of beta. Set to 1 if initial values are entered by users. |
eps |
convergence criterion for recursive calculations |
betaini |
values of initial betas. Only used when |
fixn |
number of pre-specified breaks. |
printd |
Print option for model estimation. |
y |
name of dependent variable |
z |
name of independent variables which coefficients are allowed to change
across regimes. |
x |
name of independent variables which coefficients are constant across
regimes. |
Function executes the main procedures selected by users. There are 7 main procedures including:
doglob
A recursive procedure to obtain global minimizers of SSR,
corresponding to the break date.
dotest
Procedure to conduct SupF test of 0 versus m breaks and
Double Max test.
dosupflp1
Procedure to conduct SupF(l+1|l).
doorder
Procedure to find number of break by criteria selection
dosequa
Procedure to obtain break dates via sequential method
dorepart
Procedure to obtain break dates via repartition method
To obtain the confidence intervals for the break dates and corrected errors for
estimates of the model, set est
= 1
. If est
= 1
, specify
one of the following methods for estimation procedure:
"BIC"
Estimate and compute confidence intervals following
order selection method to pick number of breaks by BIC. For more details, see
doorder
,estim
"LWZ"
Estimate and compute confidence intervals following
order selection method to pick number of breaks by LWZ. For more details, see
doorder
,estim
"seq"
Estimate and compute confidence intervals following
sequential method estimation of the break date. For more details, see
dosequa
,estim
"rep"
Estimate and compute confidence intervals following
repartition method estimation of the break date. For more details, see
dorepart
,estim
"fix"
Estimate and compute confidence intervals following
pre-specified number of breaks, i
. For more details, see
estim
All default
values of error assumptions (robust
,
hetdat
, hetvar
, hetq
) will be set to 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.