Package: generalCorr 1.2.6
generalCorr: Generalized Correlations, Causal Paths and Portfolio Selection
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}.
Authors:
generalCorr_1.2.6.tar.gz
generalCorr_1.2.6.zip(r-4.7)generalCorr_1.2.6.zip(r-4.6)generalCorr_1.2.6.zip(r-4.5)
generalCorr_1.2.6.tgz(r-4.6-any)generalCorr_1.2.6.tgz(r-4.5-any)
generalCorr_1.2.6.tar.gz(r-4.7-any)generalCorr_1.2.6.tar.gz(r-4.6-any)
generalCorr_1.2.6.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
generalCorr/json (API)
| # Install 'generalCorr' in R: |
| install.packages('generalCorr', repos = c('https://hdvinod.r-universe.dev', 'https://cloud.r-project.org')) |
- badCol - Internal badCol
- da - Internal da
- da2Lag - Internal da2Lag
- diff.e0 - Internal diff.e0
- dig - Internal dig
- e0 - Internal e0
- EuroCrime - European Crime Data
- gmc0 - Internal gmc0
- gmc1 - Internal gmc1
- goodCol - Internal goodCol
- i - Internal i
- j - Internal j
- min.e0 - Internal min.e0
- mtx - Internal mtx
- mtx0 - Internal mtx0
- mtx2 - Internal mtx2
- n - Internal n
- nall - Internal nall
- nam.badCol - Internal nam.badCol
- nam.goodCol - Internal nam.goodCol
- nam.mtx0 - Internal nam.mtx0
- out1 - Internal out1
- p1 - Internal p1
- rhs.lag2 - Internal rhs.lag2
- rhs1 - Internal rhs1
- ridgek - Internal ridgek
- rij - Internal rij
- rijMrji - Internal rijMrji
- rji - Internal rji
- rrij - Internal rrij
- rrji - Internal rrji
- sales2Lag - Internal sales2Lag
- salesLag - Internal salesLag
- seed - Internal seed
- sgn.e0 - Internal sgn.e0
- sort.abse0 - Internal sort.abse0
- sort.e0 - Internal sort.e0
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:c9fa07dcd3. Checks:7 NOTE, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | NOTE | 220 | ||
| source / vignettes | OK | 202 | ||
| linux-release-x86_64 | NOTE | 198 | ||
| macos-release-arm64 | NOTE | 214 | ||
| macos-oldrel-arm64 | NOTE | 254 | ||
| windows-devel | NOTE | 159 | ||
| windows-release | NOTE | 142 | ||
| windows-oldrel | NOTE | 159 | ||
| wasm-release | OK | 160 |
Exports:abs_resabs_stdapdabs_stdapdCabs_stdresabs_stdresCabs_stdrhserCabs_stdrhserrabsBstdresabsBstdresCabsBstdrhserCallPairsbigfpbootDom12bootGcLCbootGcRsqbootPair2bootPairsbootPairs0bootQuantilebootSignbootSignPcentbootSummarybootSummary2canonRhocauseAllPaircauseSum2BlkcauseSum2PanelcauseSummarycauseSummary0causeSummary2causeSummary2NoPcauseSummBlkcauseSumNoPcofactorcomp_portfo2compPortfodecileVotedepMeasdif4dif4mtxexactSdMtxGcRsqX12GcRsqX12cGcRsqYXGcRsqYXcget0outliersgetSeqgmcmtx0gmcmtxBlkgmcmtxZgmcxy_npheuristkernkern_ctrlkern2kern2ctrlmagmag_ctrlminormomentVotenapairnaTriplenaTripletNLhatoutOFsampoutOFsellPanel2LagPanelLagparcor_ijkparcor_ijkOLDparcor_linearparcor_ridgparcorBijkparcorBManyparcorHijkparcorHijk2parcorManyparcorMtxparcorSilentparcorVecparcorVecHparcorVecH2pcausepillar3Dprelec2probSignrank2returnrank2sellrstarsilentMtxsilentMtx0silentPair2silentPairssilentPairs0siPair2BlksiPairsBlksome0PairssomeCPairssomeCPairs2someMagPairssomePairssomePairs2sort_matrixstdresstdz_xystochdom2sudoCoefParcorsudoCoefParcorHsummaryRanksymmzewtdpapb
Dependencies:abindashbackportsbootbroomcarcarDataclicolorspacecowplotcpp11crscubatureDerivdoBydplyrdynlmfarverFNNforecastFormulafracdiffgenericsggplot2glueGPArotationgtablehdrcdeisobandkernlabKernSmoothkslabelinglatticelifecyclelme4lmtestlocfitmagrittrMASSMatrixMatrixModelsmclustmebootmgcvminqamnormtmodelrmulticoolmvtnormnlmenloptrnnetnpnumDerivpbkrtestpillarpkgconfigpracmapsychpurrrquadprogquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangS7scalesSparseMstringistringrsurvivaltibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrxtablezoo
Last update: 2023-10-08
Started: 2023-10-08
Last update: 2023-08-16
Started: 2023-08-16
Last update: 2021-11-10
Started: 2021-11-10
Last update: 2020-11-29
Started: 2020-11-29
Last update: 2019-10-30
Started: 2019-10-30
Last update: 2017-09-02
Started: 2017-09-02
Last update: 2017-06-16
Started: 2016-05-21
Last update: 2017-06-16
Started: 2017-06-16
