View source: R/visualize.hyper.R
visualize.hyper | R Documentation |
Generates a plot of the Hypergeometric distribution with user specified parameters.
visualize.hyper(
stat = 1,
m = 5,
n = 4,
k = 2,
section = "lower",
strict = FALSE
)
stat |
a statistic to obtain the probability from. When using the
"bounded" condition, you must supply the parameter as |
m |
|
n |
|
k |
draw |
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
visualize.it()
, dhyper()
.
# Evaluates lower tail.
visualize.hyper(stat = 1, m=4, n=5, k=3, section = "lower", strict = 0)
# Evaluates bounded region.
visualize.hyper(stat = c(2,4), m=14, n=5, k=2, section = "bounded", strict = c(0,1))
# Evaluates upper tail.
visualize.hyper(stat = 1, m=4, n=5, k=3, section = "upper", strict = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.