covNoBessel: Covariance matrix without Bessel's correction

Description Usage Arguments Value Author(s) Examples

View source: R/EstimateGroupNetwork.R

Description

Computes the Covariance matrix without Bessel's correction, for consistency with package JGL

Usage

1

Arguments

x

A dataframe of numeric values.

...

Arguments to be passed to cov

Value

A covariance matrix

Author(s)

Giulio Costantini

Examples

1
2
3
library(psych)
data(bfi)
covNoBessel(bfi, use = "complete.obs")

Example output

                    A1          A2           A3           A4           A5
A1         1.936883297 -0.54765325 -0.471910216 -0.289106829 -0.325129066
A2        -0.547653247  1.33797532  0.722986107  0.572987270  0.555070166
A3        -0.471910216  0.72298611  1.661888197  0.703274132  0.814001242
A4        -0.289106829  0.57298727  0.703274132  2.095783477  0.572764036
A5        -0.325129066  0.55507017  0.814001242  0.572764036  1.576553119
C1         0.033768696  0.12898467  0.158483517  0.145393141  0.188632467
C2         0.024711529  0.19046054  0.244907559  0.414013679  0.179926353
C3        -0.016910152  0.27631970  0.220360855  0.245917912  0.211400703
C4         0.189538203 -0.21923629 -0.205187765 -0.316888622 -0.200899118
C5         0.054730059 -0.20898974 -0.307854659 -0.564001914 -0.333223087
E1         0.268738956 -0.44247397 -0.451834587 -0.323388003 -0.497907940
E2         0.186949213 -0.44907237 -0.598679347 -0.469688481 -0.663086467
E3        -0.082761690  0.38583543  0.664262245  0.387561687  0.693770298
E4        -0.138592715  0.50889300  0.741584513  0.689320026  0.888126028
E5        -0.033097795  0.45724260  0.448619702  0.306118197  0.445239192
N1         0.346142037 -0.14402634 -0.138207457 -0.213052152 -0.377082506
N2         0.281864536 -0.06834671 -0.165204531 -0.322486267 -0.364648630
N3         0.196247216 -0.03771849 -0.058764868 -0.154218473 -0.259740798
N4         0.096059296 -0.15563069 -0.266869073 -0.361313726 -0.412966321
N5         0.017933706  0.04528423 -0.084386135 -0.005724064 -0.155831517
O1         0.003930793  0.13990411  0.203538116  0.068911199  0.205476609
O2         0.142652528  0.05800375  0.061422269  0.114026008  0.002932443
O3        -0.103594033  0.20225212  0.330714709  0.071778832  0.332422166
O4        -0.146531713  0.07324145  0.036672734 -0.106920135  0.005303200
O5         0.200840309 -0.12214523 -0.063769223  0.067517389 -0.071340366
gender    -0.109331099  0.11318008  0.095043343  0.088523759  0.063939249
education -0.211282285  0.02639518  0.004330253 -0.031223112  0.021304015
age       -2.027420560  1.11920470  0.581012681  1.764363062  1.355911822
                   C1           C2            C3          C4          C5
A1         0.03376870  0.024711529 -0.0169101519  0.18953820  0.05473006
A2         0.12898467  0.190460543  0.2763196997 -0.21923629 -0.20898974
A3         0.15848352  0.244907559  0.2203608549 -0.20518777 -0.30785466
A4         0.14539314  0.414013679  0.2459179117 -0.31688862 -0.56400191
A5         0.18863247  0.179926353  0.2114007027 -0.20089912 -0.33322309
C1         1.47961289  0.680704726  0.4994313697 -0.57972109 -0.49661775
C2         0.68070473  1.718919204  0.5999469386 -0.68490176 -0.63872659
C3         0.49943137  0.599946939  1.6561723347 -0.62154340 -0.73905353
C4        -0.57972109 -0.684901759 -0.6215433978  1.85660658  1.07477900
C5        -0.49661775 -0.638726591 -0.7390535313  1.07477900  2.65461561
E1        -0.05647012  0.049771511 -0.0398260102  0.21874101  0.17593935
E2        -0.19876880 -0.143892715 -0.1791330332  0.45766987  0.67751885
E3         0.21892184  0.272016650  0.1779660570 -0.15699969 -0.37016666
E4         0.25553016  0.231094275  0.1932415623 -0.23229346 -0.49016857
E5         0.42208530  0.430052900  0.3715752748 -0.42572585 -0.52286611
N1        -0.11235256 -0.033438446 -0.1604822185  0.44846768  0.52345960
N2        -0.05133175 -0.002532782 -0.1250860769  0.31757273  0.59158808
N3        -0.02280024  0.018285960 -0.1508931714  0.42919917  0.60498170
N4        -0.17101221 -0.075702624 -0.2596727875  0.59381441  0.89180498
N5        -0.09841445  0.105074057 -0.0740003675  0.46900278  0.48498299
O1         0.24122800  0.227687761  0.1305288983 -0.14989862 -0.15972310
O2        -0.24958046 -0.102957337 -0.0646685592  0.43569295  0.29854205
O3         0.27222988  0.278980501  0.0877852478 -0.11359074 -0.12738002
O4         0.11677842  0.048096858 -0.0002432367  0.11499415  0.26819167
O5        -0.21201520 -0.098570475  0.0077331670  0.33146522  0.10601880
gender     0.00258479  0.037505460  0.0265364046 -0.04778721 -0.06812128
education  0.05373451  0.016236850  0.0853384785 -0.05339606  0.07456085
age        1.06042443 -0.009270399  0.7011246074 -1.72221270 -1.26280317
                    E1          E2           E3          E4          E5
