Home » date » 2011 » May » 16 »

Classical Deomposition niet werkende werkzoekende Sebastiaan Vandesompele

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 16 May 2011 20:34:43 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/16/t1305578161fcs7xdk58ezujlm.htm/, Retrieved Mon, 16 May 2011 22:36:05 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
89507 87562 85209 82360 79054 79069 107551 115759 115585 110260 103444 102303 101397 97994 94044 91159 87239 89235 118647 125620 125154 117529 109459 108483 107137 104699 100804 96066 91971 93228 120144 127233 127166 118194 109940 106683 102834 99882 96666 92540 88744 89321 115870 122401 122030 113802 105791 103076 98658 96945 92497 90687 88796 90015 113228 118711 117460 106556 97347 92657 93118 89037 83570 81693 75956 73993 97088 102394 96549 89727 82336 82653 82303 79596 74472 73562 66618 69029 89899 93774 90305 83799 80320 82497
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ www.wessa.org


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
189507NANA-2190.52256944445NA
287562NANA-4797.59895833334NA
385209NANA-8819.36979166667NA
482360NANA-11184.390625NA
579054NANA-15237.2170138889NA
679069NANA-14022.9253472222NA
7107551108423.57465277896967.333333333311456.2413194444-872.574652777752
8115759116057.33854166797897.416666666618159.921875-298.338541666642
9115585115627.67881944498700.208333333316927.4704861111-42.6788194444089
10110260108518.75520833399434.95833333339083.7968751741.2447916667
11103444101415.380208333100142.6251272.755208333342028.61979166669
12102303100259.088541667100907.25-648.1614583333342043.91145833334
1310139799602.6440972222101793.166666667-2190.522569444451794.3559027778
149799497868.7760416666102666.375-4797.59895833334125.223958333358
159404494656.5885416667103475.958333333-8819.36979166667-612.588541666657
169115992993.1510416667104177.541666667-11184.390625-1834.15104166667
178723989493.8246527778104731.041666667-15237.2170138889-2254.82465277778
188923591216.2413194445105239.166666667-14022.9253472222-1981.24131944445
19118647117192.074652778105735.83333333311456.24131944441454.92534722223
20125620124414.296875106254.37518159.9218751205.70312500001
21125154123742.887152778106815.41666666716927.47048611111411.11284722223
22117529116385.338541667107301.5416666679083.7968751143.66145833334
23109459108975.921875107703.1666666671272.75520833334483.078125000015
24108483107418.546875108066.708333333-648.1614583333341064.45312500001
25107137106104.935763889108295.458333333-2190.522569444451032.06423611114
26104699103627.442708333108425.041666667-4797.598958333341071.55729166669
2710080499756.7135416666108576.083333333-8819.369791666671047.28645833336
289606697503.234375108687.625-11184.390625-1437.234375
299197193498.1579861111108735.375-15237.2170138889-1527.15798611111
309322894657.4913194444108680.416666667-14022.9253472222-1429.49131944444
31120144119882.366319444108426.12511456.2413194444261.633680555562
32127233126206.046875108046.12518159.9218751026.95312500001
33127166124600.47048611110767316927.47048611112565.52951388889
34118194116437.463541667107353.6666666679083.7968751756.53645833334
35109940108345.046875107072.2916666671272.755208333341594.953125
36106683106126.880208333106775.041666667-648.161458333334556.119791666657
37102834104243.644097222106434.166666667-2190.52256944445-1409.64409722222
3899882101257.151041667106054.75-4797.59895833334-1375.15104166666
399666696820.046875105639.416666667-8819.36979166667-154.046874999985
409254094058.0260416667105242.416666667-11184.390625-1518.02604166667
418874489649.3246527778104886.541666667-15237.2170138889-905.324652777766
428932190540.4496527778104563.375-14022.9253472222-1219.44965277778
43115870115695.324652778104239.08333333311456.2413194444174.675347222234
44122401122102.630208333103942.70833333318159.921875298.369791666672
45122030120574.095486111103646.62516927.47048611111455.90451388891
46113802112479.505208333103395.7083333339083.7968751322.49479166669
47105791104593.421875103320.6666666671272.755208333341197.578125
48103076102703.588541667103351.75-648.161458333334372.411458333343
4998658101080.060763889103270.583333333-2190.52256944445-2422.06076388889
509694598209.1510416667103006.75-4797.59895833334-1264.15104166667
519249793843.2135416667102662.583333333-8819.36979166667-1346.21354166666
529068790985.859375102170.25-11184.390625-298.859375
538879686279.2829861111101516.5-15237.21701388892516.71701388889
549001586707.6163194444100730.541666667-14022.92534722223307.38368055556
55113228111521.824652778100065.58333333311456.24131944441706.17534722225
56118711117665.17187599505.2518159.9218751045.828125
57117460115731.26215277898803.791666666716927.47048611111728.73784722222
58106556107140.88020833398057.08333333339083.796875-584.880208333328
599734798420.088541666797147.33333333331272.75520833334-1073.08854166667
609265795296.588541666795944.75-648.161458333334-2639.58854166667
619311892414.144097222294604.6666666667-2190.52256944445703.855902777796
628903788454.692708333393252.2916666667-4797.59895833334582.307291666672
638357082881.755208333391701.125-8819.36979166667688.244791666657
648169378944.23437590128.625-11184.3906252748.765625
657595673564.741319444488801.9583333333-15237.21701388892391.25868055556
667399373736.741319444487759.6666666667-14022.9253472222256.258680555562
679708898348.449652777886892.208333333311456.2413194444-1260.44965277778
68102394104208.13020833386048.208333333318159.921875-1814.13020833334
6996549102203.22048611185275.7516927.4704861111-5654.22048611111
708972793641.67187584557.8759083.796875-3914.671875
718233685102.7552083333838301272.75520833334-2766.75520833334
728265382585.92187583234.0833333333-648.16145833333467.0781249999854
738230380537.185763888982727.7083333333-2190.522569444451765.81423611112
747959677271.401041666782069-4797.598958333342324.59895833333
757447272630.29687581449.6666666667-8819.369791666671841.70312500001
767356269758.10937580942.5-11184.3906253803.89062500001
776661865374.282986111180611.5-15237.21701388891243.71701388889
786902966498.074652777880521-14022.92534722222530.92534722223
7989899NANA11456.2413194444NA
8093774NANA18159.921875NA
8190305NANA16927.4704861111NA
8283799NANA9083.796875NA
8380320NANA1272.75520833334NA
8482497NANA-648.161458333334NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/16/t1305578161fcs7xdk58ezujlm/1kyup1305578080.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/16/t1305578161fcs7xdk58ezujlm/1kyup1305578080.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/16/t1305578161fcs7xdk58ezujlm/2urfg1305578080.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/16/t1305578161fcs7xdk58ezujlm/2urfg1305578080.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/16/t1305578161fcs7xdk58ezujlm/3zczy1305578080.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/16/t1305578161fcs7xdk58ezujlm/3zczy1305578080.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/16/t1305578161fcs7xdk58ezujlm/4y5kr1305578080.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/16/t1305578161fcs7xdk58ezujlm/4y5kr1305578080.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; 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