User manual for the segmented R package (version 2.1-3), which fits regression models with breakpoints or change-points, including segmented and stepmented…
This manual documents the segmented R package, version 2.1-3, maintained by Vito M. R. Muggeo and distributed through CRAN. It describes fitting regression models with one or more segmented (broken-line or piece-wise linear) or stepmented (piece-wise constant) effects, including models with random changepoints.
The package provides functions for estimating slopes and breakpoints, hypothesis testing, confidence intervals, prediction, plotting, and summary methods. It supports linear and generalized linear models and allows multiple breakpoints for the same variable.
| Package version | 2.1-3 |
|---|---|
| R dependency | R (>= 3.5.0) |
| License | GPL |
| Multiple breakpoints allowed | yes |
It fits regression models with one or more segmented or stepmented relationships in the linear predictor.
Yes, multiple breakpoints for the same variable are allowed.
Yes, random effects changepoints are allowed since version 1.6-0.