Description Usage Arguments Value Examples

View source: R/estimatelogHR.R

simulating survival data under model hazard_1(t)=hazard_0(t)*e^r.

1 | ```
estimatelogHR(r, lamda = 1, lamda_cen = 1, L = 2, E)
``` |

`r` |
True log hazard ratio |

`lamda` |
The event hazard rate for placebo |

`lamda_cen` |
The discontinuation hazard rate |

`L` |
The whole study duration of fixed study duration design |

`E` |
Event number of two groups combined |

A single value.

1 2 3 4 | ```
r0=log(0.7)
E0=Eventnum(alpha=0.05, beta=0.2, r=r0)
set.seed(123)
estimatelogHR(r=r0, lamda=1, lamda_cen=1, L=2, E=E0)
``` |

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.