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(0 + ,39 + ,0 + ,0 + ,305 + ,-9 + ,-1 + ,0 + ,0 + ,0 + ,33 + ,32 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,-3 + ,6 + ,0 + ,0 + ,70 + ,0 + ,5 + ,-5 + ,0 + ,0 + ,58 + ,37 + ,9 + ,0 + ,-31 + ,2865 + ,0 + ,14 + ,0 + ,32 + ,0 + ,0 + ,-4 + ,0 + ,0 + ,74 + ,20 + ,247 + ,11 + ,-6 + ,284 + ,819 + ,652 + ,0 + ,10 + ,22 + ,0 + ,0 + ,16 + ,-3 + ,0 + ,10 + ,0 + ,73 + ,0 + ,0 + ,0 + ,1974 + ,-129 + ,28328 + ,0 + ,0 + ,0 + ,0 + ,0 + ,238 + ,3040 + ,0 + ,0 + ,0 + ,1 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,1910 + ,38 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,17 + ,0 + ,0 + ,0 + ,0 + ,-366 + ,0 + ,2964 + ,0 + ,0 + ,36 + ,-8 + ,0 + ,-5 + ,0 + ,0 + ,38 + ,601 + ,132 + ,66 + ,0 + ,0 + ,195 + ,19 + ,-158 + ,0 + ,0 + ,0 + ,-70 + ,13 + ,3 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,101 + ,31 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,-4 + ,0 + ,0 + ,-12 + ,6 +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0 + ,0 + ,0 + ,66 + ,58 + ,23 + ,0 + ,0 + ,0 + ,1871 + ,0 + ,0 + ,0 + ,-31 + ,12 + ,-5 + ,0 + ,119 + ,0 + ,49 + ,24 + ,822 + ,0 + ,0 + ,85 + ,0 + ,28 + ,0 + ,0 + ,-5 + ,14 + ,0 + ,0 + ,0 + ,0 + ,0 + ,35 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,23 + ,12 + ,44 + ,0 + ,643 + ,-1 + ,0 + ,0 + ,217 + ,10 + ,108 + ,0 + ,0 + ,0 + ,-5 + ,25 + ,0 + ,59 + ,34 + ,0 + ,0 + ,0 + ,14 + ,2854 + ,0 + ,-10 + ,-28 + ,0 + ,0 + ,-2 + ,0 + ,0) > par2 = '20' > 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/1glur1292677792.ps",horizontal=F,onefile=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/2qcuc1292677792.ps",horizontal=F,onefile=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/3qcuc1292677792.ps",horizontal=F,onefile=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/4j3tf1292677792.ps",horizontal=F,onefile=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/5j3tf1292677792.ps",horizontal=F,onefile=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/6udai1292677792.ps",horizontal=F,onefile=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/754931292677792.ps",horizontal=F,onefile=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. -366.0 0.0 0.0 323.6 10.0 56290.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/81w7u1292677792.tab") > > try(system("convert tmp/1glur1292677792.ps tmp/1glur1292677792.png",intern=TRUE)) character(0) > try(system("convert tmp/2qcuc1292677792.ps tmp/2qcuc1292677792.png",intern=TRUE)) character(0) > try(system("convert tmp/3qcuc1292677792.ps tmp/3qcuc1292677792.png",intern=TRUE)) character(0) > try(system("convert tmp/4j3tf1292677792.ps tmp/4j3tf1292677792.png",intern=TRUE)) character(0) > try(system("convert tmp/5j3tf1292677792.ps tmp/5j3tf1292677792.png",intern=TRUE)) character(0) > try(system("convert tmp/6udai1292677792.ps tmp/6udai1292677792.png",intern=TRUE)) character(0) > try(system("convert tmp/754931292677792.ps tmp/754931292677792.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.694 1.237 4.003