View source: R/NonparTrawlEstimation.R
test_asymnorm | R Documentation |
This function computes the infeasible test statistic appearing in the CLT for the trawl function estimation.
test_asymnorm(ahat, n, Delta, k, c4, varlevyseed = 1, trawlfct, trawlfct_par)
ahat |
The term \hat a(k Δ_n) in the CLT |
n |
The number n of observations in the sample |
Delta |
The width Delta of the observation grid |
k |
The time point in 0, 1, …, n-1; the test statistic will be computed for the time point k*Δ_n. |
c4 |
The fourth cumulant of the Levy seed of the trawl process |
varlevyseed |
The variance of the Levy seed of the trawl process, the default is 1 |
trawlfct |
The trawl function for which the asymptotic variance will be computed (Exp, supIG or LM) |
trawlfct_par |
The parameter vector of the trawl function (Exp: lambda, supIG: delta, gamma, LM: alpha, H) |
As derived in Sauri and Veraart (2022), the infeasible test statistic is given by
\frac{√{nΔ_{n}}}{√{σ_{a}^2(k Δ_n)}} ≤ft(\hat{a}(kΔ_n)-a(k Δ_n)\right),
for k \in \{0, 1, …, n-1\}.
The function returns the infeasible test statistic specified above.
test_asymnorm(ahat=0.9, n=5000, Delta=0.1, k=1, c4=1, varlevyseed=1, trawlfct="Exp", trawlfct_par=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.