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(-202894.96 + ,-203571.96 + ,-206213.96 + ,-206930.96 + ,-207906.96 + ,-205083.96 + ,-197142.96 + ,-195508.96 + ,-201852.96 + ,-209312.96 + ,-215093.96 + ,-215980.96 + ,-217984.96 + ,-219246.96 + ,-220070.96 + ,-222194.96 + ,-220307.96 + ,-217341.96 + ,-210856.96 + ,-212591.96 + ,-214402.96 + ,-220278.96 + ,-221472.96 + ,-222057.96 + ,-223961.96 + ,-225764.96 + ,-226832.96 + ,-225576.96 + ,-224942.96 + ,-220644.96 + ,-213456.96 + ,-214605.96 + ,-214919.96 + ,-222231.96 + ,-222503.96 + ,-224459.96 + ,-226122.96 + ,-227499.96 + ,-227843.96 + ,-227748.96 + ,-226647.96 + ,-220635.96 + ,-214625.96 + ,-213560.96 + ,-214212.96 + ,-208381.96 + ,-212828.96 + ,-213997.96 + ,-217012.96 + ,-218448.96 + ,-219267.96 + ,-220821.96 + ,-220445.96 + ,-214579.96 + ,-207404.96 + ,-207109.96 + ,-209989.96 + ,-217876.96 + ,-221171.96 + ,-221792.96 + ,-220593.96 + ,-224365.96 + ,-227494.96 + ,-229848.96 + ,-229550.96 + ,-223301.96 + ,-213658.96 + ,-209264.96 + ,-218305.96 + ,-223008.96 + ,-227531.96 + ,-228069.96 + ,-231113.96 + ,-233119.96 + ,-232344.96 + ,-234408.96 + ,-234697.96 + ,-225703.96 + ,-215371.96 + ,-211016.96 + ,-221290.96 + ,-227837.96 + ,-230619.96 + ,-233573.96 + ,-233781.96 + ,-236138.96 + ,-235159.96 + ,-237548.96 + ,-235372.96 + ,-229719.96 + ,-221110.96 + ,-216697.96 + ,-229614.96 + ,-237643.96 + ,-244281.96 + ,-249010.96 + ,-254037.96 + ,-257677.96 + ,-263391.96 + ,-265012.96 + ,-264884.96 + ,-261393.96 + ,-252471.96) > 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/freestat/rcomp/tmp/1f0yn1256143015.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/2rvsg1256143015.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/38f6d1256143015.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/4de6h1256143015.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/freestat/rcomp/tmp/5dshq1256143015.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/freestat/rcomp/tmp/6297q1256143015.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/freestat/rcomp/tmp/7rj9x1256143015.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. -265000 -228800 -221300 -223400 -214600 -195500 > > #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/85ntx1256143015.tab") > > system("convert tmp/1f0yn1256143015.ps tmp/1f0yn1256143015.png") > system("convert tmp/2rvsg1256143015.ps tmp/2rvsg1256143015.png") > system("convert tmp/38f6d1256143015.ps tmp/38f6d1256143015.png") > system("convert tmp/4de6h1256143015.ps tmp/4de6h1256143015.png") > system("convert tmp/5dshq1256143015.ps tmp/5dshq1256143015.png") > system("convert tmp/6297q1256143015.ps tmp/6297q1256143015.png") > system("convert tmp/7rj9x1256143015.ps tmp/7rj9x1256143015.png") > > > proc.time() user system elapsed 2.309 1.653 2.645