R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(9.21658481064732e-06 + ,-0.00029788936701127 + ,-0.000237595445619398 + ,0.000176386639516741 + ,-0.000354517420077153 + ,-0.000704448564633498 + ,0.000513049322447122 + ,-0.000153768338800356 + ,-0.000165495788075780 + ,0.000140072526121174 + ,0.000346620687208592 + ,0.000161916908058288 + ,-0.000165099254299721 + ,-1.69432824053433e-06 + ,-0.000354149939969856 + ,-0.000342774975550734 + ,-4.96908925173395e-06 + ,0.000111232688614015 + ,-5.71770531287065e-05 + ,-0.000121692129730065 + ,0.000224672210051711 + ,-0.000246864010604340 + ,0.000322726843768265 + ,-4.30529292240296e-05 + ,-0.000418419406504748 + ,-0.000378004975610374 + ,-3.24021390863647e-05 + ,-2.7363752224343e-05 + ,-0.000183622849538695 + ,9.90770631009303e-05 + ,0.000173737572911515 + ,-0.000202839888158976 + ,-0.000286608152931299 + ,4.11099519259386e-05 + ,3.30589617581101e-05 + ,-0.00050937217008082 + ,-1.86226730255005e-05 + ,-0.000118364395817495 + ,-0.000351397442503670 + ,-0.000205285906638802 + ,-0.000344501241171445 + ,4.54893857804128e-05 + ,0.000109739140624292 + ,-2.35892220696581e-05 + ,-0.000303095753286898 + ,0.000127032893461342 + ,0.000362429017832127 + ,9.35340989467158e-05 + ,0.00092306316611607 + ,-2.51463122583867e-05 + ,-4.81959851185288e-06 + ,-0.000551396477544085 + ,0.000275472153350846 + ,4.66854128330299e-05 + ,-0.000300923258584334 + ,-0.000370178149715601 + ,7.01982462032013e-06 + ,0.00042811187175734 + ,-0.000220158172407577 + ,0.000276271760846798 + ,-0.000249130118572832) > par2 = '36' > 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/www/html/rcomp/tmp/1znc81260459488.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/rcomp/tmp/25itm1260459488.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/rcomp/tmp/337gg1260459488.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/rcomp/tmp/4egkz1260459488.ps",horizontal=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/www/html/rcomp/tmp/53yv11260459488.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='Lag plot (k=1), lowess, and regression line') + lines(lowess(z)) + abline(lm(z)) + dev.off() + if (par2 > 1) { + postscript(file="/var/www/html/rcomp/tmp/60f971260459488.ps",horizontal=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/www/html/rcomp/tmp/7ceu31260459488.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. -7.044e-04 -2.491e-04 -2.736e-05 -5.457e-05 1.097e-04 9.231e-04 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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/rcomp/tmp/8yvyq1260459488.tab") > > system("convert tmp/1znc81260459488.ps tmp/1znc81260459488.png") > system("convert tmp/25itm1260459488.ps tmp/25itm1260459488.png") > system("convert tmp/337gg1260459488.ps tmp/337gg1260459488.png") > system("convert tmp/4egkz1260459488.ps tmp/4egkz1260459488.png") > system("convert tmp/53yv11260459488.ps tmp/53yv11260459488.png") > system("convert tmp/60f971260459488.ps tmp/60f971260459488.png") > system("convert tmp/7ceu31260459488.ps tmp/7ceu31260459488.png") > > > proc.time() user system elapsed 1.454 1.030 3.082