Box-uniform (independent uniform) prior
Arguments
- low
Numeric vector of lower bounds (one per parameter). Naming the vector (e.g.
c(beta = 0, gamma = 0)) attaches those names to every downstream parameter matrix, posterior sample, and diagnostic plot.NA/NaNare rejected;-Infis accepted (matchinghigh'sInf) but makes the prior improper, sosample_prior()on it errors unless it is first bounded withprior_truncated().- high
Numeric vector of upper bounds (one per parameter). Same finiteness rule as
low, withInfin place of-Inf.
Examples
prior <- prior_uniform(low = c(-2, -2, -2), high = c(2, 2, 2))
theta <- sample_prior(prior, 5)
