calculate,AUC-method {structToolbox} | R Documentation

## Calculate metric

### Description

Calculate metric

### Usage

    ## S4 method for signature 'AUC'
    calculate(obj, Y, Yhat)

    ## S4 method for signature 'balanced_accuracy'
    calculate(obj, Y, Yhat)

    ## S4 method for signature 'r_squared'
    calculate(obj, Y, Yhat)

### Arguments

`obj` | a metric object
`Y` | the true values/group labels
`Yhat` | the predicted values/group labels

### Value

a modified metric object

### Examples

    MET = metric()
    calculate(MET)

[Package structToolbox version 1.6.1 Index]