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(7988.8 + ,8243.5 + ,8843 + ,9092.7 + ,8246.7 + ,9311.7 + ,8341.2 + ,7116.7 + ,9635.7 + ,9815.4 + ,8611.3 + ,8297.8 + ,8715.1 + ,8919.9 + ,10085.8 + ,9511.7 + ,8991.3 + ,10311.2 + ,8895.4 + ,7449.8 + ,10084 + ,9859.4 + ,9100.1 + ,8920.8 + ,8502.7 + ,8599.6 + ,10394.4 + ,9290.4 + ,8742.2 + ,10217.3 + ,8639 + ,8139.6 + ,10779.1 + ,10427.7 + ,10349.1 + ,10036.4 + ,9492.1 + ,10638.8 + ,12054.5 + ,10324.7 + ,11817.3 + ,11008.9 + ,9996.6 + ,9419.5 + ,11958.8 + ,12594.6 + ,11890.6 + ,10871.7 + ,11835.7 + ,11542.2 + ,13093.7 + ,11180.2 + ,12035.7 + ,12112 + ,10875.2 + ,9897.3 + ,11672.1 + ,12385.7 + ,11405.6 + ,9830.9 + ,11025.1 + ,10853.8 + ,12252.6 + ,11839.4 + ,11669.1 + ,11601.4 + ,11178.4 + ,9516.4 + ,12102.8 + ,12989 + ,11610.2 + ,10205.5 + ,11356.2 + ,11307.1 + ,12648.6 + ,11947.2 + ,11714.1 + ,12192.5 + ,11268.8 + ,9097.4 + ,12639.8 + ,13040.1 + ,11687.3 + ,11191.7 + ,11391.9 + ,11793.1 + ,13933.2 + ,12778.1 + ,11810.3 + ,13698.4 + ,11956.6 + ,10723.8 + ,13938.9 + ,13979.8 + ,13807.4 + ,12973.9 + ,12509.8 + ,12934.1 + ,14908.3 + ,13772.1 + ,13012.6 + ,14049.9 + ,11816.5 + ,11593.2 + ,14466.2 + ,13615.9 + ,14733.9 + ,13880.7 + ,13527.5 + ,13584 + ,16170.2 + ,13260.6 + ,14741.9 + ,15486.5 + ,13154.5 + ,12621.2 + ,15031.6 + ,15452.4 + ,15428 + ,13105.9 + ,14716.8 + ,14180 + ,16202.2 + ,14392.4 + ,15140.6 + ,15960.1 + ,14351.3 + ,13230.2 + ,15202.1 + ,17056 + ,16077.7 + ,13348.2 + ,16402.4 + ,16559.1 + ,16579 + ,17561.2 + ,16129.6 + ,18484.3 + ,16402.6 + ,14032.3 + ,17109.1 + ,17157.2 + ,13879.8 + ,12362.4 + ,12683.5 + ,12608.8 + ,13583.7 + ,12846.3 + ,12347.1 + ,13967 + ,13214.7 + ,11818.8 + ,15394.8) > 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/html/rcomp/tmp/19pib1260784846.ps",horizontal=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/html/rcomp/tmp/27ox11260784846.ps",horizontal=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/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,'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/html/rcomp/tmp/35vrk1260784846.tab") > > try(system("convert tmp/19pib1260784846.ps tmp/19pib1260784846.png",intern=TRUE)) character(0) > try(system("convert tmp/27ox11260784846.ps tmp/27ox11260784846.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.552 0.327 1.764