export_risk_stratification_data | R Documentation |
Extract and export sample risk group stratification and associated tests for data in a familiarCollection.
export_risk_stratification_data(
object,
dir_path = NULL,
export_strata = TRUE,
time_range = NULL,
export_collection = FALSE,
...
)
## S4 method for signature 'familiarCollection'
export_risk_stratification_data(
object,
dir_path = NULL,
export_strata = TRUE,
time_range = NULL,
export_collection = FALSE,
...
)
## S4 method for signature 'ANY'
export_risk_stratification_data(
object,
dir_path = NULL,
export_strata = TRUE,
time_range = NULL,
export_collection = FALSE,
...
)
object |
A |
dir_path |
Path to folder where extracted data should be saved. |
export_strata |
Flag that determines whether the raw data or strata are exported. |
time_range |
Time range for which strata should be created. If |
export_collection |
(optional) Exports the collection if TRUE. |
... |
Arguments passed on to
|
Data is usually collected from a familiarCollection
object.
However, you can also provide one or more familiarData
objects, that will
be internally converted to a familiarCollection
object. It is also
possible to provide a familiarEnsemble
or one or more familiarModel
objects together with the data from which data is computed prior to export.
Paths to the previous files can also be provided.
All parameters aside from object
and dir_path
are only used if object
is not a familiarCollection
object, or a path to one.
Three tables are exported in a list:
data
: Contains the assigned risk group for a given sample, along with
its reported survival time and censoring status.
hr_ratio
: Contains the hazard ratio between different risk groups.
logrank
: Contains the results from the logrank test between different
risk groups.
A list of data.tables (if dir_path
is not provided), or nothing, as
all data is exported to csv
files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.