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(-141.2287279 + ,-141.230722 + ,-141.2172894 + ,-141.2104839 + ,-141.2001724 + ,-141.2040836 + ,-141.2031403 + ,-141.2045615 + ,-141.1880837 + ,-141.1839868 + ,-141.193004 + ,-141.2048387 + ,-141.1981816 + ,-141.1991198 + ,-141.1565811 + ,-141.1556129 + ,-141.1601728 + ,-141.1743647 + ,-141.1772293 + ,-141.188313 + ,-141.1623971 + ,-141.1607155 + ,-141.1587452 + ,-141.1776536 + ,-141.163746 + ,-141.166588 + ,-141.1444941 + ,-141.1433699 + ,-141.1384494 + ,-141.1544543 + ,-141.1713729 + ,-141.1657041 + ,-141.1523934 + ,-141.155654 + ,-141.1433398 + ,-141.1622093 + ,-141.1648542 + ,-141.1549135 + ,-141.130699 + ,-141.1288856 + ,-141.1375336 + ,-141.1405138 + ,-141.1471479 + ,-141.1514467 + ,-141.1347962 + ,-141.1366417 + ,-141.1294108 + ,-141.1391333 + ,-141.1511177 + ,-141.151962 + ,-141.1382373 + ,-141.1249875 + ,-141.1265371 + ,-141.1441258 + ,-141.1461183 + ,-141.1592105 + ,-141.1470305 + ,-141.144499 + ,-141.1293629 + ,-141.143799 + ,-141.1416626 + ,-141.1369528 + ,-141.1255995 + ,-141.114666 + ,-141.0940851 + ,-141.1230372 + ,-141.1141902 + ,-141.1217537 + ,-141.1123827 + ,-141.1082666 + ,-141.1159782 + ,-141.120065 + ,-141.1219308 + ,-141.1200884 + ,-141.1062168 + ,-141.1001828 + ,-141.0874942 + ,-141.0565963 + ,-141.0460604 + ,-141.0370362 + ,-140.9956085 + ,-140.9820963 + ,-140.9961557 + ,-140.9890413 + ,-141.0038462 + ,-140.9933328 + ,-140.9792605 + ,-140.9645319 + ,-140.9691655 + ,-140.9805655) > 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/17og51262201977.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/2zke71262201977.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/3hx7r1262201977.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/44en91262201977.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/5taae1262201977.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/6n4ht1262201977.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/7raak1262201977.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. -141.2 -141.2 -141.1 -141.1 -141.1 -141.0 > > #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/8yas21262201977.tab") > > try(system("convert tmp/17og51262201977.ps tmp/17og51262201977.png",intern=TRUE)) character(0) > try(system("convert tmp/2zke71262201977.ps tmp/2zke71262201977.png",intern=TRUE)) character(0) > try(system("convert tmp/3hx7r1262201977.ps tmp/3hx7r1262201977.png",intern=TRUE)) character(0) > try(system("convert tmp/44en91262201977.ps tmp/44en91262201977.png",intern=TRUE)) character(0) > try(system("convert tmp/5taae1262201977.ps tmp/5taae1262201977.png",intern=TRUE)) character(0) > try(system("convert tmp/6n4ht1262201977.ps tmp/6n4ht1262201977.png",intern=TRUE)) character(0) > try(system("convert tmp/7raak1262201977.ps tmp/7raak1262201977.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.440 1.001 2.665