Learn R Programming

⚠️There's a newer version (2.1-2) of this package.Take me there.

segmented (version 2.1-1)

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

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, ) and illustrated in Muggeo (2008, ). 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, ).

Copy Link

Version

Install

install.packages('segmented')

Monthly Downloads

35,349

Version

2.1-1

License

GPL

Maintainer

Last Published

July 26th, 2024

Functions in segmented (2.1-1)

model.matrix.segmented

Design matrix for segmented fits
plot.segmented.lme

Plot method for segmented mixed objects
model.matrix.stepmented

Design matrix for stepmented fits
plant

Plan organ dataset
lines.stepmented

Bars for interval estimate of the breakpoints
plot.stepmented

Plot method for stepmented objects
lines.segmented

Bars for interval estimate of the breakpoints
plot.segmented

Plot method for segmented objects
intercept

Intercept estimates from segmented relationships
seg

Specifying a segmented/stepmented term in the segreg/stepreg formula
points.segmented

Points method for segmented objects
pwr.seg

Power Analysis in segmented regression
print.segmented

Print method for the segmented class
seg.control

Auxiliary for controlling segmented/stepmented model fitting
seg.lm.fit

Fitter Functions for Segmented Linear Models
pscore.test

Testing for existence of one breakpoint
print.segmented.lme

Print method for the segmented.lme class
predict.segmented

Predict method for segmented model fits
predict.stepmented

Predict method for stepmented model fits
segmented-package

Segmented Relationships in Regression Models with Breakpoints / Changepoints Estimation (with Possibly Random Effects)
selgmented

Selecting the number of breakpoints in segmented regression
summary.segmented.lme

Summarizing model fits for segmented mixed-effects regression
segreg

Fitting segmented/stepmented regression
segmented.lme

Segmented relationships in linear mixed models
stagnant

Stagnant band height data
summary.segmented

Summarizing model fits for segmented regression
segmented

Segmented relationships in regression models
step.lm.fit

Fitter Functions for stepmented Linear Models
slope

Slope estimates from segmented/stepmented relationships
stepmented

stepmented relationships in regression models
summary.stepmented

Summarizing model fits for stepmented regression
vcov.segmented

Variance-Covariance Matrix for a Fitted Segmented Model
vcov.segmented.lme

Variance-Covariance Matrix for a Fitted Segmented Mixed Model
vcov.stepmented

Variance-Covariance Matrix for a Fitted Stepmented Model
davies.test

Testing for a change in the slope
confint.segmented.lme

Confidence intervals in segmented mixed models
fitted.segmented.lme

Fitted values for segmented mixed fits
down

Down syndrome in babies
globTempAnom

Global temperature anomalies 1850-2023
aapc

Average annual per cent change in segmented trend analysis
draw.history

History for the breakpoint estimates
confint.segmented

Confidence intervals for breakpoints
broken.line

Fitted values for segmented relationships
confint.stepmented

Confidence intervals for jumpoints in stepmented regression