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

This will $int_0^t s^k lambda_1(s)S_2(s)ds$ where k=0,1,2 and rate1=lambda_1 and S_2 has hazard rate2

1 2 |

`t` |
A vector of time points |

`rate1` |
piecewise constant event rate |

`rate2` |
piecewise constant event rate |

`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 and tchange must have the same length. |

`eps` |
tolerance |

Let *h_1,h_2* correspond to `rate1`

,`rate2`

, and *H_1,H_2* be the corresponding survival functions.
This function will calculate

*\int_0^t s^k h_1(s)H_2(s)ds,\hspace{1cm} k=0,1,2.*

`f0` |
values when |

`f1` |
values when |

`f2` |
values when |

This will provide the number of events.

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 |

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.