cr_survreg: Easy interface for parametric competing-risks...

Description Usage Arguments Value

Description

Easy interface for parametric competing-risks survival-regression

Usage

1
2
3
4
cr_survreg(time_col_name, event_col_name, data, list_of_list_of_args,
  time_lb_col_name = NULL, time_dependent_config = list(time_start_col_name
  = NULL, id_col_name = NULL, time_dependent_col_names = NULL),
  method = "flexsurvreg")

Arguments

time_col_name

A character indicating the column-name of the 'time' column.

event_col_name

A character indicating the column-name for events. The values in this column (either factor or character), should match the names of the list_of_list_of_args, except for the value indicating censoring.

data

A dataframe.

list_of_list_of_args

A list, whose names correspond to each possible type of event. These should correspond to the values in the event_col_name column. The elements of this list are themselves lists- arguments to be passed to the survival-regression modelling function (as specified by method- currently only flexsurvreg is supported).

time_lb_col_name

Optional. A character indicating the column-name of the time 'lower-bound'. See the vignette for details.

time_dependent_config

If your data is in a 'counting process' format (i.e., there are multiple rows per 'person', with a 'start' column specifying right-truncation), you should supply this. A list with three entries: 'time_start_col_name', 'id_col_name', and 'time_dependent_col_names'.

method

A character string naming the function to be called for survival-regression modelling. Currently only supports flexsurvreg.

Value

An object of type cr_survreg, with plot and summary methods.


jwdink/tidysurv documentation built on May 20, 2019, 6:24 a.m.