as.data.table.performance {BuyseTest}R Documentation

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 class 'performance'
as.data.table(
  x,
  keep.rownames = FALSE,
  type = "performance",
  format = NULL,
  ...
)

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.

Value

A data.table object


[Package BuyseTest version 3.0.4 Index]