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.385868851153837 + ,4.81234262686034 + ,-5.86804122114596 + ,16.0725680225492 + ,-8.57525163788969 + ,5.08247518971098 + ,0.092732021505415 + ,3.83298655010795 + ,5.81986266263392 + ,37.1247698411582 + ,-0.456916305824569 + ,-3.62813490741323 + ,-3.87648507892191 + ,4.61958462101272 + ,-12.967748044016 + ,3.19886759717217 + ,-5.74783565702396 + ,-0.568909646003526 + ,-7.15658094463292 + ,-18.0497313555278 + ,15.6314099338156 + ,-18.6819481453537 + ,-0.704909311621681 + ,2.59171945848611 + ,2.56763423323193 + ,0.363060127151921 + ,32.5587282582796 + ,8.52568321864334 + ,1.42269516052334 + ,3.53469472344553 + ,0.904411865388995 + ,-1.1005444418027 + ,13.3248076718110 + ,-33.5907843348750 + ,-0.845486516554237 + ,42.0892768528428 + ,-6.25360506437205 + ,-11.0785340316643 + ,-29.2902232669615 + ,-11.1727173982373 + ,13.9239510644368 + ,13.5369579913798 + ,-16.4941540115674 + ,-9.38355957013267 + ,-2.83541693438183 + ,-2.88173330956316 + ,6.18397479401454 + ,3.71189006095175 + ,3.17508248559435 + ,-4.18249526402528 + ,13.6042900329871 + ,4.81933405297545 + ,10.0482983006261 + ,9.69015652302726 + ,-13.6259654676286 + ,2.81390485024080 + ,2.39082408194279 + ,9.1175078099302 + ,14.2141474796521 + ,3.49385172983141 + ,5.51425675339953 + ,-6.1504957612917 + ,2.72297593670155 + ,-11.1163190852539 + ,-4.69675096946234 + ,1.81576665288666 + ,-10.4353591925503 + ,6.036622781552) > 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/1ntx51230383479.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/2c6gr1230383479.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/31dje1230383479.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/473ak1230383479.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/59i0l1230383479.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/63etw1230383479.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. -33.590 -5.778 1.619 1.017 5.591 42.090 > > #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/7m5wg1230383479.tab") > > system("convert tmp/1ntx51230383479.ps tmp/1ntx51230383479.png") > system("convert tmp/2c6gr1230383479.ps tmp/2c6gr1230383479.png") > system("convert tmp/31dje1230383479.ps tmp/31dje1230383479.png") > system("convert tmp/473ak1230383479.ps tmp/473ak1230383479.png") > system("convert tmp/59i0l1230383479.ps tmp/59i0l1230383479.png") > system("convert tmp/63etw1230383479.ps tmp/63etw1230383479.png") > > > proc.time() user system elapsed 1.994 1.375 2.290