R version 2.8.0 (2008-10-20) Copyright (C) 2008 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.361846007532772 + ,3.68863098861213 + ,0.682519663180303 + ,7.63067731671178 + ,-1.52075037210644 + ,5.70955581144987 + ,13.1939928862509 + ,-5.49940323517293 + ,1.76500444649349 + ,1.96677142422135 + ,-5.60662922820024 + ,-7.31646013152379 + ,-1.08563548801227 + ,-0.099103421317697 + ,-9.39514313732207 + ,-6.39447775845358 + ,-2.02805473224696 + ,0.903602088633067 + ,7.57491469457003 + ,-2.19407311445752 + ,3.58898833702079 + ,-1.68951274457543 + ,-1.53671157669086 + ,13.3598886375142 + ,-3.65726657887787 + ,0.613493186862468 + ,9.24506908223031 + ,11.0285738876639 + ,-3.49893748343257 + ,-6.55850163797107 + ,5.54750744110568 + ,16.5005808635365 + ,-0.0867999869147866 + ,-10.1895526735612 + ,-1.56002146200367 + ,3.61791774409454 + ,-3.46228026897451 + ,-0.839719033549138 + ,-1.74844063591575 + ,-5.59275453302008 + ,-4.31083509741400 + ,8.28778989827125 + ,-14.0676602788114 + ,-4.07578881412959 + ,3.95794121224257 + ,-2.54404876219145 + ,24.3555160491049 + ,11.7342693021934 + ,3.81944484749606 + ,-2.98176766619709 + ,7.45551605729516 + ,-6.39245158356992 + ,11.7003155629076 + ,2.36027611470617 + ,-7.48442696186156 + ,-2.54111530629837 + ,-2.30507409276129 + ,10.8550201878513 + ,-2.11331989623902 + ,3.4086895867965 + ,11.2003605872847 + ,-1.20537867882487 + ,5.81786820725412 + ,-2.61150202837964 + ,-1.54008349441135 + ,-5.42145151519334 + ,11.6034074049369 + ,-9.06789177079852) > par20 = '' > par19 = '' > par18 = '' > par17 = '' > par16 = '' > par15 = '' > par14 = '' > par13 = '' > par12 = '' > par11 = '' > par10 = '' > par9 = '' > par8 = '' > par7 = '' > par6 = '' > par5 = '' > par4 = '' > par3 = '' > par2 = '30' > par1 = '0' > ylab = '' > xlab = '' > main = '' > #'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/13ihz1230381030.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/20ge71230381030.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/3t9r11230381030.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/41b6j1230381030.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/5ygpz1230381030.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/6dizx1230381030.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. -14.0700 -3.4710 -0.9627 1.0670 5.5880 24.3600 > > #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/708bv1230381030.tab") > > system("convert tmp/13ihz1230381030.ps tmp/13ihz1230381030.png") > system("convert tmp/20ge71230381030.ps tmp/20ge71230381030.png") > system("convert tmp/3t9r11230381030.ps tmp/3t9r11230381030.png") > system("convert tmp/41b6j1230381030.ps tmp/41b6j1230381030.png") > system("convert tmp/5ygpz1230381030.ps tmp/5ygpz1230381030.png") > system("convert tmp/6dizx1230381030.ps tmp/6dizx1230381030.png") > > > proc.time() user system elapsed 1.313 0.894 3.581