R version 2.12.0 (2010-10-15) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > y <- c(140824,110459,105079,112098,43929,76173,22807,144408,66485,79089,81625,68788,103297,69446,114948,167949,125081,125818,136588,112431,82317,118906,83515,104581,103129,83243,37110,113344,139165,86652,112302,69652,119442,69867,70168,31081,103925,92622,79011,93487,64520,93473,114360,33032,96125,151911,89256,95671,5950,149695,32551,31701,100087,169707,150491,120192,95893,151715,176225,59900,104767,114799,72128,143592,89626,131072,126817,81351,22618,88977,92059,81897,108146,126372,249771,71154,71571,55918,160141,38692,102812,56622,15986,123534,108535,93879,144551,56750,127654,65594,59938,146975,143372,168553,183500,165986,184923,140358,149959,57224,43750,48029,104978,100046,101047,197426,160902,147172,109432,1168,83248,25162,45724,855,101382,14116,89506,135356,116066,144244,8773,102153,117440,104128,134238,134047,279488,79756,66089,102070,146760,154771,165933,64593,92280,67150,128692,124089,125386,37238,140015,150047,154451,156349,84601,68946,6179,52789,100350) > x <- c(272545 + ,179444 + ,222373 + ,218443 + ,167843 + ,70849 + ,33186 + ,216660 + ,213274 + ,307153 + ,237633 + ,166215 + ,364402 + ,244103 + ,384448 + ,325587 + ,323652 + ,176082 + ,266736 + ,278265 + ,180393 + ,189897 + ,234247 + ,238002 + ,267268 + ,270787 + ,155915 + ,342564 + ,282172 + ,216584 + ,318563 + ,98672 + ,391593 + ,273950 + ,227636 + ,115658 + ,349863 + ,324178 + ,178083 + ,195153 + ,177694 + ,153778 + ,455168 + ,78800 + ,208051 + ,348077 + ,175523 + ,224591 + ,24188 + ,372238 + ,65029 + ,101097 + ,279012 + ,317644 + ,340471 + ,358958 + ,252529 + ,377482 + ,304468 + ,270190 + ,264889 + ,228595 + ,216027 + ,198798 + ,238146 + ,234891 + ,175816 + ,239314 + ,73566 + ,242622 + ,187167 + ,209049 + ,360592 + ,342846 + ,207650 + ,206500 + ,182357 + ,153613 + ,456979 + ,145943 + ,280366 + ,80953 + ,150216 + ,167878 + ,369718 + ,322454 + ,179797 + ,264350 + ,262793 + ,189142 + ,275997 + ,328875 + ,189252 + ,222504 + ,287386 + ,389104 + ,397681 + ,287748 + ,294320 + ,186856 + ,43287 + ,185468 + ,235352 + ,268077 + ,305195 + ,143356 + ,154287 + ,307000 + ,298039 + ,23623 + ,195817 + ,61857 + ,163766 + ,21054 + ,252805 + ,31961 + ,317367 + ,240153 + ,175083 + ,152043 + ,38214 + ,216299 + ,357602 + ,198104 + ,410803 + ,316105 + ,397297 + ,187992 + ,102424 + ,286327 + ,409878 + ,143860 + ,391854 + ,157429 + ,258751 + ,282399 + ,217665 + ,367246 + ,239072 + ,173260 + ,323545 + ,168994 + ,253330 + ,301703 + ,246435 + ,384136 + ,46660 + ,116678 + ,206501) > ylab = 'totaal aantal characters' > xlab = 'totaal aantal seconden in rfc' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > postscript(file="/var/www/rcomp/tmp/13vsy1324214606.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > histx <- hist(x, plot=FALSE) > histy <- hist(y, plot=FALSE) > maxcounts <- max(c(histx$counts, histx$counts)) > xrange <- c(min(x),max(x)) > yrange <- c(min(y),max(y)) > nf <- layout(matrix(c(2,0,1,3),2,2,byrow=TRUE), c(3,1), c(1,3), TRUE) > par(mar=c(4,4,1,1)) > plot(x, y, xlim=xrange, ylim=yrange, xlab=xlab, ylab=ylab) > par(mar=c(0,4,1,1)) > barplot(histx$counts, axes=FALSE, ylim=c(0, maxcounts), space=0) > par(mar=c(4,0,1,1)) > barplot(histy$counts, axes=FALSE, xlim=c(0, maxcounts), space=0, horiz=TRUE) > dev.off() null device 1 > lx = length(x) > makebiased = (lx-1)/lx > varx = var(x)*makebiased > vary = var(y)*makebiased > corxy <- cor.test(x,y,method='pearson') > cxy <- as.matrix(corxy$estimate)[1,1] > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Pearson Product Moment Correlation - Ungrouped Data',3,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Statistic',1,TRUE) > a<-table.element(a,'Variable X',1,TRUE) > a<-table.element(a,'Variable Y',1,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/arithmetic_mean.htm','Mean',''),header=TRUE) > a<-table.element(a,mean(x)) > a<-table.element(a,mean(y)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/biased.htm','Biased Variance',''),header=TRUE) > a<-table.element(a,varx) > a<-table.element(a,vary) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/biased1.htm','Biased Standard Deviation',''),header=TRUE) > a<-table.element(a,sqrt(varx)) > a<-table.element(a,sqrt(vary)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/covariance.htm','Covariance',''),header=TRUE) > a<-table.element(a,cov(x,y),2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/pearson_correlation.htm','Correlation',''),header=TRUE) > a<-table.element(a,cxy,2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/coeff_of_determination.htm','Determination',''),header=TRUE) > a<-table.element(a,cxy*cxy,2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/ttest_statistic.htm','T-Test',''),header=TRUE) > a<-table.element(a,as.matrix(corxy$statistic)[1,1],2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'p-value (2 sided)',header=TRUE) > a<-table.element(a,(p2 <- as.matrix(corxy$p.value)[1,1]),2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'p-value (1 sided)',header=TRUE) > a<-table.element(a,p2/2,2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Degrees of Freedom',header=TRUE) > a<-table.element(a,lx-2,2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Number of Observations',header=TRUE) > a<-table.element(a,lx,2) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/rcomp/tmp/2bi6e1324214607.tab") > > try(system("convert tmp/13vsy1324214606.ps tmp/13vsy1324214606.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.720 0.060 0.781