prior_weightfunction creates a prior distribution for fitting
a RoBMA selection model. The prior can be visualized by the plot function.
Arguments
- distribution
name of the prior distribution. The possible options are
"two.sided"for a two-sided weight function characterized by a vector
stepsand vectoralphaparameters. Thealphaparameter determines an alpha parameter of Dirichlet distribution which cumulative sum is used for the weights omega."one.sided"for a one-sided weight function characterized by either a vector
stepsand vectoralphaparameter, leading to a monotonic one-sided function, or by a vectorsteps, vectoralpha1, and vectoralpha2parameters leading non-monotonic one-sided weight function. Thealpha/alpha1andalpha2parameters determine an alpha parameter of Dirichlet distribution which cumulative sum is used for the weights omega.
- parameters
list of appropriate parameters for a given
distribution.- prior_weights
prior odds associated with a given distribution. The model fitting function usually 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.
Details
Constrained cases of weight functions can be specified by adding
".fixed" after the distribution name, i.e., "two.sided.fixed" and
"one.sided.fixed". In these cases, the functions are specified using
steps and omega parameters, where the omega parameter
is a vector of weights that corresponds to the relative publication probability
(i.e., no parameters are estimated).
