| int_surv | R Documentation |
\int_start^stop S(t) dt, where
S(t) is a survival function, for a selection of start and stop time
points.Integral approximation of a time dependent function.
Computes an approximation of \int_start^stop S(t) dt, where
S(t) is a survival function, for a selection of start and stop time
points.
int_surv(times, surv, start = 0, stop = max(times), extend = FALSE)
times |
Numeric vector, sorted time points. |
surv |
Numeric vector, values of a survival function evaluated at time
points given by |
start |
Numeric vector, start of the integral. |
stop |
Numeric vector, end of the integral. |
extend |
(logical) If TRUE, integral is extended beyond the last observed time point |
Numeric vector, value of the integral.
Andreas Nordland
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.