Generate a Valid Parameter Domain Around MAP Estimates
generate_domain_from_map.Rd
Creates a 2-row matrix defining the domain for each parameter, centered on MAP values, with optional margin, bounds, and a minimum enforced width.
Usage
generate_domain_from_map(
map_vals,
margin = 0.25,
min_width = 0.1,
lower_bound = 0,
upper_bound = 2
)
Arguments
- map_vals
Named numeric vector of MAP estimates (e.g. from MCMC).
- margin
Numeric. Symmetric buffer to expand around each parameter (default = 0.25).
- min_width
Numeric. Minimum allowable width per parameter domain (default = 0.1).
- lower_bound
Numeric. Minimum allowed value for any parameter (default = 0).
- upper_bound
Numeric. Maximum allowed value for any parameter (default = 2).