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 computationSun, 13 Dec 2015 18:37:33 +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/2015/Dec/13/t1450031908bzrz1scy3uahn0k.htm/, Retrieved Thu, 16 May 2024 09:46:42 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=286227, Retrieved Thu, 16 May 2024 09:46:42 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact69
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Testing difference between two correlations] [Difference correl...] [2015-12-13 18:37:33] [b6628d6ea1d7803ffc2dc825d38ead4a] [Current]
Feedback Forum

Post a new message
Dataseries X:
439
488
517
569
353
416
587
464
596
576
505
445
433
487
511
583
581
468
417
NA
484
500
497
427
554
439
591
421
419
461
435
568
NA
NA
NA
575
596
505
NA
402
529
504
457
527
562
558
NA
433
438
NA
470
468
524
NA
445
567
436
524
510
556
417
412
525
568
450
521
402
508
395
NA
429
417
458
568
549
578
517
518
393
561
483
555
439
444
545
447
481
434
NA
NA
576
388
539
372
557
466
NA
332
337
NA
562
561
498
489
469
536
507
386
498
NA
463
550
502
NA
531
515
476
NA
507
399
477
371
NA
462
524
604
477
390
456
529
421
503
NA
415
456
NA
459
543
534
541
538
439
476
578
553
351
420
409
NA
NA
355
462
NA
529
NA
395
595
547
552
483
473
NA
579
518
438
395
412
460
532
560
457
534
416
403
498
429
NA
478
509
547
485
411
535
387
585
533
567
523
NA
500
519
381
417
495
Dataseries Y:
0.453
0.708
0.709
0.832
0.504
0.778
0.799
0.72
0.926
0.877
0.743
0.788
0.812
0.539
0.779
0.779
0.877
0.714
0.467
0.467
0.569
0.569
0.726
0.672
0.739
0.844
0.773
0.367
0.381
0.571
0.493
0.896
0.622
0.355
0.349
0.808
0.701
0.706
0.479
0.565
0.75
0.806
0.824
0.848
0.858
0.898
0.452
0.717
0.691
0.691
0.701
0.678
0.652
0.559
0.373
0.83
0.409
0.721
0.877
0.879
0.662
0.44
0.733
0.904
0.556
0.856
0.746
0.613
0.38
0.401
0.626
0.462
0.612
0.817
0.886
0.57
0.671
0.671
0.638
0.899
0.881
0.869
0.869
0.712
0.884
0.744
0.747
0.522
0.599
0.882
0.882
0.807
0.614
0.614
0.809
0.759
0.472
0.393
0.799
0.882
0.829
0.881
0.881
0.494
0.406
0.766
0.688
0.398
0.821
0.821
0.475
0.753
0.748
0.748
0.627
0.652
0.671
0.784
0.603
0.38
0.514
0.61
0.61
0.527
0.904
0.903
0.604
0.323
0.492
0.939
0.78
0.526
0.768
0.671
0.759
0.479
0.669
0.722
0.651
0.826
0.816
0.847
0.847
0.779
0.779
0.453
0.747
0.717
0.688
0.688
0.815
0.483
0.743
0.743
0.763
0.353
0.894
0.826
0.873
0.489
0.638
0.638
0.864
0.736
0.736
0.463
0.698
0.527
0.895
0.915
0.662
0.662
0.596
0.596
0.715
0.46
0.701
0.764
0.715
0.738
0.687
0.472
0.726
0.824
0.895
0.908
0.779
0.648
0.617
0.617
0.629
0.484
0.53
0.459
Dataseries Z:
0.458
0.714
0.715
0.831
0.521
0.772
0.804
0.724
0.928
0.879
0.743
0.789
0.812
0.549
0.78
0.784
0.88
0.717
0.471
0.471
0.579
0.579
0.729
0.678
0.74
0.846
0.774
0.376
0.384
0.575
0.498
0.9
0.631
0.361
0.365
0.815
0.71
0.71
0.483
0.549
0.758
0.812
0.819
0.85
0.861
0.899
0.461
0.718
0.695
0.695
0.705
0.679
0.657
0.553
0.377
0.836
0.422
0.722
0.879
0.882
0.666
0.436
0.736
0.908
0.566
0.854
0.747
0.62
0.387
0.402
0.632
0.466
0.615
0.817
0.89
0.581
0.678
0.678
0.639
0.9
0.885
0.872
0.872
0.714
0.887
0.744
0.75
0.527
0.599
0.886
0.886
0.81
0.618
0.618
0.804
0.764
0.476
0.402
0.753
0.887
0.828
0.881
0.881
0.495
0.411
0.768
0.692
0.405
0.823
0.823
0.475
0.759
0.752
0.752
0.627
0.656
0.682
0.787
0.612
0.384
0.517
0.616
0.616
0.533
0.914
0.904
0.608
0.328
0.496
0.941
0.781
0.531
0.77
0.679
0.757
0.484
0.672
0.727
0.652
0.83
0.819
0.843
0.843
0.782
0.782
0.463
0.745
0.718
0.69
0.69
0.825
0.483
0.744
0.744
0.749
0.36
0.896
0.827
0.874
0.494
0.646
0.646
0.868
0.74
0.74
0.468
0.701
0.53
0.896
0.914
0.662
0.662
0.6
0.6
0.716
0.467
0.702
0.764
0.716
0.752
0.69
0.477
0.73
0.824
0.891
0.911
0.783
0.653
0.618
0.618
0.632
0.497
0.543
0.473




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=286227&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=286227&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286227&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







Testing difference between two Pearson Correlations
Pearson Correlation between X and Y0.590326409204974
Pearson Correlation between X and Z0.597590649400244
Type of testpaired
t-Test for dependent correlations-3.51064334631401
P-value (H0: r(xy) = r(xz))0.000575681555167441

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

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

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



Parameters (Session):
par1 = paired ;
Parameters (R input):
par1 = paired ;
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')