Description Usage Arguments Value Examples

This function simulates enrollment dates using either poisson distribution

1 | ```
enrollment(param, N_total, time = NULL)
``` |

`param` |
a vector of lambda in poisson |

`N_total` |
a numeric value of total sample size |

`time` |
a vector of the |

a vector of enrollment dates

1 2 | ```
enrollment(param = c(0.003, 0.7), 100, time = 10)
enrollment(param = c(0.3, 0.5, 0.9, 1.2, 2.1), 200, c(20, 30, 40, 60))
``` |

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.