Description Usage Arguments Author(s) See Also Examples
View source: R/visualize.binom.R
Generates a plot of the Binomial distribution with user specified parameters.
1 2 | visualize.binom(stat = 1, size = 3, prob = 0.5, section = "lower",
strict = FALSE)
|
stat |
a statistic to obtain the probability from. When using the
"bounded" condition, you must supply the parameter as |
size |
size of sample. |
prob |
probability of picking object. |
section |
Select how you want the statistic(s) evaluated via
|
strict |
Determines whether the probability will be generated as a
strict (<, >) or equal to (<=, >=) inequality. |
James Balamuta
1 2 3 4 5 6 7 8 | # Evaluates lower tail with equal to inequality.
visualize.binom(stat = 1, size = 3, prob = 0.5, section = "lower", strict = FALSE)
# Evaluates bounded region with lower bound equal to and upper bound strict inequality.
visualize.binom(stat = c(1,2), size = 5, prob = 0.35, section = "bounded", strict = c(0,1))
# Evaluates upper tail with strict inequality.
visualize.binom(stat = 1, size = 3, prob = 0.5, section = "upper", strict = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.