mynbinsim | R Documentation |
Simulates a negative binomial experiment with given iteration, and probability of success for each trial. Outputs a barplot and returns a table of the results.
mynbinsim(iter = 100, p = 0.5)
iter |
number of iterations (default iter=100) |
p |
probability of success for each trial (default p=0.5) |
From: MATH 4753 Lab 5
table of relative frequencies of probabilities
sim100 = mynbinsim(100, 0.5) sim1000 = mynbinsim(1000, 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.