Home » date » 2010 » Aug » 11 »

tijdreeks 2 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: Wed, 11 Aug 2010 21:35:45 +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/11/t1281562596wbthwpcatf93ysw.htm/, Retrieved Wed, 11 Aug 2010 23:36:37 +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/11/t1281562596wbthwpcatf93ysw.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:
Marianne Nykjaer
 
Dataseries X:
» Textbox « » Textfile « » CSV «
190 189 188 186 184 183 184 186 187 187 188 190 190 190 197 187 185 182 182 191 183 192 178 181 179 175 183 179 178 175 170 179 169 178 161 168 167 165 181 181 184 181 177 183 162 166 151 162 159 152 164 158 160 161 151 149 131 138 130 147 151 140 149 143 145 139 136 133 118 130 121 142 148 131 137 128 130 119 107 113 93 106 98 118
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1190NANA1.02072479965765NA
2189NANA0.98036155180561NA
3188NANA1.04831871464382NA
4186NANA1.01876627948945NA
5184NANA1.03450009649748NA
6183NANA1.01266812413458NA
7184185.341488881319186.8333333333330.9920151055199960.99276206914374
8186189.61652889615186.8751.014670388741940.98092714323375
9187176.877092793759187.2916666666670.9443938213682341.05723130704124
10187186.288666600861187.7083333333330.9924368475961531.00381844699475
11188175.365379334507187.7916666666670.9338293996068731.0720474058987
12190189.165338471604187.7916666666671.00731487093821.00441233861943
13190191.556020735753187.6666666666671.020724799657650.99187694163944
14190184.103729749495187.7916666666670.980361551805611.03202689189691
15197196.909198567265187.8333333333331.048318714643821.00046113352447
16187191.400714759081187.8751.018766279489450.977007845740702
17185194.141184776028187.6666666666671.034500096497480.952914757440192
18182189.24235569765186.8751.012668124134580.961729731851253
19182184.556143589449186.0416666666670.9920151055199960.986149777841395
20191187.671743984394184.9583333333331.014670388741941.0177344545585
21183173.532364676413183.750.9443938213682341.05455832600012
22192181.45053696883182.8333333333330.9924368475961531.05813960767161
23178170.151498520036182.2083333333330.9338293996068731.04612654927068
24181182.953563434151181.6251.00731487093820.989322080436796
25179184.581067938092180.8333333333331.020724799657650.969763594931825
26175176.301685733042179.8333333333330.980361551805610.992616714198563
27183187.386970242583178.751.048318714643820.976588712454744
28179180.915911799335177.5833333333331.018766279489450.989409932049204
29178182.373746178369176.2916666666671.034500096497480.976017676502126
30175177.259116228724175.0416666666671.012668124134580.98725528888563
31170172.6106283604791740.9920151055199960.984875622171844
32179175.622533118084173.0833333333331.014670388741941.0192313982833
33169162.986633671134172.5833333333330.9443938213682341.0368948434201
34178171.278059280969172.5833333333330.9924368475961531.03924577816475
35161161.474667015355172.9166666666670.9338293996068730.997060424250264
36168174.685187201867173.4166666666671.00731487093820.96173008536699
37167177.563584940446173.9583333333331.020724799657650.94050815687243
38165170.991393994095174.4166666666670.980361551805610.964960844787885
39181182.71321597313174.2916666666671.048318714643820.99062346987871
40181176.75594949142173.51.018766279489451.02401079296505
41184178.537474987191172.5833333333331.034500096497481.0305959575893
42181174.094528340803171.9166666666671.012668124134581.03966507003413
43177169.965254745759171.3333333333330.9920151055199961.04138931374394
44183172.959023347636170.4583333333331.014670388741941.05805407811642
45162159.799304524017169.2083333333330.9443938213682341.01377162111274
46166166.274523507672167.5416666666670.9924368475961530.99834897432342
47151154.626584751571165.5833333333330.9338293996068730.97654617569548
48162164.947810116131163.751.00731487093820.982128831452472
49159165.187296744597161.8333333333331.020724799657650.962543749631284
50152156.204273921027159.3333333333330.980361551805610.97308477024673
51164164.192918681089156.6251.048318714643820.998825048713193
52158157.059801421291154.1666666666671.018766279489451.00598624581339
53160157.37332717968152.1251.034500096497481.01669071161799
54161152.533136197771150.6251.012668124134581.05550835715625
55151148.471594126159149.6666666666670.9920151055199961.01702955968596
56149151.016776191092148.8333333333331.014670388741940.986645349993831
57131139.4948373646147.7083333333330.9443938213682340.939102854807476
58138145.35064663752146.4583333333330.9924368475961530.949428180695672
59130135.599810734581145.2083333333330.9338293996068730.958703403019181
60147144.717569791455143.6666666666671.00731487093821.01577161786115
61151145.070512151344142.1251.020724799657651.04087314341642
62140138.067585212623140.8333333333330.980361551805611.01399615111976
63149146.371500532144139.6251.048318714643821.01795772714155
64143141.353821279161138.751.018766279489451.01164580275186
65145142.80411748734138.0416666666671.034500096497481.01537688514377
66139139.199672563332137.4583333333331.012668124134580.998565567291536
67136136.030071344429137.1250.9920151055199960.999778936053387
68133138.629341861867136.6251.014670388741940.95939285445446
69118128.201461250738135.750.9443938213682340.920426326258594
70130133.606810607632134.6250.9924368475961530.973004290790053
71121124.549496172567133.3750.9338293996068730.971501320505956
72142132.881620057931131.9166666666671.00731487093821.06862032490342
73148132.566633355538129.8751.020724799657651.11641969214886
74131125.32288503915127.8333333333330.980361551805611.04529990639041
75137132.044478098678125.9583333333331.048318714643821.03752918692759
76128126.242121466735123.9166666666671.018766279489451.01392465932006
77130126.165907602006121.9583333333331.034500096497481.03038929034688
78119121.5201748961491201.012668124134580.979261263421459
79107NANA0.992015105519996NA
80113NANA1.01467038874194NA
8193NANA0.944393821368234NA
82106NANA0.992436847596153NA
8398NANA0.933829399606873NA
84118NANA1.0073148709382NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/11/t1281562596wbthwpcatf93ysw/1x6yo1281562541.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/11/t1281562596wbthwpcatf93ysw/1x6yo1281562541.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/11/t1281562596wbthwpcatf93ysw/2x6yo1281562541.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/11/t1281562596wbthwpcatf93ysw/2x6yo1281562541.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/11/t1281562596wbthwpcatf93ysw/3qxf91281562541.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/11/t1281562596wbthwpcatf93ysw/3qxf91281562541.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/11/t1281562596wbthwpcatf93ysw/4qxf91281562541.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/11/t1281562596wbthwpcatf93ysw/4qxf91281562541.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