Description Usage Arguments Value Examples
Predict Survival Prognosis Classes and Risk Scores for A SurvivalModel
Using
a ClinicalModel
Object.
1 2 | ## S4 method for signature 'SurvivalExperiment,ClinicalModel'
predictClasses(object, model, ..., na.action = "na.exclude", type = "response")
|
object |
A |
model |
A trained |
... |
Fall through parameters to |
na.action |
The |
type |
The |
A SurvivalExperiment
with the model predictions in the colData
slot as clinical_prob_good.
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(sampleClinicalModel)
data(samplePCSIsurvExp)
# Set parallelization settings
BiocParallel::register(BiocParallel::SerialParam())
# Train Model
trainedClinicalModel <- trainModel(sampleClinicalModel)
# Make predictions
ClinicalPredSurvExp <- predictClasses(samplePCSIsurvExp,
model=trainedClinicalModel)
head(colData(ClinicalPredSurvExp))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.