| FCVARrankTests | R Documentation |
FCVARrankTests performs a sequence of likelihood ratio tests
for cointegrating rank.
FCVARrankTests(x, k, opt)
x |
A matrix of variables to be included in the system. |
k |
The number of lags in the system. |
opt |
An S3 object of class |
An S3 object of type FCVAR_ranks containing the results
from cointegrating rank tests, containing the following (p+1) vectors
with ith element corresponding to rank = i-1,
including the following parameters:
dHatEstimates of d.
bHatEstimates of b.
LogLMaximized log-likelihood.
LRstatLR trace statistic for testing rank r against rank p.
pvThe p-value of LR trace test, or "999" if p-value is not available.
kThe number of lags in the system.
pThe number of variables in the system.
cap_TThe sample size.
optAn S3 object of class FCVAR_opt that stores the chosen estimation options,
generated from FCVARoptions().
FCVARoptions to set default estimation options.
FCVARestn is called repeatedly within this function
for each candidate cointegrating rank.
summary.FCVAR_ranks prints a summary of the output of FCVARrankTests to screen.
Other FCVAR specification functions:
FCVARbootRank(),
FCVARlagSelect(),
summary.FCVAR_lags(),
summary.FCVAR_ranks()
opt <- FCVARoptions()
opt$gridSearch <- 0 # Disable grid search in optimization.
opt$dbMin <- c(0.01, 0.01) # Set lower bound for d,b.
opt$dbMax <- c(2.00, 2.00) # Set upper bound for d,b.
opt$constrained <- 0 # Impose restriction dbMax >= d >= b >= dbMin ? 1 <- yes, 0 <- no.
x <- votingJNP2014[, c("lib", "ir_can", "un_can")]
rankTestStats <- FCVARrankTests(x, k = 2, opt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.