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