Description Usage Arguments Details Value Examples

View source: R/survival_operations.R

Apply a time shift to a survival distribution

1 | ```
apply_shift(dist, shift)
``` |

`dist` |
A survival distribution. |

`shift` |
A time shift to be applied. |

A positive shift moves the fit backwards in time. That is,
a shift of 4 will cause time 5 to be evaluated as time 1, and so on.
If `shift == 0`

, `dist`

is returned unchanged.

A `surv_shift`

object.

1 2 3 4 | ```
dist1 <- define_survival(distribution = "gamma", rate = 0.25, shape = 3)
shift_dist <- apply_shift(dist1, 4)
compute_surv(dist1, 1:10)
compute_surv(shift_dist, 1:10)
``` |

pierucci/heemod documentation built on July 15, 2018, 12:44 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.