Home » date » 2008 » Jun » 01 »

raf mattheussen decompositiemodel insch auto

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 01 Jun 2008 10:50:47 -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/Jun/01/t1212339112vbph4yjvqpave33.htm/, Retrieved Sun, 01 Jun 2008 16:51:56 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
41086 39690 43129 37863 35953 29133 24693 22205 21725 27192 21790 13253 37702 30364 32609 30212 29965 28352 25814 22414 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 22780 17351 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 20366 22782 19169 13807 29743 25591 29096 26482 22405 27044 17970 18730 19684 19785 18479 10698
 
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 time6 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
141086NANA8193.93923611111NA
239690NANA5328.74131944445NA
343129NANA8235.27256944445NA
437863NANA5694.61631944445NA
535953NANA467.855902777777NA
629133NANA128.387152777779NA
72469326828.605902777829668.3333333333-2839.72743055556-2135.60590277778
82220523203.647569444429138.75-5935.10243055556-998.647569444438
92172524369.793402777828311.8333333333-3942.03993055556-2644.79340277778
102719228299.866319444427554.7083333333745.157986111112-1107.86631944445
112179021610.428819444426986.4166666667-5375.98784722222179.571180555555
121325316003.262152777826704.375-10701.1128472222-2750.26215277778
133770234912.480902777826718.54166666678193.939236111112789.51909722222
143036432102.699652777826773.95833333335328.74131944445-1738.69965277778
153260934967.147569444426731.8758235.27256944445-2358.14756944444
163021232442.949652777826748.33333333335694.61631944445-2230.94965277777
172996527301.689236111126833.8333333333467.8559027777772663.31076388889
182835227010.387152777826882128.3871527777791341.61284722223
192581424036.480902777826876.2083333333-2839.727430555561777.51909722222
202241421112.647569444427047.75-5935.102430555561301.35243055555
212050623413.501736111127355.5416666667-3942.03993055556-2907.50173611111
222880628391.449652777827646.2916666667745.157986111112414.550347222223
232222822332.262152777827708.25-5375.98784722222-104.262152777777
241397116696.303819444427397.4166666667-10701.1128472222-2725.30381944445
253684535282.355902777827088.41666666678193.939236111111562.64409722223
263533832079.782986111126751.04166666675328.741319444453258.21701388889
273502234811.855902777826576.58333333338235.27256944445210.144097222223
283477732130.824652777826436.20833333335694.616319444452646.17534722222
292688726526.397569444426058.5416666667467.855902777777360.602430555558
302397025883.762152777825755.375128.387152777779-1913.76215277778
312278022591.147569444425430.875-2839.72743055556188.852430555558
321735118929.189236111124864.2916666667-5935.10243055556-1578.18923611111
332138220346.126736111124288.1666666667-3942.039930555561035.87326388889
342456124440.324652777823695.1666666667745.157986111112120.675347222223
351740917770.762152777823146.75-5375.98784722222-361.762152777777
361151412253.262152777822954.375-10701.1128472222-739.262152777777
373151431098.230902777822904.29166666678193.93923611111415.769097222223
382707128218.991319444422890.255328.74131944445-1147.99131944444
392946231130.522569444422895.258235.27256944445-1668.52256944445
402610528595.574652777822900.95833333335694.61631944445-2490.57465277778
412239723412.564236111122944.7083333333467.855902777777-1015.56423611111
422384323253.470486111123125.0833333333128.387152777779589.52951388889
432170520308.230902777823147.9583333333-2839.727430555561396.76909722222
441808917163.980902777823099.0833333333-5935.10243055556925.019097222226
452076419544.043402777823486.0833333333-3942.039930555561219.95659722222
462531624768.949652777824023.7916666667745.157986111112547.050347222219
471770418906.595486111124282.5833333333-5375.98784722222-1202.59548611111
481554813613.053819444424314.1666666667-10701.11284722221934.94618055555
492802932373.730902777824179.79166666678193.93923611111-4344.73090277778
502938329331.324652777824002.58333333335328.7413194444551.6753472222226
513643832198.2725694444239638235.272569444454239.72743055555
523203429535.449652777823840.83333333335694.616319444452498.55034722222
532267924264.147569444423796.2916666667467.855902777777-1585.14756944445
542431923913.178819444423784.7916666667128.387152777779405.821180555558
551800420943.939236111123783.6666666667-2839.72743055556-2939.93923611111
561753717761.980902777823697.0833333333-5935.10243055556-224.980902777777
572036619291.126736111123233.1666666667-3942.039930555561074.87326388889
582278223441.074652777822695.9166666667745.157986111112-659.074652777777
591916917077.178819444422453.1666666667-5375.987847222222091.82118055556
601380711854.178819444422555.2916666667-10701.11284722221952.82118055555
612974330861.355902777822667.41666666678193.93923611111-1118.35590277778
622559128044.449652777822715.70833333335328.74131944445-2453.44965277778
632909630972.2725694444227378235.27256944445-1876.27256944444
642648228278.324652777822583.70833333335694.61631944445-1796.32465277778
652240522897.939236111122430.0833333333467.855902777777-492.939236111106
662704422400.178819444422271.7916666667128.3871527777794643.82118055556
6717970NANA-2839.72743055556NA
6818730NANA-5935.10243055556NA
6919684NANA-3942.03993055556NA
7019785NANA745.157986111112NA
7118479NANA-5375.98784722222NA
7210698NANA-10701.1128472222NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339112vbph4yjvqpave33/183ai1212339041.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339112vbph4yjvqpave33/183ai1212339041.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339112vbph4yjvqpave33/2wy2r1212339041.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339112vbph4yjvqpave33/2wy2r1212339041.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339112vbph4yjvqpave33/39gfo1212339041.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339112vbph4yjvqpave33/39gfo1212339041.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339112vbph4yjvqpave33/4d0cv1212339041.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212339112vbph4yjvqpave33/4d0cv1212339041.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