Home » date » 2010 » Aug » 19 »

tijdreeks B-Stap 24

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 19 Aug 2010 21:20:04 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Aug/19/t128225283104jg4qrb3f77lmh.htm/, Retrieved Thu, 19 Aug 2010 23:20:31 +0200
 
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/2010/Aug/19/t128225283104jg4qrb3f77lmh.htm/},
    year = {2010},
}
@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 = {2010},
    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:
gilian keirsebelik
 
Dataseries X:
» Textbox « » Textfile « » CSV «
51 50 49 47 45 44 45 47 48 48 49 51 45 42 40 37 28 33 32 38 38 34 38 48 41 41 43 37 22 30 32 41 44 37 53 67 62 63 68 62 50 64 71 76 73 68 78 89 74 74 73 65 55 69 80 81 80 86 90 100 90 89 83 63 48 62 69 73 76 77 75 77 78 73 74 55 36 41 52 53 49 47 44 55
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
151NANA6.33043981481482NA
250NANA4.9068287037037NA
349NANA4.69155092592592NA
447NANA-5.64178240740741NA
545NANA-18.9334490740741NA
644NANA-8.92650462962963NA
74544.594328703703747.5833333333333-2.989004629629630.405671296296291
84748.1637731481481471.16377314814815-1.16377314814815
94847.622106481481546.29166666666671.330439814814810.377893518518519
104845.101273148148145.5-0.3987268518518512.89872685185185
114949.483217592592644.3755.10821759259259-0.483217592592588
125156.566550925925943.208333333333313.3582175925926-5.56655092592592
134548.538773148148142.20833333333336.33043981481482-3.53877314814815
144246.198495370370441.29166666666674.9068287037037-4.19849537037037
154045.191550925925940.54.69155092592592-5.19155092592592
163733.858217592592639.5-5.641782407407413.14178240740740
172819.524884259259238.4583333333333-18.93344907407418.47511574074075
183328.948495370370437.875-8.926504629629634.05150462962963
193234.594328703703737.5833333333333-2.98900462962963-2.5943287037037
203838.538773148148237.3751.16377314814815-0.538773148148152
213838.788773148148237.45833333333331.33043981481481-0.788773148148152
223437.184606481481537.5833333333333-0.398726851851851-3.18460648148148
233842.441550925925937.33333333333335.10821759259259-4.44155092592592
244850.316550925925936.958333333333313.3582175925926-2.31655092592592
254143.163773148148136.83333333333336.33043981481482-2.16377314814815
264141.86516203703736.95833333333334.9068287037037-0.865162037037038
274342.024884259259337.33333333333334.691550925925920.97511574074074
283732.066550925925937.7083333333333-5.641782407407414.93344907407408
292219.524884259259338.4583333333333-18.93344907407412.47511574074075
303030.948495370370439.875-8.92650462962963-0.94849537037036
313238.552662037037041.5416666666667-2.98900462962963-6.55266203703705
324144.497106481481543.33333333333331.16377314814815-3.49710648148149
334446.622106481481545.29166666666671.33043981481481-2.62210648148148
343746.976273148148147.375-0.398726851851851-9.97627314814814
355354.691550925925949.58333333333335.10821759259259-1.69155092592592
366765.524884259259352.166666666666713.35821759259261.47511574074075
376261.538773148148155.20833333333336.330439814814820.461226851851855
386363.198495370370458.29166666666674.9068287037037-0.198495370370360
396865.649884259259360.95833333333334.691550925925922.35011574074075
406257.816550925925963.4583333333333-5.641782407407414.18344907407408
415046.858217592592665.7916666666667-18.93344907407413.14178240740742
426458.823495370370467.75-8.926504629629635.17650462962963
437166.17766203703769.1666666666666-2.989004629629634.82233796296299
447671.288773148148170.1251.163773148148154.71122685185186
457372.122106481481570.79166666666671.330439814814810.877893518518533
466870.726273148148271.125-0.398726851851851-2.72627314814815
477876.566550925925971.45833333333335.108217592592591.43344907407409
488985.233217592592671.87513.35821759259263.76678240740740
497478.788773148148172.45833333333336.33043981481482-4.78877314814814
507477.948495370370473.04166666666674.9068287037037-3.94849537037037
517378.233217592592673.54166666666674.69155092592592-5.2332175925926
526568.941550925925974.5833333333333-5.64178240740741-3.94155092592592
535556.899884259259375.8333333333333-18.9334490740741-1.89988425925927
546967.86516203703776.7916666666667-8.926504629629631.13483796296296
558074.92766203703777.9166666666667-2.989004629629635.07233796296298
568180.372106481481579.20833333333331.163773148148150.627893518518547
578081.580439814814880.251.33043981481481-1.58043981481480
588680.184606481481580.5833333333333-0.3987268518518515.81539351851853
599085.31655092592680.20833333333335.108217592592594.68344907407406
6010092.983217592592679.62513.35821759259267.0167824074074
619085.205439814814878.8756.330439814814824.79456018518519
628982.99016203703778.08333333333334.90682870370376.00983796296295
638382.274884259259377.58333333333334.691550925925920.725115740740748
646371.399884259259377.0416666666667-5.64178240740741-8.39988425925925
654857.108217592592676.0416666666667-18.9334490740741-9.10821759259258
666265.531828703703774.4583333333333-8.92650462962963-3.53182870370370
676970.010995370370473-2.98900462962963-1.01099537037037
687372.997106481481571.83333333333331.163773148148150.00289351851853326
697672.122106481481570.79166666666671.330439814814813.87789351851852
707769.684606481481570.0833333333333-0.3987268518518517.31539351851852
717574.358217592592669.255.108217592592590.641782407407405
727781.233217592592667.87513.3582175925926-4.23321759259258
737872.622106481481566.29166666666676.330439814814825.37789351851852
747369.656828703703764.754.90682870370373.34317129629630
757467.483217592592662.79166666666674.691550925925926.51678240740742
765554.774884259259360.4166666666667-5.641782407407410.225115740740740
773638.941550925925957.875-18.9334490740741-2.94155092592592
784146.74016203703755.6666666666667-8.92650462962963-5.74016203703704
7952NANA-2.98900462962963NA
8053NANA1.16377314814815NA
8149NANA1.33043981481481NA
8247NANA-0.398726851851851NA
8344NANA5.10821759259259NA
8455NANA13.3582175925926NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t128225283104jg4qrb3f77lmh/1sq7m1282252800.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t128225283104jg4qrb3f77lmh/1sq7m1282252800.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t128225283104jg4qrb3f77lmh/2sq7m1282252800.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t128225283104jg4qrb3f77lmh/2sq7m1282252800.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t128225283104jg4qrb3f77lmh/3lh671282252800.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t128225283104jg4qrb3f77lmh/3lh671282252800.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t128225283104jg4qrb3f77lmh/4lh671282252800.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t128225283104jg4qrb3f77lmh/4lh671282252800.ps (open in new window)


 
Parameters (Session):
 
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