Home » date » 2009 » Jun » 02 »

decomposition - sigaretten - caroline thys

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 02 Jun 2009 09:41:09 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/02/t1243957311gdbuzyrjdjpwxrl.htm/, Retrieved Tue, 02 Jun 2009 17:41:57 +0200
 
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/Jun/02/t1243957311gdbuzyrjdjpwxrl.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106,07 106,07 106,07 106,07 106,07 106,2 107,5 108,31 108,53 108,61 108,62 108,62 108,62 108,62 110,1 110,74 110,77 110,77 110,78 110,78 110,78 110,84 110,84 110,84 110,84 110,84 111,01 112,66 114,04 114,16 114,2 114,2 114,23 114,23 114,23 114,23 114,23 114,23 115,97 116,96 117,08 117,08 117,08 117,63 119,12 119,47 119,5 119,52 119,49 119,49 119,5 119,5 119,56 122,35 122,92 122,92 123,04 123,04 123,04 123,06 123,33 128,21 129,57 129,79 131,66 135,01 136,01 136,31 136,37 136,4 136,4 136,4 137,34 142,18 143,79 144,08 144,08 144,09 144,09 144,11 144,11 144,15 144,15 144,16 144,2 144,38 144,38 144,28 144,46 144,53 144,53 145,34 147,98 150,42 150,53 150,64
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'George Udny Yule' @ 72.249.76.132
R Framework
error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1106.07NANA0.990278534403955NA
2106.07NANA0.997355460812724NA
3106.07NANA1.00119351888841NA
4106.07NANA1.00198095896971NA
5106.07NANA1.00232897386216NA
6106.2NANA1.00559762619841NA
7107.5107.950904746405107.3345833333331.005742058094720.995823057273446
8108.31107.994496194066107.5470833333331.004160158015131.00292148041847
9108.53108.122844611257107.821251.002797172275941.00376567403685
10108.61108.161526436307108.183750.9997945757686081.00414633168067
11108.62108.160014732477108.5741666666670.9961855389094411.00425282179058
12108.62108.152521354594108.9604166666670.9925854238007931.00432240172999
13108.62108.225065328672109.28750.9902785344039551.00364919780948
14108.62109.237434669390109.5270833333330.9973554608127240.994347773991041
15110.1109.854707368133109.723751.001193518888411.00223288230194
16110.74110.128144692427109.9104166666671.001980958969711.00555584868229
17110.77110.352243651499110.0958333333331.002328973862161.00378566248114
18110.77110.898144215182110.2808333333331.005597626198410.998844487289766
19110.78111.100134565815110.4658333333331.005742058094720.997118504247851
20110.78111.111158284506110.6508333333331.004160158015130.997019576704817
21110.78111.091124241194110.781251.002797172275940.997199378048252
22110.84110.876385290592110.8991666666670.9997945757686080.999671839134214
23110.84110.691571233230111.1154166666670.9961855389094411.00134092203332
24110.84110.566985397990111.3929166666670.9925854238007931.00246922353022
25110.84110.591005793786111.6766666666670.9902785344039551.00225148694893
26110.84111.665579651694111.9616666666670.9973554608127240.992606677417795
27111.01112.381886675393112.2479166666671.001193518888410.98779263530825
28112.66112.755839757325112.5329166666671.001980958969710.999150024002913
29114.04113.078160823332112.8154166666671.002328973862161.00850596763924
30114.16113.730996527985113.0979166666671.005597626198411.00377208927304
31114.2114.031453605970113.3804166666671.005742058094721.00147806932825
32114.2114.135772360461113.6629166666671.004160158015131.00056273014333
33114.23114.329741275490114.0108333333331.002797172275940.999127599919516
34114.23114.373166819343114.3966666666670.9997945757686080.998748248183344
35114.23114.264971776760114.70250.9961855389094410.999693941404646
36114.23114.098521620421114.9508333333330.9925854238007931.00115232325285
37114.23114.072660074328115.19250.9902785344039551.0013792956662
38114.23115.150090292908115.4554166666670.9973554608127240.992009643322312
39115.97115.940295307109115.8020833333331.001193518888411.00025620680724
40116.96116.454401972122116.2241666666671.001980958969711.00434159653320
41117.08116.933786276122116.6620833333331.002328973862161.00125039758426
42117.08117.757577022888117.1020833333331.005597626198410.994246000639465
43117.08118.216597745216117.5416666666671.005742058094720.990385463912047
44117.63118.470815442625117.981.004160158015130.992902763102595
45119.12118.677284849462118.346251.002797172275941.00373041185683
46119.47118.574803524010118.5991666666670.9997945757686081.00754963490881
47119.5118.355143568599118.8083333333330.9961855389094411.00967306022266
48119.52118.247942269168119.131250.9925854238007931.01075754644369
49119.49118.431536089929119.5941666666670.9902785344039551.00893734848856
50119.49119.740418801299120.0579166666670.9973554608127240.997908652702189
51119.5120.585416070785120.4416666666671.001193518888410.990998778242402
52119.5120.992958224189120.753751.001980958969710.98766078418033
53119.56121.331922286014121.051.002328973862160.985396075058982
54122.35122.024243951045121.3451.005597626198411.00266960104326
55122.92122.351035722367121.65251.005742058094721.00465026122806
56122.92122.684104105630122.1758333333331.004160158015131.00192279102570
57123.04123.302686806585122.958751.002797172275940.997869577594878
58123.04123.781650358399123.8070833333330.9997945757686080.99400839820562
59123.04124.264184123564124.740.9961855389094410.99014853610316
60123.06124.839123060465125.7716666666670.9925854238007930.98574867383838
61123.33125.611468080414126.8445833333330.9902785344039550.981837103607824
62128.21127.609553387111127.9479166666670.9973554608127241.00470534217032
63129.57129.215287039637129.061251.001193518888411.00274513154356
64129.79130.431201365617130.1733333333331.001980958969710.995083987888606
65131.66131.592429881783131.2866666666671.002328973862161.00051348028361
66135.01133.140287710647132.3991666666671.005597626198411.01404317447035
67136.01134.305537260396133.538751.005742058094721.01269093422634
68136.31135.264975685362134.7045833333331.004160158015131.00772575686605
69136.37136.259244104545135.8791666666671.002797172275941.00081283215816
70136.4137.038926433090137.0670833333330.9997945757686080.995337628149018
71136.4137.652917766507138.180.9961855389094410.990897993396465
72136.4138.044644969615139.0758333333330.9925854238007930.988086137133554
73137.34138.431861556441139.7908333333330.9902785344039550.99211264268092
74142.18140.081067859799140.45250.9973554608127241.0149836960288
75143.79141.268405515155141.11.001193518888411.01784967045993
76144.08142.026208521228141.7454166666671.001980958969711.01446065131328
77144.08142.722875499450142.391251.002328973862161.00950880856205
78144.09143.838170457354143.03751.005597626198411.00175078382772
79144.09144.471494171779143.6466666666671.005742058094720.997359381004772
80144.11144.623329957997144.0241666666671.004160158015130.996450572959795
81144.11144.543602244009144.1404166666671.002797172275940.997000197606273
82144.15144.143716637146144.1733333333330.9997945757686081.00004359095908
83144.15143.647464246894144.19750.9961855389094411.00349839626993
84144.16143.162249983828144.2316666666670.9925854238007931.00696936529207
85144.2142.865833694235144.2683333333330.9902785344039551.00933859601884
86144.38143.956209389832144.3379166666670.9973554608127241.00294388558829
87144.38144.722940319286144.5504166666671.001193518888410.997630366557438
88144.28145.260102066303144.9729166666671.001980958969710.99325277862014
89144.46145.838865696944145.51.002328973862160.990545279611475
90144.53146.853287339906146.0358333333331.005597626198410.98417953467716
91144.53NANA1.00574205809472NA
92145.34NANA1.00416015801513NA
93147.98NANA1.00279717227594NA
94150.42NANA0.999794575768608NA
95150.53NANA0.996185538909441NA
96150.64NANA0.992585423800793NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243957311gdbuzyrjdjpwxrl/1xegr1243957267.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243957311gdbuzyrjdjpwxrl/1xegr1243957267.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243957311gdbuzyrjdjpwxrl/21zss1243957267.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243957311gdbuzyrjdjpwxrl/21zss1243957267.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243957311gdbuzyrjdjpwxrl/3yw7r1243957267.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243957311gdbuzyrjdjpwxrl/3yw7r1243957267.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243957311gdbuzyrjdjpwxrl/44f021243957267.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243957311gdbuzyrjdjpwxrl/44f021243957267.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