powered by
PointMassPrior is a sub-class of Prior representing a univariate prior over a discrete set of points with positive probability mass.
PointMassPrior
Prior
PointMassPrior(theta, mass, label = NA_character_)
numeric vector of pivot points with positive prior mass
numeric vector of probability masses at the pivot points (must sum to 1)
object label (string)
an object of class PointMassPrior, theta is automatically sorted in ascending order
theta
cf. parameter 'theta'
mass
cf. parameter 'mass'
To represent continuous prior distributions use ContinuousPrior.
ContinuousPrior
# NOT RUN { PointMassPrior(c(0, .5), c(.3, .7)) # }
Run the code above in your browser using DataLab