Home » date » 2010 » Aug » 20 »

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 22:57:48 +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/20/t1282258698fg7bm9dw7ofwmg4.htm/, Retrieved Fri, 20 Aug 2010 00:58:23 +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/20/t1282258698fg7bm9dw7ofwmg4.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:
Mertens Jeroen
 
Dataseries X:
» Textbox « » Textfile « » CSV «
76 75 74 72 70 69 70 72 73 73 74 76 74 67 66 58 55 58 64 68 66 76 75 88 85 83 77 66 65 65 63 62 57 68 69 79 74 76 82 75 75 76 78 77 67 74 68 87 76 88 95 96 96 105 108 113 101 107 102 116 105 121 134 140 131 141 131 128 123 129 125 144 135 141 156 159 146 154 145 133 126 127 122 148
 
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
176NANA1.00269559664826NA
275NANA1.02875183023750NA
374NANA1.06663268214420NA
472NANA1.01144741289536NA
570NANA0.967346733496809NA
669NANA1.00684596782950NA
77071.490488926539972.750.9826871330108570.979151227681889
87271.481687488373172.33333333333330.9882260943093061.00725098315161
97365.722298141495271.66666666666670.9170553229045841.11073413535900
107369.892993435980870.750.9878868330173971.04445376297790
117466.441115427783269.54166666666670.9554144818854381.11376817688187
127674.27797019970668.45833333333331.085009911620781.02318358721521
137467.932626672919467.751.002695596648261.08931456980596
146769.269289902658467.33333333333331.028751830237500.967239596279284
156671.331060618393566.8751.066632682144200.925263124196154
165867.471971168561666.70833333333331.011447412895360.859616207967331
175564.691312802599166.8750.9673467334968090.850191434015701
185867.878198997839167.41666666666671.006845967829500.854471698664934
196467.191232719617468.3750.9826871330108570.952505221433664
206868.681713554496869.50.9882260943093060.99007430771284
216664.767032180136370.6250.9170553229045841.01903696646829
227670.551584657992471.41666666666670.9878868330173971.07722598108064
237568.949078442732472.16666666666670.9554144818854381.08775928110908
248879.070097309364572.8751.085009911620781.11293653346216
258573.322115504903873.1251.002695596648261.15926824280343
268374.927424968964772.83333333333331.028751830237501.10773858883285
277777.019768256495972.20833333333331.066632682144200.999743335289843
286672.318490022018671.51.011447412895360.912629674373804
296568.60100585048270.91666666666670.9673467334968090.947507973012371
306570.772881155348970.29166666666671.006845967829500.91843088678731
316368.255810447045869.45833333333330.9826871330108570.922998343838825
326267.899367896501968.70833333333330.9882260943093060.913116011543816
335762.932921534327168.6250.9170553229045840.905726265527162
346868.37000123507969.20833333333330.9878868330173970.994588251742064
356966.8790137319806700.9554144818854381.03171377910146
367976.900077486122970.8751.085009911620781.02730715732056
377472.152303975480871.95833333333331.002695596648261.02560827475651
387675.313206905303773.20833333333331.028751830237501.00911915881579
398279.19747664920774.251.066632682144201.03538652327531
407575.774268682744474.91666666666671.011447412895360.98978190491041
417572.671923353947775.1250.9673467334968091.03203543457510
427675.932966740475175.41666666666671.006845967829501.00088279521270
437874.5204409199975.83333333333330.9826871330108571.04669267971382
447775.516944040136176.41666666666670.9882260943093061.01963871788927
456771.033576886650977.45833333333330.9170553229045840.943215911918847
467477.919573954247278.8750.9878868330173970.949697184477053
476877.030292602013480.6250.9554144818854380.882769592364532
488789.739361440302282.70833333333331.085009911620780.969474248575699
497685.396241647876585.16666666666671.002695596648260.889968908858764
508890.444431741713687.91666666666671.028751830237500.972973109624987
519596.885801961431790.83333333333331.066632682144200.980535827507705
529694.696764032328593.6251.011447412895361.01376220170762
539693.268347554650696.41666666666670.9673467334968091.02928809737675
5410599.719702730447199.04166666666671.006845967829501.05295139400712
5510899.7017987033932101.4583333333330.9826871330108571.08323020652108
56113102.816689895431104.0416666666670.9882260943093061.09904335682199
5710198.1631301892449107.0416666666670.9170553229045841.02889954512744
58107109.161495048422110.50.9878868330173970.98019910731835
59102108.718206251214113.7916666666670.9554144818854380.938205324730155
60116126.674907181726116.751.085009911620780.915729899320848
61105119.529670917111119.2083333333331.002695596648260.878442977332493
62121124.264648160772120.7916666666671.028751830237500.973728262952568
63134130.484731448974122.3333333333331.066632682144201.02694007576205
64140125.588053767841124.1666666666671.011447412895361.11475570963780
65131121.925994534494126.0416666666670.9673467334968091.07442223867150
66141129.044091543481128.1666666666671.006845967829501.09264979367529
67131128.322561452334130.5833333333330.9826871330108571.02086490884660
68128131.104661845035132.6666666666670.9882260943093060.976319210916357
69123123.267519653758134.4166666666670.9170553229045840.997829763635147
70129134.476095144493136.1250.9878868330173970.959278300439872
71125131.409300195993137.5416666666670.9554144818854380.951226433848794
72144150.499916491066138.7083333333331.085009911620780.956811162141397
73135140.210267597981139.8333333333331.002695596648260.962839614478731
74141144.668226127149140.6251.028751830237500.974643871530403
75156150.350765153910140.9583333333331.066632682144201.03757370200482
76159142.6140852182461411.011447412895361.11489688943892
77146136.194358853572140.7916666666670.9673467334968091.07199741038446
78154141.797473802655140.8333333333331.006845967829501.08605601968853
79145NANA0.982687133010857NA
80133NANA0.988226094309306NA
81126NANA0.917055322904584NA
82127NANA0.987886833017397NA
83122NANA0.955414481885438NA
84148NANA1.08500991162078NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282258698fg7bm9dw7ofwmg4/1r7fq1282258666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282258698fg7bm9dw7ofwmg4/1r7fq1282258666.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/20/t1282258698fg7bm9dw7ofwmg4/2khws1282258666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282258698fg7bm9dw7ofwmg4/2khws1282258666.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/20/t1282258698fg7bm9dw7ofwmg4/3khws1282258666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t1282258698fg7bm9dw7ofwmg4/3khws1282258666.ps (open in new window)


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