Home » date » 2008 » May » 28 »

Evelyne Van Haevermaet verbetering opd9 oef 2

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 28 May 2008 06:40:57 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/28/t1211978642625jtcxk5vyi8xy.htm/, Retrieved Wed, 28 May 2008 14:44:02 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
13328 12873 14000 13477 14237 13674 13529 14058 12975 14326 14008 16193 14483 14011 15057 14884 15414 14440 14900 15074 14442 15307 14938 17193 15528 14765 15838 15723 16150 15486 15986 15983 15692 16490 15686 18897 16316 15636 17163 16534 16518 16375 16290 16352 15943 16362 16393 19051 16747 16320 17910 16961 17480 17049 16879 17473 16998 17307 17418 20169 17871 17226 19062 17804 19100 18522 18060 18869 18127 18871 18890 21263 19547 18450 20254 19240 20216 19420 19415 20018 18652 19978 19514 22148
 
Text written by user:
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
113328NANA0.994578556481803NA
212873NANA0.953159362044224NA
314000NANA1.0334682729003NA
413477NANA0.992228846279956NA
514237NANA1.01993449653857NA
613674NANA0.980599134598712NA
71352913660.682548174013937.95833333330.9801064274603130.990360470810323
81405813948.330170953014033.50.9939309631206081.00786257764928
91297513548.560718000114124.95833333330.9591929688052250.957666299030709
101432614116.188544189414227.6250.9921675995951141.01486318032334
111400813976.389899268714335.29166666670.9749637624581751.00226167851349
121619316227.934511082814416.251.125669609717000.997847260779928
131448314426.652047180914505.29166666670.9945785564818031.00390582323847
141401113920.654192815414604.750.9531593620442241.00649005470097
151505715200.466663707814708.20833333331.03346827290030.990561693474166
161488414695.115927749114810.20833333330.9922288462799561.01285352719771
171541415186.654664376514889.83333333331.019934496538571.01497007343933
181444014679.814194726414970.250.9805991345987120.983663676423608
191490014755.951480860915055.45833333330.9801064274603131.00976206240078
201507415038.589609916115130.41666666670.9939309631206081.00235463504241
211444214574.337665389915194.3750.9591929688052250.990919816157124
221530715142.337884070715261.8750.9921675995951141.01087428620270
231493814943.757069077715327.50.9749637624581750.999614750892224
241719317337.281911458915401.751.125669609717000.9916779393566
251552815406.602010727715490.58333333330.9945785564818031.00787960831257
261476514844.225899662815573.70833333330.9531593620442240.994662847345605
271583816187.90253728615663.66666666671.03346827290030.978384936746434
281572315642.529104472115765.04166666670.9922288462799561.00514436604148
291615016161.372064901815845.51.019934496538570.999296342856524
301548615638.268132202115947.66666666670.9805991345987120.990263107723003
311598615732.178320379216051.50.9801064274603131.01613391829484
321598316022.788332356116120.6250.9939309631206080.997516766025312
331569215550.556309391416212.1250.9591929688052251.00909573186929
341649016173.448061949916301.1250.9921675995951141.01957232229254
351568615940.901257131816350.250.9749637624581750.98400960817584
361889718463.936482084416402.6251.125669609717001.02345456064235
371631616363.137937424116452.33333333330.9945785564818030.997119260522989
381563615708.423721249616480.3750.9531593620442240.995389497855752
391716317058.642618382516506.20833333331.03346827290031.00611756655861
401653416383.021223877116511.33333333330.9922288462799561.0092155637266
411651816865.084370242816535.45833333331.019934496538570.979419944625052
421637516249.835125813416571.33333333330.9805991345987121.00770253194678
431629016265.560405756716595.70833333330.9801064274603131.00150253625658
441635216541.164743413716642.16666666670.9939309631206080.988564001003074
451594316020.241133116416701.79166666670.9591929688052250.995178528682899
461636216619.510078601216750.70833333330.9921675995951140.98450555537538
471639316387.759648258416808.58333333330.9749637624581751.00031977230897
481905118997.644585791516876.751.125669609717001.00280852786605
491674716837.593349639116929.3750.9945785564818030.994619578477879
501632016204.304879353117000.6250.9531593620442241.00713977683759
511791017663.307680385317091.29166666671.03346827290031.01396637164899
521696117041.158349040917174.6250.9922288462799560.99529619129175
531748017600.712125871217256.70833333331.019934496538570.99314163398572
541704917009.4725887492173460.9805991345987121.00232384696495
551687917092.484366158517439.41666666670.9801064274603130.987510044673132
561747317417.6461977255175240.9939309631206081.00317803000739
571699816891.148382417817609.750.9591929688052251.00632589419991
581730717554.297318686417692.8750.9921675995951140.985912434192216
591741817349.967634824517795.50.9749637624581751.00392118110001
602016920176.924210671217924.3751.125669609717000.999607263694481
611787117937.182825376118034.95833333330.9945785564818030.996310299893777
621722617292.534865993718142.33333333330.9531593620442240.996152393705766
631906218858.255370926318247.54166666671.03346827290031.01080400201749
641780418217.073560488418359.750.9922288462799560.977324922188142
651910018854.764086636118486.251.019934496538571.01300657553906
661852218232.443142782918593.16666666670.9805991345987121.01588140738734
671806018336.402773676918708.58333333330.9801064274603130.984926008820351
681886918715.140242499218829.41666666670.9939309631206081.00822113836750
691812718157.602832230318930.08333333330.9591929688052250.998314599536455
701887118890.457693124519039.58333333330.9921675995951140.998969972382853
711889018666.57494904419145.91666666670.9749637624581751.01196925796864
722126321646.438983256419229.83333333331.125669609717000.982286278886196
731954719218.945940042119323.70833333330.9945785564818031.01706930551662
741845018518.019800768619428.04166666670.9531593620442240.99632683183729
752025420150.349079119919497.79166666671.03346827290031.00514387718412
761924019413.742891970619565.79166666670.9922288462799560.991050520606075
772021620029.38864848319637.91666666671.019934496538571.00931687705462
781942019318.579259242819700.79166666670.9805991345987121.00524990680713
7919415NANA0.980106427460313NA
8020018NANA0.993930963120608NA
8118652NANA0.959192968805225NA
8219978NANA0.992167599595114NA
8319514NANA0.974963762458175NA
8422148NANA1.12566960971700NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978642625jtcxk5vyi8xy/1jyhk1211978452.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978642625jtcxk5vyi8xy/1jyhk1211978452.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978642625jtcxk5vyi8xy/2vvs91211978452.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978642625jtcxk5vyi8xy/2vvs91211978452.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978642625jtcxk5vyi8xy/3stqq1211978452.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978642625jtcxk5vyi8xy/3stqq1211978452.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978642625jtcxk5vyi8xy/4sws31211978452.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978642625jtcxk5vyi8xy/4sws31211978452.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