prior.density: Prior Density

Description Usage Arguments Value Author(s)

View source: R/plots.R

Description

Calculate the density of a distribution for use in plotting

Usage

1
2
  prior.density(distribution = "norm", a = 0, b = 1,
    xlim = NA)

Arguments

distribution

one of R's supported distributions (character)

a

first parameter of distribution (numeric)

b

second parameter of distribution (numeric)

Value

data frame with values of x, the density at each x and the probability at each x

Author(s)

David LeBauer


dlebauer/pecan-priors documentation built on Sept. 26, 2019, 5:03 a.m.