# Calculate the survival in selected times

### Description

Auxiliary function called from pshPLE, wcPLE and MLEFrailty.

The estimation using PLE (e.g. Kaplan-Meier) is a decreasing constant piecewise function with jumps in the times with events. Thus, to estimate the survival at any time we take the time of the precious event.

### Usage

1 2 | ```
surv.search(tvals,time,surv)
``` |

### Arguments

`tvals` |
vector of times where the survival function has to be estimated |

`time` |
vector of failures times (distinct) |

`surv` |
vector of survival of each time |

### Value

Returns the survival in each selected time (tvals) from a vector of survival values

### Examples

1 2 3 4 5 6 7 8 9 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.