ClinicalModel {PDATK} | R Documentation

## Constructor for the ClinicalModel Class

### Description

Constructor for the ClinicalModel Class

### Usage

    ClinicalModel(trainData, formula, minDaysSurvived = 365, ..., randomSeed)

### Arguments

`trainData` | A `SurvivalExperiment` or `CohortList` object to construct a clinical model using
`formula` | A `formula` object or a `character` vector coercible to one. All columns specified in the formula must be in the colData slot of the all `SurvivalExperiment`s in trainData.
`minDaysSurvived` | An `integer` specifying the minimum number of days required to be 'good' prognosis. Default is 365.
`...` | Force all subsequent parameters to be named. Not used.
`randomSeed` | An `integer` randomSeed that was used to train the model. Users should specify this when initializing a model to ensure reproducibilty.

### Value

A `ClinicalModel` object.

### Examples

    data(sampleICGCmicro)
    set.seed(1987)
    clinicalModel <- ClinicalModel(sampleICGCmicro,
      formula='prognosis ~ sex + age + T + N + M + grade', randomSeed=1987)

[Package PDATK version 1.0.2 Index]