Learn R Programming

BinaryReplicates (version 1.0.0)

classify_with_scores_cvEM: Perform classification on the scores for each fold of a cvEM object

Description

Note that if \(t_i\) is provided, the empirical risk is estimated with \(a=v_L\).

Usage

classify_with_scores_cvEM(object, ti = NULL, vL = 0.5, vU = 0.5)

Value

A cvEM object with the following components:

predictions

A list of the predictions for each fold

risk

The empirical risk if \(t_i\) is provided

Arguments

object

An object of class cvEM

ti

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.

vL

The lower threshold for classification. Defaults to 0.5.

vU

The upper threshold for classification. Defaults to 0.5.

Examples

Run this code
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