The permissible parameter-space of GARCH-models is bounded from below by 0. This means non-standard inference is required when one or more parameters are 0 under the null hypothesis, a frequent situation in empirical applications. The functions ttest0
and waldtest0
perform t-tests and Wald-tests when one or more parameters is 0. In the latter test, the Wald-test, the critical values are obtained by simulation, see Francq and Thieu (2018).
ttest0(x, k = NULL)
waldtest0(x, r = 0, R = NULL, level = c(0.1,0.05,0.01),
vcov.type = NULL, quantile.type = 7, n = 20000)
a matrix
with the t-tests
a list
with the test-statistic and the critical values
an object of class 'garchx'
NULL
(default) or a vector of integers with the coefficients to test. If NULL
, then all coefficients apart from the intercepts are tested
vector
with restrictions
NULL
(default) or a full-rank matrix
. If NULL
, then R
is specified such that a test of all coefficients - apart from the intercept - is equal to the restriction r
. If length(r)==1
, then it is recycled so that its dimension match that of R
vector
of significance levels whose critical values should be computed
NULL
or a character
that determines the type of coefficient-covariance to use, see vcov.garchx
integer, the algorithm used to compute the quantile, see quantile
integer
, the numer of simulations used to estimate the critical values
Genaro Sucarrat, https://www.sucarrat.net/
The ttest0
function performs a t-test of coefficient k
with 0 as null. Under this null the parameter is on the boundary of the admissible parameter space, and so the distribution is non-standard under the null. The function ttest0
returns the result(s) of these non-standard t-test(s), see Francq and Thieu (2018). If k=NULL
, the default, then a test for each coefficient apart from the intercept is undertaken.
The waldtest0
function performs a Wald-test of the restrictions in r
, when one or more of its elements are 0, see Francq and Thieu (2018).
Christian Francq and Le Quien Thieu (2018): 'QML inference for volatility models with covariates', Econometric Theory, doi:10.1017/S0266466617000512
garchx
, quantile
, vcov.garchx
, rmnorm
##simulate and estimate a garch(1,1):
set.seed(123)
y <- garchxSim(1000)
mymod <- garchx(y)
##t-tests:
ttest0(mymod)
##wald-test:
waldtest0(mymod)
Run the code above in your browser using DataLab