Independent normal prior
Arguments
- mean
Numeric vector of means (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. Must be finite; a normal prior has no legitimate use for an infinite mean.- sd
Numeric scalar or vector of standard deviations. Must be finite and positive.
Examples
prior <- prior_normal(mean = c(0, 0), sd = 1)
