Prior ClassA 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.
stan_codecharacter. Stan implementation of the prior, with
placeholders for parameters surrounded with {{ and }} to be replaced
with glue::glue().
n_paraminteger. Number of prior parameters.
constraintcharacter. Support of prior distribution expressed as a
Stan constraint, e.g. "<lower=0, upper=1>".
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