bino.gen {PASWR} | R Documentation |
Simulating Binomial Distribution
Description
Function that generates and displays m repeated samples of n Bernoulli trials with a given probability of success.
Usage
bino.gen(samples, n, pi)
Arguments
samples |
number of repeated samples to generate |
n |
number of Bernoulli trials |
pi |
probability of success for Bernoulli trial |
Value
simulated.distribution |
Simulated binomial distribution |
theoretical.distribution |
Theoretical binomial distribution |
Author(s)
Alan T. Arnholt
Examples
bino.gen(1000, 20, 0.75)
[Package PASWR version 1.3 Index]