View source: R/as.data.table.R
as.data.table.scalib | R Documentation |
data.table
Convert scalib
object into a flat data.table containing
input and output data.
## S3 method for class 'scalib' as.data.table(x, ...)
x |
An object of class |
... |
currently not used |
a data.table object
library(data.table) sc <- scalib(pred_risk = pbc_scalib$predrisk, pred_horizon = 2500, event_time = pbc_scalib$test$time, event_status = pbc_scalib$test$status) print(sc) as.data.table(sc) sc_gnd <- scalib_gnd(sc) as.data.table(sc_gnd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.