lbsample: Generates gength bias samples from a parametric family.

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

Some famous families are used

Usage

1
lbsample(n, family, par = list(shape, rate, meanlog, sdlog), censor.vec = rexp(n))

Arguments

n

The sample size.

family

Some families.

par

Parameters of the family.

censor.vec

A numeric vector of censoring. When the generated sample is bigger than the values of the vector, the function return 1 for censor, meaning that sample is right censored.

Details

Add some details if necessary.

Value

A list containing numeric time of survivals, the censor indicator, and the onset time.

Note

Add some notes about constraints on the parameters.

Author(s)

Pierre-Jerome Bergeron and Vahid Partovi Nia

References

Thesis of Pierre-Jerome student.

See Also

lbfit.nonpar, lbfit.par.

Examples

1
2
mydata=lbsample(500,family="exponential",par=list(rate=1))
hist(mydata$time)

lbiassurv documentation built on May 2, 2019, 9:35 a.m.