A1         0.268738956  0.18694921 -0.082761690 -0.13859272 -0.03309779
A2        -0.442473974 -0.44907237  0.385835427  0.50889300  0.45724260
A3        -0.451834587 -0.59867935  0.664262245  0.74158451  0.44861970
A4        -0.323388003 -0.46968848  0.387561687  0.68932003  0.30611820
A5        -0.497907940 -0.66308647  0.693770298  0.88812603  0.44523919
C1        -0.056470122 -0.19876880  0.218921838  0.25553016  0.42208530
C2         0.049771511 -0.14389271  0.272016650  0.23109427  0.43005290
C3        -0.039826010 -0.17913303  0.177966057  0.19324156  0.37157527
C4         0.218741010  0.45766987 -0.156999693 -0.23229346 -0.42572585
C5         0.175939351  0.67751885 -0.370166662 -0.49016857 -0.52286611
E1         2.617378991  1.20951933 -0.722932298 -0.97983507 -0.65816973
E2         1.209519330  2.57722473 -0.862629780 -1.22583239 -0.83211518
E3        -0.722932298 -0.86262978  1.801496666  0.84467587  0.71419258
E4        -0.979835068 -1.22583239  0.844675871  2.12821297  0.64356592
E5        -0.658169725 -0.83211518  0.714192580  0.64356592  1.76857890
N1         0.022705827  0.42036244 -0.090340433 -0.33040126  0.08176674
N2         0.017455434  0.48098179 -0.116148728 -0.33845548  0.09276120
N3         0.128590606  0.48536925 -0.026106340 -0.29171762 -0.12606702
N4         0.589463357  0.88267801 -0.315706844 -0.70615777 -0.43657468
N5         0.117070467  0.66551983 -0.188276013 -0.22314948 -0.30244644
O1        -0.184334218 -0.28698551  0.489277437  0.20343570  0.43877982
O2         0.139039383  0.19064017 -0.151696093  0.11598650 -0.17893820
O3        -0.413344778 -0.46734733  0.654519574  0.36625207  0.47093107
O4         0.157649391  0.32653168  0.061786124 -0.17713633 -0.03061182
O5         0.197226564  0.16934436 -0.230349962  0.08612940 -0.20178005
gender    -0.113316301 -0.05721403  0.032306875  0.07225590  0.05084287
education  0.002690806 -0.02409564  0.009745471 -0.04263843  0.08446075
age       -0.569058677 -1.78785681 -0.352995271 -0.21084442  1.36701590
                   N1           N2          N3          N4           N5
A1         0.34614204  0.281864536  0.19624722  0.09605930  0.017933706
A2        -0.14402634 -0.068346714 -0.03771849 -0.15563069  0.045284234
A3        -0.13820746 -0.165204531 -0.05876487 -0.26686907 -0.084386135
A4        -0.21305215 -0.322486267 -0.15421847 -0.36131373 -0.005724064
A5        -0.37708251 -0.364648630 -0.25974080 -0.41296632 -0.155831517
C1        -0.11235256 -0.051331747 -0.02280024 -0.17101221 -0.098414452
C2        -0.03343845 -0.002532782  0.01828596 -0.07570262  0.105074057
C3        -0.16048222 -0.125086077 -0.15089317 -0.25967279 -0.074000367
C4         0.44846768  0.317572725  0.42919917  0.59381441  0.469002778
C5         0.52345960  0.591588077  0.60498170  0.89180498  0.484982989
E1         0.02270583  0.017455434  0.12859061  0.58946336  0.117070467
E2         0.42036244  0.480981785  0.48536925  0.88267801  0.665519834
E3        -0.09034043 -0.116148728 -0.02610634 -0.31570684 -0.188276013
E4        -0.33040126 -0.338455477 -0.29171762 -0.70615777 -0.223149476
E5         0.08176674  0.092761199 -0.12606702 -0.43657468 -0.302446443
N1         2.44664503  1.707920544  1.41278681  0.99514298  0.974233623
N2         1.70792054  2.354658544  1.34151365  0.92924743  0.878419363
N3         1.41278681  1.341513649  2.54756206  1.29267508  1.116042823
N4         0.99514298  0.929247434  1.29267508  2.43460101  1.004454783
N5         0.97423362  0.878419363  1.11604282  1.00445478  2.629879078
O1        -0.09150241 -0.079260361 -0.08308934 -0.10065759 -0.267955037
O2         0.33870731  0.290076976  0.27373011  0.20254177  0.491878830
O3        -0.05992664 -0.043180916 -0.04940266 -0.11017903 -0.161605988
O4         0.16744127  0.240334669  0.32070600  0.42460728  0.202813007
O5         0.21573136  0.037824908  0.11577827  0.06956410  0.307145152
gender     0.02576889  0.067976258  0.08585216 -0.01527190  0.162728358
education -0.07682279 -0.063903244 -0.07066266  0.02458451 -0.084318325
age       -1.21003361 -1.472481014 -1.89532603 -0.41463137 -1.738707390
                    O1           O2          O3            O4           O5
