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:22: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/04/t1259929403c3yt5n0b2qy2sp0.htm/, Retrieved Fri, 04 Dec 2009 13:23:29 +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/t1259929403c3yt5n0b2qy2sp0.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 «
20366 22782 19169 13807 29743 25591 29096 26482 22405 27044 17970 18730 19684 19785 18479 10698 31956 29506 34506 27165 26736 23691 18157 17328 18205 20995 17382 9367 31124 26551 30651 25859 25100 25778 20418 18688 20424 24776 19814 12738 31566 30111 30019 31934 25826 26835 20205 17789 20520 22518 15572 11509 25447 24090 27786 26195 20516 22759 19028 16971 20036
 
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
120366NANA0.853002771004918NA
222782NANA0.953397249096139NA
319169NANA0.770986372116776NA
413807NANA0.481554533693397NA
529743NANA1.30591786898977NA
625591NANA1.19862145741049NA
72909630486.9800724671227371.340853238002690.954374619291228
82648227488.441514702822583.70833333331.217180150796150.963386737870734
92240525012.709680342322430.08333333331.115141183767740.895744614891054
102704423562.016647162222271.79166666671.057930902004021.14777951331501
111797020621.482264211322234.45833333330.9274560214177160.871421354185922
121873017496.119006101822489.79166666670.7779582517002031.07052312535528
131968419515.281729307522878.33333333330.8530027710049181.00864544376211
141978522054.183790518823132.20833333330.9533972490961390.897108693204311
151847917995.689284874223341.1250.7709863721167761.02685702711771
161069811259.647912502323381.8750.4815545336933970.950118519080987
173195630362.536040767723249.95833333331.305917868989771.05248125377580
182950627807.218730951823199.33333333331.198621457410491.06109137650496
193450630945.942962058423079.29166666671.340853238002691.11504115555006
202716528078.013150244723068.08333333331.217180150796150.967482985873709
212673625729.420211993123072.79166666671.115141183767741.03912174389137
222369124302.39195674822971.6251.057930902004020.974842313553491
231815721221.584954069522881.50.9274560214177160.85559113700969
241732817678.096407145322723.70833333330.7779582517002030.980196034738003
251820519141.346639568222439.95833333330.8530027710049180.95108250964785
262099521189.174411390922224.91666666670.9533972490961390.990836150214208
271738217040.597791982422102.33333333330.7709863721167761.02003463799716
28936710652.528034148322121.1250.4815545336933970.879321788215213
293112429124.961206921722302.29166666671.305917868989771.06863661650486
302655126912.847353480622453.16666666671.198621457410490.98655484688305
313065130306.355967531122602.29166666671.340853238002691.01137200502885
322585927815.355816870822852.29166666671.217180150796150.929666338631403
332510025772.213754920223111.16666666671.115141183767740.97391711238652
342577824705.816274045623352.95833333331.057930902004021.04339802879052
352041821806.191399569823511.83333333330.9274560214177160.9363395755759
361868818420.949292737623678.58333333330.7779582517002031.01449711972052
372042420301.963534866823800.58333333330.8530027710049181.00601106710312
382477622907.633228001324027.3750.9533972490961391.08156088206069
391981418743.256945937924310.750.7709863721167761.05712684071666
401273811742.727368885724385.04166666670.4815545336933971.08475651352951
413156631890.78642695324420.20833333331.305917868989770.98981566579749
423011129215.049575241124373.8751.198621457410491.03066742784233
433001932636.926501834524340.41666666671.340853238002690.919786365248352
443193429517.024383523424250.33333333331.217180150796151.08188412168761
452582626740.528016158523979.51.115141183767740.965799926777592
462683525127.489899402723751.54166666671.057930902004021.06795386675841
472020521744.554218146423445.3750.9274560214177160.92919817059935
481778917846.005729804022939.54166666670.7779582517002030.996805686904563
492052019274.13073758822595.6250.8530027710049181.06463945271380
502251821225.919930366522263.45833333330.9533972490961391.06087274774767
511557216809.880120126421803.08333333330.7709863721167760.926359967395347
521150910311.045675443214120.4815545336933971.11618165240118
532544727676.480637233921193.1251.305917868989770.919444937148746
542409025302.8989659355211101.198621457410490.952064821996549
552778628232.670566075121055.751.340853238002690.98417894739962
5626195NANA1.21718015079615NA
5720516NANA1.11514118376774NA
5822759NANA1.05793090200402NA
5919028NANA0.927456021417716NA
6016971NANA0.777958251700203NA
6120036NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929403c3yt5n0b2qy2sp0/1fewn1259929365.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929403c3yt5n0b2qy2sp0/1fewn1259929365.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929403c3yt5n0b2qy2sp0/2z57t1259929365.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929403c3yt5n0b2qy2sp0/2z57t1259929365.ps (open in new window)


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


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