Description Usage Arguments Value
Instead of using a predetermined type of survival-regression model for the submodels in
cr_survreg, you can use any survival-regression model with a valid 'predict' method (one that
takes type='survival'
and times
; see ?predict.flexsurvreg
).
1 2 3 |
list_of_models |
A list, whose names correspond to each possible type of event. These
should correspond to the values in the |
data |
A data.frame |
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 names of
|
time_lb_col_name |
Optional. A character indicating the column-name of the time 'lower-bound'. |
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'. |
An object of type cr_survreg
, with plot and summary methods.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.