rpexp {pammtools} | R Documentation |
Draw random numbers from piece-wise exponential distribution.
Description
This is a copy of the same function from rpexp
from package
msm.
Copied here to reduce dependencies.
Usage
rpexp(n = 1, rate = 1, t = 0)
Arguments
n |
number of observations. If length(n) > 1 , the length is
taken to be the number required.
|
rate |
vector of rates.
|
t |
vector of the same length as rate , giving the times at
which the rate changes. The first element of t should be 0,
and t should be in increasing order.
|
[Package
pammtools version 0.5.93
Index]