Learn R Programming

BuyseTest (version 3.0.5)

as.data.table.performance: Convert Performance Objet to data.table

Description

Extract the AUC/brier score values or the prediction into a data.table format.

Usage

# S3 method for performance
as.data.table(
  x,
  keep.rownames = FALSE,
  type = "performance",
  format = NULL,
  ...
)

Value

A data.table object

Arguments

x

object of class "performance".

keep.rownames

Not used. For compatibility with the generic method.

type

[character] either "metric" to extract AUC/brier score or "prediction" to extract predictions.

format

[character] should the result be outcome in the long format ("long") or in the wide format ("wide"). Note relevant when using type="metric".

...

Not used. For compatibility with the generic method.