hist.modSim: Histogram of survival times

Description Usage Arguments Value Examples

View source: R/ModelSim.R

Description

Histogram of survival times

Usage

1
2
## S3 method for class 'modSim'
hist(x, ...)

Arguments

x

output of modelSim function (must be of type modSim)

...

supplementary parameters

Value

hist x

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(survMS)
### Survival data simulated from AH model
res_paramLN = get_param_ln(var=170000, mu=2325)
listAHSim_n500_p1000 <- modelSim(model = "AH", matDistr = "unif", matParam = c(-1,1), n = 500, 
                                 p = 100, pnonull = 100, betaDistr = 1.5, hazDistr = "log-normal",
                                 hazParams = c(res_paramLN$a*4, res_paramLN$lambda),
                                 Phi = 0, seed = 1, d = 0)
                                 
### Histogram of survival times 
hist(listAHSim_n500_p1000)

survMS documentation built on April 16, 2021, 9:07 a.m.