Description Usage Arguments Value Examples
Compare Two SurivalModel
Objects, Returing A ModelComparison
Object
With Statistics Comparing the Performance of Each Model.
1 2 | ## S4 method for signature 'ModelComparison,SurvivalModel'
compareModels(model1, model2, model2Name)
|
model1 |
An object inherting from the |
model2 |
Another object inherting from the |
model2Name |
A |
A ModelComparison
object with statistics comparing the two models.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | data(sampleValPCOSPmodel)
data(sampleClinicalModel)
data(sampleCohortList)
# Set parallelization settings
BiocParallel::register(BiocParallel::SerialParam())
# Train the models
trainedClinicalModel <- trainModel(sampleClinicalModel)
# Predict risk/risk-class
clinicalPredCohortL <- predictClasses(sampleCohortList[c('PCSI', 'TCGA')],
model=trainedClinicalModel)
# Validate the models
validatedClinicalModel <- validateModel(trainedClinicalModel,
valData=clinicalPredCohortL)
# Compare the models
modelComp <- compareModels(sampleValPCOSPmodel, validatedClinicalModel)
head(modelComp)
# Compare model comparison to another model
modelCompComp <- compareModels(modelComp, sampleValPCOSPmodel)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.