Learn R Programming

MetabolicSurv (version 1.1.2)

MSData: Generate Artificial Metabolic Survival Data

Description

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

Usage

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

Value

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.

See Also

coxph

Examples

Run this code
# NOT RUN {
#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
# }

Run the code above in your browser using DataLab