Learn R Programming

MetabolicSurv (version 1.1.1)

perm-class: The perm Class.

Description

Class of object returned by function DistHR.

Usage

# S4 method for perm
show(object)

# S4 method for perm summary(object)

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

Arguments

object

A perm class object

x

A perm class object

y

missing

...

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

Slots

HRobs

Estimated HR for low risk group on the original data.

HRperm

Estimated HR for low risk group on the permuted data

nperm

Number of permutations carried out.

Validation

The validation scheme that was used.

See Also

DistHR, EstimateHR, SurvPcaClass, SurvPlsClass, Majorityvotes, Lasoelacox, EstimateHR, Lasoelacox

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
Example <- DistHR(Survival = Data$Survival,Mdata = t(Data$Mdata),
Censor = Data$Censor,Reduce=FALSE,Select=15,Prognostic=Data$Prognostic,
Quantile = 0.5, nperm=10, case=2, Validation=c("L1based"))

## GET THE CLASS OF THE OBJECT
class(Example)     # A "perm" Class

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

Run the code above in your browser using DataLab