Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

checkDoptions

Check list D.options.


Description

Checking the list D.options, that is an argument of cointRegD.

Usage

checkDoptions(n.lag = NULL, n.lead = NULL, kmax = c("k4", "k12"),
  info.crit = c("AIC", "BIC"))

Arguments

n.lag, n.lead

[NULL | numeric(1)]
Have to be "integerish" and > 0.

kmax

[NULL | character(1)]
One of "k4" or "k12".

info.crit

[NULL | character(1)]
One of "AIC" or "BIC".

Value

[list]. List with the checked and (if necessary) converted arguments.

If one of n.lag and n.lead is NULL, only kmax and info.crit will be not NULL.

See Also

Other check: checkObject, checkVars

Examples

checkDoptions(n.lag = 3, n.lead = 4)
checkDoptions(info.crit = "BIC")
checkDoptions()

# It's not sufficient to include only one of "n.lag" and "n.lead":
checkDoptions(n.lag = 2)

cointReg

Parameter Estimation and Inference in a Cointegrating Regression

v0.2.0
GPL-3
Authors
Philipp Aschersleben [aut, cre], Martin Wagner [aut] (Author of underlying MATLAB code.)
Initial release
2016-06-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.