Prior
Class
Prior-class.Rd
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: 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
,
HalfCauchyPrior-class
,
HalfNormalPrior-class
,
NormalPrior-class
,
PoissonPrior-class
,
UniformPrior-class