DistHR: Null Distribution of the Estimated HR

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/DistHR.R

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
DistHR(
  Survival,
  Censor,
  Mdata,
  Prognostic = NULL,
  Quantile = 0.5,
  Reduce = FALSE,
  Select = 15,
  nperm = 100,
  case = 2,
  Validation = c("PLSbased", "PCAbased", "L1based", "MVbased")
)

Arguments

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:

  1. Permute survival only.

  2. Permute survival and rows of data frame of the prognostic factors.

  3. Permute survival, rows of data frame of the prognostic factors, columns of metabolite matrix independently.

  4. 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").

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.

Value

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

Author(s)

Olajumoke Evangelina Owokotomo, olajumoke.owokotomo@uhasselt.be

Ziv Shkedy

See Also

coxph, EstimateHR, SurvPcaClass, SurvPlsClass, Majorityvotes, Lasoelacox, EstimateHR, Lasoelacox

Examples

1
2
3
4
5
6
7
## FIRSTLY SIMULATING A METABOLIC SURVIVAL DATA
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"))

MetabolicSurv documentation built on June 11, 2021, 9:06 a.m.