| r_ig | R Documentation |
Generates random variates from the Inverse Gaussian frailty distribution with mean E[W] = 1.
r_ig(n, eta)
n |
Number of observations to generate. |
eta |
Frailty variance parameter (eta > 0). |
Numeric vector of length n.
Hougaard, P. (1984). Life table methods for heterogeneous populations: distributions of frailties. Biometrika, 71(1), 75-83.
set.seed(123)
w_ig <- r_ig(100, eta = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.