normal_interval: Prediction interval of a normal distribution

View source: R/normalinference.R

normal_intervalR Documentation

Prediction interval of a normal distribution

Description

This function calculates the (central) interval of a normal distribution that contains a specified probability. This interval will always extend from a certain distance below the mean to the same distance above the mean.

Usage

normal_interval(mean = 0, sd = 1, probability = 0.95)

Arguments

mean

(numeric) The mean of the normal distribution

sd

(numeric) The standard deviation of the normal distribution

probability

(numeric) The probability (area under curve) within the interval

Value

A numeric vector giving the lower and upper bounds of the interval containing the specified probability.

Examples

normal_interval()
normal_interval(mean = 100, sd = 15, probability = 0.99)

mark-andrews/isdsr-pkg documentation built on Sept. 13, 2022, 11:47 p.m.