This function allows you to obtain a bayesian model confidence set with
approximate posterior model probability.
Usage
bms(data, alpha, eps = 1e-06)
Arguments
data
a list including
x
covariates matrix, of dimension nobs and nvars;each row is an observation vector.
y
response variable.
alpha
a vector of significance levels. The confidence levels are 1-alpha.
Default value is 0.05.
eps
toterance level in choosing models with total posteriors
at least 1-alpha. Default value is 1e-6.
Value
Returns a list containing:
models
A list with one entry for each model. Each entry is an integer
vector that specifies the columns of matrix x to be used as a regressor in that model.
Models is ordered with decreasing posteriors.
con_sets
a list with with one entry for a 1-alpha model confidence set.
Each entry is an integer vector that specifies the models selected in this set. The model
indexes used in con_sets are their orders in models.
length_con
lengths of confidence sets.
probs_inorder
Model posteriors in decreasing order.
beta_ls
a list with one entry for each model. Each entry is a vector
of estimated coefficients for that model.
References
Liu, X., Li, Y. & Jiang, J.(2020). Simple measures of uncertainty for model selection.
TEST, 1-20.
Raftery, Adrian E. (1995). Bayesian model selection in social research (with Discussion).
Sociological Methodology 1995 (Peter V. Marsden, ed.), pp. 111-196.