R version 2.6.0 (2007-10-03) Copyright (C) 2007 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.51,0.51,0.51,0.51,0.51,0.51,0.51,0.51,0.5,0.51,0.51,0.5,0.51,0.51,0.51,0.51,0.52,0.52,0.52,0.53,0.53,0.52,0.52,0.52,0.52,0.52,0.52,0.52,0.52,0.52,0.52,0.53,0.53,0.53,0.54,0.54,0.54,0.54,0.54,0.54,0.54,0.54,0.54,0.54,0.53,0.53,0.53,0.53,0.53,0.54,0.55,0.55,0.55,0.55,0.55,0.55,0.55,0.55,0.56,0.56,0.56,0.56,0.56,0.55,0.56,0.55,0.55,0.56,0.55,0.55,0.55,0.55) > par5 = '12' > par4 = '0' > par3 = '0' > par2 = '1' > par1 = '60' > #'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!) > 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 (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/15u2z1196276633.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > racf <- acf(x,par1,main='Autocorrelation',xlab='lags',ylab='ACF') > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/2lbbs1196276633.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.000000000 0.940133550 0.898626251 0.866298527 0.806432078 [6] 0.747521833 0.710604322 0.673686811 0.623956142 0.576902849 [11] 0.527172181 0.482031300 0.431344425 0.390793332 0.359421814 [16] 0.340863454 0.308535730 0.286343788 0.259562058 0.223600752 [21] 0.188595652 0.162770128 0.122219035 0.080711736 0.056607382 [26] 0.023323453 -0.009960477 -0.038654618 -0.071938548 -0.104266271 [31] -0.127414420 -0.159742143 -0.181934086 -0.194946452 -0.226317970 [36] -0.242963919 -0.255020080 -0.276255817 -0.292901766 -0.301324345 [41] -0.309746924 -0.322759291 -0.327548288 -0.336927073 -0.341716071 [46] -0.356640849 -0.376155415 -0.391080194 -0.401415185 -0.420929751 [51] -0.425718748 -0.415782176 -0.414068974 -0.416945560 -0.402419201 [56] -0.387892841 -0.387135845 -0.359796328 -0.341636387 -0.317930452 [61] -0.285044942 > (mypacf <- c(rpacf$acf)) [1] 0.9401335501 0.1272087643 0.0817911694 -0.2315814892 -0.0890488393 [6] 0.1278006322 0.0847365322 -0.0992836565 -0.1190683776 -0.1049646282 [11] 0.0808960860 -0.0175253347 0.0396275430 0.0179828787 0.1364154391 [16] -0.1106975343 0.0096881047 -0.1130669015 -0.0272786210 -0.0311080454 [21] 0.0563078885 -0.1755677558 -0.0758532439 0.0489406305 0.0396583429 [26] -0.0086043239 -0.0385967707 -0.1173055355 0.0508464207 0.0514081106 [31] -0.0749541166 -0.0462452385 0.0533650712 -0.1436008895 0.0756749395 [36] -0.0639315373 0.0041777383 0.0008761616 0.0205408474 0.0032095454 [41] -0.0604884369 -0.0220451544 -0.0180349805 0.0659689244 -0.1541892640 [46] -0.1465279826 -0.0363121154 0.0777418680 0.0063408522 0.0198056885 [51] 0.0436095540 0.0423178508 -0.0749998595 0.0457311624 0.0542169744 [56] -0.0264489803 0.0904495254 -0.0949328263 0.0005018644 0.0741286804 > lengthx <- length(x) > sqrtn <- sqrt(lengthx) > 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 1:par1) { + 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(mytstat,lengthx),6)) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/3w1n11196276633.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-1,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(mytstat,lengthx),6)) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/49nqb1196276633.tab") > > system("convert tmp/15u2z1196276633.ps tmp/15u2z1196276633.png") > system("convert tmp/2lbbs1196276633.ps tmp/2lbbs1196276633.png") > > > proc.time() user system elapsed 0.920 0.325 1.088