A simple function to understand the algorithm to simulate psuedo-observations from binomial distribution. It is an implementation of the algorithm given in Section 11.3.1. This function is not an alternative to the rbinom function.

1 | ```
Binom_Sim(size, p, N)
``` |

`size` |
Size of the binomial distribution |

`p` |
Denotes the probability of success |

`N` |
The number of observations required from b(n,p) |

This function is to simply explain the algorithm described in the text. For efficient results, the user should use the rbinom function.

Prabhanjan N. Tattar

rbinom

1 | ```
Binom_Sim(10,0.5,100)
``` |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.

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

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