Thin extender over ppcor::pcor (matrix-wise) or
ppcor::pcor.test (when y and z are
supplied) for partial correlations controlling for one or more
variables.
Arguments
- x
Numeric vector, matrix, or data frame. When
yandzareNULL, the full pairwise partial correlation matrix is returned viappcor::pcor.- y
Optional second numeric vector.
- z
Optional numeric vector / matrix of control variables.
- method
Correlation method (
"pearson","spearman", or"kendall"), forwarded to ppcor.- ...
Further arguments forwarded to the upstream function.