Specify a prior with uniformly distributed marginals
Source:R/special_priors.R
create_uniform_prior.RdA specialisation of create_prior() where the parameter space is
described by independent uniform marginals.
Usage
create_uniform_prior(
lower = 0,
upper = 1,
names = "Uniform",
.n_dim = NULL,
.name_repair = c("unique", "universal", "check_unique")
)Arguments
- lower, upper
Numeric vector of bounds for the uniform distribution.
- names
An optional character vector. Names for the variables in the prior distribution.
- .n_dim
An optional positive integer. The number of dimensions of the prior distribution.
- .name_repair
An optional, case-sensitive string. How to repair
names. Options are"unique"(default),"universal", or"check_unique". Seevctrs::vec_as_names()for details.
Value
A uniform_prior, a subclass of ernest_prior with an efficient
implementation of the unit hypercube transformation.
Note
See vctrs::vector_recycling_rules for additional information on how parameters are recycled to a common length.
See also
Other special_priors:
create_normal_prior()