View source: R/AllConstructors.R
multcap | R Documentation |
multcap
multcap(...)
is an alias to new("multcap", ...)
.
multcap(response, predicted)
response |
Object of class |
predicted |
Object of class |
There is no casting or conversion of data. multcap(...)
is just
an alias to new("multcap", ...)
.
An object of class multcap
.
class?HandTill2001::multcap
library(HandTill2001)
data(ht01.multipleclass)
str(ht01.multipleclass$observed)
message("note that ht01.multipleclass$observed is a factor; we do not have to convert it.")
multcap(
response = ht01.multipleclass$observed,
predicted = as.matrix(ht01.multipleclass[, levels(ht01.multipleclass$observed)])
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.