gnorm | R Documentation |
gnorm
plots a density function for a normal distribution of specified
mean and standard deviation. It will also accept specification of one, or
two "cutpoints" and shade the corresponding tail regions or the region
between two cutpoints. The function also displays the corresponding tail or
region probability.
gnorm(mu, sigma, a = NA, b = NA, findquantile = NA)
mu |
|
sigma |
|
a |
optional specification of a quantile value that can serve as a
"cutpoint". |
b |
optional specification of a quantile value that can serve as a
"cutpoint". |
findquantile |
Takes a cumulative left tail probability for
which a quantile is returned. Default is NA. Arguments |
This function can be very helpful in an instructional setting.
Bruce Dudek bruce.dudek@albany.edu
This function is a modification of a function coded by Brett
Larget, Univ Wisconsin.
http://www.stat.wisc.edu/~larget/R/prob.R
pgnorm
,
pgnormz
,
qgnorm
,
qgnormz
gnorm(0,1)
gnorm(0,1,a=1.65)
gnorm(0,1,a=-1.65)
gnorm(0,1,b=1.65)
gnorm(0,1,a=1.65,b=1.65)
gnorm(0,1,a=1.96,b=-1.65)
gnorm(100,15,a=130)
gnorm(100,15,a=85)
gnorm(100,15,a=85,b=115)
gnorm(800,20,a=837,b=763)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.