Resolve a beta_prior = list(mean, sd) to a single ridge SD.
Source: R/fit_laplace.R
dot-beta_prior_ridge_sd.RdFor the fitters whose fixed-effect prior is a mean-zero Gaussian ridge with a
scalar SD (EP, multinomial, ordinal): validates the unified beta_prior
object, enforces a mean of 0, and returns the positive scalar SD. Keeps the
shared prior interface (beta_prior = list(mean, sd)) while rejecting the
options those fitters do not implement (a non-zero mean, a per-coefficient
SD). Validation of the supplied object itself is .beta_prior_fields(),
shared with .normalize_beta_prior().
Arguments
- beta_prior
list(mean, sd);meanmust be 0,sda positive scalar.NULLtakes the engine default.- default_sd
SD used when
beta_priorisNULL. A supplied prior is resolved through.beta_prior_fields()and never falls back to this.