Generalized 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}.
- improved descriptions of various functions.
From NEWS in the release
Install
Health
NOTERd filesr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
checkRd: (-1) EuroCrime.Rd:18: Lost braces; missing escapes or markup?
18 | \item\code{Country} {Name of the European country}
| ^
checkRd: (-1) EuroCrime.Rd:19: Lost braces; missing escapes or markup?
19 | \item\code{crim} {Per capita crime rate}
| ^
checkRd: (-1) EuroCrime.Rd:20: Lost braces; missing escapes or markup?
20 | \item\code{off} {Per capita deployment of police officers}
| ^
checkRd: (-1) bootGcLC.Rd:26: Lost braces; missing escapes or markup?
26 | out {is n999 X 3 matrix for 3 outputs of GcauseX12 resampled}
| ^
checkRd: (-1) bootGcRsq.Rd:26: Lost braces; missing escapes or markup?
26 | out {is n999 X 3 matrix for 3 outputs of GcauseX12 resampled}
| ^
checkRd: (-1) bootPairs.Rd:18-22: Lost braces
18 | out {When \code{mtx} has p columns, \code{out}
| ^
checkRd: (-1) bootPairs0.Rd:18-22: Lost braces
18 | out {When \code{mtx} has p columns,
...[truncated]...
by p-1) matrix
| ^
checkRd: (-1) bootSummary2.Rd:16-21: Lost braces
16 | summ {a summary matrix (n999 by p-1) having usual parameters
| ^
checkRd: (-1) causeSum2Panel.Rd:94: Lost braces
94 | fminmax=function(x){min(x)==max(x)}.
| ^
checkRd: (-1) causeSum2Panel.Rd:106: Lost braces
106 | We identify degeneracy using "fminmax=function(x){min(x)==max(x)}"
| ^
checkRd: (-1) probSign.Rd:17-25: Lost braces
17 | sgn {When \code{mtx} has p columns, \code{sgn}
| ^
checkRd: (-1) somePairs.Rd:39: Lost braces; missing escapes or markup?
39 | {(typ=2)}
| ^
checkRd: (-1) somePairs.Rd:44: Lost braces; missing escapes or markup?
44 | {(typ=3)}
| ^
checkRd: (-1) somePairs2.Rd:43: Lost braces; missing escapes or markup?
43 | {(typ=2)}
| ^
checkRd: (-1) somePairs2.Rd:48: Lost braces; missing escapes or markup?
48 | {(typ=3)}
| ^NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘H. D. Vinod <vinod@fordham.edu>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = c("Prof.", "H.", "D."),
family = "Vinod",
role = "aut"),
person(given = "Fordham",
family = "University",
role = "aut"),
person(family = "NY.",
role = "aut"),
person(given = c("H.", "D."),
family = "Vinod",
role = "cre",
email = "vinod@fordham.edu"))
as necessary.- NOTE13 NOTE2026-06-09
- ERROR12 NOTE, 1 ERROR2026-06-08
- NOTE14 NOTE2026-03-10
Documentation
- Help pages
- 151includes a package overview page
- Examples that run
- 40%42 run in a plain check · 63 never run
- Exported functions with examples
- 95%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 50%
Downloads
Dependencies
Installing generalCorr adds 80 packages (47 with compiled code, 71 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, doBy 4.3 MB.
Code & Tests
Datasets
People & History
Maintainer since 1.0.0 (2016)
Pick two releases to compare their code metrics.
- 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.5
- 1.2.4
- 1.2.3
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.2.22022-01-03 · diff ↗ ·
added 9 exports
bootPair2, bootSummary2, causeSum2Blk, causeSummary2, compPortfo, outOFsamp, rank2return, siPair2Blk, silentPair2 - 1.2.1
- 1.2.02021-11-10 · diff ↗ ·
added 7 exports
bootDom12, decileVote, dif4, dif4mtx, exactSdMtx, momentVote, summaryRank - 1.1.92021-10-18 · diff ↗ ·
added 7 exports
causeAllPair, causeSumNoP, parcorHijk, parcorVec, parcorVecH, sudoCoefParcor, sudoCoefParcorH - RR 4.1.0 released · 2021-05-18
- 1.1.82020-12-02 · diff ↗
- 1.1.72020-11-29 · diff ↗
Show 22 earlier eventsHide 22 earlier events
- 1.1.62020-11-21 · diff ↗ ·
added 10 exports
GcRsqX12, GcRsqX12c, GcRsqYX, GcRsqYXc, bootGcLC, bootGcRsq, canonRho, kern2, kern2ctrl, symmze - RR 4.0.0 released · 2020-04-24
- 1.1.52019-10-30 · diff ↗ ·
added 8 exports
absBstdres, absBstdresC, absBstdrhserC, causeSummBlk, depMeas, parcorBMany, parcorBijk, siPairsBlk - 1.1.3
- RR 3.6.0 released · 2019-04-26
- 1.1.22018-07-12 · diff ↗ ·
added 5 exports
bootSignPcent, parcorMtx, parcorSilent, parcor_ijkOLD, parcor_ridg - RR 3.5.0 released · 2018-04-23
- 1.1.1
- 1.1.02018-01-05 · diff ↗ ·
added 8 exports
abs_stdrhserC, abs_stdrhserr, causeSummary0, silentMtx0, silentPairs0, someCPairs2, somePairs2, stdres - 1.0.9
- 1.0.8
- 1.0.72017-09-02 · diff ↗
- 1.0.62017-07-22 · diff ↗
- 1.0.5
- 1.0.4
- RR 3.4.0 released · 2017-04-21
- 1.0.3
- 1.0.22016-06-04 · diff ↗ ·
added 8 exports
abs_stdapdC, abs_stdresC, kern_ctrl, mag, mag_ctrl, naTriplet, someCPairs, someMagPairs - 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
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-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.