Learn R Programming

MetabolicSurv (version 1.1.1)

ms-class: The ms Class.

Description

Class of object returned by function MSpecificCoxPh.

Usage

# S4 method for ms
show(object)

# S4 method for ms summary(object)

# S4 method for ms,ANY plot(x, y, ...)

Arguments

object

A ms class object

x

A ms class object

y

missing

...

The usual extra arguments to generic functions <U+2014> see plot, plot.default

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

Details

plot signature(x = "ms"): Plots for ms class analysis results signature(x = "ms"): Plots for ms class analysis results.

Any parameters of plot.default may be passed on to this particular plot method.

show(ms-object)

See Also

MSpecificCoxPh

Examples

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

Run the code above in your browser using DataLab