checkTruthProb | R Documentation |
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.
checkTruthProb(truth_name, prob_name, pos = NULL)
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. |
Data frame containing the truth and prediction vector.
Daniel S.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.