This class sets up the base class for priors which will be inherited by all priors.
Public fields
idA
characterwith the id of the prior.nameA
characterwith the name of the prior.typeA
characterwith the type of the prior.variableA
characterwith the variable name for the prior.distributionA
characterwith the distribution of the prior if relevant.valueA
numericorcharacterwith the prior value, e.g. the hyper-parameters.probAnother
numericentry on the prior field. The inclusion probability.limsA 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
idA
characterwith the id of the prior.nameA
characterwith the name of the prior.variableA
characterwith the variable name for the prior.valueA
numericorcharacterwith the prior value, e.g. the hyper-parameters.typeA
characterwith the type of the prior.distributionA
characterwith the distribution of the prior if relevant.probAnother
numericentry on the prior field. The inclusion probability.limsA 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
whatA
characterwith the entry to be returned (Default:value).
