Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_partialcorrelationmatrix.wasp
Title produced by softwarePartial Correlation Matrix
Date of computationMon, 11 Jan 2016 06:48:12 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2016/Jan/11/t14524949107qyfk25yhnboz4d.htm/, Retrieved Tue, 07 May 2024 23:33:56 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=288256, Retrieved Tue, 07 May 2024 23:33:56 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact104
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Partial Correlation Matrix] [] [2016-01-11 06:48:12] [458bc02f6d4386c4526d029d1899c9d8] [Current]
Feedback Forum

Post a new message
Dataseries X:
46.4 392 0.4 68.5
45.7 118 0.61 87.8
45.3 44 0.53 115.8
38.6 158 0.53 106.8
37.2 81 0.53 71.6
35 374 0.37 60.2
34 187 0.3 118.7
28.3 993 0.19 33.7
24.7 1723 0.12 27.2
24.7 287 0.2 62
24.4 970 0.19 24.9
22.7 885 0.12 22.9
22.3 200 0.53 65.7
21.7 575 0.14 21.6
21.6 688 0.34 32.4
21.3 48 0.69 108.7
21.2 572 0.49 38.6
20.8 239 0.42 46.7
20.3 244 0.48 56.5
18.9 472 0.25 44.4
18.8 134 0.52 47.4
18.6 633 0.19 21.7
18 295 0.44 55.7
17.6 906 0.24 27.1
17 1045 0.16 28.5
16.7 775 0.1 41.6
15.9 619 0.15 44.6
15.3 901 0.05 26.1
15 910 0.24 18.7
14.8 556 0.22 49.1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 0 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ jenkins.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=288256&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]0 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ jenkins.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=288256&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=288256&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net







Pearson Correlation Matrix
> r0
                           HIV_Risk Per_Capita_Income Prop_Population_on_Farms
HIV_Risk                  1.0000000        -0.4190898                0.4804208
Per_Capita_Income        -0.4190898         1.0000000               -0.7754682
Prop_Population_on_Farms  0.4804208        -0.7754682                1.0000000
Homicides                 0.6643228        -0.7454675                0.6964200
                          Homicides
HIV_Risk                  0.6643228
Per_Capita_Income        -0.7454675
Prop_Population_on_Farms  0.6964200
Homicides                 1.0000000

\begin{tabular}{lllllllll}
\hline
Pearson Correlation Matrix \tabularnewline
> r0
                           HIV_Risk Per_Capita_Income Prop_Population_on_Farms
HIV_Risk                  1.0000000        -0.4190898                0.4804208
Per_Capita_Income        -0.4190898         1.0000000               -0.7754682
Prop_Population_on_Farms  0.4804208        -0.7754682                1.0000000
Homicides                 0.6643228        -0.7454675                0.6964200
                          Homicides
HIV_Risk                  0.6643228
Per_Capita_Income        -0.7454675
Prop_Population_on_Farms  0.6964200
Homicides                 1.0000000
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=288256&T=1

[TABLE]
[ROW][C]Pearson Correlation Matrix[/C][/ROW]
[ROW][C]
> r0
                           HIV_Risk Per_Capita_Income Prop_Population_on_Farms
HIV_Risk                  1.0000000        -0.4190898                0.4804208
Per_Capita_Income        -0.4190898         1.0000000               -0.7754682
Prop_Population_on_Farms  0.4804208        -0.7754682                1.0000000
Homicides                 0.6643228        -0.7454675                0.6964200
                          Homicides
HIV_Risk                  0.6643228
Per_Capita_Income        -0.7454675
Prop_Population_on_Farms  0.6964200
Homicides                 1.0000000
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=288256&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=288256&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Pearson Correlation Matrix
> r0
                           HIV_Risk Per_Capita_Income Prop_Population_on_Farms
HIV_Risk                  1.0000000        -0.4190898                0.4804208
Per_Capita_Income        -0.4190898         1.0000000               -0.7754682
Prop_Population_on_Farms  0.4804208        -0.7754682                1.0000000
Homicides                 0.6643228        -0.7454675                0.6964200
                          Homicides
HIV_Risk                  0.6643228
Per_Capita_Income        -0.7454675
Prop_Population_on_Farms  0.6964200
Homicides                 1.0000000







Partial Pearson Correlation Matrix (Shrinkage Method)
> r1
                          HIV_Risk Per_Capita_Income Prop_Population_on_Farms
