Skip to content

cointReg

0.2.0

Parameter Estimation and Inference in a Cointegrating Regression

2packages depend
8.4Kdownloads / year
test coverage
11/13checks pass

Overview

About
Maintained by Philipp AscherslebenFirst published 2016-06-062 releasesCRAN page ↗GitHub ↗

Cointegration methods are widely used in empirical macroeconomics and empirical finance. It is well known that in a cointegrating regression the ordinary least squares (OLS) estimator of the parameters is super-consistent, i.e. converges at rate equal to the sample size T. When the regressors are endogenous, the limiting distribution of the OLS estimator is contaminated by so-called second order bias terms, see e.g. Phillips and Hansen (1990) DOI:10.2307/2297545. The presence of these bias terms renders inference difficult. Consequently, several modifications to OLS that lead to zero mean Gaussian mixture limiting distributions have been proposed, which in turn make standard asymptotic inference feasible. These methods include the fully modified OLS (FM-OLS) approach of Phillips and Hansen (1990) DOI:10.2307/2297545, the dynamic OLS (D-OLS) approach of Phillips and Loretan (1991) DOI:10.2307/2298004, Saikkonen (1991) DOI:10.1017/S0266466600004217 and Stock and Watson (1993) DOI:10.2307/2951763 and the new estimation approach called integrated modified OLS (IM-OLS) of Vogelsang and Wagner (2014) DOI:10.1016/j.jeconom.2013.10.015. The latter is based on an augmented partial sum (integration) transformation of the regression model. IM-OLS is similar in spirit to the FM- and D-OLS approaches, with the key difference that it does not require estimation of long run variance matrices and avoids the need to choose tuning parameters (kernels, bandwidths, lags). However, inference does require that a long run variance be scaled out. This package provides functions for the parameter estimation and inference with all three modified OLS approaches. That includes the automatic bandwidth selection approaches of Andrews (1991) DOI:10.2307/2938229 and of Newey and West (1994) DOI:10.2307/2297912 as well as the calculation of the long run variance.

Install

Health

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 1.1 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
3
Dependencies · direct
Check history
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 516 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
89%
Return-value docs
100%
References docs
31%

Downloads

8.4K
CRAN downloads in the past year
Rank #4,701 · ~23/day · ~696/mo
Daily download trend is not available in this view yet.
64030 days
2K90 days
8.4K1 year
Compare downloads with other packages →
Also on132 r2u27 autocran74 c2d4u

Repository

Repository
6Stars
2Forks
1Open issues
0Open PRs
2Releases
28Commits
1Contributors
28 commits · Last activity 2017-01-03 · 0% stars, 30d

Stars over time

2018-04-11 · 52026-07-07 · 6

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/aschersleben/cointreg on 2026-07-19.

Continuous integration (2)
Travis CIAppVeyor
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (3)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect

Code & Tests

Code Composition
R 2,036 (60%)Rd 1,259 (37%)Vignettes 116 (3%)
Code characteristics
Object systems
S32
Cyclomatic complexity
5.0 median / 32 max

Test coverage

Line coverage

Expression

Tests / Examples

Functions

19 11 exported

Complexity

7.1 avg / 32 max

Call network

19 nodes / 32 edges

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 0.2.0Latest
    2016-06-14 · current release · diff ↗
  • 0.1.0
    2016-06-06
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2016-06-06
Total releases
2 / 10 yrs
License
GPL-3 OSI
Download size
73 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views
Report a problem with this page →