MSData function

Generate Artificial Metabolic Survival Data

Generate Artificial Metabolic Survival Data

The Function generates metabolic profile and survival dataset of any number of patients and also their survival information.

MSData(nPatients = 100, nMet = 150, Prop = 0.5)

Arguments

  • nPatients: The number of patients
  • nMet: The number of metabolites
  • Prop: The proportion of patients having low risk

Returns

An object of class list is returned with the following items . - Censor: The censoring/event indicator

  • Survival: The Survival time

  • Met.names: The vector of metabolites name

  • Mdata: The metabolic profile matrix

  • Prognostic: A data frame with prognostic factors.

Details

The function generates the metabolic profile where small set of metabolites (30) are informative and rest of them are set as noisy metabolites. Also, the survival time and Censoring information are generated based on first right singular vectors of svd of the metabolic profile matrix. It also generates other prognostic factors such as Age, Stage and Gender which are slightly correlated with survival time.

Examples

#GENERATE SOME METABOLIC SURVIVAL DATA WITH PROGNOSTIC FACTORS Data<-MSData(nPatients=100,nMet=150,Prop=0.5) SurvTime<-Data$Survival Censor<-Data$Censor ProgFact<-Data$Prognostic MetData<-Data$Mdata Metnames<-Data$Met.names

See Also

coxph

Author(s)

Olajumoke Evangelina Owokotomo, olajumoke.owokotomo@uhasselt.be

Ziv Shkedy