View source: R/resampleSummary.R

resampleSummary | R Documentation |

This function uses the out-of-bag predictions to calculate overall performance metrics and returns the observed and predicted data.

```
resampleSummary(obs, resampled, index = NULL, keepData = TRUE)
```

`obs` |
A vector (numeric or factor) of the outcome data |

`resampled` |
For bootstrapping, this is either a matrix (for numeric outcomes) or a data frame (for factors). For cross-validation, a vector is produced. |

`index` |
The list to index of samples in each cross-validation fold (only used for cross-validation). |

`keepData` |
A logical for returning the observed and predicted data. |

The mean and standard deviation of the values produced by
`postResample`

are calculated.

A list with:

`metrics ` |
A vector of values describing the bootstrap distribution. |

`data ` |
A data frame or |

Max Kuhn

`postResample`

```
resampleSummary(rnorm(10), matrix(rnorm(50), ncol = 5))
```

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.