Given one or more right-continuous step functions of time, given by vector
time and vector of matrix
stepf, this function evaluates the
step function(s) at a vector of new time points given by
Typical application is when the step function is given by a non- or
semi-parametric estimated of cumulative hazard or survival function, and the
value of this function is required at a set of time points.
A vector of time points at which the step function changes value
A vector (of the same length as
A vector of time points at which the step function(s) is/are to be evaluated
A value that is substituted for elements of
Determines whether the output is a data frame with the
new time points and the values of the step function(s) (if
time should be ordered, and not contain duplicated or
+/- Inf, and should be of the same length as
stepf. There are no
restrictions on ordering or duplicates of
newtime. For elements of
newtime that are smaller than the minimum of
time, the value
subst is substituted.
Either a vector/matrix containing the step function(s) evaluated at
the new time points (if
to.data.frame=FALSE (default)), or a data
frame with column vectors
newtime containing the new time points and
res containing the step function evaluated at the new time points (if
Hein Putter H.Putter@lumc.nl
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.