Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_CompareCorrelations.wasp
Title produced by softwareTesting difference between two correlations
Date of computationMon, 11 Jan 2016 09:42:44 +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/t1452505372bvd408895isuv0d.htm/, Retrieved Wed, 08 May 2024 00:01:53 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=289153, Retrieved Wed, 08 May 2024 00:01:53 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact42
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Testing difference between two correlations] [ ] [2016-01-11 09:42:44] [f46b37d14f9c0e05137bdc83c34461d3] [Current]
Feedback Forum

Post a new message
Dataseries X:
6
7
2
11
13
3
17
10
4
12
7
11
3
5
1
12
18
8
6
1
Dataseries Y:
3.2
3.3
3.0
3.5
3.7
2.7
3.6
3.5
3.8
3.4
3.7
3.5
2.8
3.8
4.3
3.3
3.6
3.6
3.3
2.8
Dataseries Z:
10.24
10.89
9
12.25
13.69
7.29
12.96
12.25
14.44
11.56
13.69
12.25
7.84
14.44
18.49
10.89
12.96
12.96
10.89
7.84




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'Sir Maurice George Kendall' @ kendall.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 & 'Sir Maurice George Kendall' @ kendall.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=289153&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]'Sir Maurice George Kendall' @ kendall.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=289153&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=289153&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'Sir Maurice George Kendall' @ kendall.wessa.net







Testing difference between two Pearson Correlations
Pearson Correlation between X and Y0.273105787373561
Pearson Correlation between X and Z0.22087044710034
Type of testunpaired
z-Test for independent correlations0.162234159662981
P-value (H0: r(xy) = r(xz))0.871121460588587

\begin{tabular}{lllllllll}
\hline
Testing difference between two Pearson Correlations \tabularnewline
Pearson Correlation between X and Y & 0.273105787373561 \tabularnewline
Pearson Correlation between X and Z & 0.22087044710034 \tabularnewline
Type of test & unpaired \tabularnewline
z-Test for independent correlations & 0.162234159662981 \tabularnewline
P-value (H0: r(xy) = r(xz)) & 0.871121460588587 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=289153&T=1

[TABLE]
[ROW][C]Testing difference between two Pearson Correlations[/C][/ROW]
[ROW][C]Pearson Correlation between X and Y[/C][C]0.273105787373561[/C][/ROW]
[ROW][C]Pearson Correlation between X and Z[/C][C]0.22087044710034[/C][/ROW]
[ROW][C]Type of test[/C][C]unpaired[/C][/ROW]
[ROW][C]z-Test for independent correlations[/C][C]0.162234159662981[/C][/ROW]
[ROW][C]P-value (H0: r(xy) = r(xz))[/C][C]0.871121460588587[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=289153&T=1

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

As an alternative you can also use a QR Code:  

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

Testing difference between two Pearson Correlations
Pearson Correlation between X and Y0.273105787373561
Pearson Correlation between X and Z0.22087044710034
Type of testunpaired
z-Test for independent correlations0.162234159662981
P-value (H0: r(xy) = r(xz))0.871121460588587



Parameters (Session):
par1 = 1 ; par2 = 2 ; par3 = 3 ; par4 = TRUE ;
Parameters (R input):
par1 = unpaired ;
R code (references can be found in the software module):
library(psych)
xy <- cor(x,y,use = 'pairwise')
xz <- cor(x,z,use = 'pairwise')
yz <- cor(y,z,use = 'pairwise')
nx <- length(na.omit(x))
ny <- length(na.omit(y))
nz <- length(na.omit(z))
nxy <- min(nx,ny)
nxz <- min(nx,nz)
if(par1=='paired') {
r <- paired.r(xy,xz,yz,n=nxy,n2=nxz)
} else {
r <- paired.r(xy,xz,n=nxy,n2=nxz)
}
r
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Testing difference between two Pearson Correlations',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Pearson Correlation between X and Y',header=TRUE)
a<-table.element(a,xy)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Pearson Correlation between X and Z',header=TRUE)
a<-table.element(a,xz)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Type of test',header=TRUE)
a<-table.element(a,par1)
a<-table.row.end(a)
if(par1=='paired') {
a<-table.row.start(a)
a<-table.element(a,'t-Test for dependent correlations',header=TRUE)
a<-table.element(a,r$t)
a<-table.row.end(a)
} else {
a<-table.row.start(a)
a<-table.element(a,'z-Test for independent correlations',header=TRUE)
a<-table.element(a,r$z)
a<-table.row.end(a)
}
a<-table.row.start(a)
a<-table.element(a,'P-value (H0: r(xy) = r(xz))',header=TRUE)
a<-table.element(a,r$p)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')