checkDoptions {cointReg}R Documentation

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)


[Package cointReg version 0.2.0 Index]