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.00129909929391305 + ,0.0399953455650052 + ,-0.0388246377373741 + ,-0.00331410653299091 + ,0.0210839113108800 + ,-0.0306161034410643 + ,-0.0177106810085845 + ,-0.046387990142741 + ,0.000293807560611557 + ,0.0283994201318544 + ,-0.0097276499256617 + ,-0.0226399010542774 + ,-0.0154224216079923 + ,0.0180996287729906 + ,0.0174136599175999 + ,-0.0230868312646511 + ,0.0152995239008014 + ,0.0186909303105856 + ,0.0411546583121751 + ,-0.0309853409627296 + ,0.00641105220624505 + ,0.0159182504768269 + ,-0.0129464581053229 + ,-0.0128078454602796 + ,0.0274724628079561 + ,0.0283118917490450 + ,-0.0263638289790966 + ,0.00959383292935723 + ,0.0166833770244468 + ,0.0265094201387677 + ,-0.00109417116631749 + ,-0.0125243883301391 + ,0.0328788388222352 + ,-0.0150708239891775 + ,0.0280916856622302 + ,0.0249707612360408 + ,0.0417384790369306 + ,-0.0189545400438149 + ,0.0134272541571829 + ,0.00114937541706439 + ,0.0792737906675707 + ,0.00631274994392772 + ,-0.0258498505131595 + ,0.00309104687364825 + ,0.0263272745307186 + ,-0.0872423105882159 + ,-0.0367158144235664 + ,-0.0859756758601653 + ,-0.027777298319539 + ,0.0830853071279365 + ,-0.0362488888752577 + ,-0.0402967807676649 + ,0.0486619532670178 + ,0.00786966021276925 + ,0.0390206657243493 + ,0.0258356960136144 + ,0.00122924684045933 + ,0.00419954182511484 + ,0.0191498676670216 + ,0.00542117110649887 + ,-0.00117174374524698) > 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/159dg1262258731.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/2sfr81262258731.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/3z2wc1262258731.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/4xn4u1262258731.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/58s3z1262258731.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/65kmd1262258731.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/7fhbb1262258731.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.087240 -0.017710 0.004200 0.002371 0.024970 0.083090 > > #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/8r3571262258731.tab") > > try(system("convert tmp/159dg1262258731.ps tmp/159dg1262258731.png",intern=TRUE)) character(0) > try(system("convert tmp/2sfr81262258731.ps tmp/2sfr81262258731.png",intern=TRUE)) character(0) > try(system("convert tmp/3z2wc1262258731.ps tmp/3z2wc1262258731.png",intern=TRUE)) character(0) > try(system("convert tmp/4xn4u1262258731.ps tmp/4xn4u1262258731.png",intern=TRUE)) character(0) > try(system("convert tmp/58s3z1262258731.ps tmp/58s3z1262258731.png",intern=TRUE)) character(0) > try(system("convert tmp/65kmd1262258731.ps tmp/65kmd1262258731.png",intern=TRUE)) character(0) > try(system("convert tmp/7fhbb1262258731.ps tmp/7fhbb1262258731.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.409 1.007 2.529