gbinom | R Documentation |
Binomial Distributions of an N and p values can be plotted. Scale limits can be specified, as well as regions of the RV scale for determining probabilities. These regions are indicated with color on the graph and probabilities are also displayed.
gbinom(n, p, low = 0, high = n, scale = F, a = NA, b = NA, findquantile = NA)
n |
Number of trials. |
p |
Probability of a Success. |
low |
Lower limit of the X axis scale. Set to zero by default. |
high |
Upper limit of the X axis scale. Set to N, the number of trials, by default. |
scale |
Truncates the scale when TRUE. Shows full scale when FALSE |
a |
Arguments |
b |
Arguments |
findquantile |
Takes a cumulative left tail probability for
which a quantile is returned. Default is NA. Arguments |
Bruce Dudek bruce.dudek@albany.edu
This function is a modification of a function originally coded
by Brett Larget, Univ. Wisconsin.
http://www.stat.wisc.edu/~larget/R/prob.R
gbinom(4,.5)
gbinom(100,.5)
gbinom(4,.4)
gbinom(10,.4)
gbinom(25,.7)
gbinom(4,.5,a=3)
gbinom(4,.5,b=1)
gbinom(4,.5,a=3,b=1)
gbinom(100,.667,a=60,b=70)
# improve the previous graph by resetting the x axis limits
gbinom(100,.667,a=60,b=70,low=45,high=85)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.