This function generates the null distribution of the HR by permutation approach. Several ways of permutation setting can be implemented. That is, function can be used to generate null distributions for four different validation schemes, PLS based, PCA based, Majority votes based and Lasso based.
Survival: A vector of survival time with length equals to number of subjects
Censor: A vector of censoring indicator
Mdata: A large or small metabolic profile matrix. A matrix with metabolic profiles where the number of rows should be equal to the number of metabolites and number of columns should be equal to number of patients.
Prognostic: A dataframe containing possible prognostic(s) factor and/or treatment effect to be used in the model.
Quantile: The cut off value for the classifier, default is the median cutoff
Reduce: A boolean parameter indicating if the metabolic profile matrix should be reduced, default is TRUE and larger metabolic profile matrix is reduced by supervised pca approach and first pca is extracted from the reduced matrix to be used in the classifier.
Select: Number of metabolites (default is 15) to be selected from supervised PCA. This is valid only if the argument Reduce=TRUE
nperm: Number of permutations to be used and default 100
case: There are seven different ways on how to call this argument:
Permute survival only.
Permute survival and rows of data frame of the prognostic factors.
Permute survival, rows of data frame of the prognostic factors, columns of metabolite matrix independently.
Permute metabolite matrix only.
Validation: There are four different validation schemes where the null distribution can be estimated. That is c("PLSbased","PCAbased","L1based","MVbased").
Returns
A object of class perm is returned with the following values - 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
Details
This function generates the null distribution of the HR by permutation approach either using a large metabolite matrix or a reduced version by supervised pca approach. Several ways of permutation setting can be implemented. That is, the function can be used to generate null distributions for four different validation schemes which are PLS based, PCA based, Majority votes based and Lasso based. Note this function internally calls function SurvPcaClass, SurvPlsClass, Majorityvotes, and Lasoelacox.
Examples
## FIRSTLY SIMULATING A METABOLIC SURVIVAL DATAData = MSData(nPatients =100, nMet =150, Prop =0.5)## USING THE FUNCTIONExample <- 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"))