Compute relative excess correlation (REC) matrix among variables in supplied data.
Examples
# Use the SCWB data example
data(SCWB)
cor.rec(SCWB[, 1:20])
#> cwbcloserel cwbrespect cwbtrust cwbmutuality cwbbeneficence
#> cwbcloserel NA 0.18073167 0.181036290 0.128757950 -0.033558630
#> cwbrespect 0.18073167 NA 0.265326415 0.164195215 -0.069290357
#> cwbtrust 0.18103629 0.26532641 NA 0.224813844 -0.060540076
#> cwbmutuality 0.12875795 0.16419521 0.224813844 NA -0.050285682
#> cwbbeneficence -0.03355863 -0.06929036 -0.060540076 -0.050285682 NA
#> cwbintegrity -0.07620376 -0.05581421 -0.067720587 -0.031700160 0.224444683
#> cwbcompetence -0.07036184 -0.06597000 -0.088914827 -0.104181036 0.162244260
#> cwbvision -0.08109012 -0.08223170 -0.068026042 -0.051655805 0.142311178
#> cwbrelgrowth -0.00292000 -0.10696912 -0.063358111 -0.059675426 0.064257537
#> cwbfairness -0.07844122 -0.01628002 -0.008400548 -0.058704066 0.055111907
#> cwbsustenance -0.06658582 -0.06814305 -0.044192277 -0.062998808 0.006590851
#> cwbachieve -0.08295510 -0.08825484 -0.055025582 -0.045433276 0.022549060
#> cwbsatisf 0.07508748 0.07081599 0.127847914 0.087566865 -0.066265925
#> cwbvalue 0.03523079 0.01871438 -0.014802415 0.010936904 -0.071477846
#> cwbbelonging 0.03747615 0.05376127 0.026829446 0.011952439 -0.039030408
#> cwbwelcome 0.04070210 0.08851133 0.051586180 -0.003525708 -0.065926461
#> cwbpurpose -0.04501819 0.01166026 -0.032471944 -0.026771913 -0.080851691
#> cwbcontrib -0.07395882 -0.06306342 -0.099986233 -0.041250019 -0.022975372
#> cwbinterconn -0.02414723 -0.07593269 -0.106905869 -0.029398730 -0.044736028
#> cwbsynergy -0.07788371 -0.14025968 -0.156805420 -0.057784016 -0.041469153
#> cwbintegrity cwbcompetence cwbvision cwbrelgrowth cwbfairness
#> cwbcloserel -0.076203758 -0.07036184 -0.08109012 -0.002920000 -0.078441220
#> cwbrespect -0.055814213 -0.06597000 -0.08223170 -0.106969119 -0.016280018
#> cwbtrust -0.067720587 -0.08891483 -0.06802604 -0.063358111 -0.008400548
#> cwbmutuality -0.031700160 -0.10418104 -0.05165580 -0.059675426 -0.058704066
#> cwbbeneficence 0.224444683 0.16224426 0.14231118 0.064257537 0.055111907
#> cwbintegrity NA 0.17134616 0.16005268 0.004706908 0.039740228
#> cwbcompetence 0.171346155 NA 0.20291568 0.015860877 0.020811767
#> cwbvision 0.160052675 0.20291568 NA 0.077208534 0.053671653
#> cwbrelgrowth 0.004706908 0.01586088 0.07720853 NA 0.101000310
#> cwbfairness 0.039740228 0.02081177 0.05367165 0.101000310 NA
#> cwbsustenance 0.007395523 0.04004860 0.01533510 0.074508482 0.103255292
#> cwbachieve 0.034256528 0.04887729 0.05526843 0.075004675 0.085828963
#> cwbsatisf -0.064116051 -0.07226581 -0.07000867 -0.051432628 -0.005433855
#> cwbvalue -0.078609579 -0.05059888 -0.08265270 -0.055345493 -0.040063789
#> cwbbelonging -0.028555095 -0.02015017 -0.02998335 -0.034544091 0.015428760
#> cwbwelcome -0.054530809 -0.02159937 -0.06172030 -0.075708380 -0.022594686
#> cwbpurpose -0.027081322 -0.03593021 -0.06385244 -0.040918560 -0.039119773
#> cwbcontrib -0.009047481 -0.03583707 -0.05223578 0.029233311 -0.022057209
#> cwbinterconn -0.073680536 -0.03173509 -0.03106827 0.018148165 -0.054631847
#> cwbsynergy -0.047657505 -0.02812665 -0.01784737 0.038706688 -0.083547835
#> cwbsustenance cwbachieve cwbsatisf cwbvalue cwbbelonging
#> cwbcloserel -0.0665858164 -0.08295510 0.075087475 0.035230787 0.03747615
#> cwbrespect -0.0681430475 -0.08825484 0.070815986 0.018714376 0.05376127
#> cwbtrust -0.0441922765 -0.05502558 0.127847914 -0.014802415 0.02682945
#> cwbmutuality -0.0629988075 -0.04543328 0.087566865 0.010936904 0.01195244
#> cwbbeneficence 0.0065908514 0.02254906 -0.066265925 -0.071477846 -0.03903041
#> cwbintegrity 0.0073955226 0.03425653 -0.064116051 -0.078609579 -0.02855510
#> cwbcompetence 0.0400485965 0.04887729 -0.072265812 -0.050598884 -0.02015017
#> cwbvision 0.0153351040 0.05526843 -0.070008671 -0.082652699 -0.02998335
#> cwbrelgrowth 0.0745084822 0.07500467 -0.051432628 -0.055345493 -0.03454409
#> cwbfairness 0.1032552916 0.08582896 -0.005433855 -0.040063789 0.01542876
#> cwbsustenance NA 0.20363794 0.005058512 -0.011832322 -0.06501328
#> cwbachieve 0.2036379431 NA -0.030012382 -0.033214676 -0.07039073
#> cwbsatisf 0.0050585119 -0.03001238 NA 0.151164173 0.04657940
#> cwbvalue -0.0118323225 -0.03321468 0.151164173 NA 0.01651155
#> cwbbelonging -0.0650132801 -0.07039073 0.046579397 0.016511551 NA
#> cwbwelcome -0.0630355227 -0.06727577 0.089744607 0.054099320 0.16636705
#> cwbpurpose -0.0182942013 -0.02050381 0.056919605 0.056281719 0.10258965
#> cwbcontrib -0.0008126692 0.04030669 -0.020718027 0.050776235 -0.01128086
#> cwbinterconn -0.0134631414 -0.03031546 -0.158784248 -0.004620176 -0.03745741
#> cwbsynergy -0.0116652850 0.01140834 -0.158419207 0.039921940 -0.09607071
#> cwbwelcome cwbpurpose cwbcontrib cwbinterconn cwbsynergy
#> cwbcloserel 0.040702098 -0.045018192 -0.0739588226 -0.024147227 -0.07788371
#> cwbrespect 0.088511328 0.011660261 -0.0630634190 -0.075932687 -0.14025968
#> cwbtrust 0.051586180 -0.032471944 -0.0999862330 -0.106905869 -0.15680542
#> cwbmutuality -0.003525708 -0.026771913 -0.0412500188 -0.029398730 -0.05778402
#> cwbbeneficence -0.065926461 -0.080851691 -0.0229753724 -0.044736028 -0.04146915
#> cwbintegrity -0.054530809 -0.027081322 -0.0090474807 -0.073680536 -0.04765750
#> cwbcompetence -0.021599366 -0.035930214 -0.0358370724 -0.031735089 -0.02812665
#> cwbvision -0.061720304 -0.063852439 -0.0522357828 -0.031068266 -0.01784737
#> cwbrelgrowth -0.075708380 -0.040918560 0.0292333112 0.018148165 0.03870669
#> cwbfairness -0.022594686 -0.039119773 -0.0220572087 -0.054631847 -0.08354783
#> cwbsustenance -0.063035523 -0.018294201 -0.0008126692 -0.013463141 -0.01166529
#> cwbachieve -0.067275775 -0.020503806 0.0403066863 -0.030315460 0.01140834
#> cwbsatisf 0.089744607 0.056919605 -0.0207180274 -0.158784248 -0.15841921
#> cwbvalue 0.054099320 0.056281719 0.0507762347 -0.004620176 0.03992194
#> cwbbelonging 0.166367045 0.102589653 -0.0112808636 -0.037457408 -0.09607071
#> cwbwelcome NA 0.153971019 0.0164984538 -0.090040643 -0.10966426
#> cwbpurpose 0.153971019 NA 0.0675525487 0.001042616 0.01100896
#> cwbcontrib 0.016498454 0.067552549 NA 0.091570135 0.16964123
#> cwbinterconn -0.090040643 0.001042616 0.0915701350 NA 0.54344181
#> cwbsynergy -0.109664257 0.011008960 0.1696412274 0.543441813 NA