qgnorm | R Documentation |
A function to draw a normal distribution and shade the region(s) defined by the probability argument
qgnorm(prob, mean = 0, sd = 1, tail = "upper")
prob |
The tail probability value to define the region to be shaded on
the graph and the corresponding quantile to be displayed. note that if
|
mean |
|
sd |
|
tail |
Area(s) to be shaded on the graph. If |
Specifying extremely high or low probabilities may not yield visible shaded areas if the regions are beyond the limits of the X axis scale of the graph.
This function can be very helpful in instructional situations and can replace the "t table" from textbooks.
Bruce Dudek bruce.dudek@albany.edu
qgnorm(.35,mean=2000,sd=400) #shows upper tail by default
qgnorm(.16,mean=100,sd=15,tail="upper")
qgnorm(.16,mean=100,sd=15,tail="lower")
qgnorm(.975,mean=100,sd=15,tail="lower")
qgnorm(.025,mean=0,sd=1,tail="upper")
#note that pgnormz also yields the std normal
#without mean and sd arguments required#'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.