ClinicalModel: Constructor for the ClinicalModel Class

Description Usage Arguments Value Examples

View source: R/class-ClinicalModel.R

Description

Constructor for the ClinicalModel Class

Usage

1
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 SurvivalExperiments 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

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

bhklab/PanCuRx documentation built on Dec. 30, 2021, 4:59 p.m.