Home » date » 2009 » Jun » 02 »

opgave9oef1-MerelBoels-MAR204A

*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 12:44:54 -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/t124396840613rrs0uvrjc95na.htm/, Retrieved Tue, 02 Jun 2009 20:46:51 +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/t124396840613rrs0uvrjc95na.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 «
672.1 674.4 676.6 678.7 680.8 682.9 684 684.1 684.1 684.2 685.9 689.2 692.4 695.7 697.2 696.8 696.4 695.9 696.2 697.2 705.2 706.2 707.4 708.7 710 711.3 711.5 710.7 710 709.2 707.9 706.1 704.4 702.7 701.5 700.8 700 699.3 698.8 698.4 696.8 695.1 694.3 693.4 692.4 691 689.7 688.3 686 683.6 682.6 681.9 681 679.9 678.5 677.5 678 679 679.8 681.3 684.2 687 688.4 689.5 691.1 693.3 695.9 698 699.6 701.6 703.5 705.5 708.1 709.6 710.3
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1672.1NANA1.00073281980099NA
2674.4NANA1.00165891680969NA
3676.6NANA1.00176323928649NA
4678.7NANA1.00102382820104NA
5680.8NANA1.00003181360352NA
6682.9NANA0.999082528407648NA
7684681.257998162266682.26250.998527690093281.00402490957190
8684.1682.628896419973683.9958333333330.9980015420463911.00215505611869
9684.1685.599365391093685.7416666666670.9997924855926210.997813058957197
10684.2687.477967656593687.3541666666671.000180112372820.995231894241256
11685.9688.557870604987688.7583333333330.9997089505583530.996139945938528
12689.2689.602315723082689.950.9994960732271640.999416597488278
13692.4691.5063784824856911.000732819800991.00129228239294
14695.7693.202226956965692.0541666666671.001658916809691.00360323863067
15697.2694.701936377693693.4791666666671.001763239286491.00359587830622
16696.8695.986842152476695.2751.001023828201041.00116835232834
17696.4697.109676865344697.08751.000031813603520.9989819724372
18695.9698.154708007396698.7958333333330.9990825284076480.996770475108832
19696.2699.310546692745700.3416666666670.998527690093280.99555198086536
20697.2700.322632092504701.7250.9980015420463910.995541152107031
21705.2702.82495675745702.9708333333330.9997924855926211.00337928131282
22706.2704.272658710187704.1458333333331.000180112372821.00273664079668
23707.4705.086391920885705.2916666666670.9997089505583531.00328131148980
24708.7706.056519828584706.41250.9994960732271641.00374400646007
25710707.972603088294707.4541666666671.000732819800991.00286366577303
26711.3709.487531512762708.31251.001658916809691.00255461640513
27711.5709.899519520368708.651.001763239286491.00225451692193
28710.7709.196185752113708.4708333333331.001023828201041.00212044886605
29710708.101693216536708.0791666666671.000031813603521.00268083920947
30709.2706.85505169228707.5041666666670.9990825284076481.00331743870558
31707.9705.71776603751706.7583333333330.998527690093281.00309221911012
32706.1704.431071773928705.8416666666670.9980015420463911.00236918598986
33704.4704.666241251749704.81250.9997924855926210.999622173965257
34702.7703.897591168047703.7708333333331.000180112372820.998298628688217
35701.5702.503810465276702.7083333333330.9997089505583530.998571096056246
36700.8701.217293007376701.5708333333330.9994960732271640.999404902001794
37700700.929945868944700.4166666666671.000732819800990.998673268456534
38699.3700.480948419115699.3208333333331.001658916809690.998314089167192
39698.8699.522921966759698.2916666666671.001763239286490.998966549995636
40698.4698.018086337201697.3041666666671.001023828201041.00054714006739
41696.8696.34715260747696.3251.000031813603521.00065031843791
42695.1694.674570533443695.31250.9990825284076481.00061241548864
43694.3693.186243526839694.2083333333330.998527690093281.00160672039234
44693.4691.58596025984692.9708333333330.9980015420463911.00262301412174
45692.4691.49814105609691.6416666666670.9997924855926211.00130421022178
46691690.403494485283690.2791666666671.000180112372821.00086399550333
47689.7688.732819671335688.9333333333330.9997089505583531.00140428958958
48688.3687.295145620716687.6416666666670.9994960732271641.00146204201454
49686686.85297087041686.351.000732819800990.998758146347785
50683.6686.165573066377685.0291666666671.001658916809690.996261000016495
51682.6684.972310916123683.7666666666671.001763239286490.996536632388906
52681.9683.365600051908682.6666666666671.001023828201040.997855320707105
53681681.775855723423681.7541666666671.000031813603520.998862007627713
54679.9680.425155972029681.050.9990825284076480.999228194361394
55678.5679.681156518327680.6833333333330.998527690093280.9982621902829
56677.5679.389549748081680.750.9980015420463910.997218753587273
57678680.99198835332681.1333333333330.9997924855926210.995606426500618
58679681.814447770282681.6916666666671.000180112372820.995872120663495
59679.8682.230546038745682.4291666666670.9997089505583530.996437353834628
60681.3683.063945577388683.4083333333330.9994960732271640.997417598178313
61684.2685.193422277574684.6916666666671.000732819800990.998550157889328
62687687.409299554749686.2708333333331.001658916809690.999404576640127
63688.4689.238152710085688.0251.001763239286490.998783943246918
64689.5690.572971614956689.8666666666671.001023828201040.99844625889072
65691.1691.817841851691691.7958333333331.000031813603520.998962383147318
66693.3693.155132521489693.7916666666670.9990825284076481.00020899719516
67695.9694.771406234862695.7958333333330.998527690093281.00162441020890
68698696.338942603836697.7333333333330.9980015420463911.0023854150537
69699.6699.442325514528699.58750.9997924855926211.00022542885914
70701.6NANA1.00018011237282NA
71703.5NANA0.999708950558353NA
72705.5NANA0.999496073227164NA
73708.1NANANANA
74709.6NANANANA
75710.3NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t124396840613rrs0uvrjc95na/162mv1243968292.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t124396840613rrs0uvrjc95na/162mv1243968292.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t124396840613rrs0uvrjc95na/28h0x1243968292.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t124396840613rrs0uvrjc95na/28h0x1243968292.ps (open in new window)


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


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