generate.survival.data:
Generate survival data.
Description
Generate survival data following a Weibull model with specified parameters such as Cox coefficients and correlation among genes. Then, identify a gene signature and assess its performance in cross-validation.
Usage
generate.survival.data(gene.nb, tot.genes, sample.nb, beta.init,
correlation, shape, scale)
Arguments
gene.nb
The number of genes to select.
tot.genes
The total number of genes.
sample.nb
The total number of samples.
beta.init
Initial values for beta or Cox coefficients. The values between +/-0.5 to +/-3 are good choices.
correlation
Correlation among genes. The value should be between 0 and 1.
shape
Shape parameter of the Weibull model. Select a value between 1 and 5.
scale
Scale parameter of the Weibull model. Select a value between 1 and 5.
Value
A list of three objects, (i) Matrix of simulated gene expression data, (ii) Vector of survival time and (iii) Vector of censoring status. In the censoring status vector, 1 = event occurred, 0 = censored.
Warning
This function is not called by the user directly.