Binom_Sim: Simulation for Binomial Distribution

Description Usage Arguments Note Author(s) See Also Examples

Description

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.

Usage

1
Binom_Sim(size, p, N)

Arguments

size

Size of the binomial distribution

p

Denotes the probability of success

N

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

Note

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

Author(s)

Prabhanjan N. Tattar

See Also

rbinom

Examples

1
Binom_Sim(10,0.5,100)

ACSWR documentation built on May 2, 2019, 6:53 a.m.