rWeibull: Simulation from the Weibull Distribution

View source: R/DataGen.R

rWeibullR Documentation

Simulation from the Weibull Distribution

Description

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

Usage

rWeibull(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 time and status.


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