makeCvGroup: Make Cross-Validation Groups

Description Usage Arguments Value

View source: R/makeCvGroup.R

Description

Creates a vector of cross-validation groups to be used for leave-one-out cross-validation in later models.

Usage

1
makeCvGroup(data, imputationParameters)

Arguments

data

A data.table object containing the data.

imputationParameters

A list of the parameters for the imputation algorithms. See defaultImputationParameters() for a starting point.

Value

A numeric vector taking values in 1:groupCount, or NA if the corresponding observation is missing. All groups are represented within each individual timeseries (defined by byKey) when possible.


SWS-Methodology/faoswsImputation documentation built on April 7, 2018, 10:12 p.m.