Learn R Programming

ProbBayes (version 1.1)

normal_interval: Probability Interval for a Normal Curve

Description

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

Usage

normal_interval(prob, normal_pars, Color = "orange")

Arguments

prob

value of coverage probability

normal_pars

vector of mean and standard deviation of the normal curve

Color

color of shading in plot

Value

ggplot2 object containing the graphical display.

Examples

Run this code
# NOT RUN {
  normal_pars <- c(2, 0.5)
  prob <- 0.5
  normal_interval(prob, normal_pars)
# }

Run the code above in your browser using DataLab