normregioncurve: Plot normal curve and probability region

View source: R/mycontcurve.R

normregioncurveR Documentation

Plot normal curve and probability region

Description

Plots a normal distribution curve given mean, stdev, probability region start, probability region end. From MATH 4753 Lab 6.

Usage

normregioncurve(mean, sd, from, to, col = "Magenta", lower.tail = TRUE)

Arguments

mean

mean of the normal distribution

sd

standard deviation of the normal distribution

from

start of probability region. set to NULL if -inf

to

end of probability region. set to NULL if inf

col

color of the shaded region. default magenta.

lower.tail

if true, get P(X<a). if false, get P(X>a). default to TRUE

Value

probability of region

Examples

normregioncurve(mean = 0, sd = 1, from = 2, to = NULL, col = "Cyan", lower.tail = FALSE)
normregioncurve(mean = 4, sd = 2, from = 1, to = 5, col = "Cyan")


bbydino/ISSA-ROCK-AND-ROLL documentation built on April 27, 2022, 10:03 p.m.