cv.polygrams: Performs k-fold cross-validation on the input formula.

Description Usage Arguments Value

View source: R/cv.R

Description

Performs k-fold cross-validation on the input formula.

Usage

1
2
cv.polygrams(formula, nfolds = 10, candidates = NULL, support = NULL,
  data = NULL, m = NULL, p = NULL, ...)

Arguments

formula

The formula to work on, same semantics as for polygram. Raw data can also be supplied.

nfolds

Support of the data. Defaults to [0,1].

candidates

a list of candidate polygrams. Each element of the list must contain a vector (or integer) of splits, a vector m of Bernstein degrees, and a vector p of derivative orders. If an integer N is supplied, it takes the candidate list to be s = 0:N and m = 3, p = 2.

data

an optional vector of data to be used in the formula.

m

optional list of ms, only relevant if candidates includes only splits.

p

optional list of ps, only relevant if candidates includes only splits.

...

additional arguments passed to polygram.

Value

A cv.polygram object.


JonasMoss/polygrams documentation built on Nov. 8, 2019, 5:19 p.m.