Description Usage Arguments Details Value Examples
Calculates performance metrics for regression and classification models..
1 2 | Performance(..., samples = NULL, regression = TRUE, threshold = NULL,
rnd = 3)
|
... |
objects of |
samples |
|
regression |
logical. If |
threshold |
When |
rnd |
integer indicating the number of decimal places to be used. |
When regression = FALSE
, the threshold is calculated with the Youoden's algorithm, using the pROC::coords
function.
vector
or matrix
with performance metrics.
1 2 3 4 5 6 7 8 9 10 | data(sp)
mod1 <- inla(aan ~ f(id, model = 'bym', graph = sp.adj),
family = 'poisson', data = spn, E = eaan,
control.predictor=list(link = 1, compute = TRUE))
mod2 <- inla(aan ~ shvn + f(id, model = 'bym', graph = sp.adj),
family = 'poisson', data = spn, E = eaan,
control.predictor=list(link = 1, compute = TRUE))
RMSE(mod1, mod2, observed = spn$aan / spn$eaan)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.