View source: R/print.discdd.misclass.R
print.discdd.misclass | R Documentation |
Applies to an object of class "discdd.misclass"
. Prints the numerical results of discdd.misclass
.
## S3 method for class 'discdd.misclass'
print(x, dist.print=FALSE, prox.print=FALSE, digits=2, ...)
x |
object of class |
dist.print |
logical. Its default value is |
prox.print |
logical. Its default value is |
digits |
numeric. Number of significant digits for the display of numerical results. |
... |
optional arguments to |
By default, are printed the whole misallocation ratio, the confusion matrix (allocations versus origins) with the misallocation ratios per class, and the data frame whose rows are the groups, and whose columns are the origin classes and allocation classes, and a logical variable indicating misclassification.
If dist.print = TRUE
or prox.print = TRUE
, the distances or proximity indices (in percent) between groups and classes, are displayed.
Rachid Boumaza, Pierre Santagostini, Smail Yousfi, Gilles Hunault, Sabine Demotes-Mainard
discdd.misclass; print.
data("castles.dated")
stones <- castles.dated$stones
periods <- castles.dated$periods
stones$height <- cut(stones$height, breaks = c(19, 27, 40, 71), include.lowest = TRUE)
stones$width <- cut(stones$width, breaks = c(24, 45, 62, 144), include.lowest = TRUE)
stones$edging <- cut(stones$edging, breaks = c(0, 3, 4, 8), include.lowest = TRUE)
stones$boss <- cut(stones$boss, breaks = c(0, 6, 9, 20), include.lowest = TRUE )
castlefh <- folderh(periods, "castle", stones)
res <- discdd.misclass(castlefh, "period")
print(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.