run.cross.validation {RnBeads} | R Documentation

## run.cross.validation

### Description

This function performs 10-fold cross validation to estimate the performance of a newly trained predictor. If `parallel.isEnabled()`, the function perfoms cross validation in parallel. The function adds a table to the specified `report` containing the result of the 10-fold cross validation.

### Usage

    run.cross.validation(rnbSet, report, alpha = 0.8)

### Arguments

`rnbSet` | a `RnBSet` object containing the methylation info and ages on which the new predictor should be trained
`report` | report to which the table should be added
`alpha` | alpha parameter used in the elastic net regression

### Value

modified report object

### Author(s)

Michael Scherer

[Package RnBeads version 2.2.0 Index]