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(14525.87 + ,14295.79 + ,13830.14 + ,14153.22 + ,15418.03 + ,16666.97 + ,16505.21 + ,17135.96 + ,18033.25 + ,17671 + ,17544.22 + ,17677.9 + ,18470.97 + ,18409.96 + ,18941.6 + ,19685.53 + ,19834.71 + ,19598.93 + ,17039.97 + ,16969.28 + ,16973.38 + ,16329.89 + ,16153.34 + ,15311.7 + ,14760.87 + ,14452.93 + ,13720.95 + ,13266.27 + ,12708.47 + ,13411.84 + ,13975.55 + ,12974.89 + ,12151.11 + ,11576.21 + ,9996.83 + ,10438.9 + ,10511.22 + ,10496.2 + ,10300.79 + ,9981.65 + ,11448.79 + ,11384.49 + ,11717.46 + ,10965.88 + ,10352.27 + ,9751.2 + ,9354.01 + ,8792.5 + ,8721.14 + ,8692.94 + ,8570.73 + ,8538.47 + ,8169.75 + ,7905.84 + ,8145.82 + ,8895.71 + ,9676.31 + ,9884.59 + ,10637.44 + ,10717.13 + ,10205.29 + ,10295.98 + ,10892.76 + ,10631.92 + ,11441.08 + ,11950.95 + ,11037.54 + ,11527.72 + ,11383.89 + ,10989.34 + ,11079.42 + ,11028.93 + ,10973 + ,11068.05 + ,11394.84 + ,11545.71 + ,11809.38 + ,11395.64 + ,11082.38 + ,11402.75 + ,11716.87 + ,12204.98 + ,12986.62 + ,13392.79 + ,14368.05 + ,15650.83 + ,16102.64 + ,16187.64 + ,16311.54 + ,17232.97 + ,16397.83 + ,14990.31 + ,15147.55 + ,15786.78 + ,15934.09 + ,16519.44 + ,16101.07 + ,16775.08 + ,17286.32 + ,17741.23 + ,17128.37 + ,17460.53 + ,17611.14 + ,18001.37 + ,17974.77 + ,16460.95 + ,16235.39 + ,16903.36 + ,15543.76 + ,15532.18 + ,13731.31 + ,13547.84 + ,12602.93 + ,13357.7 + ,13995.33 + ,14084.6 + ,13168.91 + ,12989.35 + ,12123.53 + ,9117.03 + ,8531.45) > 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/1hnjh1229433103.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/2f6ua1229433103.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/3gbsz1229433104.tab") > > system("convert tmp/1hnjh1229433103.ps tmp/1hnjh1229433103.png") > system("convert tmp/2f6ua1229433103.ps tmp/2f6ua1229433103.png") > > > proc.time() user system elapsed 0.562 0.309 0.731