parcorMany: Report many generalized partial correlation coefficients... In generalCorr: Generalized Correlations, Causal Paths and Portfolio Selection

Description

This function calls parcor_ijk function which uses original data to compute generalized partial correlations between X_{idep} and X_j where j can be any one of the remaining variables in the input matrix mtx. Partial correlations remove the effect of variables x_k other than X_i and X_j. Calculation further allows for the presence of control variable(s) (if any) to remain always outside the input matrix and whose effect is also removed in computing partial correlations.

Usage

 1 parcorMany(mtx, ctrl = 0, dig = 4, idep = 1, verbo = FALSE)

Arguments

 mtx Input data matrix with at least 3 columns. ctrl Input vector or matrix of data for control variable(s), default is ctrl=0 when control variables are absent dig The number of digits for reporting (=4, default) idep The column number of the first variable (=1, default) verbo Make this TRUE for detailed printing of computational steps

Value

A five column ‘out’ matrix containing partials. The first column has the name of the idep variable. The second column has the name of the j variable, while the third column has partial correlation coefficients r*(i,j | k). The last column reports the absolute difference between two partial correlations.

Note

This function reports all partial correlation coefficients, while avoiding ridge type adjustment.

Author(s)

Prof. H. D. Vinod, Economics Dept., Fordham University, NY.

References

Vinod, H. D. 'Generalized Correlations and Instantaneous Causality for Data Pairs Benchmark,' (March 8, 2015) https://www.ssrn.com/abstract=2574891

Vinod, H. D. 'Matrix Algebra Topics in Statistics and Economics Using R', Chapter 4 in Handbook of Statistics: Computational Statistics with R, Vol.32, co-editors: M. B. Rao and C.R. Rao. New York: North Holland, Elsevier Science Publishers, 2014, pp. 143-176.