R version 2.8.0 (2008-10-20) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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. > x <- c(0.084299365852926 + ,-15.5692124815993 + ,-6.9953619930182 + ,-2.07575919037298 + ,6.06472185178652 + ,3.10063183929146 + ,-7.27872604143293 + ,11.9305592423578 + ,-15.1800926797913 + ,-4.96965957564265 + ,-3.06184332688462 + ,5.17876413221274 + ,-2.29638814463019 + ,-1.85853257792512 + ,-8.74637895628288 + ,-8.02346934029272 + ,4.80319999595127 + ,3.90173526693944 + ,-11.3069080265042 + ,4.26225040152088 + ,-6.88628010104842 + ,4.12797896412461 + ,4.24824928932737 + ,-5.91811547446539 + ,-2.62127541719435 + ,-5.11947651478644 + ,-6.19169292552164 + ,1.57682830128841 + ,6.93381888926023 + ,1.30435330636300 + ,0.701451547474772 + ,18.1487693268603 + ,-13.6251962127511 + ,-8.9684198944174 + ,-3.48024416476534 + ,0.133268755660886 + ,0.156896176204026 + ,-1.28412130463800 + ,-8.4586972345603 + ,-2.91518278408049 + ,0.150465578819962 + ,3.86877987666889 + ,7.70993797103159 + ,-4.11650976301151 + ,-2.74475852656699 + ,3.19286810860467 + ,-6.2212027713738 + ,1.25489355791219 + ,4.23585013027417 + ,0.153440583363572 + ,-2.05719003274709 + ,2.14422869581576 + ,-1.68156215590428 + ,5.0318450949173 + ,2.24823311061623 + ,-6.58372573676435 + ,-2.85420176875137 + ,5.0379752614482 + ,4.43711208741108 + ,-0.675511401722624 + ,-2.50684702275299 + ,2.35909448398834 + ,-6.31849429304567 + ,-3.81949862816358 + ,2.17307118170725 + ,4.13663986179168 + ,-6.96229654560136 + ,5.28008601863276 + ,4.2774558989149) > par20 = '' > par19 = '' > par18 = '' > par17 = '' > par16 = '' > par15 = '' > par14 = '' > par13 = '' > par12 = '' > par11 = '' > par10 = '' > par9 = '' > par8 = '' > par7 = '' > par6 = '' > par5 = '' > par4 = '' > par3 = '' > par2 = '30' > par1 = '0' > ylab = '' > xlab = '' > main = '' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: Wessa P., (2007), Univariate Explorative Data Analysis (v1.0.5) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_edauni.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description > par1 <- as.numeric(par1) > par2 <- as.numeric(par2) > x <- as.ts(x) > library(lattice) > postscript(file="/var/www/html/freestat/rcomp/tmp/14z8g1230382845.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(x,type='l',main='Run Sequence Plot',xlab='time or index',ylab='value') > grid() > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/2oyc61230382845.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > hist(x) > grid() > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/3ti6a1230382845.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > if (par1 > 0) + { + densityplot(~x,col='black',main=paste('Density Plot bw = ',par1),bw=par1) + } else { + densityplot(~x,col='black',main='Density Plot') + } > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/465kc1230382845.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > qqnorm(x) > grid() > dev.off() null device 1 > if (par2 > 0) + { + postscript(file="/var/www/html/freestat/rcomp/tmp/5x88b1230382845.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) + dum <- cbind(lag(x,k=1),x) + dum + dum1 <- dum[2:length(x),] + dum1 + z <- as.data.frame(dum1) + z + plot(z,main=paste('Lag plot, lowess, and regression line')) + lines(lowess(z)) + abline(lm(z)) + dev.off() + postscript(file="/var/www/html/freestat/rcomp/tmp/6rjnq1230382845.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) + acf(x,lag.max=par2,main='Autocorrelation Function') + grid() + dev.off() + } null device 1 > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. -15.5700 -5.1190 -0.6755 -0.9424 3.9020 18.1500 > > #Note: the /var/www/html/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Descriptive Statistics',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'# observations',header=TRUE) > a<-table.element(a,length(x)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'minimum',header=TRUE) > a<-table.element(a,min(x)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Q1',header=TRUE) > a<-table.element(a,quantile(x,0.25)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'median',header=TRUE) > a<-table.element(a,median(x)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'mean',header=TRUE) > a<-table.element(a,mean(x)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Q3',header=TRUE) > a<-table.element(a,quantile(x,0.75)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'maximum',header=TRUE) > a<-table.element(a,max(x)) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/freestat/rcomp/tmp/7d81a1230382845.tab") > > system("convert tmp/14z8g1230382845.ps tmp/14z8g1230382845.png") > system("convert tmp/2oyc61230382845.ps tmp/2oyc61230382845.png") > system("convert tmp/3ti6a1230382845.ps tmp/3ti6a1230382845.png") > system("convert tmp/465kc1230382845.ps tmp/465kc1230382845.png") > system("convert tmp/5x88b1230382845.ps tmp/5x88b1230382845.png") > system("convert tmp/6rjnq1230382845.ps tmp/6rjnq1230382845.png") > > > proc.time() user system elapsed 2.171 1.531 2.439