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

A function to calculate the variance and covariance of estimated restricted mean survival time using data from different cut-off points accounting for delayed treatment, discontinued treatment and non-uniform entry

1 2 3 4 5 6 |

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

`t1study` |
the study time point from first patient in, it must be larger than |

`t2cut` |
time point at which rmst is calculated. |

`t2study` |
the study time point from first patient in, it must be larger than |

`taur` |
Recruitment time |

`u` |
Piecewise constant recuitment rate |

`ut` |
Recruitment intervals |

`rate1` |
piecewise constant event rate before crossover |

`rate2` |
piecewise constant event rate after crossover |

`rate3` |
piecewise constant event rate for crossover |

`rate4` |
additional piecewise constant event rate for more complex crossover |

`rate5` |
additional piecewise constant event rate for more complex crossover |

`ratec` |
Hazard for time to censoring |

`tchange` |
a strictly increasing sequence of time points starting from zero at which event rate changes. The first element of tchange must be zero. The above rates |

`type` |
type of crossover, 1=markov, 2=semi-markov, 3=hybrid |

`rp2` |
re-randomization probability to receive the rescue treatment when semi-markov crossover occurs. When it happens, the overall hazard will be pi2*r2(t-s)+(1-pi2)*r4(t), where r2 is the hazard for the semi-markov rescue treatment and r4 is hazard for the markov rescue treatment. |

`eps` |
A small number representing the error tolerance when calculating the utility function
with |

`veps` |
A small number representing the error tolerance when calculating the variance. |

More details

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

`t1study` |
the study time point from first patient in, it must be larger than |

`t2cut` |
time point at which rmst is calculated. |

`t2study` |
the study time point from first patient in, it must be larger than |

`rmst` |
rmst at cut-point |

`rmst1` |
rmst at cut-point |

`rmstx` |
rmst at cut-point |

`v` |
the variance of |

`v1` |
the variance of |

`cov` |
the covariance of |

`cov1` |
another covariance of |

This calculates the "true" variance and covariance of restricted mean survival times

Xiaodong Luo

Luo et al. (2018) Design and monitoring of survival trials in complex scenarios, Statistics in Medicine <doi: https://doi.org/10.1002/sim.7975>.

1 2 3 4 5 6 7 8 9 10 |

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.