dotest {mbreaks} | R Documentation |
SupF, UDMax & WDMax testing procedure
Description
dotest()
compute the test statistics and report the critical values of
the 2 main supF tests below:
SupF test of 0 vs m breaks
Double Max test proposed by Perron and Bai, 1998
Usage
dotest(
y_name,
z_name = NULL,
x_name = NULL,
data,
m = 5,
eps = 1e-05,
eps1 = 0.15,
maxi = 10,
fixb = 0,
betaini = 0,
printd = 0,
prewhit = 1,
robust = 1,
hetdat = 1,
hetvar = 1,
hetq = 1,
hetomega = 1,
const = 1
)
Arguments
y_name |
matrix of dependent variable |
z_name |
matrix of regressors which coefficients are allowed to change across regimes. |
x_name |
matrix of regressors which coefficients are constant across regimes. |
data |
the data set for estimation |
m |
maximum number of breaks |
eps |
convergence criterion for iterative recursive computation |
eps1 |
trimming level |
maxi |
maximum number of iterations |
fixb |
option to use fixed initial input |
betaini |
Initial |
printd |
Print option for model estimation. |
prewhit |
option to use AR(1) for prewhitening |
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 |
hetq |
used in the construction of the confidence intervals for the break
dates. If |
hetomega |
used in the construction of the confidence intervals for the break
dates. If |
const |
indicates whether the regression model include an intercept changing across regimes. Default value is 1 |
Value
A list that contains following:
ftest: SupF test of 0 vs m (1 to maximum) breaks statistics
cv_supF: Critical values for Sup F test
cv_Dmax: Critical values for Double Max test
supF1: table summarizing the SupF test (for viewing purposes)
UDMax: table summarizing the Double Max test (including UDMax statistics and CVs)