Home » date » 2008 » May » 07 » attachments

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 07 May 2008 07:30:53 -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/07/t1210167516xvn8dssdvfjn9zw.htm/, Retrieved Wed, 07 May 2008 15:38:36 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
56421 53152 53536 52408 41454 38271 35306 26414 31917 38030 27534 18387 50556 43901 48572 43899 37532 40357 35489 29027 34485 42598 30306 26451 47460 50104 61465 53726 39477 43895 31481 29896 33842 39120 33702 25094 51442 45594 52518 48564 41745 49585 32747 33379 35645 37034 35681 20972 58552 54955 65540 51570 51145 46641 35704 33253 35193 41668 34865 21210 56126 49231 59723 48103 47472 50497 40059 34149 36860 46356 36577
 
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 time4 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
156421NANA451.448NA
253152NANA-1247.04200000000NA
353536NANA-86.4519999999959NA
452408NANA-2089.272NA
541454NANA367.648NA
63827139156.67841246.55-2089.872-885.678000000007
73530641765.51838063.953701.568-6459.518
82641435678.95836176.7-497.741999999998-9264.958
93191738687.71835602.353085.36800000000-6770.718
103803033937.24835532.9-1595.6524092.752
112753436621.64836170.2451.448-9087.648
121838735315.85836562.9-1247.04200000000-16928.858
135055637284.89837371.35-86.451999999995913271.102
144390136157.82838247.1-2089.2727743.172
154857238343.19837975.55367.64810228.802
164389935783.07837872.95-2089.8728115.922
173753243132.61839431.053701.568-5600.618
184035739131.35839629.1-497.7419999999981225.64199999999
193548940829.46837744.13085.36800000000-5340.468
202902735220.34836816-1595.652-6193.348
213448537522.09837070.65451.448-3037.098
224259837330.50838577.55-1247.042000000005267.492
233030640356.19840442.65-86.4519999999959-10050.198
242645139221.22841310.5-2089.272-12770.228
254746042620.94842253.3367.6484839.052
265010440756.62842846.5-2089.8729347.372
276146545762.76842061.23701.56815702.232
285372641105.15841602.9-497.74199999999812620.842
293947745498.51842413.153085.36800000000-6021.518
304389540763.04842358.7-1595.6523131.952
313148140871.74840420.3451.448-9390.748
322989637421.60838668.65-1247.04200000000-7525.608
333384237674.44837760.9-86.4519999999959-3832.44800000000
343912035917.07838006.35-2089.2723202.922
353370239259.49838891.85367.648-5557.49800000001
362509437548.62839638.5-2089.872-12454.628
375144244837.71841136.153701.5686604.28199999999
384559441568.10842065.85-497.7419999999984025.892
395251844809.41841724.053085.368000000007708.582
404856439938.49841534.15-1595.6528625.502
414174542679.74842228.3451.448-934.748
424958540790.20842037.25-1247.042000000008794.792
433274739931.64840018.1-86.4519999999959-7184.648
443337936999.42839088.7-2089.272-3620.42800000001
453564540077.59839709.95367.648-4432.598
463703439129.37841219.25-2089.872-2095.37800000000
473568146209.81842508.253701.568-10528.818
482097243029.65843527.4-497.741999999998-22057.658
495855248195.76845110.43085.3680000000010356.232
505495544180.79845776.45-1595.65210774.202
516554046041.79845590.35451.44819498.202
525157044129.85845376.9-1247.042000000007440.142
535114546300.84846387.3-86.45199999999594844.152
544664144148.47846237.75-2089.2722492.52200000000
553570443733.79843366.15367.648-8029.798
563325339118.32841208.2-2089.872-5865.328
573519344322.11840620.553701.568-9129.118
584166840434.75840932.5-497.7419999999981233.24200000001
593486544519.86841434.53085.36800000000-9654.868
602121040500.34842096-1595.652-19290.348
615612643998.04843546.6451.44812127.952
624923143405.05844652.1-1247.042000000005825.942
635972344432.99844519.45-86.451999999995915290.002
644810342153.97844243.25-2089.2725949.022
654747245967.94845600.3367.6481504.05200000000
665049743790.27845880.15-2089.8726706.722
6740059NANA3701.568NA
6834149NANA-497.741999999998NA
6936860NANA3085.36800000000NA
7046356NANA-1595.652NA
7136577NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/07/t1210167516xvn8dssdvfjn9zw/1l8a51210167047.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/07/t1210167516xvn8dssdvfjn9zw/1l8a51210167047.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/07/t1210167516xvn8dssdvfjn9zw/2n1y01210167047.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/07/t1210167516xvn8dssdvfjn9zw/2n1y01210167047.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/07/t1210167516xvn8dssdvfjn9zw/3hfgl1210167047.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/07/t1210167516xvn8dssdvfjn9zw/3hfgl1210167047.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/07/t1210167516xvn8dssdvfjn9zw/4eimi1210167047.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/07/t1210167516xvn8dssdvfjn9zw/4eimi1210167047.ps (open in new window)


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