Cargo de datos

library(readr)
ejemplo_regresion <- read_csv("C:/Users/abyme/Downloads/ejemplo_regresion.csv")
head(ejemplo_regresion,n=5)
## # A tibble: 5 × 3
##      X1    X2     Y
##   <dbl> <dbl> <dbl>
## 1  3.92  7298  0.75
## 2  3.61  6855  0.71
## 3  3.32  6636  0.66
## 4  3.07  6506  0.61
## 5  3.06  6450  0.7

#Correr el Modelo

library(stargazer)
options(scipen=99999)
modelo_lineal<-lm(formula = Y~X1+X2,data = ejemplo_regresion)

#Usando summary
summary(modelo_lineal)
## 
## Call:
## lm(formula = Y ~ X1 + X2, data = ejemplo_regresion)
## 
## Residuals:
##       Min        1Q    Median        3Q       Max 
## -0.085090 -0.039102 -0.003341  0.030236  0.105692 
## 
## Coefficients:
##                Estimate  Std. Error t value            Pr(>|t|)    
## (Intercept)  1.56449677  0.07939598  19.705 0.00000000000000182 ***
## X1           0.23719747  0.05555937   4.269            0.000313 ***
## X2          -0.00024908  0.00003205  -7.772 0.00000009508790794 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 0.0533 on 22 degrees of freedom
## Multiple R-squared:  0.8653, Adjusted R-squared:  0.8531 
## F-statistic: 70.66 on 2 and 22 DF,  p-value: 0.000000000265
#Usando stargerzer
stargazer(modelo_lineal,title = "Modelo de Regresion",type = "html",digits = 6)
## 
## <table style="text-align:center"><caption><strong>Modelo de Regresion</strong></caption>
## <tr><td colspan="2" style="border-bottom: 1px solid black"></td></tr><tr><td style="text-align:left"></td><td><em>Dependent variable:</em></td></tr>
## <tr><td></td><td colspan="1" style="border-bottom: 1px solid black"></td></tr>
## <tr><td style="text-align:left"></td><td>Y</td></tr>
## <tr><td colspan="2" style="border-bottom: 1px solid black"></td></tr><tr><td style="text-align:left">X1</td><td>0.237197<sup>***</sup></td></tr>
## <tr><td style="text-align:left"></td><td>(0.055559)</td></tr>
## <tr><td style="text-align:left"></td><td></td></tr>
## <tr><td style="text-align:left">X2</td><td>-0.000249<sup>***</sup></td></tr>
## <tr><td style="text-align:left"></td><td>(0.000032)</td></tr>
## <tr><td style="text-align:left"></td><td></td></tr>
## <tr><td style="text-align:left">Constant</td><td>1.564497<sup>***</sup></td></tr>
## <tr><td style="text-align:left"></td><td>(0.079396)</td></tr>
## <tr><td style="text-align:left"></td><td></td></tr>
## <tr><td colspan="2" style="border-bottom: 1px solid black"></td></tr><tr><td style="text-align:left">Observations</td><td>25</td></tr>
## <tr><td style="text-align:left">R<sup>2</sup></td><td>0.865296</td></tr>
## <tr><td style="text-align:left">Adjusted R<sup>2</sup></td><td>0.853050</td></tr>
## <tr><td style="text-align:left">Residual Std. Error</td><td>0.053302 (df = 22)</td></tr>
## <tr><td style="text-align:left">F Statistic</td><td>70.660570<sup>***</sup> (df = 2; 22)</td></tr>
## <tr><td colspan="2" style="border-bottom: 1px solid black"></td></tr><tr><td style="text-align:left"><em>Note:</em></td><td style="text-align:right"><sup>*</sup>p<0.1; <sup>**</sup>p<0.05; <sup>***</sup>p<0.01</td></tr>
## </table>

#Matriz P & M

mat_X<-model.matrix(modelo_lineal)

