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.103395775413547 + ,-0.102119071477734 + ,-0.0818766243906285 + ,-0.0119800214843379 + ,-0.0186348038511091 + ,0.0171247716603502 + ,0.0449528608692251 + ,0.0317466932293922 + ,0.0440576540139132 + ,0.0960227706176194 + ,0.0383337314021404 + ,-0.0314238215107543 + ,-0.0235957323018794 + ,-0.0157676430930045 + ,0.0351632166619939 + ,0.0309227921734532 + ,0.0177166245336203 + ,0.0320960990155569 + ,0.0354413166487858 + ,0.0387865342820146 + ,0.0186831371883051 + ,-0.0124545167541122 + ,-0.021177812818299 + ,-0.0288668520337780 + ,-0.0589702491274875 + ,-0.0466592883429665 + ,-0.0288311991340916 + ,-0.00100310992521664 + ,0.0244106214054278 + ,0.0322387106143028 + ,0.0500667998231777 + ,0.0434120174564065 + ,0.0502058498165736 + ,0.0338969116306172 + ,0.0831051018690146 + ,0.00989893422918181 + ,-0.0143414902593589 + ,-0.0220305294748379 + ,-0.0683394676607944 + ,0.0460400068211422 + ,0.088696811786478 + ,0.107905002024876 + ,0.100215962809397 + ,0.0156296941400409 + ,-0.0220593450754381 + ,-0.0456113568960858 + ,-0.0695092128975482 + ,-0.154095481566904 + ,-0.153164621811905 + ,-0.144302275754323 + ,-0.0947515170288468 + ,-0.0724405562443258 + ,-0.0249583112162656 + ,0.0570068053874405 + ,0.0834547935667928 + ,0.0561115985321286 + ,0.0604910730140652 + ,0.0328020337985862 + ,0.0209759671882759 + ,-0.00774732887591092 + ,0.00249511821119445) > par2 = '36' > 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/141621292933899.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/241621292933899.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/341621292933899.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/4xs651292933899.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/5xs651292933899.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/6q2n81292933899.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/70bmt1292933899.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. -1.541e-01 -2.883e-02 1.563e-02 -8.476e-18 3.879e-02 1.079e-01 > > #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/8xl221292933899.tab") > > try(system("convert tmp/141621292933899.ps tmp/141621292933899.png",intern=TRUE)) character(0) > try(system("convert tmp/241621292933899.ps tmp/241621292933899.png",intern=TRUE)) character(0) > try(system("convert tmp/341621292933899.ps tmp/341621292933899.png",intern=TRUE)) character(0) > try(system("convert tmp/4xs651292933899.ps tmp/4xs651292933899.png",intern=TRUE)) character(0) > try(system("convert tmp/5xs651292933899.ps tmp/5xs651292933899.png",intern=TRUE)) character(0) > try(system("convert tmp/6q2n81292933899.ps tmp/6q2n81292933899.png",intern=TRUE)) character(0) > try(system("convert tmp/70bmt1292933899.ps tmp/70bmt1292933899.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.479 1.068 4.416