HIV_Risk                 1.0000000         0.1213495                0.1286702
Per_Capita_Income        0.1213495         1.0000000               -0.5025052
Prop_Population_on_Farms 0.1286702        -0.5025052                1.0000000
Homicides                0.4829451        -0.4305100                0.1949416
                          Homicides
HIV_Risk                  0.4829451
Per_Capita_Income        -0.4305100
Prop_Population_on_Farms  0.1949416
Homicides                 1.0000000
attr(,"lambda")
[1] 0.07195742
attr(,"lambda.estimated")
[1] TRUE
attr(,"class")
[1] "shrinkage"
attr(,"spv")
                HIV_Risk        Per_Capita_Income Prop_Population_on_Farms 
               0.6069748                0.3880197                0.4325446 
               Homicides 
               0.3647349 

\begin{tabular}{lllllllll}
\hline
Partial Pearson Correlation Matrix (Shrinkage Method) \tabularnewline
> r1
                          HIV_Risk Per_Capita_Income Prop_Population_on_Farms
HIV_Risk                 1.0000000         0.1213495                0.1286702
Per_Capita_Income        0.1213495         1.0000000               -0.5025052
Prop_Population_on_Farms 0.1286702        -0.5025052                1.0000000
Homicides                0.4829451        -0.4305100                0.1949416
                          Homicides
HIV_Risk                  0.4829451
Per_Capita_Income        -0.4305100
Prop_Population_on_Farms  0.1949416
Homicides                 1.0000000
attr(,"lambda")
[1] 0.07195742
attr(,"lambda.estimated")
[1] TRUE
attr(,"class")
[1] "shrinkage"
attr(,"spv")
                HIV_Risk        Per_Capita_Income Prop_Population_on_Farms 
               0.6069748                0.3880197                0.4325446 
               Homicides 
               0.3647349 
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=288256&T=2

[TABLE]
[ROW][C]Partial Pearson Correlation Matrix (Shrinkage Method)[/C][/ROW]
[ROW][C]
> r1
                          HIV_Risk Per_Capita_Income Prop_Population_on_Farms
HIV_Risk                 1.0000000         0.1213495                0.1286702
Per_Capita_Income        0.1213495         1.0000000               -0.5025052
Prop_Population_on_Farms 0.1286702        -0.5025052                1.0000000
Homicides                0.4829451        -0.4305100                0.1949416
                          Homicides
HIV_Risk                  0.4829451
Per_Capita_Income        -0.4305100
Prop_Population_on_Farms  0.1949416
Homicides                 1.0000000
attr(,"lambda")
[1] 0.07195742
attr(,"lambda.estimated")
[1] TRUE
attr(,"class")
[1] "shrinkage"
attr(,"spv")
                HIV_Risk        Per_Capita_Income Prop_Population_on_Farms 
               0.6069748                0.3880197                0.4325446 
               Homicides 
               0.3647349 
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=288256&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=288256&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Partial Pearson Correlation Matrix (Shrinkage Method)
> r1
                          HIV_Risk Per_Capita_Income Prop_Population_on_Farms
HIV_Risk                 1.0000000         0.1213495                0.1286702
Per_Capita_Income        0.1213495         1.0000000               -0.5025052
Prop_Population_on_Farms 0.1286702        -0.5025052                1.0000000
Homicides                0.4829451        -0.4305100                0.1949416
                          Homicides
HIV_Risk                  0.4829451
Per_Capita_Income        -0.4305100
Prop_Population_on_Farms  0.1949416
Homicides                 1.0000000
attr(,"lambda")
[1] 0.07195742
attr(,"lambda.estimated")
[1] TRUE
attr(,"class")
[1] "shrinkage"
attr(,"spv")
                HIV_Risk        Per_Capita_Income Prop_Population_on_Farms 
               0.6069748                0.3880197                0.4325446 
               Homicides 
               0.3647349 



Parameters (Session):
Parameters (R input):
R code (references can be found in the software module):
library(corpcor)
x <- t(y)
(r1 <- pcor.shrink(x))
(r0 <- cor(x))
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Pearson Correlation Matrix',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste('
',RC.texteval('r0'),'
',sep=''))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable0.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Pearson Correlation Matrix (Shrinkage Method)',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste('
',RC.texteval('r1'),'
',sep=''))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')