brokenstick: Broken Stick Model for Irregular Longitudinal Data

Data on multiple individuals through time are often sampled at times that differ between persons. Irregular observation times can severely complicate the statistical analysis of the data. The broken stick model approximates each subject’s trajectory by one or more connected line segments. The times at which segments connect (breakpoints) are identical for all subjects and under control of the user. A well-fitting broken stick model effectively transforms individual measurements made at irregular times into regular trajectories with common observation times. Specification of the model requires three variables: time, measurement and subject. The model is a special case of the linear mixed model, with time as a linear B-spline and subject as the grouping factor. The main assumptions are: subjects are exchangeable, trajectories between consecutive breakpoints are straight, random effects follow a multivariate normal distribution, and unobserved data are missing at random. The package contains functions for fitting the broken stick model to data, for predicting curves in new data and for plotting broken stick estimates. The package supports two optimization methods, and includes options to structure the variance-covariance matrix of the random effects. The analyst may use the software to smooth growth curves by a series of connected straight lines, to align irregularly observed curves to a common time grid, to create synthetic curves at a user-specified set of breakpoints, to estimate the time-to-time correlation matrix and to predict future observations. See <doi:10.18637/jss.v106.i07> for additional documentation on background, methodology and applications.

Version: 2.5.0
Depends: R (≥ 3.5.0)
Imports: coda, dplyr, lme4, matrixsampling, methods, rlang, splines, stats, tidyr
Suggests: AGD, bookdown, ggplot2, grDevices, gridExtra, knitr, lattice, MASS, Matrix, mice, mvtnorm, plyr, svglite, testthat, rmarkdown
Published: 2023-03-22
Author: Stef van Buuren [aut, cre]
Maintainer: Stef van Buuren <stef.vanbuuren at tno.nl>
BugReports: https://github.com/growthcharts/brokenstick/issues
License: MIT + file LICENSE
URL: doi:10.18637/jss.v106.i07, https://growthcharts.org/brokenstick/
NeedsCompilation: no
Citation: brokenstick citation info
Materials: README NEWS
In views: MissingData
CRAN checks: brokenstick results

Documentation:

Reference manual: brokenstick.pdf
Vignettes: Getting started
Overview of main functions
Help for old friends
Check perfect model

Downloads:

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

Linking:

Please use the canonical form https://CRAN.R-project.org/package=brokenstick to link to this page.