set_options {bsreg} | R Documentation |
Set up Bayesian model priors and settings
set_options(
type = c("Independent", "Conjugate", "Shrinkage", "Horseshoe"),
NG = set_NG(),
SNG = set_SNG(),
HS = set_HS(),
SAR = set_SAR(),
SLX = set_SLX(),
SEM = set_SEM(),
SV = set_SV(),
...
)
type |
Character scalar with the prior type for the nested linear model. |
NG |
Settings for the Normal-Gamma prior (independent or conjugate). See |
SNG |
Settings for the Normal-Gamma shrinkage prior (Polson and Scott, 2010). See |
HS |
Settings for the Horseshoe shrinkage prior (Makalic and Schmidt, 2015). See |
SAR |
Settings for the spatial autoregressive setup. See |
SLX |
Settings for the spatially lagged explanatory setup. See |
SEM |
Settings for the spatial error setup. See |
SV |
Settings for the stochastic volatility setup. See |
... |
Used to provide custom prior elements. |
Returns a list with priors and settings for a Bayesian model.
set_options("Shrinkage", SNG = set_SNG(lambda_a = 1, lambda_b = 1))