Skip to contents

Compute observed residual covariances (ORC) matrix among observed residuals for variables supplied data.

Usage

cov.orc(data, na.rm = TRUE)

Arguments

data

A data.frame or tibble

na.rm

logical (defaults to TRUE)

Value

A numeric matrix of correlations among variable residuals.

Details

[Experimental]

Examples

  # Use the SCWB data example
  data(SCWB)
  cov.orc(SCWB[, 1:20])
#>                cwbcloserel  cwbrespect    cwbtrust cwbmutuality cwbbeneficence
#> cwbcloserel     1.45884825  0.46456655  0.46783176   0.29241252    -0.15857793
#> cwbrespect      0.46456655  1.21192857  0.77194914   0.42508681    -0.25216319
#> cwbtrust        0.46783176  0.77194914  1.31627297   0.61438320    -0.23282030
#> cwbmutuality    0.29241252  0.42508681  0.61438320   1.22443544    -0.19465850
#> cwbbeneficence -0.15857793 -0.25216319 -0.23282030  -0.19465850     0.98632765
#> cwbintegrity   -0.29019940 -0.21572120 -0.25765613  -0.14583105     0.57555440
#> cwbcompetence  -0.26385724 -0.24008819 -0.31394892  -0.34629543     0.39923583
#> cwbvision      -0.30218370 -0.29668028 -0.26226092  -0.20468577     0.34037762
#> cwbrelgrowth   -0.07279987 -0.34763012 -0.24360596  -0.21213017     0.10393383
#> cwbfairness    -0.28035284 -0.09394141 -0.07397828  -0.21347672     0.10966888
#> cwbsustenance  -0.24455273 -0.24627743 -0.18425937  -0.22544079    -0.02087535
#> cwbachieve     -0.27938932 -0.29071081 -0.20196825  -0.16803099     0.02683509
#> cwbsatisf       0.14519130  0.16463325  0.34712642   0.20002381    -0.24432459
#> cwbvalue        0.01527429 -0.01840551 -0.12234595  -0.04219760    -0.24383271
#> cwbbelonging    0.04028804  0.10290822  0.02368012  -0.02292727    -0.14661107
#> cwbwelcome      0.04284997  0.20790915  0.09598848  -0.07375571    -0.22919927
#> cwbpurpose     -0.19184679 -0.02638226 -0.15518644  -0.13225252    -0.25169224
#> cwbcontrib     -0.26219464 -0.23570527 -0.34378234  -0.16799332    -0.09656195
#> cwbinterconn   -0.19252077 -0.34002386 -0.44529271  -0.19008233    -0.18224861
#> cwbsynergy     -0.31367054 -0.49562928 -0.55296791  -0.26168044    -0.16815448
#>                cwbintegrity cwbcompetence    cwbvision cwbrelgrowth cwbfairness
#> cwbcloserel     -0.29019940   -0.26385724 -0.302183698  -0.07279987 -0.28035284
#> cwbrespect      -0.21572120   -0.24008819 -0.296680283  -0.34763012 -0.09394141
#> cwbtrust        -0.25765613   -0.31394892 -0.262260918  -0.24360596 -0.07397828
#> cwbmutuality    -0.14583105   -0.34629543 -0.204685770  -0.21213017 -0.21347672
#> cwbbeneficence   0.57555440    0.39923583  0.340377623   0.10393383  0.10966888
#> cwbintegrity     1.09921044    0.44542600  0.405649040  -0.04144548  0.07616419
#> cwbcompetence    0.44542600    1.00974507  0.517190163  -0.01124996  0.02444270
#> cwbvision        0.40564904    0.51719016  1.112642451   0.13663058  0.10786115
#> cwbrelgrowth    -0.04144548   -0.01124996  0.136630585   0.87591888  0.18739833
#> cwbfairness      0.07616419    0.02444270  0.107861150   0.18739833  0.92674314
#> cwbsustenance   -0.01868389    0.06885793  0.001228308   0.13073227  0.23023259
#> cwbachieve       0.06268124    0.10049559  0.113698760   0.13095693  0.19309570
#> cwbsatisf       -0.24117101   -0.25922316 -0.262908379  -0.20945102 -0.05972996
#> cwbvalue        -0.27416777   -0.18866252 -0.281932416  -0.18202465 -0.15594343
#> cwbbelonging    -0.11866701   -0.09294022 -0.124859049  -0.13775872  0.00273184
#> cwbwelcome      -0.20092310   -0.10293470 -0.223153744  -0.24817516 -0.10446614
#> cwbpurpose      -0.11529226   -0.13502934 -0.211948072  -0.13813478 -0.14156186
#> cwbcontrib      -0.06663993   -0.13109365 -0.173561616   0.03669701 -0.09395467
#> cwbinterconn    -0.28593928   -0.15706533 -0.158269547   0.02840979 -0.20820703
#> cwbsynergy      -0.21679426   -0.15647508 -0.125816984   0.09575266 -0.26925112
#>                cwbsustenance  cwbachieve   cwbsatisf     cwbvalue cwbbelonging
#> cwbcloserel     -0.244552733 -0.27938932  0.14519130  0.015274294  0.040288039
#> cwbrespect      -0.246277434 -0.29071081  0.16463325 -0.018405514  0.102908217
#> cwbtrust        -0.184259367 -0.20196825  0.34712642 -0.122345953  0.023680118
#> cwbmutuality    -0.225440787 -0.16803099  0.20002381 -0.042197596 -0.022927272
#> cwbbeneficence  -0.020875353  0.02683509 -0.24432459 -0.243832713 -0.146611072
#> cwbintegrity    -0.018683894  0.06268124 -0.24117101 -0.274167773 -0.118667010
#> cwbcompetence    0.068857933  0.10049559 -0.25922316 -0.188662517 -0.092940222
#> cwbvision        0.001228308  0.11369876 -0.26290838 -0.281932416 -0.124859049
#> cwbrelgrowth     0.130732275  0.13095693 -0.20945102 -0.182024651 -0.137758723
#> cwbfairness      0.230232586  0.19309570 -0.05972996 -0.155943434  0.002731840
#> cwbsustenance    0.948723305  0.48066865 -0.03947031 -0.079866124 -0.212283663
#> cwbachieve       0.480668645  0.84453100 -0.12567535 -0.128314032 -0.219062463
#> cwbsatisf       -0.039470308 -0.12567535  1.31542737  0.378623144  0.087890342
#> cwbvalue        -0.079866124 -0.12831403  0.37862314  1.237907924 -0.009861547
#> cwbbelonging    -0.212283663 -0.21906246  0.08789034 -0.009861547  0.936951803
#> cwbwelcome      -0.217911965 -0.21985574  0.21907366  0.089899004  0.418366616
#> cwbpurpose      -0.086890512 -0.08684167  0.10658088  0.095957086  0.223180290
#> cwbcontrib      -0.037095355  0.06671601 -0.12032403  0.080523385 -0.075356226
#> cwbinterconn    -0.086729345 -0.12480393 -0.59321790 -0.102542592 -0.175469811
#> cwbsynergy      -0.081538498 -0.03677302 -0.55524658 -0.002013879 -0.314299163
#>                 cwbwelcome  cwbpurpose  cwbcontrib cwbinterconn   cwbsynergy
#> cwbcloserel     0.04284997 -0.19184679 -0.26219464  -0.19252077 -0.313670540
#> cwbrespect      0.20790915 -0.02638226 -0.23570527  -0.34002386 -0.495629276
#> cwbtrust        0.09598848 -0.15518644 -0.34378234  -0.44529271 -0.552967906
#> cwbmutuality   -0.07375571 -0.13225252 -0.16799332  -0.19008233 -0.261680436
#> cwbbeneficence -0.22919927 -0.25169224 -0.09656195  -0.18224861 -0.168154484
#> cwbintegrity   -0.20092310 -0.11529226 -0.06663993  -0.28593928 -0.216794258
#> cwbcompetence  -0.10293470 -0.13502934 -0.13109365  -0.15706533 -0.156475077
#> cwbvision      -0.22315374 -0.21194807 -0.17356162  -0.15826955 -0.125816984
#> cwbrelgrowth   -0.24817516 -0.13813478  0.03669701   0.02840979  0.095752662
#> cwbfairness    -0.10446614 -0.14156186 -0.09395467  -0.20820703 -0.269251120
#> cwbsustenance  -0.21791197 -0.08689051 -0.03709536  -0.08672934 -0.081538498
#> cwbachieve     -0.21985574 -0.08684167  0.06671601  -0.12480393 -0.036773021
#> cwbsatisf       0.21907366  0.10658088 -0.12032403  -0.59321790 -0.555246577
#> cwbvalue        0.08989900  0.09595709  0.08052339  -0.10254259 -0.002013879
#> cwbbelonging    0.41836662  0.22318029 -0.07535623  -0.17546981 -0.314299163
#> cwbwelcome      1.11209267  0.36817028 -0.01007574  -0.34749128 -0.379154057
#> cwbpurpose      0.36817028  0.95895848  0.12560003  -0.05879924 -0.045286289
#> cwbcontrib     -0.01007574  0.12560003  0.98535925   0.18848952  0.326824209
#> cwbinterconn   -0.34749128 -0.05879924  0.18848952   1.92110856  1.181378619
#> cwbsynergy     -0.37915406 -0.04528629  0.32682421   1.18137862  1.738880510