Description Usage Arguments Value Examples
Uses sample function to produce a binomial simulation over iter number of trials. Fills a matrix and creates a labeled barplot for given input.
1 | mybin(iter, n, p)
|
iter |
- number of iterations |
n |
- sample size (number of trials) |
p |
- probability of a success |
plot of the simulation with proportions and a table of proportions
1 | mybin(iter=100,n=10, p=0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.