powered by
For reporting correlations and their p-values in a compact table. Handles rounding, and skipping non-numeric columns.
umx_cor( X, df = nrow(X) - 2, use = c("pairwise.complete.obs", "complete.obs", "everything", "all.obs", "na.or.complete"), digits = 2, type = c("r and p-value", "smart") )
Matrix of correlations and p-values
a matrix or dataframe
the degrees of freedom for the test
how to handle missing data (defaults to pairwise complete)
rounding of answers
Unused argument for future directions
To compute heterochoric correlations, see umxHetCor().
umxHetCor()
note: The Hmisc package has a more robust function called rcorr.
rcorr
https://github.com/tbates/umx
umxHetCor
Other Miscellaneous Stats Functions: FishersMethod(), SE_from_p(), geometric_mean(), harmonic_mean(), oddsratio(), reliability(), umxCov2cor(), umxHetCor(), umxParan(), umxWeightedAIC(), umx_apply(), umx_means(), umx_r_test(), umx_round(), umx_scale(), umx_var(), umx
FishersMethod()
SE_from_p()
geometric_mean()
harmonic_mean()
oddsratio()
reliability()
umxCov2cor()
umxParan()
umxWeightedAIC()
umx_apply()
umx_means()
umx_r_test()
umx_round()
umx_scale()
umx_var()
umx
tmp = myFADataRaw[1:8,1:8] umx_cor(tmp) tmp$x1 = letters[1:8] # make one column non-numeric umx_cor(tmp)
Run the code above in your browser using DataLab