Learn R Programming

HandTill2001 (version 1.0.1)

multcap: A Constructor for Objects of Class multcap

Description

multcap(…) is an alias to new("multcap", …).

Usage

multcap(response, predicted)

Arguments

response

Object of class factor.

predicted

Object of class matrix.

Value

An object of class multcap.

Details

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

See Also

class?HandTill2001::multcap

Examples

Run this code
# NOT RUN {
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)])
)
# }

Run the code above in your browser using DataLab