ppexp is used to compute the cumulative distribution
function of the piecewise exponential distribution. The function is ported
from R to C++ via code adapted from the msm package.
Arguments
- q
scalar. The time point at which the cdf is to be computed.
- x
vector or matrix. The hazard rate(s).
- cuts
vector. Times at which the rate changes, i.e., the interval cut points. The first element of cuts should be 0, and cuts should be in increasing order. Must be the same length as
x(vector) or have the same number of columns asx(matrix)