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(-183.9235445 + ,-177.0726091 + ,-228.6351091 + ,-237.4476091 + ,-127.7601091 + ,-193.0101091 + ,-220.6351091 + ,-164.5101091 + ,-268.3226091 + ,-333.6976091 + ,-34.26010911 + ,-154.8851091 + ,-97.74528053 + ,101.1056549 + ,2.543154874 + ,-43.26934513 + ,-163.5818451 + ,-162.8318451 + ,46.54315487 + ,26.66815487 + ,-107.1443451 + ,42.48065487 + ,76.91815487 + ,196.2931549 + ,201.4329835 + ,12.28391886 + ,-0.278581137 + ,42.90891886 + ,87.59641886 + ,84.34641886 + ,57.72141886 + ,173.8464189 + ,-185.9660811 + ,47.65891886 + ,89.09641886 + ,-68.52858114 + ,272.6112475 + ,146.4621829 + ,162.8996829 + ,10.08718285 + ,279.7746829 + ,212.5246829 + ,248.8996829 + ,-41.97531715 + ,-5.787817149 + ,52.83718285 + ,274.2746829 + ,414.6496829 + ,310.7895114 + ,362.6404468 + ,26.07794684 + ,403.2654468 + ,327.9529468 + ,193.7029468 + ,317.0779468 + ,202.2029468 + ,321.3904468 + ,178.0154468 + ,16.45294684 + ,-68.17205316 + ,-157.0322246 + ,-76.18128917 + ,-81.74378917 + ,-134.5562892 + ,77.13121083 + ,199.8812108 + ,105.2562108 + ,198.3812108 + ,262.5687108 + ,196.1937108 + ,11.63121083 + ,-145.9937892 + ,-166.8539606 + ,-202.0030252 + ,43.43447482 + ,-113.3780252 + ,-113.6905252 + ,-155.9405252 + ,-210.5655252 + ,-124.4405252 + ,-64.25302518 + ,-298.6280252 + ,-154.1905252 + ,23.18447482 + ,-249.6756966 + ,118.1752388 + ,-180.3872612 + ,-79.19976119 + ,-81.51226119 + ,-246.7622612 + ,-105.3872612 + ,-319.2622612 + ,-72.07476119 + ,-90.44976119 + ,-80.01226119 + ,119.3627388 + ,-53.49743261 + ,-114.6464972 + ,-155.2089972 + ,-50.02149721 + ,-196.3339972 + ,-14.58399721 + ,-82.20899721 + ,17.91600279 + ,-162.8964972 + ,-132.2714972 + ,-16.83399721 + ,81.54100279 + ,275.6808314 + ,-32.46823322 + ,17.96926678 + ,27.15676678 + ,-123.1557332 + ,108.5942668 + ,67.96926678 + ,34.09426678 + ,-13.71823322 + ,-113.0932332 + ,54.34426678 + ,149.7192668 + ,153.8590954 + ,-28.28996923 + ,238.1475308 + ,50.33503077 + ,8.022530771 + ,-61.22746923 + ,-140.8524692 + ,-28.72746923 + ,9.460030771 + ,-121.9149692 + ,41.52253077 + ,115.8975308 + ,27.03735936 + ,-91.11170524 + ,3.325794759 + ,-29.48670524 + ,-73.79920524 + ,50.95079476 + ,-86.67420524 + ,-9.54920524 + ,-66.36170524 + ,73.26329476 + ,-216.2992052 + ,-128.9242052 + ,-142.7843767 + ,27.06655875 + ,60.50405875 + ,35.69155875 + ,16.37905875 + ,-64.87094125 + ,115.5040587 + ,-30.37094125 + ,87.81655875 + ,205.4415587 + ,-64.12094125 + ,-322.7459413 + ,-139.6061127 + ,35.24482274 + ,-4.317677263 + ,17.86982274 + ,2.557322737 + ,129.3073227 + ,-16.31767726 + ,164.8073227 + ,21.99482274 + ,138.6198227 + ,87.05732274 + ,51.43232274 + ,-80.42784867 + ,-105.1918797 + ,5.245620328 + ,68.43312033 + ,-0.879379672 + ,-105.1293797 + ,-82.75437967 + ,-132.6293797 + ,102.5581203 + ,23.18312033 + ,-180.3793797 + ,-267.0043797 + ,30.13544892 + ,23.98638432 + ,90.42388432 + ,31.61138432 + ,81.29888432 + ,25.04888432 + ,-13.57611568 + ,33.54888432 + ,140.7363843 + ,132.3613843 + ,94.79888432 + ,4.173884316) > par2 = '0' > 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/1thfq1227445461.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/2et5h1227445461.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/3bfhg1227445461.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/4wuss1227445461.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/5an3b1227445461.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/6evkd1227445461.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/7hhg11227445461.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) + acf(x,lag.max=par2,main='Autocorrelation Function') + grid() + dev.off() + } > summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. -3.337e+02 -1.058e+02 4.710e+00 -8.073e-10 8.502e+01 4.146e+02 > > #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/8dibm1227445462.tab") > > system("convert tmp/1thfq1227445461.ps tmp/1thfq1227445461.png") > system("convert tmp/2et5h1227445461.ps tmp/2et5h1227445461.png") > system("convert tmp/3bfhg1227445461.ps tmp/3bfhg1227445461.png") > system("convert tmp/4wuss1227445461.ps tmp/4wuss1227445461.png") > system("convert tmp/5an3b1227445461.ps tmp/5an3b1227445461.png") convert: unable to open image `tmp/5an3b1227445461.ps': No such file or directory. convert: missing an image filename `tmp/5an3b1227445461.png'. > system("convert tmp/6evkd1227445461.ps tmp/6evkd1227445461.png") convert: unable to open image `tmp/6evkd1227445461.ps': No such file or directory. convert: missing an image filename `tmp/6evkd1227445461.png'. > system("convert tmp/7hhg11227445461.ps tmp/7hhg11227445461.png") convert: unable to open image `tmp/7hhg11227445461.ps': No such file or directory. convert: missing an image filename `tmp/7hhg11227445461.png'. > > > proc.time() user system elapsed 1.113 0.668 1.304