validateModel,PCOSP_or_RLS_or_RGA,SurvivalExperiment-method {PDATK}R Documentation

Validate a PCOSP model with a single SurvivalExperiment object.

Description

Validate a PCOSP model with a single SurvivalExperiment object.

Usage

## S4 method for signature 'PCOSP_or_RLS_or_RGA,SurvivalExperiment'
validateModel(model, valData)

Arguments

model

A PCOSP model which has been trained using trainModel.

valData

A SurvivalExperiment to validate the model with.

Value

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

Examples

data(sampleTrainedPCOSPmodel)
data(samplePCOSPpredList)

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

# Validate model
validatedPCOSPmodel <- validateModel(sampleTrainedPCOSPmodel,
  valData=samplePCOSPpredList)


[Package PDATK version 1.0.2 Index]