View source: R/computeErrorLOOCV.R

This function computes the error of different model fits via leave-one-out cross-validation. However, typically this function will be called via computeErrorRate and not directly.

1 | ```
computeErrorLOOCV(data, model, cvGroup, imputationParameters)
``` |

`data` |
A data.table containing the data. |

`model` |
The model fit to x, should be of class ensembleModel. |

`cvGroup` |
A vector of the same length as nrow(data). Entries of the vector should be integers from 1 to the number of cross-validation groups (typically 10). This should be randomly assigned, and is usually created by ensembleImpute. |

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

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.