r_gl2: Random Generation for Generalized Lindley Type 2 (GL2)...

View source: R/frailty.R

r_gl2R Documentation

Random Generation for Generalized Lindley Type 2 (GL2) Frailty Distribution

Description

Generates random variates from GL Type 2 frailty distribution (two-component Gamma mixture with common rate).

Usage

r_gl2(n, theta, mu)

Arguments

n

Number of observations to generate.

theta

Parameter theta > 0.

mu

Parameter mu in (0, 1 + theta).

Value

Numeric vector of length n.

References

Pandey, A., & Tyagi, S. (2021). Comparison of Multiplicative Frailty Models Under Weibull Baseline Distribution. Lobachevskii Journal of Mathematics, 42(13), 3184-3195.

Examples

set.seed(123)
w_gl2 <- r_gl2(100, theta = 1.5, mu = 0.8)

MultiFrailty documentation built on Aug. 8, 2026, 1:07 a.m.