Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

summary.cv4postpr

Confusion matrix and misclassification probabilities of models


Description

This function calculates the confusion matrix and the mean misclassification probabilities of models from an object of class "cv4postpr".

Usage

## S3 method for class 'cv4postpr'
summary(object, probs = TRUE, print = TRUE, digits =
max(3, getOption("digits")-3), ...)

Arguments

object

an object of class "cv4postpr".

probs

logical, if TRUE (default), mean posterior model probabilities are returned.

print

logical, if TRUE prints the mean models probabilities.

digits

the digits to be rounded to.

...

other arguments.

Value

If probs=FALSE a matrix with the frequencies of the simulations classified to the different models (the confusion matrix). If probs=TRUE, a list with two components:

conf.matrix

The confusion matrix.

probs

The mean model misclassification probabilities.

See Also

Examples

## see ?cv4postpr for examples

abc

Tools for Approximate Bayesian Computation (ABC)

v2.1
GPL (>= 3)
Authors
Csillery Katalin [aut], Lemaire Louisiane [aut], Francois Olivier [aut], Blum Michael [aut, cre]
Initial release
2015-05-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.