Description Usage Arguments Details Value Note Author(s) References Examples

A function to estimate the restricted mean survival time (RMST) and its variance from data

1 |

`y` |
observed times |

`d` |
non-censoring indicators |

`tcut` |
time point at which rmst is calculated |

`eps` |
A small number representing the error tolerance when comparing the event times |

More details

`tcut` |
time point at which rmst is calculated |

`rmst` |
estimated RMST |

`var` |
estimated variance of |

`vadd` |
estimated variance-covariance term of |

This estimates the restricted mean survival time and its asymptotic variance

Xiaodong Luo

Luo, et al. (2017)

1 2 3 4 5 6 7 8 9 10 11 12 |

```
$tcut
[1] 2
$rmst
[1] 1.00104
$var
[1] 0.6096751
$vadd
[1] 1.377253
```

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.