| space_omega_priors | R Documentation |
This helper function generates a list of prior_normal objects for omega
(breakpoint locations) that are evenly spaced across the range of your time
variable tau. This is highly recommended when using smoothbp_ss() to
ensure the candidate breakpoints cover the entire domain without clumping.
space_omega_priors(K, tau_min, tau_max)
K |
Number of candidate breakpoints. |
tau_min |
Minimum value of the time/covariate variable. |
tau_max |
Maximum value of the time/covariate variable. |
For hierarchical models where omega has random effects (e.g., ~ 1 + (1 | group)),
this function automatically names the prior (Intercept) so it applies correctly
to the global market mean, while the random effects are handled automatically by
the sigma_re_om shrinkage variance.
A list of length K containing prior specifications for omega.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.