R version 2.6.1 (2007-11-26) Copyright (C) 2007 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(63.8,46.8,-642.3,584.3,-900.8,-80.5,-122.8,847.4,-675.9,437.6,61.2,-420.3,687.2,-219.6,371.2,303.5,694.8,-125.4,904,-334.6,-952.7,1649.4,-1908.4,701.9,48.7,-68.8,-2.6,650.9,-1079.3,1095.5,-1390.7,-327.1,881.3,-902.8,568,-714.7,-522.6,-161.7,151,-1120.2,71.1,-17.6,211.9,354.7,709.6,-768.2,39.5,1090.7,-698.6,604.1,584.3,-733.5,948.5,-300.5,-83,-399.2,-282,-523.9,760.7,-151.7,-335.4,476.7,5.2,-56.1,177,-523.6,439.3,963.7,-652.2,-163.7,1544.7,-1429.2,1244.7,-363.1,-884.2,1053.3,0.3,-563.2,-1.2,-8,306.8,255,-1105.7,-104.1,524.2,280.8,-1034.7,1582,-358.6,581.9,-514,873.2,-1983.7,1732.6,-1010.5,296.8,-52.3,-793.3,1207.3,-1296.4,-1530.3,1412.6,-223.5,-892.7,1172.8,-25,363.6) > par2 = '36' > par1 = '0' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: Wessa P., (2007), Univariate Explorative Data Analysis (v1.0.5) 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 > #Technical description: Write here your technical program description > par1 <- as.numeric(par1) > par2 <- as.numeric(par2) > x <- as.ts(x) > library(lattice) > postscript(file="/var/www/html/rcomp/tmp/1h3z51199097411.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/2fnww1199097411.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/3yjla1199097411.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/4gigx1199097411.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > qqnorm(x) > grid() > dev.off() null device 1 > if (par2 > 0) + { + postscript(file="/var/www/html/rcomp/tmp/5af9a1199097411.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=paste('Lag plot, lowess, and regression line')) + lines(lowess(z)) + abline(lm(z)) + dev.off() + postscript(file="/var/www/html/rcomp/tmp/6w26n1199097411.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. -1984.0000 -523.1000 -8.0000 0.7607 575.0000 1733.0000 > 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/7dmgz1199097411.tab") > > system("convert tmp/1h3z51199097411.ps tmp/1h3z51199097411.png") > system("convert tmp/2fnww1199097411.ps tmp/2fnww1199097411.png") > system("convert tmp/3yjla1199097411.ps tmp/3yjla1199097411.png") > system("convert tmp/4gigx1199097411.ps tmp/4gigx1199097411.png") > system("convert tmp/5af9a1199097411.ps tmp/5af9a1199097411.png") > system("convert tmp/6w26n1199097411.ps tmp/6w26n1199097411.png") > > > proc.time() user system elapsed 1.623 0.953 1.829