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(-706.026542296181 + ,-59.4405579520267 + ,-969.833720383066 + ,1994.56903063601 + ,102.064814516947 + ,1282.18411025837 + ,-307.754606959943 + ,225.069461418321 + ,-862.471322666482 + ,-2850.16172979440 + ,-3875.76341994283 + ,2996.98129088558 + ,1931.51753614196 + ,488.179241950267 + ,-601.581627830989 + ,-3495.10356420977 + ,265.163825175723 + ,640.313274555833 + ,-3418.45097379814 + ,2072.03398243007 + ,2662.9984145817 + ,-1064.81719671349 + ,-9.57987333730985 + ,-2208.8867746199 + ,-4275.21498681124 + ,381.837227886395 + ,1914.99171248840 + ,1019.08609621188 + ,884.745394297871 + ,-1702.08983953302 + ,-2064.71644375347 + ,-2452.89205796152 + ,1313.39939683182 + ,-569.737683944086 + ,-187.9171774845 + ,-128.334928612711 + ,-2601.14827891639 + ,581.657297679053 + ,-299.792761503996 + ,2868.57371158154 + ,2723.0124492194 + ,-1846.18418996859 + ,-6526.92686969168 + ,-3652.78139505582 + ,2790.5729463211 + ,-7703.28365973859 + ,-1373.42544129638 + ,-2976.48819823291 + ,5585.1945937738 + ,-2568.07437379205 + ,-4750.48266905558 + ,1324.51875012340 + ,-1689.96832952026 + ,-7068.09981170815 + ,1855.55513995599 + ,2269.56153308754 + ,-4661.24493442205 + ,3260.97170059017 + ,2160.39821896397 + ,4793.18303923311 + ,-2209.06420471032 + ,-2213.50510931699 + ,-3114.14394163762 + ,3411.46075067066 + ,-4693.81993673823 + ,5920.52037235391 + ,-2077.91680939984 + ,-3642.83868232441 + ,332.648590721953 + ,2734.67402718683 + ,7903.1305482291 + ,5491.06198558059 + ,4354.83029956606 + ,1619.51905250655 + ,5543.22938817069 + ,-366.008933224093 + ,-3459.03179080274 + ,1134.72876550400 + ,-2525.56367971036 + ,-926.76612281528 + ,-2956.34221718809 + ,-885.143314774538) > 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/14xrt1262123573.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/2oe4t1262123573.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/3p89q1262123573.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/4e3pr1262123573.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/54u681262123573.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/6qf1r1262123573.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/7l8za1262123573.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. -7703.0 -2393.0 -243.9 -241.0 1900.0 7903.0 > > #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/8a8ym1262123573.tab") > > try(system("convert tmp/14xrt1262123573.ps tmp/14xrt1262123573.png",intern=TRUE)) character(0) > try(system("convert tmp/2oe4t1262123573.ps tmp/2oe4t1262123573.png",intern=TRUE)) character(0) > try(system("convert tmp/3p89q1262123573.ps tmp/3p89q1262123573.png",intern=TRUE)) character(0) > try(system("convert tmp/4e3pr1262123573.ps tmp/4e3pr1262123573.png",intern=TRUE)) character(0) > try(system("convert tmp/54u681262123573.ps tmp/54u681262123573.png",intern=TRUE)) character(0) > try(system("convert tmp/6qf1r1262123573.ps tmp/6qf1r1262123573.png",intern=TRUE)) character(0) > try(system("convert tmp/7l8za1262123573.ps tmp/7l8za1262123573.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.391 1.066 1.776