This class sets up the base class for priors which will be inherited by all priors.
Public fields
id
A
character
with the id of the prior.name
A
character
with the name of the prior.type
A
character
with the type of the prior.variable
A
character
with the variable name for the prior.distribution
A
character
with the distribution of the prior if relevant.value
A
numeric
orcharacter
with the prior value, e.g. the hyper-parameters.prob
Another
numeric
entry on the prior field. The inclusion probability.lims
A limitation on the lower and upper bounds of a numeric value.
Methods
Method new()
Initializes the object and prepared the various prior variables
Usage
Prior$new(
id,
name,
variable,
value,
type = NULL,
distribution = NULL,
prob = NULL,
lims = NULL
)
Arguments
id
A
character
with the id of the prior.name
A
character
with the name of the prior.variable
A
character
with the variable name for the prior.value
A
numeric
orcharacter
with the prior value, e.g. the hyper-parameters.type
A
character
with the type of the prior.distribution
A
character
with the distribution of the prior if relevant.prob
Another
numeric
entry on the prior field. The inclusion probability.lims
A limitation on the lower and upper bounds of a numeric value.
Method print()
Print out the prior type and variable.
Method validate()
Generic validation function for a provided value.
Method get()
Get prior values
Arguments
what
A
character
with the entry to be returned (Default:value
).