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

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, ) 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, ), and interval estimation for the breakpoint is discussed in Muggeo (2017, ). Segmented mixed models, i.e. random effects in the change point, are discussed in Muggeo (2014, ). Estimation of piecewise-constant relationships and changepoints (mean-shift models) is discussed in Fasola et al. (2018, ).


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("segmented")

2.2-2 by Vito M. R. Muggeo, a month ago


Browse source code at https://github.com/cran/segmented


Authors: Vito M. R. Muggeo [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL license


Depends on MASS, nlme


Imported by AQEval, LadderFuelsR, PCRedux, PUPAK, PWEXP, PwePred, RAS, RHRV, ReliaGrowR, SWTools, StructuralDecompose, bioregion, ddiv, lactater, mixtools, netSEM, ppweibull, rcssci, respR, respirometry, seqinr, spatialwarnings, tidychangepoint, weibulltools.

Suggested by REddyProc, RougeLM, ggchangepoint, ggpmisc, nlraa.


See at CRAN