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(4581945 + ,3874038 + ,4086290 + ,4364364 + ,3793586 + ,4533914 + ,4823043 + ,3981535 + ,4746356 + ,5284534 + ,4264830 + ,3924674 + ,3734753 + ,3762290 + ,3609739 + ,3877594 + ,3636415 + ,3578195 + ,3604342 + ,3459513 + ,3366571 + ,3371277 + ,3724848 + ,3350830 + ,3305159 + ,3390736 + ,3349758 + ,3253655 + ,3734250 + ,3455433 + ,2966726 + ,2993716 + ,3009320 + ,3169713 + ,3170061 + ,3368934 + ,3292638 + ,3337344 + ,3208306 + ,3359130 + ,3223078 + ,3437159 + ,3400156 + ,3657576 + ,3765613 + ,3481921 + ,3604800 + ,3981340 + ,3734078 + ,4018173 + ,3887417 + ,3919880 + ,4014466 + ,4197758 + ,3896531 + ,3964742 + ,4201847 + ,4050512 + ,3997402 + ,4314479 + ,4925744 + ,5130631 + ,4444855 + ,3967319 + ,3931250 + ,4235952 + ,4169219 + ,3779064 + ,3558810 + ,3699466 + ,3650693 + ,3525633 + ,3470276 + ,3859094 + ,3661155 + ,3356365 + ,3344440 + ,3338684 + ,3404294 + ,3289319 + ,3469252 + ,3571850 + ,3639914 + ,3091730 + ,3078149 + ,3188115 + ,3246082 + ,3486992 + ,3378187 + ,3282306 + ,3288345 + ,3325749 + ,3352262 + ,3531954 + ,3722622 + ,3809365 + ,3750617 + ,3615286 + ,3696556 + ,4123959 + ,4136163 + ,3933392 + ,4035576 + ,4551202 + ,4032195 + ,3970893 + ,4489016 + ,5426127 + ,4578224 + ,4126390 + ,4892100 + ,4128697 + ,4408721 + ,4199465 + ,4074767 + ,4161758 + ,3891319 + ,4470302 + ,4283111 + ,3845962 + ,3911471 + ,3798478 + ,3644313 + ,3784029 + ,3647134 + ,3994662 + ,3607836 + ,3566008 + ,3511412 + ,3258665 + ,3486573 + ,3369443 + ,3465544 + ,3905224 + ,3733881 + ,3220642 + ,3225812 + ,3354461 + ,3352261 + ,3450652) > 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/18bif1322565565.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/2oyw71322565565.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/388ov1322565565.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/4fw9f1322565565.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/5pso81322565565.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/6b72i1322565565.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/73xfp1322565565.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. 2967000 3376000 3711000 3770000 4015000 5426000 > > #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/8rntz1322565565.tab") > > try(system("convert tmp/18bif1322565565.ps tmp/18bif1322565565.png",intern=TRUE)) character(0) > try(system("convert tmp/2oyw71322565565.ps tmp/2oyw71322565565.png",intern=TRUE)) character(0) > try(system("convert tmp/388ov1322565565.ps tmp/388ov1322565565.png",intern=TRUE)) character(0) > try(system("convert tmp/4fw9f1322565565.ps tmp/4fw9f1322565565.png",intern=TRUE)) character(0) > try(system("convert tmp/5pso81322565565.ps tmp/5pso81322565565.png",intern=TRUE)) convert: unable to open image `tmp/5pso81322565565.ps': No such file or directory @ blob.c/OpenBlob/2480. convert: missing an image filename `tmp/5pso81322565565.png' @ convert.c/ConvertImageCommand/2838. character(0) Warning message: running command 'convert tmp/5pso81322565565.ps tmp/5pso81322565565.png' had status 1 > try(system("convert tmp/6b72i1322565565.ps tmp/6b72i1322565565.png",intern=TRUE)) convert: unable to open image `tmp/6b72i1322565565.ps': No such file or directory @ blob.c/OpenBlob/2480. convert: missing an image filename `tmp/6b72i1322565565.png' @ convert.c/ConvertImageCommand/2838. character(0) Warning message: running command 'convert tmp/6b72i1322565565.ps tmp/6b72i1322565565.png' had status 1 > try(system("convert tmp/73xfp1322565565.ps tmp/73xfp1322565565.png",intern=TRUE)) convert: unable to open image `tmp/73xfp1322565565.ps': No such file or directory @ blob.c/OpenBlob/2480. convert: missing an image filename `tmp/73xfp1322565565.png' @ convert.c/ConvertImageCommand/2838. character(0) Warning message: running command 'convert tmp/73xfp1322565565.ps tmp/73xfp1322565565.png' had status 1 > > > proc.time() user system elapsed 1.472 0.270 1.751