A1         0.003930793  0.142652528 -0.10359403 -0.1465317133  0.200840309
A2         0.139904113  0.058003753  0.20225212  0.0732414529 -0.122145233
A3         0.203538116  0.061422269  0.33071471  0.0366727343 -0.063769223
A4         0.068911199  0.114026008  0.07177883 -0.1069201354  0.067517389
A5         0.205476609  0.002932443  0.33242217  0.0053032003 -0.071340366
C1         0.241228004 -0.249580464  0.27222988  0.1167784232 -0.212015195
C2         0.227687761 -0.102957337  0.27898050  0.0480968583 -0.098570475
C3         0.130528898 -0.064668559  0.08778525 -0.0002432367  0.007733167
C4        -0.149898621  0.435692951 -0.11359074  0.1149941539  0.331465222
C5        -0.159723104  0.298542053 -0.12738002  0.2681916731  0.106018799
E1        -0.184334218  0.139039383 -0.41334478  0.1576493910  0.197226564
E2        -0.286985509  0.190640170 -0.46734733  0.3265316772  0.169344356
E3         0.489277437 -0.151696093  0.65451957  0.0617861242 -0.230349962
E4         0.203435701  0.115986504  0.36625207 -0.1771363318  0.086129398
E5         0.438779817 -0.178938204  0.47093107 -0.0306118197 -0.201780051
N1        -0.091502409  0.338707315 -0.05992664  0.1674412687  0.215731356
N2        -0.079260361  0.290076976 -0.04318092  0.2403346692  0.037824908
N3        -0.083089339  0.273730109 -0.04940266  0.3207059981  0.115778272
N4        -0.100657590  0.202541766 -0.11017903  0.4246072779  0.069564098
N5        -0.267955037  0.491878830 -0.16160599  0.2028130067  0.307145152
O1         1.254049050 -0.404338019  0.52273009  0.2273463091 -0.375858721
O2        -0.404338019  2.388845903 -0.53775475 -0.1480703454  0.680033425
O3         0.522730086 -0.537754753  1.42336360  0.2424317856 -0.511539597
O4         0.227346309 -0.148070345  0.24243179  1.3811540314 -0.286782479
O5        -0.375858721  0.680033425 -0.51153960 -0.2867824786  1.766942651
gender    -0.060003655  0.030658027 -0.02459571 -0.0197381787  0.023091885
education  0.043104905 -0.174867189  0.12804092  0.0792575608 -0.087153952
age        0.594688745 -0.730097580  0.31035484  0.0121626355 -1.201571330
                gender    education           age
A1        -0.109331099 -0.211282285  -2.027420560
A2         0.113180080  0.026395183   1.119204700
A3         0.095043343  0.004330253   0.581012681
A4         0.088523759 -0.031223112   1.764363062
A5         0.063939249  0.021304015   1.355911822
C1         0.002584790  0.053734509   1.060424430
C2         0.037505460  0.016236850  -0.009270399
C3         0.026536405  0.085338479   0.701124607
C4        -0.047787212 -0.053396058  -1.722212701
C5        -0.068121280  0.074560852  -1.262803171
E1        -0.113316301  0.002690806  -0.569058677
E2        -0.057214034 -0.024095636  -1.787856807
E3         0.032306875  0.009745471  -0.352995271
E4         0.072255904 -0.042638435  -0.210844419
E5         0.050842873  0.084460746   1.367015898
N1         0.025768889 -0.076822793  -1.210033607
N2         0.067976258 -0.063903244  -1.472481014
N3         0.085852156 -0.070662664  -1.895326026
N4        -0.015271905  0.024584510  -0.414631372
N5         0.162728358 -0.084318325  -1.738707390
O1        -0.060003655  0.043104905   0.594688745
O2         0.030658027 -0.174867189  -0.730097580
O3        -0.024595712  0.128040923   0.310354836
O4        -0.019738179  0.079257561   0.012162635
O5         0.023091885 -0.087153952  -1.201571330
gender     0.220680303  0.002991651   0.235289708
education  0.002991651  1.235386433   2.952232725
age        0.235289708  2.952232725 113.685004922

EstimateGroupNetwork documentation built on Feb. 10, 2021, 9:06 a.m.