Description Usage Arguments Value See Also Examples
Given a set of cuts and hazard values, generates a survival data sample from a piecewise-constant hazard (PCH) model.
1 |
n |
the sample size. |
cuts |
the sequence of cuts. Default to NULL which corresponds to the exponential model. |
alpha |
the value of the hazard function between each cut. Should be of length equal to length(cuts)+1. |
A time vector of size n
drawn from a PCH model with hazard equal to alpha
between cuts
.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.