smoothbp: Hierarchical Piecewise Regression with Smoothed Change-Points

Fits Bayesian hierarchical piecewise regression models with multiple logistic-smoothed change-points. Non-linear parameters (change-point locations and transition sharpness) and linear parameters can each be conditioned on covariates and factors via flexible design matrices. A random-intercept structure is supported for any parameter. Spike-and-slab regularization is supported for selecting the number of breakpoints. Posterior inference uses a Metropolis-within-Gibbs sampler implemented in 'Rust' for speed. Methods are based on the smooth transition piecewise regression model of Bacon and Watts (1971) <doi:10.2307/2334389> and variable selection spike-and-slab priors of Kuo and Mallick (1998) <https://www.jstor.org/stable/25053023>.

Package details

AuthorAidan D Bindoff [aut, cre] (ORCID: <https://orcid.org/0000-0002-0943-2702>)
MaintainerAidan D Bindoff <aidan.bindoff@utas.edu.au>
LicenseMIT + file LICENSE
Version0.2.4
URL https://github.com/ABindoff/smoothbp
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("smoothbp")

Try the smoothbp package in your browser

Any scripts or data that you put into this service are public.

smoothbp documentation built on June 14, 2026, 9:06 a.m.