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(1025.5 + ,691.2 + ,971.6 + ,926 + ,997.1 + ,964.9 + ,860 + ,948 + ,951.4 + ,827.3 + ,994 + ,944.5 + ,976.2 + ,668.8 + ,939.9 + ,1096.1 + ,977.7 + ,1096.9 + ,1060.8 + ,1121.4 + ,1190.9 + ,1177.9 + ,1108.1 + ,1045.6 + ,1263.9 + ,911 + ,1175.9 + ,1091.3 + ,1027.7 + ,1081.7 + ,879.7 + ,955.5 + ,1037.9 + ,959.9 + ,931.8 + ,1062.2 + ,1077.2 + ,668.4 + ,954.3 + ,797.2 + ,829.2 + ,957.3 + ,844.2 + ,893.6 + ,1132 + ,898.8 + ,1064 + ,1279.7 + ,1382.5 + ,824.1 + ,1304.1 + ,1253.5 + ,1136.3 + ,1414.7 + ,1293.2 + ,1325.7 + ,1463.8 + ,1244.2 + ,1573.6 + ,1327.3 + ,1418.5 + ,1042.2 + ,1384.8 + ,1474.8 + ,1556.5 + ,1466.2 + ,1221.7 + ,1279.7 + ,1348.4 + ,1189.8 + ,1296.6 + ,1417.6 + ,1513.9 + ,1006.1 + ,1202.8 + ,1258.8 + ,1211.5 + ,1283.3 + ,1332.3 + ,1374.3 + ,1406.1 + ,1419.1 + ,1554.4 + ,1499.8 + ,1609.6 + ,1033.9 + ,1550.5 + ,1491.4 + ,1368.9 + ,1537.1 + ,1492.3 + ,1504.1 + ,1301.2 + ,1344.2 + ,1319.1 + ,1420.3 + ,1582.9 + ,1002.6 + ,1559.1 + ,1462.7 + ,1414.8 + ,1537.5 + ,1455.9 + ,1619.9 + ,1667.2 + ,1488.9 + ,1442.5 + ,1779.6 + ,1801.9 + ,1233.4 + ,1581.1 + ,1515 + ,1439.2 + ,1585.8 + ,1488.8 + ,1601.3 + ,1646.8 + ,1630.2 + ,1720.7 + ,2013.5 + ,2051.2 + ,1404.7 + ,2015.9 + ,1544.1 + ,1816.6 + ,1773.4 + ,1577.4 + ,1709.8 + ,1810.2 + ,1520.5 + ,1798.6 + ,1666.8 + ,1730.4 + ,1147.8 + ,1777 + ,1700 + ,1907.4 + ,1745.8 + ,1771.6 + ,1790.2 + ,1958.7 + ,1560.4 + ,1752.1 + ,2011.6 + ,2082.8 + ,1616.4 + ,1846.1 + ,1824.9 + ,1711.3 + ,1805 + ,1737.6 + ,1939.6 + ,1711.4 + ,1964.8 + ,1864.4 + ,1980.7 + ,2226.7 + ,1433.3 + ,1960.7) > 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/1d7391229939656.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/2he431229939656.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/3hdzi1229939657.tab") > > system("convert tmp/1d7391229939656.ps tmp/1d7391229939656.png") > system("convert tmp/2he431229939656.ps tmp/2he431229939656.png") > > > proc.time() user system elapsed 0.564 0.322 0.658