Specifies the prior distribution in a Stan Model
Usage
Prior(
parameters,
display,
repr_model,
repr_data,
centre,
validation,
sample,
limits = c(-Inf, Inf)
)
Arguments
- parameters
(
list
)
the prior distribution parameters.- display
(
string
)
the string to display when object is printed.- repr_model
(
string
)
the Stan code representation for the model block.- repr_data
(
string
)
the Stan code representation for the data block.- centre
(
numeric
)
the central point of distribution to shrink sampled values towards- validation
(
list
)
the prior distribution parameter validation functions. Must have the same names as theparamaters
slot.- sample
(
function
)
a function to sample from the prior distribution.- limits
(
numeric
)
the lower and upper limits for a truncated distribution
Slots
parameters
(
list
)
See arguments.repr_model
(
string
)
See arguments.repr_data
(
string
)
See arguments.centre
(
numeric
)
See arguments.validation
(
list
)
See arguments.display
(
string
)
See arguments.sample
(
function
)
See arguments.limits
(
numeric
)
See arguments.
See also
Other Prior-internal:
Prior-Getter-Methods
,
as.StanModule.Prior()
,
as.character.Prior()
,
as_stan_list.Prior()