Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software ModuleRscript (source code is shown below)
Title produced by softwareR console
Date of computationFri, 24 Jul 2009 10:16:38 -0600
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Jul/24/t1248452199cmq3xiz19lbe2r2.htm/, Retrieved Sat, 18 May 2024 12:52:28 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=42388, Retrieved Sat, 18 May 2024 12:52:28 +0000
QR Codes:

Original text written by user:This example is used in the manual files of the RC package.
IsPrivate?No (this computation is public)
User-defined keywordsmanRCx
Estimated Impact212
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [R console] [correlation test] [2009-07-24 16:16:38] [256f657a32c6b2b7628dddcfa9a822d0] [Current]
Feedback Forum

Post a new message
Dataseries X:
1.31778221846207	1.79645166542780
-1.38649216309339	-1.28711313795901
-0.0979664550827042	-3.20052843532822
0.318721911697395	-0.94424953897055
0.300456113361141	-0.211919976856853
0.241837489133727	1.52890961202943
0.638162608015183	0.613229998775758
1.43678266343378	0.824938796755621
0.0188635447933995	2.18587274696842
-0.818813003473457	0.024116547615017
-0.989299806488222	0.520150206604408
0.777764027430248	-0.58331910374323
0.136761490828208	0.224308233127073
0.0617623288565899	0.149897221659417
0.275212677713215	-1.47319216260874
0.19187109125662	-0.86671232087715
0.118670753176034	-0.268449408887851
0.245757196244278	-0.162157977065516
-1.81371916486853	-0.384326624043505
0.641666166691623	0.228026447593829
-1.65339172551174	-0.253430068000693
1.30366334888694	0.674744390321413
0.383313278326735	-0.424357199950747
-0.641939495512758	1.90365966152304
-1.48159883801880	-1.11883978256327
1.58805885021985	2.69845431242793
0.112242208477504	-0.886820877541027
0.744511488405436	0.620482332857551
-0.670789753026832	0.432390321756843
0.522223143335509	1.40612671826685
-1.48580214574118	1.98222249750817
0.244120401877364	-0.57939729250386
-1.68546201694449	-0.226440212667046
-0.256303489306543	0.810469874577852
0.14728652396726	-1.52228587661227
-0.0810805362609273	1.25145945116536
-0.487611078512713	-1.78746872030540
0.327542359392301	-1.61028732937125
-0.922355468573	0.858345172883643
0.0804868382079882	2.22232670006427
-0.228306200130792	-0.225509913201363
1.08582627576654	-2.61358910944919
1.29293157544092	0.943083461989554
-0.232548434566424	1.99214285936920
-0.858569526943972	-0.756712453524436
0.819087644275219	-0.210316977604306
-0.65302524891884	0.229252050011841
0.603418565081557	-0.601999228998822
-1.35730015925502	-0.260160218988984
-0.902988706081997	-0.078818242162563
> {
+     res <- cor.test(RCx$X1, RCx$X2)
+     print(res)
+ }

	Pearson's product-moment correlation

data:  RCx$X1 and RCx$X2 
t = 0.914, df = 48, p-value = 0.3653
alternative hypothesis: true correlation is not equal to 0 
95 percent confidence interval:
 -0.1531303  0.3947682 
sample estimates:
      cor 
0.1307923 


Parameters (Session):
Parameters (R input):
R code (body of R function):
{
res <- cor.test(x$X1, x$X2)
print(res)
}