rGamma: Simulation from the Gamma Distribution

View source: R/DataGen.R

rGammaR Documentation

Simulation from the Gamma Distribution

Description

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

Usage

rGamma(n, a = 1, l = 1, p = 0)

Arguments

n

Sample size.

a

Shape.

l

Rate.

p

Expected censoring proportion.

Value

Data.frame including the observation times and status.


zrmacc/Temporal documentation built on Sept. 29, 2023, 11:25 p.m.