Learn R Programming

MetabolicSurv (version 1.1.1)

cvpp-class: The cvpp Class.

Description

Class of object returned by function CVPcaPls.

Usage

# S4 method for cvpp
show(object)

# S4 method for cvpp summary(object)

# S4 method for cvpp,missing plot(x, y, ...)

Arguments

object

A cvpp class object

x

A cvpp class object

y

missing

...

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

Slots

Results

A dataframe containg the estimated Hazard ratio of the test dataset and the training dataset

Ncv

The number of cross validation performed

Method

The dimesion reduction method used

CVtrain

The training dataset indices matrix used for the cross validation

CVtest

The test dataset indices matrix used for the cross validation

Select

The number of metabolite used for the dimesion reduction method used

See Also

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 = CVPcaPls(Fold = 4, Survival = Data$Survival,
Mdata = t(Data$Mdata), Censor = Data$Censor, Reduce=TRUE,
Select=19, Prognostic= Data$Prognostic,Ncv=55,DR ="PLS")

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

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

Run the code above in your browser using DataLab