R version 2.6.1 (2007-11-26) 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(36409,33163,34122,35225,28249,30374,26311,22069,23651,28628,23187,14727,43080,32519,39657,33614,28671,34243,27336,22916,24537,26128,22602,15744,41086,39690,43129,37863,35953,29133,24693,22205,21725,27192,21790,13253,37702,30364,32609,30212,29965,28352,25814,22414,20506,28806,22228,13971,36845,35338,35022,34777,26887,23970,22780,17351,21382,24561,17409,11514,31514,27071,29462,26105,22397,23843,21705,18089,20764,25316,17704,15548,28029,29383,36438,32034,22679,24319,18004,17537,20366,22782,19169,13807,29743,25591,29096,26482,22405,27044,17970,18730,19684,19785,18479,10698) > 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/13sek1197549317.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/2y6ex1197549317.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.438571020 0.267093249 0.167326160 -0.038921475 [6] -0.127547811 -0.235850945 -0.156709943 -0.068811957 0.093582856 [11] 0.152850976 0.313152545 0.774557992 0.339430673 0.199906591 [16] 0.109782039 -0.055982193 -0.149873192 -0.233224207 -0.172349670 [21] -0.097710371 0.035084725 0.106200958 0.269184158 0.655117370 [26] 0.297717133 0.154207528 0.056084422 -0.074725872 -0.159490583 [31] -0.237575321 -0.172323217 -0.107520519 -0.006679448 0.017523700 [36] 0.120704867 0.439125994 0.155578739 0.035117627 -0.028339395 [41] -0.141199330 -0.192897426 -0.257952080 -0.211476298 -0.156417346 [46] -0.077242627 -0.031415572 0.060002400 0.331132979 0.103336557 [51] 0.002641667 -0.053723546 -0.166755379 -0.187885948 -0.247530065 [56] -0.198373328 -0.140008666 -0.083663266 -0.064233167 -0.003726453 [61] 0.199359828 > (mypacf <- c(rpacf$acf)) [1] 0.438571020 0.092550243 0.025524250 -0.172852662 -0.099730415 [6] -0.157400735 0.059257687 0.068906562 0.189128017 0.041330009 [11] 0.209778578 0.707737814 -0.373669316 -0.174843971 -0.056733249 [16] 0.097596367 -0.070657170 0.071088218 -0.005108410 -0.046956268 [21] -0.035076581 0.160740413 0.080428467 0.019607076 -0.089541040 [26] -0.092166393 -0.075405542 0.065950162 0.087560428 -0.044102660 [31] -0.008981793 -0.009289324 -0.016818875 -0.184425658 -0.211218146 [36] -0.096045184 -0.007262809 0.019147372 0.096817120 -0.107967991 [41] -0.057627937 -0.046259261 -0.044710732 -0.093912677 -0.071535091 [46] 0.079779950 0.053972901 0.029036198 0.018286207 0.037410157 [51] -0.081769444 -0.072373161 0.038443874 -0.017103099 -0.033672898 [56] 0.051415050 0.072902620 -0.035653493 -0.001039376 -0.061250086 > 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/3bj8z1197549317.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/4s2jh1197549317.tab") > > system("convert tmp/13sek1197549317.ps tmp/13sek1197549317.png") > system("convert tmp/2y6ex1197549317.ps tmp/2y6ex1197549317.png") > > > proc.time() user system elapsed 1.568 0.560 1.663