ppwexp {eventPred} | R Documentation |
Obtains the distribution function value for piecewise exponential regression.
ppwexp(t, theta, J, tcut, q = 0, x = 0, lower.tail = TRUE, log.p = FALSE)
t |
The vector of time points. |
theta |
The parameter vector consisting of gamma for log piecewise hazards and beta for regression coefficients. |
J |
The number of time intervals. |
tcut |
A vector that specifies the time intervals for the piecewise exponential survival distribution. Must start with 0, e.g., c(0, 60) breaks the time axis into 2 event intervals: [0, 60) and [60, Inf). By default, it is set to 0. |
q |
The number of elements in the vector of covariates. |
x |
The vector of covariates (excluding the intercept). |
lower.tail |
logical; if TRUE (default), probabilities are the distribution function, otherwise, the survival function. |
log.p |
logical; if TRUE, probabilities p are given as log(p). |
The probabilities p = P(T <= t | X = x).