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(67.643 + ,69.371 + ,66.294 + ,70.768 + ,71.774 + ,73.388 + ,74.040 + ,73.238 + ,78.121 + ,69.825 + ,71.099 + ,70.676 + ,69.515 + ,68.246 + ,68.594 + ,70.405 + ,61.223 + ,60.542 + ,61.952 + ,68.173 + ,67.240 + ,68.739 + ,69.234 + ,65.570 + ,67.408 + ,64.630 + ,68.848 + ,73.370 + ,74.292 + ,76.525 + ,74.368 + ,75.674 + ,74.868 + ,79.824 + ,80.022 + ,79.942 + ,80.622 + ,80.079 + ,79.212 + ,80.626 + ,83.551 + ,80.407 + ,85.053 + ,86.399 + ,88.536 + ,89.008 + ,89.652 + ,88.904 + ,87.472 + ,88.631 + ,87.221 + ,88.759 + ,90.127 + ,88.709 + ,90.030 + ,88.697 + ,88.762 + ,89.475 + ,88.936 + ,90.411 + ,90.004 + ,92.725 + ,90.252 + ,93.226 + ,92.575 + ,93.125 + ,95.987 + ,97.175 + ,97.321 + ,98.577 + ,99.026 + ,101.851 + ,99.958 + ,97.875 + ,97.927 + ,95.149 + ,94.551 + ,93.999 + ,93.297 + ,89.901 + ,89.742 + ,87.096 + ,86.863 + ,86.718 + ,80.020 + ,63.483 + ,51.289 + ,44.071 + ,43.654 + ,66.115 + ,84.518 + ,83.395 + ,78.307 + ,80.049 + ,78.346 + ,78.317 + ,75.918 + ,73.739 + ,74.530 + ,74.179 + ,76.974 + ,75.408 + ,73.336 + ,69.210 + ,67.286 + ,64.606 + ,64.159 + ,64.423 + ,66.411 + ,64.270 + ,56.521 + ,50.599 + ,54.751 + ,62.227 + ,63.932 + ,65.391 + ,75.744 + ,74.590 + ,76.035 + ,74.427 + ,73.354 + ,73.081 + ,75.309 + ,75.463 + ,75.910 + ,76.151 + ,76.882 + ,78.632 + ,80.137 + ,82.490 + ,79.896 + ,81.303 + ,79.344 + ,81.355 + ,82.328 + ,79.669 + ,77.249 + ,75.101 + ,72.520 + ,72.438 + ,72.653 + ,71.429 + ,69.189 + ,66.451 + ,63.354 + ,61.379 + ,61.880 + ,62.274 + ,62.429 + ,63.905 + ,63.917 + ,64.295 + ,61.930 + ,60.440 + ,59.353 + ,58.695 + ,60.569 + ,60.386 + ,60.938 + ,61.795 + ,63.304 + ,64.270 + ,63.492 + ,61.333 + ,59.341 + ,58.412 + ,58.725 + ,59.277 + ,58.562 + ,57.858 + ,58.790 + ,58.243 + ,57.044 + ,57.339 + ,59.429 + ,60.575 + ,61.950 + ,61.712) > 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/www/html/rcomp/tmp/1dgtt1290707516.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/2dgtt1290707516.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/3dgtt1290707516.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/4oqsw1290707516.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/5yh9h1290707516.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/6yh9h1290707516.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/7k08n1290707516.ps",horizontal=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. 43.65 64.19 74.11 74.41 83.17 101.90 > > #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/8grow1290707516.tab") > > try(system("convert tmp/1dgtt1290707516.ps tmp/1dgtt1290707516.png",intern=TRUE)) character(0) > try(system("convert tmp/2dgtt1290707516.ps tmp/2dgtt1290707516.png",intern=TRUE)) character(0) > try(system("convert tmp/3dgtt1290707516.ps tmp/3dgtt1290707516.png",intern=TRUE)) character(0) > try(system("convert tmp/4oqsw1290707516.ps tmp/4oqsw1290707516.png",intern=TRUE)) character(0) > try(system("convert tmp/5yh9h1290707516.ps tmp/5yh9h1290707516.png",intern=TRUE)) convert: unable to open image `tmp/5yh9h1290707516.ps': No such file or directory. convert: missing an image filename `tmp/5yh9h1290707516.png'. character(0) > try(system("convert tmp/6yh9h1290707516.ps tmp/6yh9h1290707516.png",intern=TRUE)) convert: unable to open image `tmp/6yh9h1290707516.ps': No such file or directory. convert: missing an image filename `tmp/6yh9h1290707516.png'. character(0) > try(system("convert tmp/7k08n1290707516.ps tmp/7k08n1290707516.png",intern=TRUE)) convert: unable to open image `tmp/7k08n1290707516.ps': No such file or directory. convert: missing an image filename `tmp/7k08n1290707516.png'. character(0) > > > proc.time() user system elapsed 1.118 0.679 2.552