Create a ParameterPrior object

ParameterPrior(d = NULL, r = NULL, p = NULL, p.d = NULL,
  p.r = NULL, ...)

Arguments

d, r

character strings denoting the names of a density function and of a random generator function for some distribution, e.g. "dunif" and "runif". Alternatively, these can be function objects, but this is not recommended, because it can result in multiple duplication of these objects in memory. Default values: NULL.

p

a list with 'static' arguments common for d and r. By 'static', it is meant arguments that do not change during a sampling procedure, e.g. the rate of an exponentional prior or the boundaries of a uniform prior. Default value: NULL

p.d

a list of static arguments to be passed specifically to d (added to p). Default value: NULL.

p.r

a list of static arguments to be passed specifically to r (added to p). Default value: NULL.

...

additional arguments to be stored as member elements in the returned ParameterPrior object.

Value

an object of S3 class c("ParameterPrior", "Prior").