rsurv: Generate data from piecewise constant hazard

Description Usage Arguments Value Examples

Description

Generate data from piecewise constant hazard

Usage

1
rsurv(n, cuts, alpha)

Arguments

n

number of observations. A positive integer

cuts

cuts of the piecewise constant hazard

alpha

values of the piecewise constant hazard

Value

A sequence of observations of length n generated from the distribution given by cuts and alpha

Examples

1
2
3
4
## Not run: 
map_maker(100, c(20, 40, 60), c(0.01, 0.03, 0.05, 0.08))

## End(Not run)

goepp/hazreg documentation built on June 7, 2019, 4:03 a.m.