Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_CompareCorrelations.wasp
Title produced by softwareTesting difference between two correlations
Date of computationWed, 07 May 2025 06:25:54 +0200
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2025/May/07/t1746592030ot4adi9bey76d0r.htm/, Retrieved Thu, 27 Aug 2026 08:07:35 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=320207, Retrieved Thu, 27 Aug 2026 08:07:35 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact393
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Testing difference between two correlations] [] [2025-05-07 04:25:54] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
96
117
80
104
91
99
127
86
Dataseries Y:
78
92
162
161
181
144
42
134
Dataseries Z:
46
30
35
59
50
40
53
30




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time1 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=320207&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]1 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=320207&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=320207&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center







Testing difference between two Pearson Correlations
Pearson Correlation between X and Y-0.72434190377176
Pearson Correlation between X and Z0.32079887323581
Type of testpaired
t-Test for dependent correlations-2.61996058017149
P-value (H0: r(xy) = r(xz))0.0471000025959187

\begin{tabular}{lllllllll}
\hline
Testing difference between two Pearson Correlations \tabularnewline
Pearson Correlation between X and Y & -0.72434190377176 \tabularnewline
Pearson Correlation between X and Z & 0.32079887323581 \tabularnewline
Type of test & paired \tabularnewline
t-Test for dependent correlations & -2.61996058017149 \tabularnewline
P-value (H0: r(xy) = r(xz)) & 0.0471000025959187 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=320207&T=1

[TABLE]
[ROW][C]Testing difference between two Pearson Correlations[/C][/ROW]
[ROW][C]Pearson Correlation between X and Y[/C][C]-0.72434190377176[/C][/ROW]
[ROW][C]Pearson Correlation between X and Z[/C][C]0.32079887323581[/C][/ROW]
[ROW][C]Type of test[/C][C]paired[/C][/ROW]
[ROW][C]t-Test for dependent correlations[/C][C]-2.61996058017149[/C][/ROW]
[ROW][C]P-value (H0: r(xy) = r(xz))[/C][C]0.0471000025959187[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=320207&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=320207&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 Y-0.72434190377176
Pearson Correlation between X and Z0.32079887323581
Type of testpaired
t-Test for dependent correlations-2.61996058017149
P-value (H0: r(xy) = r(xz))0.0471000025959187



Parameters (Session):
par1 = unpaired ;
Parameters (R input):
par1 = paired ;
R code (references can be found in the software module):
par1 <- 'paired'
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)
}
print(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')