Skip to contents

as.data.frame() methods that return the most useful rectangular view of each result object, for downstream plotting or reporting:

Usage

# S3 method for class 'survmat'
as.data.frame(x, ..., format = c("wide", "long"))

# S3 method for class 'survalis_fit'
as.data.frame(x, ...)

# S3 method for class 'survalis_eval'
as.data.frame(x, ...)

# S3 method for class 'survalis_tune'
as.data.frame(x, ...)

# S3 method for class 'survalis_compare'
as.data.frame(x, ...)

# S3 method for class 'survalis_estimate'
as.data.frame(x, ...)

Arguments

x

A verb result object.

...

Ignored.

format

For survmat only: "wide" (default) or "long".

Value

A data frame.

Details

  • survalis_fit – a one-row model summary (model, engine, formula, n, events).

  • survmat (from predict()) – by default the wide prediction matrix with one "t=<time>" column per evaluation time; format = "long" returns one row per observation and time (id, time, value).

  • survalis_eval – the per-split metric values (id, metric, value).

  • survalis_tune – the scored hyperparameter grid.

  • survalis_compare – the model-by-metric leaderboard (model, metric, mean, se).

  • survalis_estimate – a one-row summary (estimand, tau, estimate, conf_low, conf_high, model).