Heatmap.modSim: Heatmap of Covariate matrix

View source: R/utils.R View source: R/ModelSim.R

Heatmap.modSimR Documentation

Heatmap of Covariate matrix

Description

Heatmap of Covariate matrix

Heatmap of Covariate matrix

Usage

## S3 method for class 'modSim'
Heatmap(x, k, ind = NULL, ...)

## S3 method for class 'modSim'
Heatmap(x, k, ind = NULL, ...)

Arguments

x

output of modelSim function (must be of type modSim)

k

number of column split

ind

indices of columns to keep

...

supplementary parameters

Value

Heatmap x

Heatmap x

Examples

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)

mathildesautreuil/survMS documentation built on June 13, 2022, 4:07 p.m.