checkDoptions: Check list D.options.

Description Usage Arguments Value See Also Examples

View source: R/check-arguments.R

Description

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

Usage

1
2
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

1
2
3
4
5
6
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 documentation built on May 2, 2019, 3:45 a.m.