Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_Pregnancy and cognition.wasp
Title produced by softwareCorrelation
Date of computationSun, 23 Nov 2014 17:09:29 +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/2014/Nov/23/t1416762578fc381dt7j046ph5.htm/, Retrieved Sun, 19 May 2024 13:00:17 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=258063, Retrieved Sun, 19 May 2024 13:00:17 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact74
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Histogram, QQplot and Density] [] [2014-10-11 09:05:01] [32b17a345b130fdf5cc88718ed94a974]
- RM D    [Correlation] [] [2014-11-23 17:09:29] [d39ba099107fddb6b3ada692142e09dd] [Current]
Feedback Forum

Post a new message
Dataseries X:
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'SMK'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
'NS'
Dataseries Y:
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'hot'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'
'mild'






Parameters (Session):
par1 = 10 ;
Parameters (R input):
par1 = pearson ; par2 = two.sided ;
R code (references can be found in the software module):
bitmap(file='test1.png')
plot(x,y, xlab=xlab, ylab=ylab)
abline(coef=(lm(y ~ x))$coeff, col='red')
ctp<-cor.test(x, y, use='pair', method='pearson')
legend('bottomright', c('cor =', as.character(round(ctp$estimate, digits=4))))
dev.off()
(sw1<-shapiro.test(x))
(sw2<-shapiro.test(y))
(cxy<-cor.test(x, y, method=par1))
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,paste('Shapiro Test (', xlab,')',sep=''),3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Statistic W',header=TRUE)
a<-table.element(a,'Probability',header=TRUE)
a<-table.element(a,'Link',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,round(sw1$statistic, digits=4))
a<-table.element(a,round(sw1$p.value, digits=4))
a<-table.element(a,hyperlink('http://en.wikipedia.org/wiki/Shapiro%E2%80%93Wilk_test','Shapiro-Wilk Test','Shapiro-Wilk Test'))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, paste('Shapiro Test (', ylab,')',sep=''),3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Statistic W',header=TRUE)
a<-table.element(a,'probability',header=TRUE)
a<-table.element(a,'Link',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,round(sw2$statistic, digits=4))
a<-table.element(a,round(sw2$p.value, digits=4))
a<-table.element(a,hyperlink('http://en.wikipedia.org/wiki/Shapiro%E2%80%93Wilk_test','Shapiro-Wilk Test','Shapiro-Wilk Test'))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Correlation Test X-Y',5,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Statistic',header=TRUE)
a<-table.element(a,'Value',header=TRUE)
a<-table.element(a,'probability',header=TRUE)
a<-table.element(a,'Method',header=TRUE)
a<-table.element(a,'alternative',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,names(cxy$estimate))
a<-table.element(a,round(cxy$estimate, digits=4))
a<-table.element(a,round(cxy$p.value, digits=4))
a<-table.element(a,cxy$method)
a<-table.element(a,cxy$alternative)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable2.tab')