A 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_code
character. Stan implementation of the prior, with placeholders for parameters surrounded with
{{
and}}
to be replaced withglue::glue()
.n_param
integer. Number of prior parameters.
constraint
character. Support of prior distribution expressed as a Stan constraint, e.g.
"<lower=0, upper=1>"
.
See also
Prior constructor functions: prior_bernoulli()
, prior_beta()
, prior_cauchy()
, prior_half_cauchy()
,
prior_gamma()
, prior_normal()
, prior_poisson()
, uniform_prior()
Other prior classes:
PriorBernoulli-class
,
PriorBeta-class
,
PriorCauchy-class
,
PriorExponential-class
,
PriorGamma-class
,
PriorHalfCauchy-class
,
PriorHalfNormal-class
,
PriorNormal-class
,
PriorPoisson-class
,
UniformPrior-class