View source: R/piecewiseDistribution.R
getPCWDistr | R Documentation |
This returns event times with a distribution resulting from piece-wise constant hazards using the inversion method.
getPCWDistr(U, haz, pw, t_0)
U |
( |
haz |
( |
pw |
( |
t_0 |
( |
This returns a vector with event times.
getPCWDistr(U = runif(3), haz = c(1.1, 0.5, 0.4), pw = c(0, 7, 10), t_0 = c(0, 1, 4.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.