# Simulated competing risk data from gamma frailty model based on pop+ design
set.seed(4321)
fam <- simfam_cmp(N.fam = 10, design = "pop+", variation = "frailty",
base.dist = "Weibull", frailty.dist = "gamma", depend=c(2, 2),
allelefreq = 0.02, base.parms = list(c(0.01, 3), c(0.01, 3)),
vbeta = list(c(-1.13, 2.35),c(-1, 2)))
# Pedigree plots for first three simulated families
plot(fam, famid = 1)
Run the code above in your browser using DataLab