checkTruthProb: Truth and Prediction Checker

View source: R/get_scores.R

checkTruthProbR Documentation

Truth and Prediction Checker

Description

This function checks if the vector of true values and predictions has the correct format to be used for the ROC-GLM. If something does not suit, then the function tries to convert it into the correct format.

Usage

checkTruthProb(truth_name, prob_name, pos = NULL)

Arguments

truth_name

('character(1L)') Character containing the name of the vector of 0-1-values encoded as integer or numeric.

prob_name

('character(1L)') Character containing the name of the vector of probabilities.

pos

('character(1L)') Character containing the name of the positive class.

Value

Data frame containing the truth and prediction vector.

Author(s)

Daniel S.


difuture-lmu/dsROCGLM documentation built on March 24, 2024, 1:07 p.m.