R version 2.8.0 (2008-10-20) 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(9005.73 + ,9018.68 + ,9349.44 + ,9327.78 + ,9753.63 + ,10443.5 + ,10853.87 + ,10704.02 + ,11052.23 + ,10935.47 + ,10714.03 + ,10394.48 + ,10817.9 + ,11251.2 + ,11281.26 + ,10539.68 + ,10483.39 + ,10947.43 + ,10580.27 + ,10582.92 + ,10654.41 + ,11014.51 + ,10967.87 + ,10433.56 + ,10665.78 + ,10666.71 + ,10682.74 + ,10777.22 + ,10052.6 + ,10213.97 + ,10546.82 + ,10767.2 + ,10444.5 + ,10314.68 + ,9042.56 + ,9220.75 + ,9721.84 + ,9978.53 + ,9923.81 + ,9892.56 + ,10500.98 + ,10179.35 + ,10080.48 + ,9492.44 + ,8616.49 + ,8685.4 + ,8160.67 + ,8048.1 + ,8641.21 + ,8526.63 + ,8474.21 + ,7916.13 + ,7977.64 + ,8334.59 + ,8623.36 + ,9098.03 + ,9154.34 + ,9284.73 + ,9492.49 + ,9682.35 + ,9762.12 + ,10124.63 + ,10540.05 + ,10601.61 + ,10323.73 + ,10418.4 + ,10092.96 + ,10364.91 + ,10152.09 + ,10032.8 + ,10204.59 + ,10001.6 + ,10411.75 + ,10673.38 + ,10539.51 + ,10723.78 + ,10682.06 + ,10283.19 + ,10377.18 + ,10486.64 + ,10545.38 + ,10554.27 + ,10532.54 + ,10324.31 + ,10695.25 + ,10827.81 + ,10872.48 + ,10971.19 + ,11145.65 + ,11234.68 + ,11333.88 + ,10997.97 + ,11036.89 + ,11257.35 + ,11533.59 + ,11963.12 + ,12185.15 + ,12377.62 + ,12512.89 + ,12631.48 + ,12268.53 + ,12754.8 + ,13407.75 + ,13480.21 + ,13673.28 + ,13239.71 + ,13557.69 + ,13901.28 + ,13200.58 + ,13406.97 + ,12538.12 + ,12419.57 + ,12193.88 + ,12656.63 + ,12812.48 + ,12056.67 + ,11322.38 + ,11530.75 + ,11114.08 + ,9181.73 + ,8614.55) > par4 = '12' > par3 = '0' > par2 = '0' > 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/1pifi1229284259.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/2rcf81229284259.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/3xjua1229284259.tab") > > system("convert tmp/1pifi1229284259.ps tmp/1pifi1229284259.png") > system("convert tmp/2rcf81229284259.ps tmp/2rcf81229284259.png") > > > proc.time() user system elapsed 0.538 0.343 0.648