Home » date » 2009 » Dec » 27 »

1

*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: Sun, 27 Dec 2009 03:48:31 -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/27/t126191093145tx6jjq3j4605b.htm/, Retrieved Sun, 27 Dec 2009 11:48:56 +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/27/t126191093145tx6jjq3j4605b.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 «
2756.76 2849.27 2921.44 2981.85 3080.58 3106.22 3119.31 3061.26 3097.31 3161.69 3257.16 3277.01 3295.32 3363.99 3494.17 3667.03 3813.06 3917.96 3895.51 3801.06 3570.12 3701.61 3862.27 3970.10 4138.52 4199.75 4290.89 4443.91 4502.64 4356.98 4591.27 4696.96 4621.40 4562.84 4202.52 4296.49 4435.23 4105.18 4116.68 3844.49 3720.98 3674.40 3857.62 3801.06 3504.37 3032.60 3047.03 2962.34 2197.82 2014.45 1862.83 1905.41 1810.99 1670.07 1864.44 2052.02 2029.60 2070.83 2293.41 2443.27
 
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
12756.76NANA-46.1367881944446NA
22849.27NANA-118.432309027778NA
32921.44NANA-76.4974131944443NA
42981.85NANA-29.9448090277778NA
53080.58NANA-11.8351215277776NA
63106.22NANA-50.1762673611113NA
73119.313244.194149305563078.26166666667165.932482638889-124.884149305556
83061.263276.756649305563122.14833333333154.608315972222-215.496649305556
93097.313200.005295138893167.4587532.5465451388886-102.695295138888
103161.693191.043315972223219.87166666667-28.8283506944444-29.3533159722224
113257.163252.110295138893278.94083333333-26.83053819444455.04970486111142
123277.013378.877586805563343.2833333333335.5942534722221-101.867586805555
133295.323363.310711805563409.4475-46.1367881944446-67.9907118055548
143363.993354.181857638893472.61416666667-118.4323090277789.8081423611111
153494.173446.642170138893523.13958333333-76.497413194444347.5278298611106
163667.033535.391857638893565.33666666667-29.9448090277778131.638142361111
173813.063601.211128472223613.04625-11.8351215277776211.848871527778
183917.963616.961649305563667.13791666667-50.1762673611113300.998350694445
193895.513897.082482638893731.15165.932482638889-1.57248263888914
203801.063955.714982638893801.10666666667154.608315972222-154.654982638889
213570.123901.673211805563869.1266666666732.5465451388886-331.553211805556
223701.613905.864982638893934.69333333333-28.8283506944444-204.254982638889
233862.273968.965295138893995.79583333333-26.8305381944445-106.695295138889
243970.14078.415086805564042.8208333333335.5942534722221-108.315086805556
254138.524043.966545138894090.10333333333-46.136788194444694.5534548611113
264199.754037.990190972224156.4225-118.432309027778161.759809027778
274290.894161.057586805554237.555-76.4974131944443129.832413194446
284443.914287.298107638894317.24291666667-29.9448090277778156.611892361111
294502.644355.469461805554367.30458333333-11.8351215277776147.170538194446
304356.984344.904982638894395.08125-50.176267361111312.0750173611104
314591.274586.976232638894421.04375165.9324826388894.29376736111135
324696.964584.074565972224429.46625154.608315972222112.885434027779
334621.44450.813628472224418.2670833333332.5465451388886170.586371527776
344562.844357.204149305554386.0325-28.8283506944444205.635850694445
354202.524301.656961805564328.4875-26.8305381944445-99.136961805555
364296.494303.071753472224267.477535.5942534722221-6.58175347222277
374435.234162.331128472224208.46791666667-46.1367881944446272.898871527776
384105.184022.137690972224140.57-118.43230902777883.0423090277773
394116.683980.200503472224056.69791666667-76.4974131944443136.479496527778
403844.493916.450190972223946.395-29.9448090277778-71.9601909722228
413720.983822.654461805563834.48958333333-11.8351215277776-101.674461805556
423674.43680.578315972223730.75458333333-50.1762673611113-6.17831597222221
433857.623747.872065972223581.93958333333165.932482638889109.747934027778
443801.063556.208732638893401.60041666667154.608315972222244.851267361111
453504.373253.122795138893220.5762532.5465451388886251.247204861112
463032.63017.042482638893045.87083333333-28.828350694444415.5575173611114
473047.032858.662378472222885.49291666667-26.8305381944445188.367621527778
482962.342757.990503472222722.3962535.5942534722221204.349496527778
492197.822509.696545138892555.83333333333-46.1367881944446-311.876545138889
502014.452281.475190972222399.9075-118.432309027778-267.025190972222
511862.832189.084670138892265.58208333333-76.4974131944443-326.254670138889
521905.412134.114774305562164.05958333333-29.9448090277778-228.704774305555
531810.992080.749878472222092.585-11.8351215277776-269.759878472222
541670.071989.379982638892039.55625-50.1762673611113-319.309982638889
551864.44NANA165.932482638889NA
562052.02NANA154.608315972222NA
572029.6NANA32.5465451388886NA
582070.83NANA-28.8283506944444NA
592293.41NANA-26.8305381944445NA
602443.27NANA35.5942534722221NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/27/t126191093145tx6jjq3j4605b/1o7x61261910908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/27/t126191093145tx6jjq3j4605b/1o7x61261910908.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/27/t126191093145tx6jjq3j4605b/2vovm1261910908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/27/t126191093145tx6jjq3j4605b/2vovm1261910908.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/27/t126191093145tx6jjq3j4605b/3okff1261910908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/27/t126191093145tx6jjq3j4605b/3okff1261910908.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/27/t126191093145tx6jjq3j4605b/4uhcc1261910908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/27/t126191093145tx6jjq3j4605b/4uhcc1261910908.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
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