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(126.64 + ,126.81 + ,125.84 + ,126.77 + ,124.34 + ,124.4 + ,120.48 + ,118.54 + ,117.66 + ,116.97 + ,120.11 + ,119.16 + ,116.9 + ,116.11 + ,114.98 + ,113.65 + ,115.82 + ,117.59 + ,118.57 + ,118.07 + ,114.98 + ,114.04 + ,115.02 + ,114.28 + ,115.04 + ,116.7 + ,119.21 + ,118.39 + ,116.5 + ,115.46 + ,117.59 + ,117.33 + ,116.2 + ,116.83 + ,118.99 + ,118.62 + ,121.09 + ,122.4 + ,123.76 + ,125.33 + ,123.23 + ,122.52 + ,123.64 + ,124.67 + ,124.71 + ,122.53 + ,124.4 + ,125.45 + ,125.35 + ,124.3 + ,127.03 + ,128.51 + ,128.1 + ,128.94 + ,129.67 + ,129.87 + ,131.12 + ,132.68 + ,132.24 + ,133.63 + ,129.91 + ,127.93 + ,131.17 + ,130.86 + ,133.48 + ,134.08 + ,136.02 + ,132.8 + ,132.37 + ,133.05 + ,132.57 + ,130.7 + ,130.5 + ,129.67 + ,127.8 + ,126.82 + ,126.85 + ,128.28 + ,128.3 + ,126.82 + ,125.08 + ,128.53 + ,130.34 + ,131.52 + ,132.59 + ,131.17 + ,132.72 + ,133.36 + ,132.82 + ,132.9 + ,130.9 + ,129.41 + ,128.67 + ,129.28 + ,130.91 + ,131.06 + ,130.84 + ,131.41 + ,133.22 + ,132.06 + ,132.48 + ,134.38 + ,135.22 + ,134.89 + ,136.09 + ,136.33 + ,136.32 + ,137.48 + ,136.53 + ,136.8 + ,138.03 + ,137.39 + ,137.55 + ,136.08 + ,134.78 + ,133.28 + ,133.57 + ,134.84 + ,133.02 + ,133.49 + ,133.77 + ,134.34 + ,134.5 + ,134.03 + ,135.51 + ,136.53 + ,135.95 + ,134.32 + ,132.44 + ,133.61 + ,131.02 + ,130.05 + ,128.21 + ,129.03 + ,130.34 + ,131.57 + ,132.63 + ,132.06 + ,134.44 + ,134.1 + ,132.49 + ,134.23 + ,134.92 + ,135.61 + ,134.53 + ,133.86 + ,133.89 + ,135.33 + ,135.86 + ,136.22 + ,137.38 + ,137.31 + ,136.89 + ,138.01 + ,136.72 + ,135.77 + ,137.52 + ,135.61 + ,132.94 + ,134.12 + ,132.55 + ,134.11 + ,134.19 + ,135.57 + ,135.05 + ,134.32 + ,133.61 + ,134.75 + ,133.1 + ,133.26 + ,131.63 + ,132.47 + ,132.45 + ,133.33 + ,133.57 + ,134.13 + ,133.92 + ,132.62 + ,132.3 + ,133.26 + ,132.6 + ,134.38 + ,134.17 + ,135.46 + ,135.09 + ,134.96 + ,133.85 + ,132.59 + ,131.15 + ,130.91 + ,131.07 + ,130.78 + ,129.95 + ,131.41 + ,131.21 + ,130.68 + ,130.46 + ,131.12 + ,132.99 + ,133.02 + ,133.39 + ,134.07 + ,135.6 + ,135.66 + ,135.53 + ,135.82 + ,136.9 + ,137.97 + ,138.09 + ,136.91 + ,134.76 + ,135.13 + ,134.66 + ,132.95 + ,132.25 + ,134.3 + ,134.3 + ,134.76 + ,134.81 + ,134.51 + ,135.11 + ,134.32 + ,133.51 + ,134.02 + ,132.76 + ,133.39 + ,132.05 + ,131.87 + ,133.03 + ,132.57 + ,132.1 + ,130.7 + ,129.2 + ,129.77 + ,131.02 + ,131.55 + ,133.17 + ,133.08 + ,133.24 + ,130.74 + ,129.91 + ,130.03 + ,131.13 + ,129.55 + ,130.22 + ,130.61 + ,129.27 + ,129.68 + ,130.1 + ,130.83 + ,130.95 + ,131.73 + ,131.86 + ,132.44 + ,132.35 + ,133.16 + ,133.62 + ,132.54 + ,132.69 + ,133.5 + ,133.36 + ,134.23 + ,132.41 + ,133.02 + ,132.88 + ,130.76 + ,130.33 + ,129.79 + ,128.65 + ,129.14 + ,127.35 + ,127.74 + ,126.31 + ,125.95 + ,126.36 + ,126.15 + ,125.6 + ,126.2 + ,126.73 + ,125.68 + ,122.49 + ,122.07 + ,123.4 + ,123.01 + ,123.03 + ,122.33 + ,122.42 + ,122.68 + ,124.69 + ,123.3 + ,124.17 + ,124.38 + ,123.19 + ,122.16 + ,120.66 + ,120.92 + ,120.67 + ,120.68 + ,121.1 + ,120.86 + ,121.48 + ,123.48 + ,121.72 + ,123.16 + ,123.84 + ,124.57 + ,124.3 + ,124.22 + ,124.43 + ,123.33 + ,122.86 + ,121.25 + ,122.16 + ,122.62 + ,123.44 + ,124 + ,124.75 + ,124.8 + ,125.93 + ,126.28 + ,126.04 + ,125.04 + ,123.76 + ,125.34 + ,126.99 + ,126.34 + ,127.42 + ,126.18 + ,125.3 + ,123.5 + ,125.32 + ,124.65 + ,124.03 + ,125.11 + ,125.46 + ,124.7 + ,124.48 + ,124.76 + ,125.81 + ,124.95 + ,123.66 + ,122.66 + ,119.34 + ,117.84 + ,120.97 + ,117.38 + ,118.06 + ,116.99 + ,115.55 + ,114.17 + ,115.32 + ,112.49 + ,111.93 + ,112.08 + ,111.63 + ,109.53 + ,111.35 + ,110.79 + ,113.06 + ,112.62 + ,110.65 + ,112.36 + ,113.74 + ,111.73 + ,109.86 + ,109.32 + ,109.99 + ,109.84 + ,111.13 + ,112.43 + ,111.77 + ,112.15 + ,112.89 + ,112.12 + ,113.1 + ,111.09 + ,110.76 + ,109.59 + ,109.99 + ,110.25 + ,108.31 + ,108.79 + ,108.14 + ,109.88 + ,109.93 + ,110.46 + ,109.56 + ,111.49 + ,111.85 + ,111.35 + ,110.95 + ,112.49 + ,113.11 + ,112.54 + ,112.84 + ,111.5 + ,111.52 + ,111.57 + ,112.48 + ,112.31 + ,113.79 + ,114.01 + ,113.64 + ,112.62 + ,113.27 + ,113.51 + ,112.92 + ,113.66 + ,113.14 + ,113.48 + ,113.23 + ,110.56 + ,109.5 + ,109.78 + ,109.49 + ,109.66 + ,109.93 + ,109.82 + ,108.54 + ,108.23 + ,106.19 + ,106.49 + ,107.15 + ,107.74 + ,107.54 + ,107.07 + ,107.54 + ,107.81 + ,108.38 + ,108.42 + ,106.86 + ,106.41 + ,106.46 + ,106.84 + ,107.69 + ,107.04 + ,111.04 + ,111.93 + ,111.98 + ,112.07 + ,112.05 + ,113.14 + ,112.49 + ,113.2 + ,113.52 + ,113.22 + ,113.85 + ,113.68 + ,114.26 + ,114.1 + ,114.8 + ,114.98 + ,115.1 + ,114.21 + ,114.24 + ,113.35 + ,114.23 + ,114.43 + ,114.28 + ,113 + ,113.16 + ,112.59 + ,113.65 + ,113.18 + ,113.21 + ,113.11 + ,112.78 + ,112.57 + ,111.87 + ,111.94 + ,113.18 + ,113.67 + ,115.15 + ,114.41 + ,112.88 + ,112.44 + ,113.48 + ,112.78 + ,112.59 + ,113.31 + ,113.21 + ,112.5 + ,113.72 + ,114.09 + ,113.97 + ,112.5 + ,111.28 + ,111.35 + ,110.92 + ,110.73 + ,109) > par4 = '4' > 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 <- 5 > 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/12gvb1292618717.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/22gvb1292618717.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/3hqb21292618717.tab") > > try(system("convert tmp/12gvb1292618717.ps tmp/12gvb1292618717.png",intern=TRUE)) character(0) > try(system("convert tmp/22gvb1292618717.ps tmp/22gvb1292618717.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.950 0.450 1.369