Learn R Programming

MetabolicSurv (version 1.1.1)

cvmv-class: The cvmv Class.

Description

Class of object returned by function CVMajorityvotes.

Usage

# S4 method for cvmv
show(object)

# S4 method for cvmv summary(object)

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

Arguments

object

A cvmv class object

x

A cvmv class object

y

missing

...

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

Slots

HRTrain

A matrix of survival information for the training dataset. It has three columns representing the estimated HR, the 95% lower confidence interval and the 95% upper confidence interval.

HRTest

A matrix of survival information for the test dataset. It has three columns representing the estimated HR, the 95% lower confidence interval and the 95% upper confidence interval.

Ncv

The number of cross validation used

Mdata

The Metabolite data matrix that was used for the analysis either same as Mdata or a reduced version.

Progfact

The names of prognostic factors used

See Also

Majorityvotes, CVPcaPls, SurvPcaClass, SurvPlsClass

Examples

Run this code
# NOT RUN {
## GENERATE SOME METABOLIC SURVIVAL DATA WITH PROGNOSTIC FACTORS
Data<-MSData(nPatients=100,nMet=150,Prop=0.5)

## USING THE FUNCTION
Result = CVMajorityvotes(Survival=Data$Survival,Censor=Data$Censor,
Prognostic=Data$Prognostic, Mdata=t(Data$Mdata), Reduce=FALSE,
Select=15, Fold=3, Ncv=10)

## GET THE CLASS OF THE OBJECT
class(Result)     # A "cvmv" Class

##  METHOD THAT CAN BE USED FOR THE RESULT
show(Result)
summary(Result)
plot(Result)
# }

Run the code above in your browser using DataLab