Home » date » 2009 » Dec » 02 »

ws9

*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: Wed, 02 Dec 2009 14:43:47 -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/02/t12597902870uvirpgc0cw0lyz.htm/, Retrieved Wed, 02 Dec 2009 22:44:53 +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/02/t12597902870uvirpgc0cw0lyz.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 «
216234 213587 209465 204045 200237 203666 241476 260307 243324 244460 233575 237217 235243 230354 227184 221678 217142 219452 256446 265845 248624 241114 229245 231805 219277 219313 212610 214771 211142 211457 240048 240636 230580 208795 197922 194596 194581 185686 178106 172608 167302 168053 202300 202388 182516 173476 166444 171297 169701 164182 161914 159612 151001 158114 186530 187069 174330 169362 166827 178037 186412 189226 191563 188906 186005 195309 223532 226899 214126
 
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
1216234NANA0.989027628127167NA
2213587NANA0.971034667675954NA
3209465NANA0.954245136014163NA
4204045NANA0.947232772757375NA
5200237NANA0.925127924881793NA
6203666NANA0.945608265017215NA
7241476252144.743102093226424.7916666671.113591587061240.95768802089293
8260307257566.085282959227915.4583333331.130094848179461.01064159791857
9243324242371.204810767229352.3751.056763440146491.00393114021105
10244460232141.720978206230825.3751.005702778467081.05306361549267
11233575225026.544112493232264.4583333330.9688376160830741.03798865561048
12237217231928.897354762233626.5833333330.9927333355890031.02280053372198
13235243232330.584487066234908.0833333330.9890276281271671.01253565267511
14230354228933.641757508235762.5833333330.9710346676759541.00620423556620
15227184225406.219599306236214.1666666670.9542451360141631.0078870068619
16221678223826.920591155236295.5833333330.9472327727573750.99039918618601
17217142218307.755919925235975.750.9251279248817930.994660034339997
18219452222756.781388728235569.8333333330.9456082650172150.985164171577068
19256446261336.652859243234679.0833333331.113591587061240.981286004830417
20265845263937.936735278233553.7916666671.130094848179461.00722542309875
21248624245683.233527616232486.51.056763440146491.01196974832250
22241114232912.173115076231591.4583333331.005702778467081.03521424739304
23229245223853.483600586231053.6666666670.9688376160830741.02408502343896
24231805228795.789583754230470.5416666670.9927333355890031.01315238546007
25219277226936.510222229229454.1666666670.9890276281271670.9662482241631
26219313221124.54050028227720.5416666670.9710346676759540.991807600838055
27212610215581.470719760225918.3333333330.9542451360141630.986216483680908
28214771212009.520794459223819.8750.9472327727573751.01302526035243
29211142204608.808531247221168.1250.9251279248817931.03193015743384
30211457206438.222557604218312.6250.9456082650172151.02431128005375
31240048240238.732249378215733.251.113591587061240.999206072028467
32240636241052.762663078213303.1251.130094848179460.998271072861916
33230580222411.01292147210464.3333333331.056763440146491.03672923822983
34208795208451.889180024207269.8751.005702778467081.00164599525255
35197922197339.062351837203686.4166666670.9688376160830741.00295399015895
36194596198597.544701249200051.250.9927333355890030.979850986036766
37194581194511.981204801196669.9166666670.9890276281271671.00035483055990
38185686187898.525897078193503.4166666670.9710346676759540.988224889543358
39178106181217.910565470189907.0833333330.9542451360141630.982827798004296
40172608176595.250183315186432.7916666670.9472327727573750.97742153212402
41167302169899.357934573183649.5833333330.9251279248817930.984712373453626
42168053171502.331203099181367.2083333330.9456082650172150.97988755500347
43202300199733.508657407179359.751.113591587061241.01284957821972
44202388200509.432802507177427.0833333331.130094848179461.00936897167997
45182516185838.631848500175856.4166666671.056763440146490.982120876507479
46173476175636.184657185174640.251.005702778467080.987700799459965
47166444168015.375330553173419.5416666670.9688376160830740.99064743135882
48171297171073.971608155172326.2083333330.9927333355890031.00130369564550
49169701169375.9264549181712550.9890276281271671.00191924290474
50164182165036.687980205169959.6250.9710346676759540.994821224355234
51161914161248.581644957168980.250.9542451360141631.00412666175575
52159612159578.173952696168467.750.9472327727573751.00021197164039
53151001155710.401121682168312.2916666670.9251279248817930.969755385075387
54158114159438.142756976168609.0833333330.9456082650172150.991694943668563
55186530188849.774881614169586.2083333331.113591587061240.987716295224242
56187069193614.6299591931713261.130094848179460.96619248266222
57174330183459.284931201173604.8751.056763440146490.95023808724304
58169362177064.869262563176060.8333333331.005702778467080.956496908197298
59166827173169.954762221178739.9166666670.9688376160830740.96337150534612
60178037180427.505096075181748.2083333330.9927333355890030.986750883160513
61186412NA184839.75NANA
62189226NA188041.083333333NANA
63191563NA191358.833333333NANA
64188906NANANANA
65186005NANANANA
66195309NANANANA
67223532NANANANA
68226899NANANANA
69214126NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/02/t12597902870uvirpgc0cw0lyz/1xqqg1259790225.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t12597902870uvirpgc0cw0lyz/1xqqg1259790225.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t12597902870uvirpgc0cw0lyz/2bt9o1259790225.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t12597902870uvirpgc0cw0lyz/2bt9o1259790225.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t12597902870uvirpgc0cw0lyz/336pf1259790225.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t12597902870uvirpgc0cw0lyz/336pf1259790225.ps (open in new window)


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