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.00104880818960712 + ,0.0416160237419096 + ,-0.0338499782241214 + ,0.0353477892933573 + ,0.087601565487602 + ,0.0565373386741089 + ,0.0120357360156818 + ,0.109211462484433 + ,-0.0467548292693616 + ,-0.0465986074252235 + ,-0.0478086219839781 + ,-0.0101776267295282 + ,-0.0043444235187697 + ,0.0115505520830002 + ,0.0294726346431616 + ,-0.0207464694183992 + ,-0.108742331006367 + ,-0.0120541869010857 + ,-0.0977511153454226 + ,0.0104209411511253 + ,-0.0182809554748909 + ,-0.0146226109233279 + ,0.0809771178310232 + ,0.104096768554553 + ,-0.11004943586931 + ,0.0177235034682988 + ,0.148210643003007 + ,0.0159858215388215 + ,-0.080339589560197 + ,0.0189713879536482 + ,-0.195098794528279 + ,0.271426377338088 + ,-0.0447053363491143 + ,-0.00449205682122399 + ,-0.0121206813775077 + ,0.0971613701360345 + ,-0.0114377411716324 + ,0.00464166912282404 + ,-0.0454225447763135 + ,0.107954973702707 + ,0.0595510227798072 + ,0.0543451738129008 + ,0.082213129590084 + ,0.0571745201054981 + ,0.0879669789090777 + ,0.08422144556691 + ,0.0555620924821564 + ,-0.0108013119613106 + ,-0.0098776288544526 + ,0.0743397524570958 + ,-0.0540211156612181 + ,-0.163141470530824 + ,-0.00914630787384997 + ,-0.00232652637852616 + ,-0.000923044690914167 + ,-0.0678801079101023 + ,-0.0715163050846508 + ,-0.111662424475099 + ,-0.0533783220931399 + ,-0.00129906864325586 + ,-0.0304997722677595) > 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/1nqnz1261571272.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/2e2p31261571272.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/3fkqu1261571272.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/4jk141261571272.ps",horizontal=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/5jr171261571272.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='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/635xe1261571272.ps",horizontal=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/7n9ka1261571272.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. -0.195100 -0.044710 -0.002327 0.004352 0.055560 0.271400 > > #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/8kzc41261571272.tab") > > try(system("convert tmp/1nqnz1261571272.ps tmp/1nqnz1261571272.png",intern=TRUE)) character(0) > try(system("convert tmp/2e2p31261571272.ps tmp/2e2p31261571272.png",intern=TRUE)) character(0) > try(system("convert tmp/3fkqu1261571272.ps tmp/3fkqu1261571272.png",intern=TRUE)) character(0) > try(system("convert tmp/4jk141261571272.ps tmp/4jk141261571272.png",intern=TRUE)) character(0) > try(system("convert tmp/5jr171261571272.ps tmp/5jr171261571272.png",intern=TRUE)) character(0) > try(system("convert tmp/635xe1261571272.ps tmp/635xe1261571272.png",intern=TRUE)) character(0) > try(system("convert tmp/7n9ka1261571272.ps tmp/7n9ka1261571272.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.438 1.023 5.491