getsurv {interval}R Documentation

get survival values from icfit object

Description

For a vector of times, getsurv gets the associated survival values. The MLE is not uniquely defined for times inbetween the first and second row on the same column of the intmap. If there is not a unique MLE for a specific time, then either use, interpolation: (default), which basically finds the point on the line connecting the two points bounding the non-unique MLE interval, or, left: take the left side of the non-unique MLE interval (smallest value) or, right: take the right side of the non-unique MLE interval.

Usage

getsurv(times, icfit, nonUMLE.method = "interpolation")

Arguments

times numeric vector of times
icfit icfit object used to define the survival function
nonUMLE.method character vector, either "interpolation", "left" or "right". Method for finding survival when times element is not at a unique MLE time.

Value

a LIST,with elements

S vector of survival function values at each element of times
times vector of times for which need survival function
unique.mle logical denoting whether associated survival value is a unique MLE
nonUMLE.method character vector describing non-unique MLE method

[Package interval version 0.7-5.5 Index]