generalCorr
1.2.6Generalized Correlations, Causal Paths and Portfolio Selection
Overview
Function gmcmtx0() computes a more reliable (general) correlation matrix. Since causal paths from data are important for all sciences, the package provides many sophisticated functions. causeSummBlk() and causeSum2Blk() give easy-to-interpret causal paths. Let Z denote control variables and compare two flipped kernel regressions: X=f(Y, Z)+e1 and Y=g(X, Z)+e2. Our criterion Cr1 says that if |e1*Y|>|e2*X| then variation in X is more "exogenous or independent" than in Y, and the causal path is X to Y. Criterion Cr2 requires |e2|<|e1|. These inequalities between many absolute values are quantified by four orders of stochastic dominance. Our third criterion Cr3, for the causal path X to Y, requires new generalized partial correlations to satisfy |r*(x|y,z)|< |r*(y|x,z)|. The function parcorVec() reports generalized partials between the first variable and all others. The package provides several R functions including get0outliers() for outlier detection, bigfp() for numerical integration by the trapezoidal rule, stochdom2() for stochastic dominance, pillar3D() for 3D charts, canonRho() for generalized canonical correlations, depMeas() measures nonlinear dependence, and causeSummary(mtx) reports summary of causal paths among matrix columns. Portfolio selection: decileVote(), momentVote(), dif4mtx(), exactSdMtx() can rank several stocks. Functions whose names begin with 'boot' provide bootstrap statistical inference, including a new bootGcRsq() test for "Granger-causality" allowing nonlinear relations. A new tool for evaluation of out-of-sample portfolio performance is outOFsamp(). Panel data implementation is now included. See eight vignettes of the package for theory, examples, and usage tips. See Vinod (2019) \doi{10.1080/03610918.2015.1122048}.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE r-devel-linux-x86_64-fedora-clang
- NOTE r-devel-linux-x86_64-fedora-gcc
- NOTE r-devel-windows-x86_64
- NOTE r-oldrel-macos-arm64
- NOTE r-oldrel-macos-x86_64
- NOTE r-oldrel-windows-x86_64
- NOTE r-patched-linux-x86_64
- NOTE r-release-linux-x86_64
- NOTE r-release-macos-arm64
- NOTE r-release-macos-x86_64
- NOTE r-release-windows-x86_64
- NOTE2026-06-090 OK · 13 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-080 OK · 12 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-100 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 52%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 50%
Downloads
Dependencies
Code & Tests
Datasets
People & History
Author records are not tracked yet for this package.
26 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.2.6Latest
- 1.2.52023-10-08 · diff ↗
- 1.2.42023-08-16 · diff ↗
- 1.2.32023-05-01 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.2.22022-01-03 · diff ↗
- 1.2.12021-12-08 · diff ↗
- 1.2.02021-11-10 · diff ↗
- 1.1.92021-10-18 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.1.82020-12-02 · diff ↗
- 1.1.72020-11-29 · diff ↗
Show 22 earlier events
- 1.1.62020-11-21 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.1.52019-10-30 · diff ↗
- 1.1.32019-10-07 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.1.22018-07-12 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.1.12018-01-24 · diff ↗
- 1.1.02018-01-05 · diff ↗
- 1.0.92017-10-04 · diff ↗
- 1.0.82017-09-11 · diff ↗
- 1.0.72017-09-02 · diff ↗
- 1.0.62017-07-22 · diff ↗
- 1.0.52017-06-16 · diff ↗
- 1.0.42017-06-08 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 1.0.32016-06-28 · diff ↗
- 1.0.22016-06-04 · diff ↗
- 1.0.12016-05-21 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 1.0.02016-05-02
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2016-05-02
- Total releases
- 26 / 10 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.0.0
- Bundled data
- 91 KB / 37 files
- Download size
- 2.3 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("generalCorr")Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.