R version 2.7.0 (2008-04-22) 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(41130 + ,43144 + ,46195 + ,40033 + ,31710 + ,42297 + ,33889 + ,23495 + ,27060 + ,31160 + ,22214 + ,16905 + ,34388 + ,29982 + ,36374 + ,37630 + ,31023 + ,39875 + ,28866 + ,20205 + ,26082 + ,28209 + ,22813 + ,15296 + ,27796 + ,31813 + ,42513 + ,41222 + ,29094 + ,28948 + ,23230 + ,21308 + ,20649 + ,23666 + ,19206 + ,16361 + ,30472 + ,25051 + ,39393 + ,32091 + ,31007 + ,32998 + ,22809 + ,20439 + ,19900 + ,29161 + ,22149 + ,15485 + ,36181 + ,39545 + ,37955 + ,31854 + ,29788 + ,31435 + ,22504 + ,19540 + ,21893 + ,29556 + ,21811 + ,13729 + ,31332 + ,31434 + ,38812 + ,36154 + ,32820 + ,32301 + ,30358 + ,20724 + ,21056 + ,30077 + ,22411 + ,16758 + ,37243 + ,41795 + ,37755 + ,42557 + ,21507 + ,43211 + ,31476 + ,21440 + ,25307 + ,34050 + ,21970 + ,17327 + ,33607 + ,34259 + ,43309 + ,40189 + ,32663 + ,36262 + ,35718 + ,25002 + ,28764 + ,33085 + ,25403 + ,17468 + ,39457 + ,39408 + ,49419 + ,37128 + ,34698 + ,40939 + ,32695 + ,27523 + ,26875 + ,28460 + ,26511 + ,19576 + ,40659 + ,35685 + ,44559 + ,37584 + ,34670 + ,42953 + ,24058 + ,35359 + ,30919 + ,35346 + ,28309 + ,17417 + ,45465 + ,44651 + ,47947 + ,43458 + ,37744 + ,39730 + ,29903 + ,24284 + ,37981 + ,32001 + ,32273 + ,23314 + ,43522 + ,33000 + ,43685 + ,45838 + ,39741 + ,42522 + ,37318 + ,26920 + ,28651 + ,35646 + ,26312 + ,20442 + ,46402 + ,45329 + ,42185 + ,49341 + ,50472 + ,33020 + ,29567 + ,22870 + ,25730 + ,32609 + ,23536 + ,15135 + ,36776 + ,29982 + ,38062 + ,34226 + ,24906 + ,30233 + ,27405 + ,20784 + ,22886 + ,25425 + ,20838 + ,15655 + ,37158 + ,36364 + ,43213 + ,31635 + ,30113 + ,29985 + ,20919 + ,19429 + ,21427 + ,26064 + ,20109 + ,15369 + ,35466 + ,25954 + ,33504 + ,28115 + ,28501 + ,28618 + ,21434 + ,20177 + ,21484 + ,25642 + ,23515 + ,12941 + ,36190 + ,37785 + ,38407 + ,33326 + ,30304 + ,27576 + ,27048 + ,17291 + ,21018 + ,26792 + ,19426 + ,13927 + ,35647 + ,31746 + ,31277 + ,31583 + ,25607 + ,28151 + ,24947 + ,18077 + ,23429 + ,26313 + ,18862 + ,14753 + ,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 + ,31956 + ,29506 + ,34506 + ,27165 + ,26736 + ,23691 + ,18157 + ,17328 + ,18205 + ,20995 + ,17382 + ,9367 + ,31124 + ,26551 + ,30651 + ,25859 + ,25100 + ,25778 + ,20418 + ,18688 + ,20424 + ,24776 + ,19814 + ,12738) > par5 = '12' > par4 = '1' > par3 = '0' > par2 = '0.0' > 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: 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/1jfvf1228821137.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/2fwx81228821137.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.268060577 0.248950059 0.185369577 0.099034638 [6] 0.151377616 0.144319126 0.071539482 0.142760686 0.081401675 [11] -0.026116196 -0.068842631 -0.395052502 -0.086827212 -0.019514712 [16] 0.080279944 0.003371066 0.109602873 0.024212596 0.012158040 [21] 0.043987311 0.091267694 0.113323049 0.214120750 0.203556860 [26] 0.180873455 > (mypacf <- c(rpacf$acf)) [1] 0.268060577 0.190804096 0.089698202 -0.005301710 0.088419295 [6] 0.074634154 -0.023161099 0.079573457 0.007190746 -0.111038097 [11] -0.113003788 -0.421417859 0.091178679 0.158253174 0.234699846 [16] -0.020597766 0.186741930 0.051570345 -0.047286602 0.054845642 [21] 0.113494033 -0.017301697 0.019687008 -0.165111940 0.069282520 > 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/30f6w1228821137.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/4pg3v1228821138.tab") > > system("convert tmp/1jfvf1228821137.ps tmp/1jfvf1228821137.png") > system("convert tmp/2fwx81228821137.ps tmp/2fwx81228821137.png") > > > proc.time() user system elapsed 1.497 0.541 1.590