Cointegration Tests with Structural Breaks in Small Samples
Overview
Implements cointegration tests with structural breaks designed for small sample sizes, following the methodology of Trinh (2022) https://ideas.repec.org/p/ema/worpap/2022-01.html. Supports models with no breaks, breaks in constant only, and breaks in both constant and slope. Provides endogenous break date detection using ADF or SSR minimization criteria, with the size-corrected 5% critical values of the response surfaces in Trinh (2022), for up to three regressors.
- Bug fix: the critical values did not come from Trinh (2022). The model "o" table was shifted by one regressor (the m = 1 row held the Dickey-Fuller values of a single series), and the tables for one and two breaks were not the published response surfaces. The 5% critical values are now computed from the response surfaces in Table 13 of Trinh (2022), for m = 1, 2, 3 regressors; they reproduce Table 1 of the paper.
- Bug fix: the p-value was extrapolated from these tables and could exceed 1 (16.29 in one test case). Trinh (2022) publishes the 5% quantile only, so
pvalue,cv01andcv10are nowNA,levelmust be 5, andcointsmall_cv()stops for other levels or more than three regressors. - The author of the methodology is Jerome Trinh; the reference is corrected, and the contributor entry in Authors@R, which named another person and did not correspond to any contributed code, is removed.
- The ADF* statistic and break dates are unchanged; they agree with the Stata command cointsmall (SSC) on the same data.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK5 OK2026-03-20
Documentation
- Help pages
- 4 (1 internal)includes a package overview page
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 100%
Downloads
Repository
Stars over time
Releases over time
Commits over time
Commit identities over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/muhammedalkhalaf/cointsmall on 2026-10-21.
The repository owner accepts GitHub Sponsors
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-09-27Commits: at least 3 crediting it in the message
- Claude Fable 5.12 commits · Sep 2026
- Claude Opus 5.51 commit · Sep 2026
Dependencies
Installing cointsmall adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.0.4Latest
- RR 4.6.0 released · 2026-04-24
- 1.0.22026-03-19
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-03-19
- Total releases
- 2 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 15 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("cointsmall")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/cran.package.cointsmall.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.