validateModel,ClinicalModel,SurvivalExperiment-method {PDATK} | R Documentation

## Validate a ClinicalModel object with a single SurvivalExperiment object.

### Description

Validate a ClinicalModel object with a single SurvivalExperiment object.

### Usage

    ## 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

    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)

[Package PDATK version 1.0.2 Index]