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)
Fits smoothed hierarchical piecewise regression with multiple change-points using an optimised Metropolis-within-Gibbs sampler implemented in Rust.
smoothbp_ss().omega), slope changes (delta), and transition sharpness (rho) can all be conditioned on covariates.# Requires Rtools45 on Windows for Rust compilation
pak::pkg_install("ABindoff/smoothbp")