pr.dens: Calculate densities

Description Usage Arguments Details Value

View source: R/utils.R

Description

Calculates density at n points across the range of a parameter

Usage

1
  pr.dens(distn, parama, paramb, n = 1000, alpha = 0.001)

Arguments

distn

distribution

parama

parameter

paramb

parameter

n

length of vector to be returned

alpha

sets range at which the distribution will be evaluated (e.g. from alpha to 1-alpha)

Details

For a distribution and parameters, return the density for values ranging from alpha to 1-alpha

Value

dataframe with equally spaced x values and the corresponding densities


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