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(83.87 + ,84.23 + ,84.61 + ,84.82 + ,85.04 + ,85.06 + ,84.93 + ,84.98 + ,85.23 + ,85.30 + ,85.33 + ,85.55 + ,85.70 + ,85.88 + ,86.04 + ,86.07 + ,86.31 + ,86.38 + ,86.35 + ,86.55 + ,86.70 + ,86.74 + ,86.85 + ,86.95 + ,86.80 + ,87.01 + ,87.17 + ,87.43 + ,87.66 + ,87.68 + ,87.59 + ,87.65 + ,87.72 + ,87.70 + ,87.71 + ,87.80 + ,87.62 + ,87.84 + ,88.17 + ,88.47 + ,88.58 + ,88.57 + ,88.55 + ,88.68 + ,88.79 + ,88.85 + ,88.95 + ,89.27 + ,89.09 + ,89.42 + ,89.72 + ,89.85 + ,89.96 + ,90.25 + ,90.20 + ,90.27 + ,90.78 + ,90.79 + ,90.98 + ,91.25 + ,90.75 + ,91.01 + ,91.50 + ,92.09 + ,92.56 + ,92.66 + ,92.38 + ,92.38 + ,92.66 + ,92.69 + ,92.59 + ,92.98 + ,92.98 + ,93.15 + ,93.65 + ,94.06 + ,94.24 + ,94.24 + ,94.11 + ,94.16 + ,94.43 + ,94.67 + ,94.60 + ,95.00 + ,94.84 + ,95.26 + ,95.81 + ,95.92 + ,95.85 + ,95.90 + ,95.80 + ,96.00 + ,96.34 + ,96.43 + ,96.48 + ,96.75 + ,96.51 + ,96.69 + ,97.28 + ,97.69 + ,98.08 + ,98.09 + ,97.92 + ,98.06 + ,98.23 + ,98.57 + ,98.53 + ,98.92 + ,98.42 + ,98.73 + ,99.32 + ,99.73 + ,100.00 + ,100.08 + ,100.02 + ,100.26 + ,100.71 + ,100.95 + ,100.75 + ,101.03 + ,100.64 + ,100.93 + ,101.41 + ,102.07 + ,102.42 + ,102.53 + ,102.43 + ,102.60 + ,102.65 + ,102.74 + ,102.82 + ,103.21 + ,102.75 + ,103.09 + ,103.71 + ,104.30 + ,104.58 + ,104.71 + ,104.44 + ,104.57 + ,104.95 + ,105.49 + ,106.03 + ,106.48 + ,106.25 + ,106.70 + ,107.60 + ,108.05 + ,108.72 + ,109.17 + ,109.08 + ,109.04 + ,109.34 + ,109.37 + ,108.96 + ,108.77 + ,108.11 + ,108.67 + ,109.05 + ,109.43 + ,109.62 + ,109.85 + ,109.34 + ,109.65 + ,109.69 + ,109.91 + ,110.09) > par4 = '12' > par3 = '1' > par2 = '1' > par1 = '-1.0' > #'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/1tq8z1261909972.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/2snzu1261909972.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/337m41261909972.tab") > > try(system("convert tmp/1tq8z1261909972.ps tmp/1tq8z1261909972.png",intern=TRUE)) character(0) > try(system("convert tmp/2snzu1261909972.ps tmp/2snzu1261909972.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.534 0.319 1.146