Learn R Programming

adoptr (version 0.2.2)

PointMassPrior-class: Univariate discrete point mass priors

Description

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

Usage

PointMassPrior(theta, mass)

# S4 method for PointMassPrior show(object)

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)

object

object of class PointMassPrior

Value

an object of class PointMassPrior

Slots

theta

cf. parameter 'theta'

mass

cf. parameter 'mass'

See Also

To represent continuous prior distributions use ContinuousPrior.

Examples

Run this code
# NOT RUN {
PointMassPrior(c(0, .5), c(.3, .7))

# }

Run the code above in your browser using DataLab