Description Objects from the Class Slots Extends Methods Note Author(s) See Also Examples
S4 class for a two class response and corresponding (predicted) probabilities.
Objects can be created by calls of the form new("bincap", ...)
.
They are used to store a two class response (one of the two levels
of which is supposed to be true
), the information which of the two levels
of the two class response is thought of as 'true'/'positive'/'present' (the other one would then be thought of as 'false'/'negative'/'absence') and the predicted probabilities that response
is true
.
predicted
:Object of class "numeric"
, probabilities for response
. Of length n
true
:Object of class "character"
, indicating which of the two levels of response
is to be treated as 'true'/'positive'/'presence' (the other one would then accordingly be called 'false'/'negative'/'absence'). Of length 1.
response
:Object of class "factor"
, two class observations. Of length n.
Class "cap"
, directly.
signature(object = "bincap")
: ...
No defaults are set. Especially, you have to explicitly initialize true
, there is no trying to guess it from the levels
of response
.
Andreas Dominik Cullmann
"class?cap"
, "class?multcap"
, "?bincap"
1 | showClass("bincap")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.