Home » date » 2009 » Dec » 04 »

*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: Fri, 04 Dec 2009 05:03:52 -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/04/t1259928281faf7clkx745wcr7.htm/, Retrieved Fri, 04 Dec 2009 13:04:46 +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/04/t1259928281faf7clkx745wcr7.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 «
17 14 15 16 16 15 13 12 13 13 12 10 14 14 15 16 16 15 15 13 15 15 15 13 16 16 14 16 15 14 15 15 14 13 12 13 12 9 10 8 11 8 8 8 4 6 8 10 5 6 5 9 8 6 9 11 11 8 11 11 13
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
117NANA0.9875681601825NA
214NANA0.95887584418625NA
315NANA0.934432428137803NA
416NANA1.07109105799535NA
516NANA1.11135449870623NA
615NANA0.929353341197457NA
71314.235330375975913.70833333333331.038443553262680.913220814456077
81213.592551040908613.58333333333331.000678604238670.882836486240468
91311.997544606364313.58333333333330.883254817646451.08355504618036
101313.123703170729213.58333333333330.96616219661810.99057406517658
111213.986661709693113.58333333333331.029692886603170.85796026593563
121014.793507969144113.58333333333331.089092611225330.675972191373252
131413.496764855827513.66666666666670.98756816018251.03728561248181
141413.224496017735413.79166666666670.958875844186251.05864147724228
151513.004184624917813.91666666666670.9344324281378031.15347485695166
161615.084532400101214.08333333333331.071091057995351.06068915996977
171615.883108044009914.29166666666671.111354498706231.00735951399853
181513.514346503246414.54166666666670.9293533411974571.10993158244069
191515.317042410624514.751.038443553262680.979301329713329
201314.926789179893514.91666666666671.000678604238670.87091737166832
211513.212019980628214.95833333333330.883254817646451.13532979983329
221514.411919432886714.91666666666670.96616219661811.04080515228051
231515.316681688222214.8751.029692886603170.97932439318983
241316.109494874374714.79166666666671.089092611225330.806977506208406
251614.566630362691914.750.98756816018251.09840090684111
261614.223325022096014.83333333333330.958875844186251.12491277357045
271413.899682368549814.8750.9344324281378031.00721726071073
281615.798593105431414.751.071091057995351.01274840697678
291516.160946668686514.54166666666671.111354498706230.928163449054879
301413.398177335596714.41666666666670.9293533411974571.04491824890274
311514.797820633993114.251.038443553262681.01366277987871
321513.801025750125013.79166666666671.000678604238671.08687573457097
331411.776730901952713.33333333333330.883254817646451.18878491124211
341312.399081523265612.83333333333330.96616219661811.04846475729729
351212.699545601439212.33333333333331.029692886603170.94491569829397
361312.978353617101911.91666666666671.089092611225331.00166788358036
371211.233587822075911.3750.98756816018251.06822505775207
38910.347868485176610.79166666666670.958875844186250.869744335550124
39109.4221936503895110.08333333333330.9344324281378031.06132397306296
40810.04147866870649.3751.071091057995350.796695413488402
41119.909577613463928.916666666666671.111354498706231.11003722147093
4288.015672567828078.6250.9293533411974570.998044759476457
4388.523890833031148.208333333333331.038443553262680.938538533248104
4487.796954124692997.791666666666671.000678604238671.02604169167341
4546.587608848279787.458333333333330.883254817646450.607200593132442
4667.044932683673657.291666666666670.96616219661810.851675987466106
4787.422369557597887.208333333333331.029692886603171.07782291597308
48107.6236482785773371.089092611225331.31170794278381
4956.871828447936576.958333333333330.98756816018250.727608385145495
5066.831990389827037.1250.958875844186250.87822137585763
5157.047177895539267.541666666666670.9344324281378030.709503871495129
5298.47947087579657.916666666666671.071091057995351.06138698178553
5389.029755301988158.1251.111354498706230.885959777696144
5467.705888120762258.291666666666670.9293533411974570.778625371400603
5598.999844128276538.666666666666671.038443553262681.00001731938034
5611NANA1.00067860423867NA
5711NANA0.88325481764645NA
588NANA0.9661621966181NA
5911NANA1.02969288660317NA
6011NANA1.08909261122533NA
6113NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259928281faf7clkx745wcr7/1uroo1259928230.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259928281faf7clkx745wcr7/1uroo1259928230.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259928281faf7clkx745wcr7/20ebs1259928230.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259928281faf7clkx745wcr7/20ebs1259928230.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259928281faf7clkx745wcr7/3kbcy1259928230.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259928281faf7clkx745wcr7/3kbcy1259928230.ps (open in new window)


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