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(4.2632564145606E-14 + ,0.0051001932048425 + ,2.2204460492503E-15 + ,2.2204460492503E-15 + ,2.2204460492503E-15 + ,2.2204460492503E-15 + ,2.2204460492503E-15 + ,2.2204460492503E-15 + ,-0.010226531783798 + ,3.3750779948605E-14 + ,3.3750779948605E-14 + ,3.3750779948605E-14 + ,3.3750779948605E-14 + ,0.010226531783834 + ,-0.6758556834499 + ,0.66342407910779 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,4.7517545453957E-14 + ,0.0080616046710476 + ,2.0872192862953E-14 + ,2.0872192862953E-14 + ,2.0872192862953E-14 + ,2.0872192862953E-14 + ,-0.0080616046709792 + ,-0.018567187675552 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,-0.013585114590278 + ,2.8865798640254E-14 + ,2.8865798640254E-14 + ,0.013585114590329 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,2.2204460492503E-14 + ,-0.013585114590278 + ,0.013585114590329 + ,-0.0075244899785778 + ,3.7747582837255E-14 + ,3.7747582837255E-14 + ,3.7747582837255E-14 + ,3.7747582837255E-14 + ,3.7747582837255E-14 + ,-0.014454416740162 + ,-2.2204460492503E-15 + ,-0.024041483624702 + ,-0.014229489103917 + ,0.014229489103947 + ,-0.039220713153317 + ,-3.5971225997855E-14 + ,-3.5971225997855E-14 + ,-3.5971225997855E-14 + ,0.015391150320264 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-3.3306690738755E-14 + ,-0.015391150320333 + ,-0.0098442140347359 + ,4.1300296516056E-14 + ,-0.013278203386059 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,0.013278203386118 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,-0.013278203386059 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,0.013278203386118 + ,-0.013278203386059 + ,0.013278203386118 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,-0.013278203386059 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,0.013278203386118 + ,4.1300296516056E-14 + ,4.1300296516056E-14 + ,-0.013278203386059 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,0.013278203386118 + ,-0.013278203386059 + ,1.8207657603853E-14 + ,1.8207657603853E-14 + ,0.013278203386118 + ,4.1300296516056E-14 + ,-0.025043044965659 + ,0.0058997221272046 + ,1.6431300764452E-14 + ,1.6431300764452E-14 + ,1.6431300764452E-14 + ,1.6431300764452E-14 + ,1.6431300764452E-14 + ,0.010865129869116 + ,1.2434497875802E-14 + ,1.2434497875802E-14 + ,1.2434497875802E-14 + ,1.2434497875802E-14 + ,1.2434497875802E-14 + ,1.2434497875802E-14 + ,1.2434497875802E-14 + ,-0.026106745837688 + ,-0.015477523068867 + ,0.015477523068947 + ,3.3306690738755E-14 + ,-0.015477523068867 + ,0.015477523068947 + ,-0.015477523068867 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,0.015477523068947 + ,3.3306690738755E-14 + ,3.3306690738755E-14 + ,3.3306690738755E-14 + ,-0.015477523068867 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,0.015477523068947 + ,3.3306690738755E-14 + ,3.3306690738755E-14 + ,3.3306690738755E-14 + ,-0.015477523068867 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,0.015477523068947 + ,-0.015477523068867 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,0.015477523068947 + ,3.3306690738755E-14 + ,-0.015477523068867 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,4.6629367034257E-14 + ,0.015477523068947) > par7 = '0.95' > par6 = 'White Noise' > par5 = '12' > par4 = '0' > par3 = '0' > par2 = '1' > par1 = 'Default' > #'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: > if (par1 == 'Default') { + par1 = 10*log10(length(x)) + } else { + par1 <- as.numeric(par1) + } > par2 <- as.numeric(par2) > par3 <- as.numeric(par3) > par4 <- as.numeric(par4) > par5 <- as.numeric(par5) > if (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma' > par7 <- as.numeric(par7) > if (par2 == 0) { + x <- log(x) + } else { + x <- (x ^ par2 - 1) / par2 + } > if (par3 > 0) x <- diff(x,lag=1,difference=par3) > if (par4 > 0) x <- diff(x,lag=par5,difference=par4) > postscript(file="/var/www/html/rcomp/tmp/17dbq1290524831.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/27dbq1290524831.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF') > dev.off() null device 1 > (myacf <- c(racf$acf)) [1] 1.000000e+00 -5.030760e-01 7.312081e-03 9.013262e-04 -1.390184e-03 [6] 1.079587e-04 6.621900e-03 -7.208027e-03 -9.562515e-04 4.789842e-03 [11] -5.465379e-03 6.373493e-04 -1.286322e-03 -2.966161e-03 -2.142329e-03 [16] -5.875783e-03 1.357502e-02 -5.387893e-04 6.891498e-05 6.971579e-04 [21] 5.737304e-04 -1.093117e-02 1.083871e-02 -1.244512e-04 > (mypacf <- c(rpacf$acf)) [1] -0.50307600 -0.32905154 -0.23984605 -0.18765871 -0.15207017 -0.11494777 [7] -0.09933195 -0.08863766 -0.07120461 -0.06658800 -0.06128715 -0.05864336 [13] -0.06091982 -0.06578640 -0.07936371 -0.06485228 -0.05339081 -0.04395503 [19] -0.03497371 -0.02671533 -0.04011056 -0.03182872 -0.02463653 > lengthx <- length(x) > sqrtn <- sqrt(lengthx) > > #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,'Autocorrelation Function',4,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Time lag k',header=TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE) > a<-table.element(a,'T-STAT',header=TRUE) > a<-table.element(a,'P-value',header=TRUE) > a<-table.row.end(a) > for (i in 2:(par1+1)) { + a<-table.row.start(a) + a<-table.element(a,i-1,header=TRUE) + a<-table.element(a,round(myacf[i],6)) + mytstat <- myacf[i]*sqrtn + a<-table.element(a,round(mytstat,4)) + a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6)) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/335qh1290524831.tab") > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Partial Autocorrelation Function',4,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Time lag k',header=TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE) > a<-table.element(a,'T-STAT',header=TRUE) > a<-table.element(a,'P-value',header=TRUE) > a<-table.row.end(a) > for (i in 1:par1) { + a<-table.row.start(a) + a<-table.element(a,i,header=TRUE) + a<-table.element(a,round(mypacf[i],6)) + mytstat <- mypacf[i]*sqrtn + a<-table.element(a,round(mytstat,4)) + a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6)) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/4depk1290524831.tab") > > try(system("convert tmp/17dbq1290524831.ps tmp/17dbq1290524831.png",intern=TRUE)) character(0) > try(system("convert tmp/27dbq1290524831.ps tmp/27dbq1290524831.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.566 0.314 1.221