pgnormz: Graphical display for a Standard Normal distribution, given a...

View source: R/pgnormz.R

pgnormzR Documentation

Graphical display for a Standard Normal distribution, given a specified quantile ("Z") value

Description

A function to draw a Standard Normal distribution and shade a region defined by the quantile argument

Usage

pgnormz(quantile, tail = "upper")

Arguments

quantile

The quantile value ("Z" value) to be evaluated. Note that quantile should be positive if a two-tailed result is requested.

tail

Area(s) to be shaded on the graph. If "upper", the function returns a graph with the upper tail area shaded and the upper tail probability displayed. If "lower", the function returns a graph with the lower tail area shaded and the lower tail probability displayed. If "two" the function returns a graph with both tails shaded and a summed two-tailed probability displayed.

Warning

Specifying extremely high or low quantiles may not yield visible shaded areas if the regions are beyond the limits of the X axis scale of the graph.
In addition, probabilities are rounded to five decimal places and will display as zero if below .000005. Use the pnorm function in this case.

Author(s)

Bruce Dudek bruce.dudek@albany.edu

Examples

#shows upper tail by default
pgnormz(1.2)
pgnormz(1.0,tail="upper")
pgnormz(-1.64,tail="lower")
pgnormz(2.0,tail="lower")
pgnormz(1.96,tail="upper")


bcdudek/bcdstats documentation built on Jan. 3, 2024, 10:09 p.m.