This function uses the rcorr
function in the Hmisc package
to compute matrices of Pearson or Spearman correlations along with
the pairwise pvalues among the correlations. The pvalues are corrected
for multiple inference using Holm's method (see p.adjust
).
Observations are filtered for missing data, and only complete observations are used.
The partial.cor
function may similarly be used to get pvalues and
adjusted pvalues for partial correlations.
1 2 3 4 5 
x 
a numeric matrix or data frame, or an object of class 
type 

use 
how to handle missing data: 
... 
not used. 
Returns an object of class "rcorr.adjust"
, which is normally just printed.
John Fox, adapting code from Robert A. Muenchen.
1 2 3 4 5 6  ## Not run:
require(car)
rcorr.adjust(Mroz[,c("k5", "k618", "age", "lwg", "inc")])
rcorr.adjust(Mroz[,c("k5", "k618", "age", "lwg", "inc")], type="spearman")
## End(Not run)

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.