parcorBijk | R Documentation |
This function uses data on two column vectors, xi, xj and a third xk which can be a vector or a matrix, usually of the remaining variables in the model, including control variables, if any. It first removes missing data from all input variables. Then, it computes residuals of kernel regression (xi on xk) and (xj on xk). This is a block version of parcor_ijk.
parcorBijk(xi, xj, xk, blksiz = 10)
xi |
Input vector of data for variable xi |
xj |
Input vector of data for variable xj |
xk |
Input data for variables in xk, usually control variables |
blksiz |
block size, default=10, if chosen blksiz >n, where n=rows in matrix then blksiz=n. That is, no blocking is done |
ouij |
Generalized partial correlation Xi with Xj (=cause) after removing xk |
ouji |
Generalized partial correlation Xj with Xi (=cause) after removing xk |
allowing for control variables.
This function calls kern
,
Prof. H. D. Vinod, Economics Dept., Fordham University, NY.
See parcor_ijk
.
## Not run:
set.seed(34);x=matrix(sample(1:600)[1:99],ncol=3)
options(np.messages=FALSE)
parcorBijk(x[,1], x[,2], x[,3], blksi=10)
## End(Not run)#'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.