#Matriz X'X
mat_XX<-t(mat_X)%*%mat_X
print(mat_XX)
##             (Intercept)          X1           X2
## (Intercept)       25.00     96.3400     181083.0
## X1                96.34    379.2928     710932.3
## X2            181083.00 710932.3200 1335796275.0
#Matriz A
solve(mat_XX)%*%t(mat_X)->mat_A
print(mat_A)
##                          1               2              3             4
## (Intercept)  0.02671735022  0.153664997103  0.20482274232  0.2285864559
## X1           0.03989544121 -0.035658471121 -0.22158535899 -0.4165400478
## X2          -0.00001939144  0.000003278674  0.00009513298  0.0001955722
##                         5            6              7              8
## (Intercept)  0.2471098101  0.267955249  0.28819900106  0.30212601230
## X1          -0.3943792324 -0.311747228 -0.18304735502 -0.11221023312
## X2           0.0001812249  0.000134385  0.00006311916  0.00002350957
##                          9             10             11            12
## (Intercept)  0.31258460121  0.31154683710  0.31097827251  0.3192380551
## X1           0.05631978369  0.05455055123  0.08183742528  0.2183626148
## X2          -0.00006759587 -0.00006651133 -0.00008095003 -0.0001547247
##                        13            14            15            16
## (Intercept)  0.2647959132  0.2313887316  0.1593708433  0.0942621738
## X1           0.2008967572  0.2569672798  0.1718624834  0.2021429065
## X2          -0.0001379163 -0.0001631348 -0.0001079146 -0.0001150357
##                         17            18            19             20
## (Intercept)  0.02940926916 -0.0310791444 -0.1506869905 -0.20132399727
## X1           0.18576571786  0.2521791772  0.1989653933  0.18798672131
## X2          -0.00009736917 -0.0001243516 -0.0000795279 -0.00006669616
##                         21            22            23           24
## (Intercept) -0.31184773131 -0.4081610633 -0.4936128503 -0.556949583
## X1           0.19735364115 -0.0798709381 -0.1219474069 -0.211089593
## X2          -0.00005642085  0.0001043654  0.0001385483  0.000194718
##                        25
## (Intercept) -0.5990949550
## X1          -0.2170100301
## X2           0.0002036863
#Matriz P
mat_X%*%mat_A->mat_P
print(mat_P)
##             1          2               3           4           5            6
## 1  0.04158873 0.03781156  0.030488603361  0.02303563  0.02372260  0.026648158
## 2  0.03781156 0.04741323  0.057036155708  0.06552455  0.06569752  0.063757225
## 3  0.03048860 0.05703616  0.100461787788  0.14349084  0.14037925  0.124733596
## 4  0.02303563 0.06552455  0.143490840487  0.22220146  0.21541482  0.185200348
## 5  0.02372260 0.06569752  0.140379247349  0.21541482  0.20921001  0.180792258
## 6  0.02664816 0.06375722  0.124733596489  0.18520035  0.18079226  0.158754414
## 7  0.03129701 0.06007990  0.099340539362  0.13689689  0.13519269  0.123010600
## 8  0.03383474 0.05820518  0.085597548049  0.11059386  0.11039943  0.103660458
## 9  0.04004349 0.05252933  0.051000087406  0.04570760  0.04892978  0.054990366
## 10 0.03998532 0.05253917  0.051285486338  0.04629432  0.04947345  0.055393522
## 11 0.04100766 0.05149892  0.045494122364  0.03555827  0.03927310  0.047250570
## 12 0.04603893 0.04688955  0.017449089513 -0.01702736 -0.01054640  0.007798511
## 13 0.04579828 0.04461719  0.016560797775 -0.01573428 -0.01001993  0.006644885
## 14 0.04814241 0.04075129  0.001957309835 -0.04107698 -0.03451110 -0.013832267
## 15 0.04551090 0.04003970  0.013832884525 -0.01510384 -0.01077924  0.002993784
## 16 0.04713214 0.03542863  0.002000000567 -0.03358109 -0.02916052 -0.013531666
## 17 0.04701070 0.03255787  0.000009655854 -0.03377378 -0.03017877 -0.016216760
## 18 0.04994515 0.02685737 -0.019041586737 -0.06592067 -0.06147877 -0.042900936
## 19 0.04886272 0.02241431 -0.017869047918 -0.05727177 -0.05480786 -0.041042251
## 20 0.04883537 0.02010589 -0.019803802406 -0.05812998 -0.05627486 -0.043674112
## 21 0.05001919 0.01383400 -0.031042393219 -0.07304609 -0.07186006 -0.059284179
## 22 0.04040327 0.01892940  0.019235961206  0.02563620  0.02059045  0.011587364
## 23 0.03947851 0.01590533  0.020928007495  0.03340359  0.02686436  0.014116670
## 24 0.03663083 0.01580855  0.034381300046  0.06184036  0.05304706  0.033146114
## 25 0.03672810 0.01376819  0.032093808761  0.05986710  0.05063077  0.030003329
##                 7            8            9           10          11
## 1   0.03129701139  0.033834744  0.040043491  0.039985317  0.04100766
## 2   0.06007990282  0.058205176  0.052529329  0.052539165  0.05149892
## 3   0.09934053936  0.085597548  0.051000087  0.051285486  0.04549412
## 4   0.13689688710  0.110593862  0.045707605  0.046294321  0.03555827
## 5   0.13519268759  0.110399429  0.048929776  0.049473450  0.03927310
## 6   0.12301060008  0.103660458  0.054990366  0.055393522  0.04725057
## 7   0.10255981308  0.091640109  0.062920604  0.063109962  0.05818661
## 8   0.09164010880  0.085371329  0.067629278  0.067699807  0.06454509
## 9   0.06292060445  0.067629278  0.076032081  0.075829293  0.07691052
## 10  0.06310996194  0.067699807  0.075829293  0.075629759  0.07666767
## 11  0.05818661374  0.064545086  0.076910524  0.076667674  0.07839425
## 12  0.03489541088  0.050145832  0.083691329  0.083227155  0.08838551
## 13  0.03142371410  0.045330207  0.076232442  0.075818693  0.08060435
## 14  0.01741104587  0.034827185  0.074473737  0.073984332  0.08022514
## 15  0.02384912892  0.035463862  0.061990628  0.061666884  0.06585153
## 16  0.01059383705  0.023921981  0.055229525  0.054884418  0.05991338
## 17  0.00567036382  0.017684986  0.046531179  0.046239071  0.05093572
## 18 -0.01345506367  0.002635740  0.041865244  0.041492189  0.04793840
## 19 -0.01844176322 -0.006266712  0.024852000  0.024613416  0.02986663
## 20 -0.02260777078 -0.011340942  0.018136668  0.017936579  0.02297592
## 21 -0.03763050635 -0.026183041  0.004885754  0.004716492  0.01012931
## 22  0.00005184751 -0.006863930 -0.018703991 -0.018390895 -0.01984774
## 23 -0.00278871124 -0.012765433 -0.031030084 -0.030614439 -0.03302593
## 24  0.00541674406 -0.010589838 -0.042611712 -0.042027558 -0.04660778
## 25  0.00137699268 -0.015176724 -0.048065153 -0.047454094 -0.05213122
##              12           13          14           15           16
## 1   0.046038933  0.045798283  0.04814241  0.045510898  0.047132139
## 2   0.046889547  0.044617195  0.04075129  0.040039703  0.035428634
## 3   0.017449090  0.016560798  0.00195731  0.013832885  0.002000001
## 4  -0.017027358 -0.015734277 -0.04107698 -0.015103836 -0.033581091
## 5  -0.010546403 -0.010019933 -0.03451110 -0.010779242 -0.029160523
## 6   0.007798511  0.006644885 -0.01383227  0.002993784 -0.013531666
## 7   0.034895411  0.031423714  0.01741105  0.023849129  0.010593837
## 8   0.050145832  0.045330207  0.03482719  0.035463862  0.023921981
## 9   0.083691329  0.076232442  0.07447374  0.061990628  0.055229525
## 10  0.083227155  0.075818693  0.07398433  0.061666884  0.054884418
## 11  0.088385511  0.080604350  0.08022514  0.065851527  0.059913384
## 12  0.115534854  0.105617598  0.11232580  0.087330333  0.085271677
## 13  0.105617598  0.097278159  0.10400832  0.081978444  0.081081798
## 14  0.112325805  0.104008320  0.11428940  0.089004701  0.090844454
## 15  0.087330333  0.081978444  0.08900470  0.072353813  0.073852397
## 16  0.085271677  0.081081798  0.09084445  0.073852397  0.078290810
## 17  0.074306310  0.071933225  0.08195660  0.068160746  0.074117541
## 18  0.079726880  0.077890979  0.09248418  0.075462692  0.085310455
## 19  0.055095904  0.056936697  0.07079203  0.061413561  0.073364592
## 20  0.046880620  0.050114337  0.06426903  0.057248734  0.070440106
## 21  0.035333920  0.041135721  0.05770913  0.053303532  0.070211887
## 22 -0.029396034 -0.017313040 -0.01374752  0.005809294  0.017310860
## 23 -0.047770704 -0.033003454 -0.03018006 -0.004854438  0.008026809
## 24 -0.072491687 -0.054913777 -0.05571007 -0.021705137 -0.009557036
## 25 -0.078713032 -0.060021365 -0.06039810 -0.024674895 -0.011396989
##                 17          18           19          20           21
## 1   0.047010697578  0.04994515  0.048862716  0.04883537  0.050019190
## 2   0.032557866316  0.02685737  0.022414305  0.02010589  0.013833997
## 3   0.000009655854 -0.01904159 -0.017869048 -0.01980380 -0.031042393
## 4  -0.033773781814 -0.06592067 -0.057271769 -0.05812998 -0.073046093
## 5  -0.030178765604 -0.06147877 -0.054807860 -0.05627486 -0.071860062
## 6  -0.016216759663 -0.04290094 -0.041042251 -0.04367411 -0.059284179
## 7   0.005670363823 -0.01345506 -0.018441763 -0.02260777 -0.037630506
## 8   0.017684986411  0.00263574 -0.006266712 -0.01134094 -0.026183041
## 9   0.046531178759  0.04186524  0.024852000  0.01813667  0.004885754
## 10  0.046239071256  0.04149219  0.024613416  0.01793658  0.004716492
## 11  0.050935720283  0.04793840  0.029866626  0.02297592  0.010129313
## 12  0.074306310263  0.07972688  0.055095904  0.04688062  0.035333920
## 13  0.071933225016  0.07789098  0.056936697  0.05011434  0.041135721
## 14  0.081956596034  0.09248418  0.070792028  0.06426903  0.057709131
## 15  0.068160746198  0.07546269  0.061413561  0.05724873  0.053303532
## 16  0.074117541153  0.08531046  0.073364592  0.07044011  0.070211887
## 17  0.072051849395  0.08416583  0.076401216  0.07509919  0.077986031
## 18  0.084165830892  0.10232508  0.094798376  0.09433034  0.101153521
## 19  0.076401216200  0.09479838  0.096014597  0.09873020  0.111008077
## 20  0.075099191797  0.09433034  0.098730196  0.10269757  0.117430507
## 21  0.077986031345  0.10115352  0.111008077  0.11743051  0.137942637
## 22  0.031449222454  0.03992847  0.067329782  0.07826476  0.100211409
## 23  0.025204299479  0.03359584  0.067425330  0.08066855  0.106460997
## 24  0.010614210316  0.01526132  0.056453392  0.07188940  0.099800950
## 25  0.010083496262  0.01562898  0.059326591  0.07577771  0.105773207
##                22           23           24           25
## 1   0.04040326768  0.039478511  0.036630829  0.036728099
## 2   0.01892940334  0.015905328  0.015808550  0.013768192
## 3   0.01923596121  0.020928007  0.034381300  0.032093809
## 4   0.02563619873  0.033403586  0.061840365  0.059867102
## 5   0.02059044786  0.026864357  0.053047055  0.050630771
## 6   0.01158736361  0.014116670  0.033146114  0.030003329
## 7   0.00005184751 -0.002788711  0.005416744  0.001376993
## 8  -0.00686392951 -0.012765433 -0.010589838 -0.015176724
## 9  -0.01870399135 -0.031030084 -0.042611712 -0.048065153
## 10 -0.01839089526 -0.030614439 -0.042027558 -0.047454094
## 11 -0.01984773515 -0.033025927 -0.046607784 -0.052131218
## 12 -0.02939603421 -0.047770704 -0.072491687 -0.078713032
## 13 -0.01731304027 -0.033003454 -0.054913777 -0.060021365
## 14 -0.01374751729 -0.030180062 -0.055710066 -0.060398099
## 15  0.00580929400 -0.004854438 -0.021705137 -0.024674895
## 16  0.01731085962  0.008026809 -0.009557036 -0.011396989
## 17  0.03144922245  0.025204299  0.010614210  0.010083496
## 18  0.03992846777  0.033595835  0.015261315  0.015628983
## 19  0.06732978186  0.067425330  0.056453392  0.059326591
## 20  0.07826475682  0.080668548  0.071889405  0.075777709
## 21  0.10021140894  0.106460997  0.099800950  0.105773207
## 22  0.13578289652  0.155593202  0.173616472  0.182532291
## 23  0.15559320238  0.180141211  0.203749335  0.214471225
## 24  0.17361647158  0.203749335  0.236134518  0.248424042
## 25  0.18253229116  0.214471225  0.248424042  0.261545731
#Matriz M
diag(25)-mat_P->mat_M
print(mat_M)
##              1           2               3           4           5            6
## 1   0.95841127 -0.03781156 -0.030488603361 -0.02303563 -0.02372260 -0.026648158
## 2  -0.03781156  0.95258677 -0.057036155708 -0.06552455 -0.06569752 -0.063757225
## 3  -0.03048860 -0.05703616  0.899538212212 -0.14349084 -0.14037925 -0.124733596
## 4  -0.02303563 -0.06552455 -0.143490840487  0.77779854 -0.21541482 -0.185200348
## 5  -0.02372260 -0.06569752 -0.140379247349 -0.21541482  0.79078999 -0.180792258
## 6  -0.02664816 -0.06375722 -0.124733596489 -0.18520035 -0.18079226  0.841245586
## 7  -0.03129701 -0.06007990 -0.099340539362 -0.13689689 -0.13519269 -0.123010600
## 8  -0.03383474 -0.05820518 -0.085597548049 -0.11059386 -0.11039943 -0.103660458
## 9  -0.04004349 -0.05252933 -0.051000087406 -0.04570760 -0.04892978 -0.054990366
## 10 -0.03998532 -0.05253917 -0.051285486338 -0.04629432 -0.04947345 -0.055393522
## 11 -0.04100766 -0.05149892 -0.045494122364 -0.03555827 -0.03927310 -0.047250570
## 12 -0.04603893 -0.04688955 -0.017449089513  0.01702736  0.01054640 -0.007798511
## 13 -0.04579828 -0.04461719 -0.016560797775  0.01573428  0.01001993 -0.006644885
## 14 -0.04814241 -0.04075129 -0.001957309835  0.04107698  0.03451110  0.013832267
## 15 -0.04551090 -0.04003970 -0.013832884525  0.01510384  0.01077924 -0.002993784
## 16 -0.04713214 -0.03542863 -0.002000000567  0.03358109  0.02916052  0.013531666
## 17 -0.04701070 -0.03255787 -0.000009655854  0.03377378  0.03017877  0.016216760
## 18 -0.04994515 -0.02685737  0.019041586737  0.06592067  0.06147877  0.042900936
## 19 -0.04886272 -0.02241431  0.017869047918  0.05727177  0.05480786  0.041042251
## 20 -0.04883537 -0.02010589  0.019803802406  0.05812998  0.05627486  0.043674112
## 21 -0.05001919 -0.01383400  0.031042393219  0.07304609  0.07186006  0.059284179
## 22 -0.04040327 -0.01892940 -0.019235961206 -0.02563620 -0.02059045 -0.011587364
## 23 -0.03947851 -0.01590533 -0.020928007495 -0.03340359 -0.02686436 -0.014116670
## 24 -0.03663083 -0.01580855 -0.034381300046 -0.06184036 -0.05304706 -0.033146114
## 25 -0.03672810 -0.01376819 -0.032093808761 -0.05986710 -0.05063077 -0.030003329
##                 7            8            9           10          11
## 1  -0.03129701139 -0.033834744 -0.040043491 -0.039985317 -0.04100766
## 2  -0.06007990282 -0.058205176 -0.052529329 -0.052539165 -0.05149892
## 3  -0.09934053936 -0.085597548 -0.051000087 -0.051285486 -0.04549412
## 4  -0.13689688710 -0.110593862 -0.045707605 -0.046294321 -0.03555827
## 5  -0.13519268759 -0.110399429 -0.048929776 -0.049473450 -0.03927310
## 6  -0.12301060008 -0.103660458 -0.054990366 -0.055393522 -0.04725057
## 7   0.89744018692 -0.091640109 -0.062920604 -0.063109962 -0.05818661
## 8  -0.09164010880  0.914628671 -0.067629278 -0.067699807 -0.06454509
## 9  -0.06292060445 -0.067629278  0.923967919 -0.075829293 -0.07691052
## 10 -0.06310996194 -0.067699807 -0.075829293  0.924370241 -0.07666767
## 11 -0.05818661374 -0.064545086 -0.076910524 -0.076667674  0.92160575
## 12 -0.03489541088 -0.050145832 -0.083691329 -0.083227155 -0.08838551
## 13 -0.03142371410 -0.045330207 -0.076232442 -0.075818693 -0.08060435
## 14 -0.01741104587 -0.034827185 -0.074473737 -0.073984332 -0.08022514
## 15 -0.02384912892 -0.035463862 -0.061990628 -0.061666884 -0.06585153
## 16 -0.01059383705 -0.023921981 -0.055229525 -0.054884418 -0.05991338
## 17 -0.00567036382 -0.017684986 -0.046531179 -0.046239071 -0.05093572
## 18  0.01345506367 -0.002635740 -0.041865244 -0.041492189 -0.04793840
## 19  0.01844176322  0.006266712 -0.024852000 -0.024613416 -0.02986663
## 20  0.02260777078  0.011340942 -0.018136668 -0.017936579 -0.02297592
## 21  0.03763050635  0.026183041 -0.004885754 -0.004716492 -0.01012931
## 22 -0.00005184751  0.006863930  0.018703991  0.018390895  0.01984774
## 23  0.00278871124  0.012765433  0.031030084  0.030614439  0.03302593
## 24 -0.00541674406  0.010589838  0.042611712  0.042027558  0.04660778
## 25 -0.00137699268  0.015176724  0.048065153  0.047454094  0.05213122
##              12           13          14           15           16
## 1  -0.046038933 -0.045798283 -0.04814241 -0.045510898 -0.047132139
## 2  -0.046889547 -0.044617195 -0.04075129 -0.040039703 -0.035428634
## 3  -0.017449090 -0.016560798 -0.00195731 -0.013832885 -0.002000001
## 4   0.017027358  0.015734277  0.04107698  0.015103836  0.033581091
## 5   0.010546403  0.010019933  0.03451110  0.010779242  0.029160523
## 6  -0.007798511 -0.006644885  0.01383227 -0.002993784  0.013531666
## 7  -0.034895411 -0.031423714 -0.01741105 -0.023849129 -0.010593837
## 8  -0.050145832 -0.045330207 -0.03482719 -0.035463862 -0.023921981
## 9  -0.083691329 -0.076232442 -0.07447374 -0.061990628 -0.055229525
## 10 -0.083227155 -0.075818693 -0.07398433 -0.061666884 -0.054884418
## 11 -0.088385511 -0.080604350 -0.08022514 -0.065851527 -0.059913384
## 12  0.884465146 -0.105617598 -0.11232580 -0.087330333 -0.085271677
## 13 -0.105617598  0.902721841 -0.10400832 -0.081978444 -0.081081798
## 14 -0.112325805 -0.104008320  0.88571060 -0.089004701 -0.090844454
## 15 -0.087330333 -0.081978444 -0.08900470  0.927646187 -0.073852397
## 16 -0.085271677 -0.081081798 -0.09084445 -0.073852397  0.921709190
## 17 -0.074306310 -0.071933225 -0.08195660 -0.068160746 -0.074117541
## 18 -0.079726880 -0.077890979 -0.09248418 -0.075462692 -0.085310455
## 19 -0.055095904 -0.056936697 -0.07079203 -0.061413561 -0.073364592
## 20 -0.046880620 -0.050114337 -0.06426903 -0.057248734 -0.070440106
## 21 -0.035333920 -0.041135721 -0.05770913 -0.053303532 -0.070211887
## 22  0.029396034  0.017313040  0.01374752 -0.005809294 -0.017310860
## 23  0.047770704  0.033003454  0.03018006  0.004854438 -0.008026809
## 24  0.072491687  0.054913777  0.05571007  0.021705137  0.009557036
## 25  0.078713032  0.060021365  0.06039810  0.024674895  0.011396989
##                 17          18           19          20           21
## 1  -0.047010697578 -0.04994515 -0.048862716 -0.04883537 -0.050019190
## 2  -0.032557866316 -0.02685737 -0.022414305 -0.02010589 -0.013833997
## 3  -0.000009655854  0.01904159  0.017869048  0.01980380  0.031042393
## 4   0.033773781814  0.06592067  0.057271769  0.05812998  0.073046093
## 5   0.030178765604  0.06147877  0.054807860  0.05627486  0.071860062
## 6   0.016216759663  0.04290094  0.041042251  0.04367411  0.059284179
## 7  -0.005670363823  0.01345506  0.018441763  0.02260777  0.037630506
## 8  -0.017684986411 -0.00263574  0.006266712  0.01134094  0.026183041
## 9  -0.046531178759 -0.04186524 -0.024852000 -0.01813667 -0.004885754
## 10 -0.046239071256 -0.04149219 -0.024613416 -0.01793658 -0.004716492
## 11 -0.050935720283 -0.04793840 -0.029866626 -0.02297592 -0.010129313
## 12 -0.074306310263 -0.07972688 -0.055095904 -0.04688062 -0.035333920
## 13 -0.071933225016 -0.07789098 -0.056936697 -0.05011434 -0.041135721
## 14 -0.081956596034 -0.09248418 -0.070792028 -0.06426903 -0.057709131
## 15 -0.068160746198 -0.07546269 -0.061413561 -0.05724873 -0.053303532
## 16 -0.074117541153 -0.08531046 -0.073364592 -0.07044011 -0.070211887
## 17  0.927948150605 -0.08416583 -0.076401216 -0.07509919 -0.077986031
## 18 -0.084165830892  0.89767492 -0.094798376 -0.09433034 -0.101153521
## 19 -0.076401216200 -0.09479838  0.903985403 -0.09873020 -0.111008077
## 20 -0.075099191797 -0.09433034 -0.098730196  0.89730243 -0.117430507
## 21 -0.077986031345 -0.10115352 -0.111008077 -0.11743051  0.862057363
## 22 -0.031449222454 -0.03992847 -0.067329782 -0.07826476 -0.100211409
## 23 -0.025204299479 -0.03359584 -0.067425330 -0.08066855 -0.106460997
## 24 -0.010614210316 -0.01526132 -0.056453392 -0.07188940 -0.099800950
## 25 -0.010083496262 -0.01562898 -0.059326591 -0.07577771 -0.105773207
##                22           23           24           25
## 1  -0.04040326768 -0.039478511 -0.036630829 -0.036728099
## 2  -0.01892940334 -0.015905328 -0.015808550 -0.013768192
## 3  -0.01923596121 -0.020928007 -0.034381300 -0.032093809
## 4  -0.02563619873 -0.033403586 -0.061840365 -0.059867102
## 5  -0.02059044786 -0.026864357 -0.053047055 -0.050630771
## 6  -0.01158736361 -0.014116670 -0.033146114 -0.030003329
## 7  -0.00005184751  0.002788711 -0.005416744 -0.001376993
## 8   0.00686392951  0.012765433  0.010589838  0.015176724
## 9   0.01870399135  0.031030084  0.042611712  0.048065153
## 10  0.01839089526  0.030614439  0.042027558  0.047454094
## 11  0.01984773515  0.033025927  0.046607784  0.052131218
## 12  0.02939603421  0.047770704  0.072491687  0.078713032
## 13  0.01731304027  0.033003454  0.054913777  0.060021365
## 14  0.01374751729  0.030180062  0.055710066  0.060398099
## 15 -0.00580929400  0.004854438  0.021705137  0.024674895
## 16 -0.01731085962 -0.008026809  0.009557036  0.011396989
## 17 -0.03144922245 -0.025204299 -0.010614210 -0.010083496
## 18 -0.03992846777 -0.033595835 -0.015261315 -0.015628983
## 19 -0.06732978186 -0.067425330 -0.056453392 -0.059326591
## 20 -0.07826475682 -0.080668548 -0.071889405 -0.075777709
## 21 -0.10021140894 -0.106460997 -0.099800950 -0.105773207
## 22  0.86421710348 -0.155593202 -0.173616472 -0.182532291
## 23 -0.15559320238  0.819858789 -0.203749335 -0.214471225
## 24 -0.17361647158 -0.203749335  0.763865482 -0.248424042
## 25 -0.18253229116 -0.214471225 -0.248424042  0.738454269