R version 2.12.0 (2010-10-15) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(25.2609 + ,16.8622 + ,13.3181 + ,12.5621 + ,14.2754 + ,12.2961 + ,10.0871 + ,13.5117 + ,13.9921 + ,13.6932 + ,14.4211 + ,15.3397 + ,16.5182 + ,15.2809 + ,15.6204 + ,15.5698 + ,15.9458 + ,16.4063 + ,17.55 + ,17.0353 + ,16.0591 + ,16.3643 + ,14.6527 + ,13.4664 + ,13.3266 + ,13.1823 + ,12.113 + ,13.354 + ,13.4537 + ,13.2715 + ,13.1959 + ,13.5542 + ,12.124 + ,10.967 + ,10.9201 + ,12.5971 + ,14.3177 + ,14.2471 + ,16.0926 + ,17.1334 + ,16.5866 + ,16.361 + ,15.8494 + ,15.5932 + ,16.6387 + ,16.8312 + ,16.5044 + ,16.5556 + ,16.7469 + ,15.9543 + ,15.5888 + ,14.3945 + ,13.8889 + ,12.9999 + ,14.1022 + ,19.6245 + ,24.7658 + ,25.9843 + ,22.9635 + ,19.6288 + ,17.3363 + ,13.311 + ,14.6359 + ,15.834 + ,16.2415 + ,15.9808 + ,16.9726 + ,16.8708 + ,16.923 + ,18.1138 + ,16.7716 + ,14.0299 + ,13.822 + ,14.2537 + ,14.3985 + ,15.2454 + ,15.6683 + ,16.1721 + ,14.8679 + ,14.1948 + ,14.7056 + ,15.3819 + ,15.5001 + ,14.7886 + ,14.563 + ,15.5528 + ,15.9781 + ,15.5139 + ,15.3603 + ,15.0512 + ,14.7874 + ,14.9624 + ,13.9188 + ,14.5146 + ,13.7115 + ,12.0738 + ,12.5688 + ,12.2547 + ,11.8741 + ,13.0261 + ,13.8681 + ,14.2137 + ,14.4743 + ,13.9764 + ,13.1558 + ,13.0991 + ,13.7831 + ,13.2546 + ,13.3426 + ,13.5011 + ,12.8245 + ,13.6596 + ,13.8754 + ,12.9011 + ,11.871 + ,12.3954 + ,12.8179 + ,12.1219 + ,12.6176 + ,13.6362 + ,13.5422 + ,13.362 + ,14.5735 + ,15.8357 + ,14.9927 + ,14.5078 + ,15.2648 + ,15.7163 + ,17.7969 + ,19.0408 + ,17.8571 + ,18.815 + ,19.0961 + ,17.6215 + ,17.0163 + ,15.8286 + ,16.7818 + ,15.8726 + ,16.6621 + ,17.5709 + ,16.9914 + ,18.0412 + ,16.9764 + ,15.7649 + ,14.3928 + ,13.5061 + ,12.7433 + ,13.017 + ,13.0171 + ,12.2412 + ,11.8878 + ,11.2511 + ,11.8583 + ,11.1202 + ,10.185 + ,8.7563 + ,9.5267 + ,9.4106 + ,11.878 + ,14.4228 + ,14.896 + ,15.6664 + ,18.147 + ,19.3069 + ,21.6807 + ,20.7934 + ,23.4241 + ,24.8273 + ,24.9276 + ,27.4256 + ,28.1746 + ,24.5615 + ,30.2532 + ,31.2514 + ,30.4733 + ,33.3047 + ,37.2103 + ,36.7711 + ,37.7163 + ,28.8488 + ,27.4682 + ,29.8793 + ,28.0598 + ,29.7733 + ,32.6926 + ,32.4803 + ,29.4168 + ,28.7054 + ,28.7614 + ,23.8075 + ,21.6987 + ,21.4691 + ,22.5709 + ,23.4546 + ,27.8976 + ,29.2965 + ,28.1191 + ,25.812 + ,25.931 + ,26.9925 + ,28.9213 + ,27.8898 + ,24.2473 + ,27.1056 + ,28.2833 + ,29.8076 + ,27.1826 + ,22.8764 + ,21.938 + ,23.3076 + ,24.9572 + ,26.4694 + ,23.9297 + ,24.7033 + ,24.646 + ,24.0496 + ,24.2096 + ,24.0717 + ,26.6673 + ,27.6457 + ,30.8791 + ,29.3278 + ,30.7268 + ,34.1204 + ,35.0205 + ,39.3565 + ,34.4724 + ,29.9762 + ,33.6008 + ,35.2464 + ,40.4137 + ,41.3922 + ,39.4243 + ,45.7259 + ,48.2549 + ,52.0461 + ,52.1871 + ,49.3474 + ,47.8653 + ,48.5179 + ,52.4815 + ,51.8171 + ,52.5811 + ,57.5617 + ,55.7091 + ,55.4378 + ,58.7493 + ,57.794 + ,50.282 + ,47.6976 + ,46.7381 + ,47.4282 + ,42.2269 + ,44.9066 + ,47.2648 + ,50.2325 + ,50.2504 + ,52.5685 + ,55.2325 + ,52.3674 + ,55.1692 + ,57.7252 + ,62.8232 + ,62.7599 + ,62.4387 + ,64.0862 + ,66.1209 + ,69.8474 + ,80.1039 + ,85.9319 + ,85.2843 + ,77.0383 + ,69.9981 + ,55.2039 + ,43.1188 + ,32.077 + ,34.2974 + ,34.5613 + ,36.5235 + ,39.0474 + ,42.8033 + ,49.5164 + ,46.459 + ,51.1313 + ,46.9331 + ,49.7654 + ,52.0729 + ,51.6425 + ,53.9784 + ,54.4891 + ,59.0665 + ,63.9929 + ,61.6167 + ,62.1816 + ,58.9178 + ,59.9151) > par4 = '12' > par3 = '0' > par2 = '1' > par1 = '1' > #'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) > par3 <- as.numeric(par3) > par4 <- as.numeric(par4) > if (par1 == 0) { + x <- log(x) + } else { + x <- (x ^ par1 - 1) / par1 + } > if (par2 > 0) x <- diff(x,lag=1,difference=par2) > if (par3 > 0) x <- diff(x,lag=par4,difference=par3) > postscript(file="/var/www/rcomp/tmp/1pejh1292165678.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > r <- spectrum(x,main='Raw Periodogram') > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/2pejh1292165678.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > cpgram(x,main='Cumulative Periodogram') > dev.off() null device 1 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Raw Periodogram',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Parameter',header=TRUE) > a<-table.element(a,'Value',header=TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Box-Cox transformation parameter (lambda)',header=TRUE) > a<-table.element(a,par1) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Degree of non-seasonal differencing (d)',header=TRUE) > a<-table.element(a,par2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Degree of seasonal differencing (D)',header=TRUE) > a<-table.element(a,par3) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Seasonal Period (s)',header=TRUE) > a<-table.element(a,par4) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Frequency (Period)',header=TRUE) > a<-table.element(a,'Spectrum',header=TRUE) > a<-table.row.end(a) > for (i in 1:length(r$freq)) { + a<-table.row.start(a) + mylab <- round(r$freq[i],4) + mylab <- paste(mylab,' (',sep='') + mylab <- paste(mylab,round(1/r$freq[i],4),sep='') + mylab <- paste(mylab,')',sep='') + a<-table.element(a,mylab,header=TRUE) + a<-table.element(a,round(r$spec[i],6)) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/rcomp/tmp/3efgs1292165678.tab") > > try(system("convert tmp/1pejh1292165678.ps tmp/1pejh1292165678.png",intern=TRUE)) character(0) > try(system("convert tmp/2pejh1292165678.ps tmp/2pejh1292165678.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.760 0.410 1.152