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