bincap: A Constructor for Objects of Class 'bincap'

Description Usage Arguments Details Value See Also Examples

View source: R/AllConstructors.R

Description

bincap(...) is an alias to new("bincap", ...).

Usage

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

Arguments

response

Object of class factor.

predicted

Object of class numeric.

true

Object of class character.

Details

There is no casting or conversion of data. bincap(...) is just an alias to new("bincap", ...).

Value

An object of class bincap.

See Also

class?HandTill2001::bincap

Examples

1
2
3
4
5
6
7
8
9
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")
)

HandTill2001 documentation built on Nov. 2, 2020, 5:07 p.m.