make a sample of the first model, that is to say simulate the sequence of the random variables Xi (stay duration) and the sequence of Zi (side effect reporting)

1 | ```
makeSample(file, nbPatient, disXi, disP)
``` |

`file` |
the filename in which the simulation will be stored |

`nbPatient` |
the number of patients for the simulation |

`disXi` |
the distribution of the variable Xi : disXi is a 3 elements list : rangen stands for a random positive variable generator ; nbparam for number of parameter of this distribution and param for a list of parameters |

`disP` |
the side effect probability (success probability of Zi) p : disP is a 3 elements list : disfun stands for a distribution function ; nbparam for number of parameter of this distribution and param for a list of parameters |

a NULL object.

Christophe Dutang and Julie Barthes

1 2 3 4 5 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.