segmented 2.1-3 R Package User Manual

User manual for the segmented R package (version 2.1-3), which fits regression models with breakpoints or change-points, including segmented and stepmented…


segmented 2.1-3 R Package User Manual - cover page
Category
Other software
Document type
User Manual
Language
English
Pages
87
File format
PDF
File size
361 KB
Published
16 November, 2026
Updated
16 November, 2026
MD5 checksum
5E473231130ECBEBDC92009D081422C1

About this manual

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.

What's inside

  • segmented-package
  • aapc
  • broken.line
  • confint.segmented
  • davies.test
  • plot.segmented
  • predict.segmented
  • stepmented

Specifications

Package version2.1-3
R dependencyR (>= 3.5.0)
LicenseGPL
Multiple breakpoints allowedyes

Frequently asked questions

What relationships does the package fit?

It fits regression models with one or more segmented or stepmented relationships in the linear predictor.

Are multiple breakpoints allowed for one variable?

Yes, multiple breakpoints for the same variable are allowed.

Does the package support random changepoints?

Yes, random effects changepoints are allowed since version 1.6-0.

Download PDF (361 KB)

Also Manuals