Classification results for binary outcome
binary_classification_result.Rd
Constructs a binary classification result object based on the observed and predicted values, as well as other optional parameters.
Usage
binary_classification_result(
observed,
predicted,
probs,
testind = NULL,
test_design = NULL,
predictor = NULL
)
Arguments
- observed
A vector of observed or true values.
- predicted
A vector of predicted values.
- probs
A
matrix
of predicted probabilities, with one column per level.- testind
The row indices of the test observations (optional).
- test_design
An optional design for the test data.
- predictor
An optional predictor object.
Value
A binary classification result object, with the class attribute set to "binary_classification_result".
See also
Other classification_result:
classification_result()
,
multiway_classification_result()
,
regression_result()