Home » date » 2008 » May » 17 » attachments

Nietje van Santfoort-decompositie-prijzen jogging

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 17 May 2008 10:33:15 -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/17/t1211042030k3e9yj6jyhlrdrl.htm/, Retrieved Sat, 17 May 2008 18:33:56 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
71,42 71,47 71,64 71,55 71,62 71,65 71,65 71,65 71,6 71,7 71,73 71,83 71,83 71,87 71,91 71,99 72,1 72,12 72,12 72,12 72,25 72,59 72,72 72,76 72,76 72,91 73 73,16 73,16 73,11 73,11 73,33 73,51 73,66 73,65 73,65 73,65 73,65 73,71 73,73 73,85 73,77 73,77 73,78 73,88 74,3 74,53 74,71 74,71 74,78 74,9 74,65 74,65 74,53 74,53 74,53 74,65 74,85 74,96 74,96 74,96 75,19 74,98 75,54 75,61 75,59 75,58 75,44 75,37 75,22 75,33 75,33
 
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 time2 seconds
R Server'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
171.42NANA0.0641232638888839NA
271.47NANA0.06912326388889NA
371.64NANA0.084852430555553NA
471.55NANA0.0227690972222157NA
571.62NANA0.013810763888887NA
671.65NANA-0.109939236111111NA
771.6571.467769097222271.6429166666667-0.1751475694444380.182230902777789
871.6571.491831597222271.6766666666667-0.1848350694444400.158168402777790
971.671.585685763888971.7045833333333-0.1188975694444430.0143142361111046
1071.771.823810763888971.73416666666670.0896440972222224-0.123810763888883
1171.7371.903602430555671.77250.131102430555561-0.173602430555547
1271.8371.925477430555571.81208333333330.113394097222219-0.0954774305555475
1371.8371.915373263888971.851250.0641232638888839-0.085373263888897
1471.8771.959539930555671.89041666666670.06912326388889-0.0895399305555458
1571.9172.021935763888971.93708333333330.084852430555553-0.111935763888894
1671.9972.024019097222272.001250.0227690972222157-0.0340190972222132
1772.172.093394097222272.07958333333330.0138107638888870.00660590277777828
1872.1272.049644097222272.1595833333333-0.1099392361111110.0703559027777771
1972.1272.061935763888972.2370833333333-0.1751475694444380.0580642361111074
2072.1272.134331597222272.3191666666667-0.184835069444440-0.0143315972222098
2172.2572.289019097222272.4079166666667-0.118897569444443-0.0390190972222229
2272.5972.591727430555672.50208333333330.0896440972222224-0.00172743055554747
2372.7272.726102430555672.5950.131102430555561-0.0061024305555577
2472.7672.793810763888972.68041666666670.113394097222219-0.0338107638888658
2572.7672.827039930555572.76291666666670.0641232638888839-0.0670399305555378
2672.9172.923706597222272.85458333333330.06912326388889-0.0137065972222103
277373.042352430555672.95750.084852430555553-0.0423524305555674
2873.1673.077352430555573.05458333333330.02276909722221570.0826475694444468
2973.1673.151727430555673.13791666666670.0138107638888870.00827256944444343
3073.1173.103810763888973.21375-0.1099392361111110.00618923611112621
3173.1173.112769097222273.2879166666667-0.175147569444438-0.0027690972222274
3273.3373.170998263888973.3558333333333-0.1848350694444400.159001736111122
3373.5173.297352430555673.41625-0.1188975694444430.212647569444442
3473.6673.559227430555673.46958333333330.08964409722222240.100772569444445
3573.6573.653185763888973.52208333333330.131102430555561-0.00318576388887948
3673.6573.691727430555673.57833333333330.113394097222219-0.0417274305555537
3773.6573.697456597222273.63333333333330.0641232638888839-0.0474565972222223
3873.6573.748706597222273.67958333333330.06912326388889-0.0987065972222183
3973.7173.798602430555673.713750.084852430555553-0.088602430555568
4073.7373.778602430555673.75583333333330.0227690972222157-0.0486024305555475
4173.8573.832977430555673.81916666666670.0138107638888870.0170225694444355
4273.7773.790060763888973.9-0.109939236111111-0.0200607638888926
4373.7773.813185763888973.9883333333333-0.175147569444438-0.0431857638888999
4473.7873.894748263888974.0795833333333-0.184835069444440-0.114748263888885
4573.8874.057352430555674.17625-0.118897569444443-0.177352430555558
4674.374.353810763888974.26416666666670.0896440972222224-0.0538107638888903
4774.5374.466935763888974.33583333333330.1311024305555610.0630642361111171
4874.7174.514227430555674.40083333333330.1133940972222190.195772569444443
4974.7174.528289930555674.46416666666670.06412326388888390.181710069444421
5074.7874.596206597222274.52708333333330.069123263888890.183793402777781
5174.974.675269097222274.59041666666670.0848524305555530.224730902777793
5274.6574.668185763888974.64541666666670.0227690972222157-0.0181857638888800
5374.6574.700060763888974.686250.013810763888887-0.0500607638888653
5474.5374.604644097222274.7145833333333-0.109939236111111-0.0746440972222047
5574.5374.560269097222274.7354166666667-0.175147569444438-0.0302690972222166
5674.5374.578081597222274.7629166666667-0.184835069444440-0.0480815972222217
5774.6574.664435763888974.7833333333333-0.118897569444443-0.0144357638888835
5874.8574.913394097222274.823750.0896440972222224-0.0633940972222149
5974.9675.031935763888974.90083333333330.131102430555561-0.071935763888888
6074.9675.098394097222274.9850.113394097222219-0.138394097222218
6174.9675.137039930555675.07291666666670.0641232638888839-0.177039930555566
6275.1975.223706597222275.15458333333330.06912326388889-0.0337065972222206
6374.9875.307352430555675.22250.084852430555553-0.32735243055555
6475.5475.290685763888975.26791666666670.02276909722221570.249314236111118
6575.6175.312560763888975.298750.0138107638888870.297439236111103
6675.5975.219644097222275.3295833333333-0.1099392361111110.370355902777789
6775.58NANA-0.175147569444438NA
6875.44NANA-0.184835069444440NA
6975.37NANA-0.118897569444443NA
7075.22NANA0.0896440972222224NA
7175.33NANA0.131102430555561NA
7275.33NANA0.113394097222219NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t1211042030k3e9yj6jyhlrdrl/1kcut1211041993.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t1211042030k3e9yj6jyhlrdrl/1kcut1211041993.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t1211042030k3e9yj6jyhlrdrl/2ucay1211041993.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t1211042030k3e9yj6jyhlrdrl/2ucay1211041993.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t1211042030k3e9yj6jyhlrdrl/3ffek1211041993.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t1211042030k3e9yj6jyhlrdrl/3ffek1211041993.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t1211042030k3e9yj6jyhlrdrl/466cn1211041993.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t1211042030k3e9yj6jyhlrdrl/466cn1211041993.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