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(5.2 + ,7.9 + ,8.7 + ,8.9 + ,15.3 + ,15.4 + ,18.1 + ,19.7 + ,13 + ,12.6 + ,6.2 + ,3.5 + ,3.4 + ,0 + ,9.5 + ,8.9 + ,10.4 + ,13.2 + ,18.9 + ,19 + ,16.3 + ,10.6 + ,5.8 + ,3.6 + ,2.6 + ,5 + ,7.3 + ,9.2 + ,15.7 + ,16.8 + ,18.4 + ,18.1 + ,14.6 + ,7.8 + ,7.6 + ,3.8 + ,5.6 + ,2.2 + ,6.8 + ,11.8 + ,14.9 + ,16.7 + ,16.7 + ,15.9 + ,13.6 + ,9.2 + ,2.8 + ,2.5 + ,4.8 + ,2.8 + ,7.8 + ,9 + ,12.9 + ,16.4 + ,21.8 + ,17.8 + ,13.5 + ,10 + ,10.4 + ,5.5 + ,4 + ,6.8 + ,5.7 + ,9.1 + ,13.6 + ,15 + ,20.9 + ,20.4 + ,14 + ,13.7 + ,7.1 + ,0.8 + ,2.1 + ,1.3 + ,3.9 + ,10.7 + ,11.1 + ,16.4 + ,17.1 + ,17.3 + ,12.9 + ,10.9 + ,5.3 + ,0.7 + ,-0.2 + ,6.5 + ,8.6 + ,8.5 + ,13.3 + ,16.2 + ,17.5 + ,21.2 + ,14.8 + ,10.3 + ,7.3 + ,5.1 + ,4.4 + ,6.2 + ,7.7 + ,9.3 + ,15.6 + ,16.3 + ,16.6 + ,17.4 + ,15.3 + ,9.7 + ,3.7 + ,4.6 + ,5.4 + ,3.1 + ,7.9 + ,10.1 + ,15 + ,15.6 + ,19.7 + ,18.1 + ,17.7 + ,10.7 + ,6.2 + ,4.2 + ,4 + ,5.9 + ,7.1 + ,10.5 + ,15.1 + ,16.8 + ,15.3 + ,18.4 + ,16.1 + ,11.3 + ,7.9 + ,5.6 + ,3.4 + ,4.8 + ,6.5 + ,8.5 + ,15.1 + ,15.7 + ,18.7 + ,19.2 + ,12.9 + ,14.4 + ,6.2 + ,3.3 + ,4.6 + ,7.2 + ,7.8 + ,9.9 + ,13.6 + ,17.1 + ,17.8 + ,18.6 + ,14.7 + ,10.5 + ,8.6 + ,4.4 + ,2.3 + ,2.8 + ,8.8 + ,10.7 + ,13.9 + ,19.3 + ,19.5 + ,20.4 + ,15.3 + ,7.9 + ,8.3 + ,4.5 + ,3.2 + ,5 + ,6.6 + ,11.1 + ,12.8 + ,16.3 + ,17.4 + ,18.9 + ,15.8 + ,11.7 + ,6.4 + ,2.9 + ,4.7 + ,2.4 + ,7.2 + ,10.7 + ,13.4 + ,18.5 + ,18.3 + ,16.8 + ,16.6 + ,14.1 + ,6.1 + ,3.5 + ,1.7 + ,2.3 + ,4.5 + ,9.3 + ,14.2 + ,17.3 + ,23 + ,16.3 + ,18.4 + ,14.2 + ,9.1 + ,5.9 + ,7.2 + ,6.8 + ,8 + ,14.3 + ,14.6 + ,17.5 + ,17.2 + ,17.2 + ,14.1 + ,10.5 + ,6.8 + ,4.1 + ,6.5 + ,6.1 + ,6.3 + ,9.3 + ,16.4 + ,16.1 + ,18 + ,17.6 + ,14 + ,10.5 + ,6.9 + ,2.8 + ,0.7 + ,3.6 + ,6.7 + ,12.5 + ,14.4 + ,16.5 + ,18.7 + ,19.4 + ,15.8 + ,11.3 + ,9.7 + ,2.9) > par4 = '12' > par3 = '1' > 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/1l2hy1293460259.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/html/rcomp/tmp/2wth11293460259.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/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/3lvh51293460260.tab") > > try(system("convert tmp/1l2hy1293460259.ps tmp/1l2hy1293460259.png",intern=TRUE)) character(0) > try(system("convert tmp/2wth11293460259.ps tmp/2wth11293460259.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.619 0.356 1.693