daria: Calculate and draw the area under the normal curve z

dariaR Documentation

Calculate and draw the area under the normal curve z

Description

The function "daria" - 'd'raws the 'area' under the normal curve for certain values of z.

Usage

daria(area, z1, z2, draw = FALSE)

Arguments

area

The required area

z1

First z value, in the interval +/- 4

z2

Second z value, in the interval +/- 4

draw

Logical; if TRUE, draw the area

Details

In the argument area, the function accepts:

"l", "u", "left" and "under" for the area to the left of z,

"r", "o", "a", "right" "over" and "above" for the area to the right of z

"b" and "between" for the area between two z values.

z values smaller than -4 and greater than +4 are truncated to these values, since the area to the left and to the right of these values is practically equal to zero.

Author(s)

Adrian Dusa

See Also

pnorm, qnorm

Examples

daria("between", -1.96, 1.96) 

daria("over", -1)

daria("under", -1)

daria("over", 2, draw = TRUE)


dusadrian/statistics documentation built on Jan. 26, 2023, 11:55 p.m.