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(867.887509505211 + ,-2250.28069676838 + ,33618.3570412959 + ,9954.34468238836 + ,354.191730842355 + ,18882.406400463 + ,20229.4310915672 + ,268402.416151187 + ,-113346.926055862 + ,-45016.394227939 + ,35069.861367254 + ,58531.0957290091 + ,-77256.3771198791 + ,-31473.594568955 + ,-52391.0075132882 + ,32854.9847569661 + ,101107.732845397 + ,-176275.960398033 + ,79531.884415102 + ,-176414.251561376 + ,151290.579462589 + ,167731.594163443 + ,143237.122434691 + ,80251.9665265577 + ,118735.726273623 + ,75035.8259037494 + ,19198.3085437346 + ,-36364.5639276314 + ,-36170.5787440905 + ,-109567.395064155 + ,-100783.336097857 + ,-149267.403931369 + ,38947.3510583149 + ,58613.0600994635 + ,16074.4602044407 + ,-41563.0049150659 + ,-15970.5964777959 + ,-47563.9548420802 + ,59595.3577179922 + ,65897.8405390448 + ,-166489.283203891 + ,46312.3269884632 + ,-15952.8722863516 + ,-87780.6523566012 + ,134744.172737777 + ,75232.8122408289 + ,24408.7558471514 + ,-15406.1403381955 + ,-3766.75348767364 + ,27197.2239951006 + ,-46777.2890031503 + ,-82472.8212609495 + ,-35154.7184801844 + ,-46946.870011609 + ,-43641.5364941684 + ,-54920.7084991732 + ,54905.4038222157 + ,-10509.5840707596 + ,-13706.8046976985 + ,-42347.6087628011 + ,-28990.4687708701) > par2 = '0' > par1 = '0' > par2 <- '0' > 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/198d21354697728.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/2c0e61354697728.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/36xvq1354697728.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/4i9n11354697728.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/5dsh71354697728.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/6j4bp1354697728.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/7h6zf1354697728.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() + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. -176400 -45020 -2250 1808 54910 268400 > > #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/80ge71354697728.tab") > > try(system("convert tmp/198d21354697728.ps tmp/198d21354697728.png",intern=TRUE)) character(0) > try(system("convert tmp/2c0e61354697728.ps tmp/2c0e61354697728.png",intern=TRUE)) character(0) > try(system("convert tmp/36xvq1354697728.ps tmp/36xvq1354697728.png",intern=TRUE)) character(0) > try(system("convert tmp/4i9n11354697728.ps tmp/4i9n11354697728.png",intern=TRUE)) character(0) > try(system("convert tmp/5dsh71354697728.ps tmp/5dsh71354697728.png",intern=TRUE)) convert: unable to open image `tmp/5dsh71354697728.ps': @ error/blob.c/OpenBlob/2587. convert: missing an image filename `tmp/5dsh71354697728.png' @ error/convert.c/ConvertImageCommand/3011. character(0) attr(,"status") [1] 1 Warning message: running command 'convert tmp/5dsh71354697728.ps tmp/5dsh71354697728.png' had status 1 > try(system("convert tmp/6j4bp1354697728.ps tmp/6j4bp1354697728.png",intern=TRUE)) convert: unable to open image `tmp/6j4bp1354697728.ps': @ error/blob.c/OpenBlob/2587. convert: missing an image filename `tmp/6j4bp1354697728.png' @ error/convert.c/ConvertImageCommand/3011. character(0) attr(,"status") [1] 1 Warning message: running command 'convert tmp/6j4bp1354697728.ps tmp/6j4bp1354697728.png' had status 1 > try(system("convert tmp/7h6zf1354697728.ps tmp/7h6zf1354697728.png",intern=TRUE)) convert: unable to open image `tmp/7h6zf1354697728.ps': @ error/blob.c/OpenBlob/2587. convert: missing an image filename `tmp/7h6zf1354697728.png' @ error/convert.c/ConvertImageCommand/3011. character(0) attr(,"status") [1] 1 Warning message: running command 'convert tmp/7h6zf1354697728.ps tmp/7h6zf1354697728.png' had status 1 > > > proc.time() user system elapsed 2.479 0.667 3.148