powered by
Note that if \(t_i\) is provided, the empirical risk is estimated with \(a=v_L\).
classify_with_scores_cvEM(object, ti = NULL, vL = 0.5, vU = 0.5)
A cvEM object with the following components:
A list of the predictions for each fold
The empirical risk if \(t_i\) is provided
An object of class cvEM
Numeric vector of \(t_i\)'s, the true values of the binary variable for each individual. If NULL, the risk is not computed. Defaults to NULL.
NULL
The lower threshold for classification. Defaults to 0.5.
The upper threshold for classification. Defaults to 0.5.
data(periodontal) modelCV <- cvEM(periodontal$ni, periodontal$si) modelCV2 <- classify_with_scores_cvEM(modelCV, vL = 0.4)
Run the code above in your browser using DataLab