postResampleSpectro | R Documentation |

Given two numeric vectors of data, the root mean squared error, the R-squared, the bias, the RPD, the RPIQ, the CCC and the standard error are calculated. For two factors, the overall agreement rate and Kappa are determined.

```
postResampleSpectro(pred, obs)
spectroSummary(data, lev = NULL, model = NULL)
```

`data` |
a data frame or matrix with columns obs and pred for the observed and predicted outcomes |

`lev` |
a character vector of factors levels for the response. In regression cases, this would be NULL. |

`model` |
a character string for the model name |

`pred` |
A vector of numeric data |

`obs` |
A vector of numeric data |

This function extends `postResample`

in the `caret`

package.

Pierre Roudier, adapted from code from Max Kuhn

```
predicted <- matrix(rnorm(50), ncol = 5)
observed <- rnorm(10)
apply(predicted, 2, postResampleSpectro, obs = observed)
```

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.