powered by
Create prior distribution objects used by RoBMA and brma fitting functions.
prior( distribution, parameters, truncation = list(lower = -Inf, upper = Inf), prior_weights = 1 )
An object inheriting from prior.
prior
character. Prior distribution name.
list. Distribution parameters.
list with lower and upper truncation bounds.
lower
upper
numeric prior model weight.
This is RoBMA's re-export of BayesTools::prior(); supported distribution names and parameter lists follow BayesTools.
BayesTools::prior()
prior("normal", list(mean = 0, sd = 0.5)) prior( "normal", list(mean = 0, sd = 0.5), truncation = list(lower = 0, upper = Inf) )
Run the code above in your browser using DataLab