accuracy | R Documentation |

Computes average classification accuracy.

```
accuracy( pred, actual, cutoff = NULL, reference = NULL )
```

`pred` |
a numerical vector of estimated values. |

`actual` |
a numerical vector of actual values. |

`cutoff` |
cutoff value for the case that |

`reference` |
a factor of classes to be used as the true results. |

.

The computed average classification accuracy (numeric value).

Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie

`conf.mat`

, `mse`

, `mae`

```
pred = c( "no", "yes", "yes", "no", "no", "yes", "no", "no" )
actual = c( "yes", "no", "yes", "no", "no", "no", "yes", "yes" )
accuracy( pred, actual )
```

liver documentation built on April 11, 2023, 6:04 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.