View source: R/htest_HLRTest.R
HLRparamSearch | R Documentation |
This function performs the parameter grid search needed for the likelihood ratio test described in Hansen (1992).
HLRparamSearch(gx, gp, gq, b, null, HLR_opt_ls)
gx |
matrix/grid containing values for switching parameters in second regime. |
gp |
matrix/grid containing values for probability of going from regime 1 at ( |
gq |
matrix/grid containing values for probability of going from regime 2 at ( |
b |
vector of initial parameter values of restricted model. |
null |
vector with likelihood under the null hypothesis. |
HLR_opt_ls |
List with model properties and test controls defined in |
List which contains:
cs: Vector with standardized LRT statistic for each grid point.
draws: List with a (nwband+1 x N
matrix for each grid point. Each row of these matrices is a vector of simulated test statistics under the null hypothesis for a value of bandwidth .
coefficients: A matrix with coefficients for each grid point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.