Skip to content

segmented

Regression Models with Break-Points / Change-Points Estimation (with Possibly Random Effects)

v2.2-1 · Jan 29, 2026 · GPL

Description

Fitting regression models where, in addition to possible linear terms, one or more covariates have segmented (i.e., broken-line or piece-wise linear) or stepmented (i.e. piece-wise constant) effects. Multiple breakpoints for the same variable are allowed. The estimation method is discussed in Muggeo (2003, <doi:10.1002/sim.1545>) and illustrated in Muggeo (2008, <https://www.r-project.org/doc/Rnews/Rnews_2008-1.pdf>). An approach for hypothesis testing is presented in Muggeo (2016, <doi:10.1080/00949655.2016.1149855>), and interval estimation for the breakpoint is discussed in Muggeo (2017, <doi:10.1111/anzs.12200>). Segmented mixed models, i.e. random effects in the change point, are discussed in Muggeo (2014, <doi:10.1177/1471082X13504721>). Estimation of piecewise-constant relationships and changepoints (mean-shift models) is discussed in Fasola et al. (2018, <doi:10.1007/s00180-017-0740-4>).

Downloads

42.8K

Last 30 days

560th

147.3K

Last 90 days

449.3K

Last year

Trend: -14.1% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (26)

Dependency Network

Dependencies Reverse dependencies MASS nlme AQEval LadderFuelsR PCRedux PUPAK PWEXP PwePred RHRV ReliaGrowR SWTools StructuralDecompose bioregion ddiv lactater mixtools netSEM +11 more reverse deps segmented

Version History

new 2.2-1 Mar 10, 2026
updated 2.2-1 ← 2.2-0 diff Jan 28, 2026
updated 2.2-0 ← 2.1-4 diff Jan 14, 2026
updated 2.1-4 ← 2.1-3 diff Feb 27, 2025
updated 2.1-3 ← 2.1-2 diff Oct 24, 2024
updated 2.1-2 ← 2.1-1 diff Sep 4, 2024
updated 2.1-1 ← 2.1-0 diff Jul 25, 2024
updated 2.1-0 ← 2.0-4 diff May 13, 2024
updated 2.0-4 ← 2.0-3 diff Apr 18, 2024
updated 2.0-3 ← 2.0-2 diff Feb 15, 2024
updated 2.0-2 ← 2.0-1 diff Jan 22, 2024
updated 2.0-1 ← 2.0-0 diff Dec 18, 2023
updated 2.0-0 ← 1.6-4 diff Nov 26, 2023
updated 1.6-4 ← 1.6-3 diff Apr 12, 2023
updated 1.6-3 ← 1.6-2 diff Mar 26, 2023
updated 1.6-2 ← 1.6-1 diff Dec 8, 2022
updated 1.6-1 ← 1.6-0 diff Nov 7, 2022
updated 1.6-0 ← 1.5-0 diff May 30, 2022
updated 1.5-0 ← 1.4-1 diff Apr 11, 2022
updated 1.4-1 ← 1.4-0 diff Mar 23, 2022