ms: The ms class

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

View source: R/MetabolicSurvClass.R

Description

The ms class

Constructor for the ms class

Usage

1
2
3
ms(Result, HRRG, Group, Metnames)

ms(Result, HRRG, Group, Metnames)

Arguments

Result

A list of dataframes of each output object of coxph for the metabolites.

HRRG

A dataframe with estimated metabolite-specific HR for low risk group and 95 percent CI.

Group

A matrix of the classification group a subject belongs to for each of the metabolite analysis. The metabolites are on the rows and the subjects are the columns

Metnames

The names of the metabolites for the analysis

Value

object of class ms

Slots

Result

A list of dataframes of each output object of coxph for the metabolites.

HRRG

A dataframe with estimated metabolite-specific HR for low risk group and 95 percent CI.

Group

A matrix of the classification group a subject belongs to for each of the metabolite analysis. The metabolites are on the rows and the subjects are the columns

Metnames

The names of the metabolites for the analysis

Author(s)

Olajumoke Evangelina Owokotomo, olajumoke.owokotomo@uhasselt.be

Ziv Shkedy

See Also

MSpecificCoxPh

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## GENERATE SOME METABOLIC SURVIVAL DATA WITH PROGNOSTIC FACTORS
Data<-MSData(nPatients=100,nMet=150,Prop=0.5)

## DO THE METABOLITE BY METABOLITE ANALYSIS
Eg = MSpecificCoxPh(Survival=Data$Survival, Mdata=t(Data$Mdata),
Censor=Data$Censor, Reduce = FALSE, Select = 15,
Prognostic=Data$Prognostic, Quantile = 0.5)

## GET THE CLASS OF THE OBJECT
class(Eg)     # An "ms" Class

##  METHOD THAT CAN BE USED FOR THIS CLASS
show(Eg)
summary(Eg)
plot(Eg)

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