% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/smoothbp_ss.R
\name{smoothbp_ss}
\alias{smoothbp_ss}
\title{Fit a smooth change-point model with spike-and-slab variable selection}
\usage{
smoothbp_ss(
  formula,
  b0 = ~1,
  b1 = ~1,
  deltas = list(~1),
  omega = list(~1),
  rho = list(~1),
  data,
  priors = smoothbp_priors(),
  spike = prior_spike_slab(),
  b1_spike = FALSE,
  hierarchical = NULL,
  chains = 4L,
  iter = 2000L,
  warmup = 1000L,
  seed = NULL,
  step_om = 0.3,
  step_rho = 0.3,
  target_accept = 0.9,
  cores = getOption("smoothbp.cores", 1L),
  reparameterise = c("none", "omega"),
  .verbose = TRUE
)
}
\arguments{
\item{formula}{A two-sided formula.}

\item{b0}{One-sided formula for b0.}

\item{b1}{One-sided formula for b1.}

\item{deltas}{List of formulas for slope changes.}

\item{omega}{List of formulas for change-points. Can also contain \code{\link{fixed}()} values.}

\item{rho}{List of formulas for sharpness. Can also contain \code{\link{fixed}()} values.}

\item{data}{A data frame.}

\item{priors}{A \code{\link{smoothbp_priors}} object.}

\item{spike}{A \code{\link[=prior_spike_slab]{prior_spike_slab()}} object.}

\item{b1_spike}{Logical; should b1 coefficients be eligible for spike-and-slab?}

\item{hierarchical}{Character vector specifying which parameters should be hierarchical. Currently only "omega" is supported.}

\item{chains}{Number of chains.}

\item{iter}{Total iterations.}

\item{warmup}{Warmup iterations.}

\item{seed}{Random seed.}

\item{step_om, step_rho, target_accept}{HMC/MH tuning parameters.}

\item{cores}{Number of CPU cores.}

\item{reparameterise}{Character specifying the parameterisation for random change-points:
\code{"none"} (centred) or \code{"omega"} (fully non-centred). Default is \code{"none"}.
Only used if random effects are present.}

\item{.verbose}{Print progress.}
}
\value{
A \code{smoothbp_fit} object.
}
\description{
Fit a smooth change-point model with spike-and-slab variable selection
}
