R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-bit) 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(-28 + ,-26 + ,-27 + ,-26 + ,-27 + ,-27 + ,-27 + ,-28 + ,-26 + ,-13 + ,-13 + ,-14 + ,-12 + ,-16 + ,-16 + ,-12 + ,-15 + ,-18 + ,-17 + ,-10 + ,-9 + ,-13 + ,-15 + ,-12 + ,-13 + ,-10 + ,-13 + ,-11 + ,-12 + ,-10 + ,-13 + ,-12 + ,-11 + ,-11 + ,-11 + ,-8 + ,-7 + ,-10 + ,-8 + ,-8 + ,-7 + ,-7 + ,-6 + ,-8 + ,-6 + ,-3 + ,1 + ,0 + ,-3 + ,0 + ,0 + ,-1 + ,-1 + ,0 + ,1 + ,0 + ,2 + ,3 + ,2 + ,4 + ,3 + ,4 + ,3 + ,1 + ,2 + ,4 + ,3 + ,2 + ,-4 + ,-5 + ,-5 + ,-7 + ,-13 + ,-11 + ,-3 + ,-3 + ,-5 + ,-4 + ,-4 + ,-4 + ,-5 + ,-4 + ,-5 + ,-6 + ,-9 + ,-10 + ,-11 + ,-13 + ,-13 + ,-13 + ,-11 + ,-12 + ,-14 + ,-20 + ,-17 + ,-16 + ,-24 + ,-24 + ,-22 + ,-25 + ,-24 + ,-25 + ,-24 + ,-25 + ,-24 + ,-26 + ,-25 + ,-24 + ,-22 + ,-20 + ,-14 + ,-13 + ,-10 + ,-10 + ,-11 + ,-6 + ,-2 + ,-3 + ,-2 + ,-4 + ,-7 + ,-8 + ,-7 + ,-4 + ,-7 + ,-5 + ,-6 + ,-12 + ,-12 + ,-16 + ,-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+ ,0 + ,-2 + ,-3 + ,1 + ,-2 + ,-1 + ,1 + ,-3 + ,-4 + ,-9 + ,-9 + ,-7 + ,-14 + ,-12 + ,-16 + ,-20 + ,-12 + ,-12 + ,-10 + ,-10 + ,-13 + ,-16 + ,-14 + ,-17 + ,-24) > par2 = '36' > par1 = '0' > par2 <- '36' > par1 <- '0' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P., (2012), Univariate Explorative Data Analysis (v1.0.9) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_edauni.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > # > par1 <- as.numeric(par1) > par2 <- as.numeric(par2) > x <- as.ts(x) > library(lattice) > postscript(file="/var/fisher/rcomp/tmp/1btgy1355589655.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/fisher/rcomp/tmp/2fo0m1355589655.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/fisher/rcomp/tmp/3g9ja1355589655.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/fisher/rcomp/tmp/4knwg1355589655.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/fisher/rcomp/tmp/5tz6r1355589655.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/fisher/rcomp/tmp/6n7m51355589655.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/fisher/rcomp/tmp/7jxrl1355589656.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. -28.000 -13.000 -7.000 -7.376 -1.000 16.000 > > #Note: the /var/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/8tmx51355589656.tab") > > try(system("convert tmp/1btgy1355589655.ps tmp/1btgy1355589655.png",intern=TRUE)) character(0) > try(system("convert tmp/2fo0m1355589655.ps tmp/2fo0m1355589655.png",intern=TRUE)) character(0) > try(system("convert tmp/3g9ja1355589655.ps tmp/3g9ja1355589655.png",intern=TRUE)) character(0) > try(system("convert tmp/4knwg1355589655.ps tmp/4knwg1355589655.png",intern=TRUE)) character(0) > try(system("convert tmp/5tz6r1355589655.ps tmp/5tz6r1355589655.png",intern=TRUE)) character(0) > try(system("convert tmp/6n7m51355589655.ps tmp/6n7m51355589655.png",intern=TRUE)) character(0) > try(system("convert tmp/7jxrl1355589656.ps tmp/7jxrl1355589656.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 4.305 1.149 5.450