rGenGamma: Simulation from the Generalized Gamma Distribution

View source: R/DataGen.R

rGenGammaR Documentation

Simulation from the Generalized Gamma Distribution

Description

Generates generalized gamma event times with shape parameters (\alpha,\beta), and rate parameter \lambda. See FitGenGamma for the parameterization. If a censoring proportion p is provided, the event times are subject to non-informative random right censoring.

Usage

rGenGamma(n, a = 1, b = 1, l = 1, p = 0)

Arguments

n

Sample size.

a

First shape parameter, \alpha.

b

Second shape parameter, \beta. For the standard gamma distribution, set \beta=1.

l

Rate.

p

Expected censoring proportion.

Value

Data.frame including the observation times and status indicators.


Temporal documentation built on Sept. 24, 2023, 1:06 a.m.