Usage
sim_frailty_cl(N, theta = c(-1, 1, 0), beta = c(0, 0.5), A = 5, B = 15, prob = 0.5, nclus = 2, w = exp(-0.5))
Arguments
N
Size of the sample to be generated.
theta
Three parameters associated with the cure linear predictor.
beta
Two parameters associated with the hazard function.
A
A positive number representing a fixed right censoring.
B
A positive number which multiplies an uniform random variable,
defining another right censoring case.
prob
Probability that individual presents treatment T1 (baseline is
T0).
nclus
Number of clusters to generate with balanced sizes.
w
Shape and rate parameters value for the Gamma distribution with mean
1.