View source: R/survival_analysis.R
survival_preprocess | R Documentation |
Use when survival data is not in time and event format e.g., TCGA clinical data.
survival_preprocess(
event_data,
event_time_name = "days_to_death",
follow_up_time_name = "days_to_last_followup",
event_field_name = "vital_status",
event_name = "Dead",
event_time_cutoff = Inf,
event_time_lower_cutoff = 0
)
event_data |
A data.frame that contains survival times, event data and covariates. |
event_time_name |
Name of the column that contains time to event. |
follow_up_time_name |
Name of the column that contains time to end of followup for a censored data point. |
event_field_name |
Name of the column that contains event indicators. |
event_name |
Event column value that corresponds to the event of interest. |
event_time_cutoff |
Upper cutoff value for time. |
event_time_lower_cutoff |
Lower cutoff value for time. |
data.frame
with "time" and "event" columns added to input
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.