Skip to content

generalCorr

1.2.6Package record

Generalized Correlations, Causal Paths and Portfolio Selection

1packages depend
4.4Kdownloads / year
–test coverage
0/13flavors OK

Overview

About

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}.

Changes in 1.2.6
  • improved descriptions of various functions.

From NEWS in the release

Install

Health

CRAN checks
13NOTE
Check messages
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.

CRAN check page ↗

Slowest check: 4.8 min · r-oldrel-windows-x86_64
Status changes
  • NOTE13 NOTE2026-06-09
  • ERROR12 NOTE, 1 ERROR2026-06-08
  • NOTE14 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.2.6
READMENoVignettesYes · 8 · staticNEWSYes · 67% structured · mentions 1.2.6Citation fileNoWebsitenot declared in DESCRIPTION
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

4.4K
CRAN downloads in the past year
Rank #6,418 · ~12/day · ~365/mo
Daily download trend is not available in this view yet.
60130 days
1.3K90 days
4.4K1 year
Compare downloads with other packages →
Also on103 r2u4 autocran105 c2d4u

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

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.

Depends (6)
R >= 3.0.0npxtablemebootpsychlattice
Imports (0)
none
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Depends 1
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (from the free-text Author field) (3)

Maintainer since 1.0.0 (2016)

Releases (26)

Pick two releases to compare their code metrics.

  • 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
  • 1.2.6Latest
    record
    2023-10-09 · current release · diff ↗
  • 1.2.5
    record
    2023-10-08 · diff ↗ ·
    added 1 export
    causeSummary2NoP
  • 1.2.4
    record
    2023-08-16 · diff ↗ ·
    added 2 exports
    outOFsell, rank2sell
  • 1.2.3
    record
    2023-05-01 · diff ↗ ·
    added 1 export
    causeSum2Panel
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2.2
    record
    2022-01-03 · diff ↗ ·
    added 9 exports
    bootPair2, bootSummary2, causeSum2Blk, causeSummary2, compPortfo, outOFsamp, rank2return, siPair2Blk, silentPair2
  • 1.2.1
    record
    2021-12-08 · diff ↗ ·
    added 3 exports
    naTriple, parcorHijk2, parcorVecH2
  • 1.2.0
    record
    2021-11-10 · diff ↗ ·
    added 7 exports
    bootDom12, decileVote, dif4, dif4mtx, exactSdMtx, momentVote, summaryRank
  • 1.1.9
    record
    2021-10-18 · diff ↗ ·
    added 7 exports
    causeAllPair, causeSumNoP, parcorHijk, parcorVec, parcorVecH, sudoCoefParcor, sudoCoefParcorH
  • R
    R 4.1.0 released · 2021-05-18
  • 1.1.8
    record
    2020-12-02 · diff ↗
  • 1.1.7
    record
    2020-11-29 · diff ↗
Show 22 earlier eventsHide 22 earlier events
  • 1.1.6
    record
    2020-11-21 · diff ↗ ·
    added 10 exports
    GcRsqX12, GcRsqX12c, GcRsqYX, GcRsqYXc, bootGcLC, bootGcRsq, canonRho, kern2, kern2ctrl, symmze
  • R
    R 4.0.0 released · 2020-04-24
  • 1.1.5
    record
    2019-10-30 · diff ↗ ·
    added 8 exports
    absBstdres, absBstdresC, absBstdrhserC, causeSummBlk, depMeas, parcorBMany, parcorBijk, siPairsBlk
  • 1.1.3
    record
    2019-10-07 · diff ↗ ·
    added 4 exports
    NLhat, getSeq, gmcmtxBlk, pillar3D
  • R
    R 3.6.0 released · 2019-04-26
  • 1.1.2
    record
    2018-07-12 · diff ↗ ·
    added 5 exports
    bootSignPcent, parcorMtx, parcorSilent, parcor_ijkOLD, parcor_ridg
  • R
    R 3.5.0 released · 2018-04-23
  • 1.1.1
    record
    2018-01-24 · diff ↗ ·
    added 5 exports
    bootPairs0, bootQuantile, bootSign, bootSummary, probSign
  • 1.1.0
    record
    2018-01-05 · diff ↗ ·
    added 8 exports
    abs_stdrhserC, abs_stdrhserr, causeSummary0, silentMtx0, silentPairs0, someCPairs2, somePairs2, stdres
  • 1.0.9
    record
    2017-10-04 · diff ↗ ·
    added 2 exports
    parcorMany, parcor_linear
  • 1.0.8
    record
    2017-09-11 · diff ↗ ·
    removed 2 exports
    parcorSilent, parcor_ridg
  • 1.0.7
    record
    2017-09-02 · diff ↗
  • 1.0.6
    record
    2017-07-22 · diff ↗
  • 1.0.5
    record
    2017-06-16 · diff ↗ ·
    added 1 export
    silentMtx
  • 1.0.4
    record
    2017-06-08 · diff ↗ ·
    added 1 export
    causeSummary
  • R
    R 3.4.0 released · 2017-04-21
  • 1.0.3
    record
    2016-06-28 · diff ↗ ·
    added 3 exports
    bootPairs, parcorSilent, silentPairs
  • 1.0.2
    record
    2016-06-04 · diff ↗ ·
    added 8 exports
    abs_stdapdC, abs_stdresC, kern_ctrl, mag, mag_ctrl, naTriplet, someCPairs, someMagPairs
  • 1.0.1
    record
    2016-05-21 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 1.0.0
    record
    2016-05-02
  • R
    R 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
Appears in task views

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for generalCorr version 1.2.6 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy