| FCVARrankTests {FCVAR} | R Documentation |
Test for Cointegrating Rank
Description
FCVARrankTests performs a sequence of likelihood ratio tests
for cointegrating rank.
Usage
FCVARrankTests(x, k, opt)
Arguments
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 |
Value
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
ragainst rankp.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_optthat stores the chosen estimation options, generated fromFCVARoptions().
See Also
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()
Examples
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)