MSData: Generate Artificial Metabolic Survival Data

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/MSData.R

Description

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

Usage

1
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

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.

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.

Author(s)

Olajumoke Evangelina Owokotomo, olajumoke.owokotomo@uhasselt.be

Ziv Shkedy

See Also

coxph

Examples

1
2
3
4
5
6
7
8
9
#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

MetabolicSurv documentation built on June 11, 2021, 9:06 a.m.