R version 2.13.0 (2011-04-13) Copyright (C) 2011 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. > x <- c(279055 + ,212408 + ,233939 + ,222117 + ,189911 + ,70849 + ,605767 + ,33186 + ,227332 + ,267925 + ,371987 + ,264989 + ,212638 + ,368577 + ,269455 + ,398124 + ,335567 + ,428322 + ,182016 + ,267365 + ,279428 + ,508849 + ,217270 + ,200004 + ,257139 + ,270941 + ,324969 + ,329962 + ,190867 + ,393860 + ,327660 + ,269239 + ,396136 + ,130446 + ,430118 + ,273950 + ,428077 + ,254312 + ,120351 + ,395658 + ,345875 + ,216827 + ,224524 + ,182485 + ,157164 + ,459455 + ,78800 + ,255072 + ,368086 + ,230299 + ,244782 + ,24188 + ,400109 + ,65029 + ,101097 + ,309810 + ,375638 + ,367127 + ,381998 + ,280106 + ,400971 + ,315924 + ,291391 + ,295075 + ,280018 + ,267432 + ,217181 + ,258166 + ,264771 + ,182961 + ,256967 + ,73566 + ,272362 + ,229056 + ,229851 + ,371391 + ,398210 + ,220419 + ,231884 + ,219381 + ,206169 + ,483074 + ,146100 + ,295224 + ,80953 + ,217384 + ,179344 + ,415550 + ,389059 + ,180679 + ,299505 + ,292260 + ,199481 + ,282361 + ,329281 + ,234577 + ,297995 + ,342490 + ,416463 + ,415683 + ,297080 + ,331792 + ,229772 + ,43287 + ,238089 + ,263322 + ,302082 + ,321797 + ,193926 + ,175138 + ,354041 + ,303273 + ,23668 + ,196743 + ,61857 + ,217543 + ,440711 + ,21054 + ,252805 + ,31961 + ,360436 + ,251948 + ,187320 + ,180842 + ,38214 + ,280392 + ,358276 + ,211775 + ,447335 + ,348017 + ,441946 + ,215177 + ,130177 + ,318037 + ,466139 + ,162279 + ,416643 + ,178322 + ,292443 + ,283913 + ,244931 + ,387072 + ,246963 + ,173260 + ,346748 + ,178402 + ,268750 + ,314070 + ,1 + ,14688 + ,98 + ,455 + ,0 + ,0 + ,291847 + ,415421 + ,0 + ,203 + ,7199 + ,46660 + ,17547 + ,121550 + ,969 + ,242774) > par2 = '0' > par1 = '0' > #'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!) > par1 <- as.numeric(par1) > par2 <- as.numeric(par2) > x <- as.ts(x) > library(lattice) > postscript(file="/var/wessaorg/rcomp/tmp/1czof1324659422.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2b69b1324659422.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > hist(x) > grid() > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/3aheq1324659422.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4m3171324659422.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > qqnorm(x) > qqline(x) > grid() > dev.off() null device 1 > if (par2 > 0) + { + postscript(file="/var/wessaorg/rcomp/tmp/5p9by1324659422.ps",horizontal=F,onefile=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='Lag plot (k=1), lowess, and regression line') + lines(lowess(z)) + abline(lm(z)) + dev.off() + if (par2 > 1) { + postscript(file="/var/wessaorg/rcomp/tmp/6kb5d1324659422.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) + dum <- cbind(lag(x,k=par2),x) + dum + dum1 <- dum[(par2+1):length(x),] + dum1 + z <- as.data.frame(dum1) + z + mylagtitle <- 'Lag plot (k=' + mylagtitle <- paste(mylagtitle,par2,sep='') + mylagtitle <- paste(mylagtitle,'), and lowess',sep='') + plot(z,main=mylagtitle) + lines(lowess(z)) + dev.off() + } + postscript(file="/var/wessaorg/rcomp/tmp/7bl7m1324659422.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) + acf(x,lag.max=par2,main='Autocorrelation Function') + grid() + dev.off() + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 0 182400 257100 248000 330400 605800 > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/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/wessaorg/rcomp/tmp/8ilxu1324659422.tab") > > try(system("convert tmp/1czof1324659422.ps tmp/1czof1324659422.png",intern=TRUE)) character(0) > try(system("convert tmp/2b69b1324659422.ps tmp/2b69b1324659422.png",intern=TRUE)) character(0) > try(system("convert tmp/3aheq1324659422.ps tmp/3aheq1324659422.png",intern=TRUE)) character(0) > try(system("convert tmp/4m3171324659422.ps tmp/4m3171324659422.png",intern=TRUE)) character(0) > try(system("convert tmp/5p9by1324659422.ps tmp/5p9by1324659422.png",intern=TRUE)) convert: unable to open image `tmp/5p9by1324659422.ps': No such file or directory @ blob.c/OpenBlob/2480. convert: missing an image filename `tmp/5p9by1324659422.png' @ convert.c/ConvertImageCommand/2838. character(0) Warning message: running command 'convert tmp/5p9by1324659422.ps tmp/5p9by1324659422.png' had status 1 > try(system("convert tmp/6kb5d1324659422.ps tmp/6kb5d1324659422.png",intern=TRUE)) convert: unable to open image `tmp/6kb5d1324659422.ps': No such file or directory @ blob.c/OpenBlob/2480. convert: missing an image filename `tmp/6kb5d1324659422.png' @ convert.c/ConvertImageCommand/2838. character(0) Warning message: running command 'convert tmp/6kb5d1324659422.ps tmp/6kb5d1324659422.png' had status 1 > try(system("convert tmp/7bl7m1324659422.ps tmp/7bl7m1324659422.png",intern=TRUE)) convert: unable to open image `tmp/7bl7m1324659422.ps': No such file or directory @ blob.c/OpenBlob/2480. convert: missing an image filename `tmp/7bl7m1324659422.png' @ convert.c/ConvertImageCommand/2838. character(0) Warning message: running command 'convert tmp/7bl7m1324659422.ps tmp/7bl7m1324659422.png' had status 1 > > > proc.time() user system elapsed 1.326 0.313 1.646