Computes "equal-tails" probability interval for a normal curve

normal_interval(prob, normal_pars)

Arguments

prob

value of coverage probability

normal_pars

vector of mean and standard deviation of the normal curve

Value

Computes and displays the interval that contains the normal curve with the specified probability

Examples

parameters <- c(2, 0.5) prob_content <- 0.5 normal_interval(prob_content, parameters)