Home » date » 2009 » Dec » 02 »

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 02 Dec 2009 08:45:24 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/02/t125976876201gjjtag6yxaq2n.htm/, Retrieved Wed, 02 Dec 2009 16:46:07 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Dec/02/t125976876201gjjtag6yxaq2n.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
shwws9v1
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6539 6699 6962 6981 7024 6940 6774 6671 6965 6969 6822 6878 6691 6837 7018 7167 7076 7171 7093 6971 7142 7047 6999 6650 6475 6437 6639 6422 6272 6232 6003 5673 6050 5977 5796 5752 5609 5839 6069 6006 5809 5797 5502 5568 5864 5764 5615 5615 5681 5915 6334 6494 6620 6578 6495 6538 6737 6651 6530 6563
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
16539NANA0.962671169304688NA
26699NANA0.986662538249252NA
36962NANA1.02852630120775NA
46981NANA1.03001442499547NA
57024NANA1.01828681487641NA
66940NANA1.01891059927276NA
767746770.704814266286858.333333333330.9872230591882791.00048668282315
866716671.230164911526870.416666666670.9710080899865160.999965498880141
969657006.906146410086878.51.018667754075750.994019308160486
1069696955.624436876176888.583333333331.009732204765301.00192298523953
1168226829.114010728936898.50.989941872976580.998958282038086
1268786760.719585901126910.291666666670.9783551711012361.01734732710161
1366916674.399773283016933.208333333330.9626711693046881.00248714899929
1468376866.1846036765469590.9866625382492520.995749516600396
1570187177.956490341246978.8751.028526301207750.97771559488324
1671677199.285823505866989.51.030014424995470.995515413014935
1770767128.134989986747000.1251.018286814876410.992686026560948
1871717130.3363737107669981.018910599272761.00570290434532
1970936890.323341604596979.50.9872230591882791.02941468032010
2069716752.228423084576953.833333333330.9710080899865161.03239990758717
2171427050.581526366086921.3751.018667754075751.01296608985969
2270476941.446113834266874.541666666671.009732204765301.01520632508482
2369996741.504154970568100.989941872976581.03819560725771
2466506591.54567089826737.3750.9783551711012361.00886807617216
2564756404.490844189216652.833333333330.9626711693046881.01100933040989
2664376465.92850066016553.333333333330.9866625382492520.995526009813263
2766396637.851616419526453.751.028526301207751.00017300531058
2864226554.668462529526363.666666666671.030014424995470.979759699016367
2962726383.597613842946268.958333333331.018286814876410.98251806887061
3062326298.310960187956181.416666666671.018910599272760.98947162809091
3160036029.876176933746107.916666666670.9872230591882790.995542831039126
3256735871.605002807636046.916666666670.9710080899865160.966175346823796
3360506110.22385588495998.251.018667754075750.990143756218212
3459776015.143032487695957.166666666671.009732204765300.993658832004213
3557965860.992106535885920.541666666670.989941872976580.98891107420817
3657525755.785765984965883.1250.9783551711012360.999342267739127
3756095625.970647312765844.1250.9626711693046880.996983516556229
3858395741.265977255125818.8750.9866625382492521.01702307873073
3960695972.39509953815806.751.028526301207751.01617523604046
4060065963.912272526915790.1251.030014424995471.00705706682960
4158095879.29106877545773.708333333331.018286814876410.988044295144918
4257975869.392052502425760.458333333331.018910599272760.987666175328745
4355025684.183569041315757.750.9872230591882790.967949034926745
4455685596.809713341455763.916666666670.9710080899865160.994852475818006
4558645885.989616518975778.1251.018667754075750.996264074870731
4657645866.039243584015809.51.009732204765300.982605086780553
4756155804.64791493235863.6250.989941872976580.967328265605149
4856155801.605399831545929.958333333330.9783551711012360.96783555809622
4956815779.757366609196003.8750.9626711693046880.982913233143708
5059156004.49932027226085.666666666670.9866625382492520.985094623964727
5163346338.250475930216162.458333333331.028526301207750.99932939287484
5264946422.955367933236235.791666666671.030014424995471.01106105024822
5366206426.280802833186310.8751.018286814876411.03014483853264
5465786509.310363454026388.51.018910599272761.01055252134414
556495NANA0.987223059188279NA
566538NANA0.971008089986516NA
576737NANA1.01866775407575NA
586651NANA1.00973220476530NA
596530NANA0.98994187297658NA
606563NANA0.978355171101236NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/02/t125976876201gjjtag6yxaq2n/1vyd71259768722.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t125976876201gjjtag6yxaq2n/1vyd71259768722.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t125976876201gjjtag6yxaq2n/2wujp1259768722.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t125976876201gjjtag6yxaq2n/2wujp1259768722.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t125976876201gjjtag6yxaq2n/3g84m1259768722.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t125976876201gjjtag6yxaq2n/3g84m1259768722.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t125976876201gjjtag6yxaq2n/49q8q1259768722.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t125976876201gjjtag6yxaq2n/49q8q1259768722.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
 
Parameters (R input):
par1 = multiplicative ; par2 = 12 ;
 
R code (references can be found in the software module):
par2 <- as.numeric(par2)
x <- ts(x,freq=par2)
m <- decompose(x,type=par1)
m$figure
bitmap(file='test1.png')
plot(m)
dev.off()
mylagmax <- length(x)/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$trend),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$seasonal),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$random),na.action=na.pass,lag.max = mylagmax,main='Random')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
spectrum(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
spectrum(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
cpgram(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
cpgram(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Classical Decomposition by Moving Averages',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observations',header=TRUE)
a<-table.element(a,'Fit',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Random',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(m$trend)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
if (par1 == 'additive') a<-table.element(a,m$trend[i]+m$seasonal[i]) else a<-table.element(a,m$trend[i]*m$seasonal[i])
a<-table.element(a,m$trend[i])
a<-table.element(a,m$seasonal[i])
a<-table.element(a,m$random[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by