Calculate the expected number of events

expected_events_single_arm | Expected number of events |

expected_events_two_arm | Expected number of events |

get_t_pieces | Time-at-risk intervals. |

prop_to_mu_single_arm | Convert a proportion of dropouts to a dropout rate. |

prop_to_mu_two_arm | Convert a proportion of dropouts to a dropout rate. |

surv_pieces | Probability of event-free at time t, under piecewise constant... |

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.