R version 2.7.0 (2008-04-22) 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(1160.9 + ,1470.1 + ,1653 + ,1390 + ,1550.7 + ,1852.1 + ,1797.9 + ,1256.4 + ,1835.5 + ,1793.2 + ,1874.8 + ,1948.6 + ,1819.9 + ,1823.6 + ,2042.7 + ,1705.9 + ,1876.8 + ,1919.5 + ,1803.4 + ,1380.4 + ,1812.1 + ,1856.4 + ,1934.3 + ,1977.5 + ,1813.7 + ,1937.1 + ,2178.7 + ,1699.9 + ,1943.8 + ,2151 + ,1927.7 + ,1418.2 + ,1899.8 + ,1974.9 + ,1918.7 + ,1818.3 + ,1751 + ,1888 + ,1947.7 + ,1818.1 + ,2110.8 + ,2009 + ,2124.2 + ,1542.5 + ,2044.1 + ,2324.3 + ,2055.6 + ,2137.9 + ,2140.7 + ,2301.5 + ,2412.6 + ,2477 + ,2311.8 + ,2326.6 + ,2745.3 + ,1937.2 + ,2668.7 + ,2636.1 + ,2327.6 + ,2584.6 + ,2282.8 + ,2337 + ,2499.3 + ,2389.6 + ,2327.1 + ,2556.6 + ,2580 + ,1831.4 + ,2382.1 + ,2237.9 + ,2117.7 + ,2240.9 + ,1946.1 + ,2149.6 + ,2690 + ,2171.1 + ,2358.6 + ,2841.4 + ,3064.6 + ,2037.3 + ,2799.9 + ,2852.3 + ,2541.2 + ,2910 + ,2694.6 + ,3081.7 + ,3648.2 + ,2823.3 + ,3670.1 + ,3027.6 + ,3578.5 + ,2655.1 + ,3835.3 + ,3766 + ,3716 + ,3531.7 + ,3194 + ,3442.2 + ,3610 + ,3105.5 + ,3428.4 + ,3489.7 + ,3679 + ,2596.1 + ,3110.7 + ,3401.7 + ,3431.8 + ,3383.1 + ,3797.5 + ,3860.5 + ,4054.1 + ,4044.9 + ,4402.4 + ,4046.4 + ,4329.7 + ,3204.2 + ,4037.2 + ,4678.4 + ,4174.6 + ,4151.4 + ,3874.7 + ,3568 + ,3431 + ,3733.2 + ,3278.3 + ,3583.7 + ,4060.3 + ,2979 + ,4078.4 + ,4002.1 + ,3542.4 + ,3928.2 + ,3626 + ,3998.4 + ,4413.5 + ,3853.1 + ,3920.5 + ,4616.2 + ,4332.7 + ,3362.7 + ,3855.4 + ,4087.1 + ,3860.2 + ,4018.1 + ,3627.7 + ,3996 + ,4420.7 + ,4386.5 + ,4631.8 + ,4875.3 + ,4549.3 + ,3933 + ,4963.3 + ,4419.7 + ,4646.7 + ,5000.2 + ,4302.2 + ,4432.1 + ,5125.5 + ,4299.9 + ,5145.6 + ,4537.8 + ,4880.9 + ,4136.9 + ,4668.8 + ,4818.5 + ,4933.9 + ,4524.4 + ,4676.1 + ,4911 + ,5745 + ,4483.7 + ,4772.7 + ,5021.4 + ,5535.6 + ,4736 + ,5001.7 + ,5486.3 + ,4958.5 + ,4756.4 + ,4763.3 + ,4951.2 + ,4692.8 + ,5301.2 + ,4929.7 + ,5223.3 + ,5708.3 + ,4018) > 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/16yiz1228401140.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/2x5i31228401140.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/3ysf81228401140.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/4ri2o1228401140.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/5cpfj1228401140.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/6kak41228401140.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/7bt0m1228401140.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. 1161 2116 3199 3216 4141 5745 > > #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/8x6521228401140.tab") > > system("convert tmp/16yiz1228401140.ps tmp/16yiz1228401140.png") > system("convert tmp/2x5i31228401140.ps tmp/2x5i31228401140.png") > system("convert tmp/3ysf81228401140.ps tmp/3ysf81228401140.png") > system("convert tmp/4ri2o1228401140.ps tmp/4ri2o1228401140.png") > system("convert tmp/5cpfj1228401140.ps tmp/5cpfj1228401140.png") > system("convert tmp/6kak41228401140.ps tmp/6kak41228401140.png") > system("convert tmp/7bt0m1228401140.ps tmp/7bt0m1228401140.png") > > > proc.time() user system elapsed 3.173 1.786 3.445