Learn R Programming

⚠️There's a newer version (1.2.6) of this package.Take me there.

BoomSpikeSlab (version 1.2.4)

MCMC for Spike and Slab Regression

Description

Spike and slab regression with a variety of residual error distributions corresponding to Gaussian, Student T, probit, logit, SVM, and a few others. Spike and slab regression is Bayesian regression with prior distributions containing a point mass at zero. The posterior updates the amount of mass on this point, leading to a posterior distribution that is actually sparse, in the sense that if you sample from it many coefficients are actually zeros. Sampling from this posterior distribution is an elegant way to handle Bayesian variable selection and model averaging. See for an explanation of the Gaussian case.

Copy Link

Version

Install

install.packages('BoomSpikeSlab')

Monthly Downloads

5,375

Version

1.2.4

License

LGPL-2.1 | file LICENSE

Maintainer

Steven Scott

Last Published

April 6th, 2021

Functions in BoomSpikeSlab (1.2.4)

mlm.spike.slab.prior

Create a spike and slab prior for use with mlm.spike.
independent.student.spike.slab.prior

Spike and Slab Prior for Regressions with Student T Errors
nested.regression

Nested Regression
independent.spike.slab.prior

A spike and slab prior assuming a priori independence.
model.matrix

GetPredictorMatrix
logit.zellner.prior

Zellner Prior for Logistic Regression
logit.spike

Spike and slab logistic regression
model.matrix.glm.spike

Construct Design Matrices
mlm.spike

Spike and slab multinomial logistic regression
lm.spike

Spike and slab regression
plot.BayesNnet

Plot a Bayesian Neural Network
plot.lm.spike.fit

Predicted vs actual plot for lm.spike.
plot.lm.spike

Plot the results of a spike and slab regression.
probit.spike

Spike and slab probit regression
PlotModelSize

Plot a distribution of model size
plot.lm.spike.residuals

Residual plot for lm.spike
plot.marginal.inclusion.probabilities

Plot marginal inclusion probabilities.
plot.logit.spike

plot.coefficients

Plot Coefficients.
spike.slab.prior.base

Base class for spike and slab priors
spliunes

Spline Basis Expansions
qreg.spike

Quantile Regression
poisson.zellner.prior

Zellner Prior for Poisson Regression
poisson.spike

Spike and slab Poisson regression
spike.slab.glm.prior

Zellner Prior for Glm's.
predict.lm.spike

Predictions using spike-and-slab regression.
spike.slab.prior

Create a spike and slab prior for use with lm.spike.
plot.logit.spike.residuals

print.summary.lm.spike

Print method for spikeslab objects.
plot.logit.spike.fit.summary

Plot Logit or Probit Fit Summary
summary.lm.spike

Numerical summaries of the results from a spike and slab regression.
SummarizeSpikeSlabCoefficients

Numerical summaries of coefficients from a spike and slab regression.
suggest.burn

Suggest Burn-in
partial.dependence.plot

Plot a Bayesian Neural Network
student.spike.slab.prior

Spike and Slab Prior for Student-T Regression
summary.logit.spike

Numerical summaries of the results from a spike and slab logistic regression.
nnet

Bayesian Feed Forward Neural Networks
plot.poisson.spike

plot.qreg.spike

Plot the results of a spike and slab regression.
residuals.lm.spike

Extract lm.spike Residuals
shrinkage.regression

Shrinking Regression Coefficients