Learn R Programming

Testing, Monitoring, and Dating Structural Changes

Overview

The R package strucchange provides a comprehensive toolbox for testing, monitoring, and dating structural changes in linear regression models. Many of the methods have also been generalized to any parametric model estimated by least squares, maximum likelihood, and other M-type estimators. In short, these methods are concerned with answering the following questions.

  • Testing: Are the parameters of a model stable throughout the sample period or is there evidence that they changed over time?
  • Monitoring: If a model with stable parameters could be established, do the parameters remain stable as new observations come in?
  • Dating: If there is evidence for changes in the parameters, when and how did the parameters change?

Various families of tests are implemented, including the generalized fluctuation test framework as well as the $F$ test (or Chow test) framework. This includes methods to fit, plot and test fluctuation processes (e.g., CUSUM, MOSUM, recursive/moving estimates) and $F$ statistics, respectively.

Citations

Zeileis A, Leisch F, Hornik K, Kleiber C (2002). "strucchange: An R Package for Testing for Structural Change in Linear Regression Models." Journal of Statistical Software, 7(2), 1-38. doi:10.18637/jss.v007.i02

Zeileis A, Kleiber C, Krämer W, Hornik K (2003). "Testing and Dating of Structural Changes in Practice." Computational Statistics & Data Analysis, 44(1-2), 109-123. doi:10.1016/S0167-9473(03)00030-6

Zeileis A (2006). "Implementing a Class of Structural Change Tests: An Econometric Computing Approach." Computational Statistics & Data Analysis, 50(11), 2987-3008. doi:10.1016/j.csda.2005.07.001

Installation

The stable version of strucchange is available from CRAN:

install.packages("strucchange")

The latest development version can be installed from R-universe:

install.packages("strucchange", repos = "https://zeileis.R-universe.dev")

License

The package is available under the General Public License version 3 or version 2

Copy Link

Version

Install

install.packages('strucchange')

Monthly Downloads

39,683

Version

1.6-0

License

GPL-2 | GPL-3

Maintainer

Achim Zeileis

Last Published

August 4th, 2026

Functions in strucchange (1.6-0)

breakdates

Breakdates Corresponding to Breakpoints
efp

Empirical Fluctuation Processes
boundary.efp

Boundary for Empirical Fluctuation Processes
boundary

Boundary Function for Structural Change Tests
catL2BB

Generators for efpFunctionals along Categorical Variables
boundary.mefp

Boundary Function for Monitoring of Structural Changes
durab

US Labor Productivity
breakpoints

Dating Breaks
confint.breakpointsfull

Confidence Intervals for Breakpoints
breakfactor

Factor Coding of Segmentations
root.matrix

Root of a Matrix
plot.Fstats

Plot F Statistics
scPublications

Structural Change Publications
gefp

Generalized Empirical M-Fluctuation Processes
logLik.breakpoints

Log Likelihood and Information Criteria for Breakpoints
plot.efp

Plot Empirical Fluctuation Process
recresid

Recursive Residuals
sctest

Structural Change Tests
sctest.Fstats

supF-, aveF- and expF-Test
mefp

Monitoring of Empirical Fluctuation Processes
solveCrossprod

Inversion of X'X
sctest.formula

Structural Change Tests in Linear Regression Models
supLM

Generators for efpFunctionals along Continuous Variables
sctest.default

Structural Change Tests in Parametric Models
sctest.efp

Generalized Fluctuation Tests
strucchange.internal

Internal strucchange objects
plot.mefp

Plot Methods for mefp Objects
efpFunctional

Functionals for Fluctuation Processes
Fstats

F Statistics
boundary.Fstats

Boundary for F Statistics
DJIA

Dow Jones Industrial Average
PhillipsCurve

UK Phillips Curve Equation Data
RealInt

US Ex-post Real Interest Rate
USIncExp

Income and Expenditures in the US
SP2001

S&P 500 Stock Prices
Grossarl

Marriages, Births and Deaths in Grossarl
GermanM1

German M1 Money Demand
BostonHomicide

Youth Homicides in Boston