multcap: A Constructor for Objects of Class 'multcap'

Description Usage Arguments Details Value See Also Examples

View source: R/AllConstructors.R

Description

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

Usage

1
multcap(response, predicted)

Arguments

response

Object of class factor.

predicted

Object of class matrix.

Details

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

Value

An object of class multcap.

See Also

class?HandTill2001::multcap

Examples

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

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