View source: R/utils.R View source: R/ModelSim.R
Heatmap.modSim | R Documentation |
Heatmap of Covariate matrix
Heatmap of Covariate matrix
## S3 method for class 'modSim' Heatmap(x, k, ind = NULL, ...) ## S3 method for class 'modSim' Heatmap(x, k, ind = NULL, ...)
x |
output of modelSim function (must be of type modSim) |
k |
number of column split |
ind |
indices of columns to keep |
... |
supplementary parameters |
Heatmap x
Heatmap x
library(survMS) res_paramW = get_param_weib(med = 2.5, mu = 1.2) listCoxSimCor_n500_p1000 <- modelSim(model = "cox", matDistr = "mvnorm", matParam = c(0,0.6), n = 500, p = 1000, pnonull = 20, betaDistr = 1, hazDistr = "weibull", hazParams = c(res_paramW$a, res_paramW$lambda), seed = 1, d = 0) print(listCoxSimCor_n500_p1000) hist(listCoxSimCor_n500_p1000) # Heatmap(listCoxSimCor_n500_p1000, k = 4) library(survMS)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.