| mybin | R Documentation | 
finds the number of successes in each iteration given a probability. The function adds the number of iterations that received each number of successes, divides by overall number of iterations, and represents the distribution as a percentage.
mybin(iter = 100, n = 10, p = 0.5)
| iter | number of iterations | 
| n | number of samples taken each iteration, with replacement | 
| p | probability of TRUE sample | 
a bar graph showing the distribution and associated table
mybin()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.