Learn R Programming

HandTill2001 (version 0.2-8)

bincap: a ui-constructor for Class "bincap" in Package HandTill2001

Description

bincap(...)

Usage

bincap(response, predicted, true = "1")

Arguments

response
Object of class "factor".
predicted
Object of class "numeric".
true
Object of class "character".

Value

  • An object of class "bincap"

code

new("bincap",...

Details

There is no casting or conversion of data. bincap(...)

See Also

"class?bincap"

Examples

Run this code
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")
   )

Run the code above in your browser using DataLab