Home » date » 2009 » Dec » 06 »

verbetering workshop

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 06 Dec 2009 06:38:52 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/06/t1260106763hlos78kj9kuxkw9.htm/, Retrieved Sun, 06 Dec 2009 14:39:29 +0100
 
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/Dec/06/t1260106763hlos78kj9kuxkw9.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 «
3922 3759 4138 4634 3995 4308 4143 4429 5219 4929 5755 5592 4163 4962 5208 4755 4491 5732 5731 5040 6102 4904 5369 5578 4619 4731 5011 5299 4146 4625 4736 4219 5116 4205 4121 5103 4300 4578 3809 5526 4247 3830 4394 4826 4409 4569 4106 4794 3914 3793 4405 4022 4100 4788 3163 3585 3903 4178 3863 4187
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
13922NANA0.897304195914187NA
23759NANA0.954638769538198NA
34138NANA0.979781268093018NA
44634NANA1.05020944347549NA
53995NANA0.917307086918369NA
64308NANA1.02844256976708NA
741434564.150654494254578.6250.9968387134771360.90772639065287
844294528.847092510334638.791666666670.9762988765056270.97795308817658
952195173.398008660184733.51.092932926726561.00881470771502
1049294692.267678030324783.1250.9810046105904231.05045158081626
1157554886.091425710974808.833333333331.016065870248011.17783305685128
1255925422.574981887274888.833333333331.109175668745901.03124438457350
1341634499.382339712375014.333333333330.8973041959141870.925238107296773
1449624874.345780646645105.958333333330.9546387695381981.01798276595423
1552085063.713714602245168.208333333330.9797812680930181.02849416328212
1647555465.246185119635203.958333333331.050209443475490.87004314882403
1744914757.918975331095186.833333333330.9173070869183690.94390005867796
1857325317.219492790755170.166666666671.028442569767081.07800703126354
1957315172.180734768915188.583333333330.9968387134771361.10804325948522
2050405074.760880956395197.958333333330.9762988765056270.993150242588407
2161025661.529177059435180.1251.092932926726561.07780068055206
2249045095.910200096175194.583333333330.9810046105904230.96234034891499
2353695286.463714666615202.8751.016065870248011.01561275926370
2455785703.797229567225142.3751.109175668745900.977945003213804
2546194535.685771972075054.791666666670.8973041959141871.01836860669290
2647314753.265763376884979.1250.9546387695381980.995315691466605
2750114804.684041850154903.833333333330.9797812680930181.04294058804966
2852995076.318621219214833.6251.050209443475491.04386670644549
2941464359.501930579554752.50.9173070869183690.951026072707539
3046254813.839706663514680.708333333331.028442569767080.96077150088689
3147364632.932525724174647.6250.9968387134771361.02224670307706
3242194518.270521348194627.958333333330.9762988765056270.933764364056075
3351164996.342874530474571.51.092932926726561.02394894195102
3442054444.809265008884530.8750.9810046105904230.94604734405664
3541214617.553683424544.541666666671.016065870248010.892463906764538
3651035008.621379180734515.6251.109175668745901.01884323323212
3743004009.379473393574468.250.8973041959141871.07248516348602
3845784276.105485069374479.291666666670.9546387695381981.07060034322931
3938094384.643647374774475.1250.9797812680930180.868713698610508
4055264684.809292436914460.833333333331.050209443475491.17955708654376
4142474105.293204117294475.3750.9173070869183691.03451806943791
4238304588.782190979484461.8751.028442569767080.834644103947432
4343944418.902946951354432.916666666670.9968387134771360.994364450351069
4448264280.216311960234384.1250.9762988765056271.12751310874515
4544094782.947720587114376.251.092932926726560.921816473348111
4645694256.006752662344338.416666666670.9810046105904231.07354152977832
4741064338.220241257654269.6251.016065870248010.946471080686689
4847944773.245059142274303.416666666671.109175668745901.00434818254679
4939143851.266996538524292.041666666670.8973041959141871.01628892609052
5037933999.021582210914189.041666666670.9546387695381980.948482002916071
5144054033.024644787884116.250.9797812680930181.09223235362393
5240224283.673043756084078.8751.050209443475490.93891386175294
5341003717.348748608074052.458333333330.9173070869183691.10293660274280
5447884131.296654528094017.041666666671.028442569767081.15895816746835
553163NANA0.996838713477136NA
563585NANA0.976298876505627NA
573903NANA1.09293292672656NA
584178NANA0.981004610590423NA
593863NANA1.01606587024801NA
604187NANA1.10917566874590NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260106763hlos78kj9kuxkw9/142661260106729.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260106763hlos78kj9kuxkw9/142661260106729.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t1260106763hlos78kj9kuxkw9/2tj0c1260106729.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260106763hlos78kj9kuxkw9/2tj0c1260106729.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t1260106763hlos78kj9kuxkw9/3zbcm1260106729.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260106763hlos78kj9kuxkw9/3zbcm1260106729.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t1260106763hlos78kj9kuxkw9/4cqb11260106729.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260106763hlos78kj9kuxkw9/4cqb11260106729.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