brokenstick: Broken Stick Model for Irregular Longitudinal Data

The broken stick model describes a set of individual curves by a linear mixed model using a second-order linear B-spline. The main use of the model is to align irregularly observed data to a user-specified grid of break ages. All fitting can done in the Z-score scale, so non-linearity and irregular data can be treated as separate problems. This package contains functions for fitting a broken stick model to data, for predicting broken stick curves in new data, and for plotting the broken stick estimates. For additional documentation on background, methodology and applications see <>.

Version: 2.0.0
Depends: R (≥ 3.5.0)
Imports: coda, dplyr, lme4, matrixsampling, methods, rlang, splines, stats, tidyr
Suggests: AGD, ggplot2, grDevices, gridExtra, knitr, lattice, MASS, Matrix, mice, mvtnorm, plyr, svglite, testthat, rmarkdown
Published: 2021-11-11
Author: Stef van Buuren [aut, cre]
Maintainer: Stef van Buuren <stef.vanbuuren at>
License: MIT + file LICENSE
NeedsCompilation: no
Citation: brokenstick citation info
Materials: README NEWS
CRAN checks: brokenstick results


Reference manual: brokenstick.pdf
Vignettes: Broken Stick Model for Irregular Longitudinal Data
Getting started
Overview of main functions
Help for old friends
Check perfect model


Package source: brokenstick_2.0.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): brokenstick_2.0.0.tgz, r-release (x86_64): brokenstick_2.0.0.tgz, r-oldrel: brokenstick_2.0.0.tgz
Old sources: brokenstick archive


Please use the canonical form to link to this page.