PointMassPrior-class: Univariate discrete point mass priors

Description Usage Arguments Value Slots See Also Examples

Description

PointMassPrior is a sub-class of Prior representing a univariate prior over a discrete set of points with positive probability mass.

Usage

1
PointMassPrior(theta, mass, label = NA_character_)

Arguments

theta

numeric vector of pivot points with positive prior mass

mass

numeric vector of probability masses at the pivot points (must sum to 1)

label

object label (string)

Value

an object of class PointMassPrior, theta is automatically sorted in ascending order

Slots

theta

cf. parameter 'theta'

mass

cf. parameter 'mass'

See Also

To represent continuous prior distributions use ContinuousPrior.

Examples

1
PointMassPrior(c(0, .5), c(.3, .7))

adoptr documentation built on June 28, 2021, 5:11 p.m.