Home » date » 2008 » May » 25 »

Opgave 9-classical decomposition eigen gegevens-Messelis Peter

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 25 May 2008 09:00: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/25/t1211727770alzvzu1n68ne26c.htm/, Retrieved Sun, 25 May 2008 17:02:50 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0,76 0,77 0,76 0,77 0,78 0,79 0,78 0,76 0,78 0,76 0,74 0,73 0,72 0,71 0,73 0,75 0,75 0,72 0,72 0,72 0,74 0,78 0,74 0,74 0,75 0,78 0,81 0,75 0,7 0,71 0,71 0,73 0,74 0,74 0,75 0,74 0,74 0,73 0,76 0,8 0,83 0,81 0,83 0,88 0,89 0,93 0,91 0,9 0,86 0,88 0,93 0,98 0,97 1,03 1,06 1,06 1,08 1,09 1,04 1
 
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 time13 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
10.76NANA-0.0114351851851852NA
20.77NANA-0.0104629629629629NA
30.76NANA0.0130092592592593NA
40.77NANA0.00912037037037049NA
50.78NANA-0.00226851851851855NA
60.79NANA-0.0203240740740741NA
70.780.745370370370370.763333333333333-0.01796296296296300.0346296296296296
80.760.7602314814814820.7591666666666670.00106481481481486-0.000231481481481666
90.780.7646759259259260.7554166666666670.009259259259259250.0153240740740742
100.760.7832870370370370.7533333333333330.0299537037037036-0.0232870370370369
110.740.7582870370370370.751250.0070370370370369-0.0182870370370370
120.730.7400925925925930.747083333333333-0.00699074074074066-0.0100925925925927
130.720.7302314814814810.741666666666667-0.0114351851851852-0.0102314814814815
140.710.7270370370370370.7375-0.0104629629629629-0.0170370370370371
150.730.7471759259259260.7341666666666670.0130092592592593-0.017175925925926
160.750.7424537037037040.7333333333333330.009120370370370490.00754629629629633
170.750.7318981481481480.734166666666667-0.002268518518518550.0181018518518518
180.720.7142592592592590.734583333333333-0.02032407407407410.00574074074074082
190.720.7182870370370370.73625-0.01796296296296300.00171296296296297
200.720.7414814814814810.7404166666666670.00106481481481486-0.0214814814814814
210.740.7559259259259260.7466666666666670.00925925925925925-0.015925925925926
220.780.7799537037037040.750.02995370370370364.62962962963775e-05
230.740.7549537037037040.7479166666666670.0070370370370369-0.0149537037037037
240.740.7384259259259260.745416666666667-0.006990740740740660.00157407407407406
250.750.7331481481481480.744583333333333-0.01143518518518520.0168518518518518
260.780.734120370370370.744583333333333-0.01046296296296290.0458796296296297
270.810.758009259259260.7450.01300925925925930.0519907407407407
280.750.7524537037037040.7433333333333330.00912037037037049-0.00245370370370368
290.70.7398148148148150.742083333333333-0.00226851851851855-0.0398148148148147
300.710.7221759259259260.7425-0.0203240740740741-0.0121759259259260
310.710.724120370370370.742083333333333-0.0179629629629630-0.0141203703703703
320.730.7406481481481480.7395833333333330.00106481481481486-0.0106481481481482
330.740.7446759259259260.7354166666666670.00925925925925925-0.00467592592592592
340.740.765370370370370.7354166666666670.0299537037037036-0.0253703703703703
350.750.7499537037037040.7429166666666670.00703703703703694.62962962963775e-05
360.740.7455092592592590.7525-0.00699074074074066-0.00550925925925916
370.740.7502314814814810.761666666666666-0.0114351851851852-0.0102314814814813
380.730.7624537037037040.772916666666667-0.0104629629629629-0.0324537037037037
390.760.7984259259259260.7854166666666670.0130092592592593-0.0384259259259259
400.80.8087037037037040.7995833333333330.00912037037037049-0.00870370370370366
410.830.8118981481481480.814166666666667-0.002268518518518550.0181018518518519
420.810.8071759259259260.8275-0.02032407407407410.00282407407407415
430.830.8212037037037040.839166666666667-0.01796296296296300.0087962962962963
440.880.8514814814814820.8504166666666670.001064814814814860.0285185185185185
450.890.873009259259260.863750.009259259259259250.0169907407407408
460.930.9082870370370370.8783333333333340.02995370370370360.0217129629629629
470.910.8987037037037040.8916666666666670.00703703703703690.0112962962962962
480.90.8996759259259260.906666666666667-0.006990740740740660.000324074074074199
490.860.9139814814814810.925416666666667-0.0114351851851852-0.0539814814814814
500.880.9320370370370370.9425-0.0104629629629629-0.052037037037037
510.930.9709259259259260.9579166666666670.0130092592592593-0.0409259259259259
520.980.981620370370370.97250.00912037037037049-0.00162037037037033
530.970.9823148148148150.984583333333333-0.00226851851851855-0.0123148148148149
541.030.9738425925925930.994166666666667-0.02032407407407410.0561574074074076
551.06NANA-0.0179629629629630NA
561.06NANA0.00106481481481486NA
571.08NANA0.00925925925925925NA
581.09NANA0.0299537037037036NA
591.04NANA0.0070370370370369NA
601NANA-0.00699074074074066NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211727770alzvzu1n68ne26c/1pd2x1211727638.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211727770alzvzu1n68ne26c/1pd2x1211727638.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211727770alzvzu1n68ne26c/2ghxs1211727638.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211727770alzvzu1n68ne26c/2ghxs1211727638.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211727770alzvzu1n68ne26c/3ogok1211727638.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211727770alzvzu1n68ne26c/3ogok1211727638.ps (open in new window)


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