Prior Class
Prior-class.RdA class for defining priors to be translated to Stan code. Objects of class
Prior should not be created directly but by one of the specific prior
class constructors.
Slots
stan_codecharacter. Stan implementation of the prior, with placeholders for parameters surrounded with
{{and}}to be replaced withglue::glue().n_paraminteger. Number of prior parameters.
constraintcharacter. Support of prior distribution expressed as a Stan constraint, e.g.
"<lower=0, upper=1>".
See also
Prior constructor functions: bernoulli_prior(), beta_prior(), cauchy_prior(), gamma_prior(),
normal_prior(), poisson_prior(), uniform_prior()
Other prior classes:
BernoulliPrior-class,
BetaPrior-class,
CauchyPrior-class,
ExponentialPrior-class,
GammaPrior-class,
NormalPrior-class,
PoissonPrior-class,
UniformPrior-class