ModelComparison {PDATK} | R Documentation

## ModelComparison Constructor

### Description

ModelComparison Constructor

### Usage

    ModelComparison(model1, model2, ...)

### Arguments

`model1` | An object with a `validationStats` method which returns a `data.table`. Probably this object should inherit from `SurvivalModel`.
`model2` | An object with a `validationStats` method which returns a `data.table`. Probably this object should inherit from `SurvivalModel`.
`...` | Not used.

### Value

A `ModelComparison` object, which is a wrapper for `DataFrame` which is used for method dispatch.

### Examples

    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 <- ModelComparison(sampleValPCOSPmodel, validatedClinicalModel)
    head(modelComp)

[Package PDATK version 1.0.2 Index]