validateModel-ClinicalModel-SurvivalExperiment-method: Validate a ClinicalModel object with a single...

Description Usage Arguments Value Examples

Description

Validate a ClinicalModel object with a single SurvivalExperiment object.

Usage

1
2
## S4 method for signature 'ClinicalModel,SurvivalExperiment'
validateModel(model, valData)

Arguments

model

A ClinicalModel object which has been trained using trainModel.

valData

A SurvivalExperiment to validate the model with.

Value

The ClinicalModel with the validation statistics in the validationStats slot and the validation data in the validationData slot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(sampleClinicalModel)
data(sampleCohortList)

# Set parallelization settings
BiocParallel::register(BiocParallel::SerialParam())

# Train Model
trainedClinicalModel <- trainModel(sampleClinicalModel)

# Make predictions
clinicalPredCohortList <- predictClasses(sampleCohortList[c('PCSI', 'TCGA')],
  model=trainedClinicalModel)

# Validate model
validatedClinicalModel <- validateModel(trainedClinicalModel,
  valData=clinicalPredCohortList)

bhklab/PDATK documentation built on Dec. 27, 2021, 7:46 a.m.