View source: R/binaryCMAsHTML.R
binaryCMAsHTML | R Documentation |
Prints results from binaryCM()
into a nice HTML table format.
binaryCMAsHTML(
x,
y,
ref.description = NULL,
digits = 4,
seed = 20,
num.boot = 1000,
conf.level = 0.95,
show.ci = TRUE
)
x |
vector of reference classes |
y |
vector of predicted classes |
ref.description |
description of classes |
digits |
number of digits to round p-values to |
seed |
random seed for bootstrap resampling |
num.boot |
number of bootstrap confidence intervals |
conf.level |
confidence level. Defaults to 95%. |
show.ci |
if |
A character string that can be parsed as HTML code to display a nice confusion matrix summary.
Samuel Leung, Derek Chiu
Other confusion matrix functions:
binaryCM()
,
multiClassCM()
# 95% CI from 5 bootstraped samples
library(htmlTable)
set.seed(547)
n <- 20
x <- rbinom(n, size = 1, prob = 0.6)
y <- rbinom(n, size = 1, prob = 0.4)
results <- binaryCMAsHTML(x, y, "Test", num.boot = 1000)
htmlTable(results)
results.no.ci <- binaryCMAsHTML(x, y, "Test", num.boot = 1000, show.ci =
FALSE)
htmlTable(results.no.ci)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.