Description Usage Arguments Value Examples
sim_frailty_data
returns a dataset generated by the cure rate frailty
model.
1 2 |
N |
Size of the sample to be generated. |
theta |
Three parameters associated with the cure linear predictor. |
lambda |
Rate parameter for the exponential distributed latent variables. |
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). |
A generated dataset with columns: Z
, the actual event time;
L
, the leftmost limit of the censored interval; R
, the
rightmost limit of the censored interval; delta
, the failure
indicator; xi1
, the treatment covariate assuming 1 with probability
prob
and 0 otherwise; xi2
, second variable generated by a
standard normal distribution.
1 | sim_bch(20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.