predictClasses,SurvivalExperiment,ClinicalModel-method {PDATK} | R Documentation |
SurvivalModel
Using
a ClinicalModel
Object.Predict Survival Prognosis Classes and Risk Scores for A SurvivalModel
Using
a ClinicalModel
Object.
## 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.
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))