prior_PP {BayesTools}R Documentation

Creates a prior distribution for PET or PEESE models


prior creates a prior distribution for fitting a PET or PEESE style models in RoBMA. The prior distribution can be visualized by the plot function.


  truncation = list(lower = 0, upper = Inf),
  prior_weights = 1

  truncation = list(lower = 0, upper = Inf),
  prior_weights = 1



name of the prior distribution. The possible options are


for a point density characterized by a location parameter.


for a normal distribution characterized by a mean and sd parameters.


for a lognormal distribution characterized by a meanlog and sdlog parameters.


for a Cauchy distribution characterized by a location and scale parameters. Internally converted into a generalized t-distribution with df = 1.


for a generalized t-distribution characterized by a location, scale, and df parameters.


for a gamma distribution characterized by either shape and rate, or shape and scale parameters. The later is internally converted to the shape and rate parametrization


for an inverse-gamma distribution characterized by a shape and scale parameters. The JAGS part uses a 1/gamma distribution with a shape and rate parameter.


for a beta distribution characterized by an alpha and beta parameters.


for an exponential distribution characterized by either rate or scale parameter. The later is internally converted to rate.


for a uniform distribution defined on a range from a to b


list of appropriate parameters for a given distribution.


list with two elements, lower and upper, that define the lower and upper truncation of the distribution. Defaults to list(lower = -Inf, upper = Inf). The truncation is automatically set to the bounds of the support.


prior odds associated with a given distribution. The value is passed into the model fitting function, which creates models corresponding to all combinations of prior distributions for each of the model parameters and sets the model priors odds to the product of its prior distributions.


prior_PET and prior_PEESE return an object of class 'prior'.

See Also

plot.prior(), prior()


# create a half-Cauchy prior distribution
# (PET and PEESE specific functions automatically set lower truncation at 0)
p1 <- prior_PET(distribution = "Cauchy", parameters = list(location = 0, scale = 1))


[Package BayesTools version 0.2.16 Index]