% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/priors.R
\name{prior_spike_slab}
\alias{prior_spike_slab}
\title{Specify a spike-and-slab prior for variable selection}
\usage{
prior_spike_slab(
  pi = 0.5,
  slab = prior_normal(0, 2),
  learn_pi = FALSE,
  a = 1,
  b = 1
)
}
\arguments{
\item{pi}{Prior inclusion probability. Default \code{0.5}.}

\item{slab}{A \code{\link[=prior_normal]{prior_normal()}} object for the slab component.}

\item{learn_pi}{Logical; if \code{TRUE}, place a \code{Beta(a, b)} hyperprior on pi.}

\item{a}{Shape parameter for the Beta hyperprior. Default \code{1}.}

\item{b}{Shape parameter for the Beta hyperprior. Default \code{1}.}
}
\value{
A \code{smoothbp_spike_slab} object.
}
\description{
Used with \code{\link[=smoothbp_ss]{smoothbp_ss()}} to place a point-mass spike at zero on selected
coefficients.
}
