Home » date » 2009 » Dec » 03 »

*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: Thu, 03 Dec 2009 13:05:50 -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/03/t1259870825esjrrmonragnxbj.htm/, Retrieved Thu, 03 Dec 2009 21:07:10 +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/03/t1259870825esjrrmonragnxbj.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 «
1915 1843 1761 2858 3968 5061 4661 4269 3857 3568 3274 2987 1683 1381 1071 2772 4485 6181 5479 4782 4067 3489 2903 2330 1736 1483 1242 2334 3423 4523 3986 3462 2908 2575 2237 1904 1610 1251 941 2450 3946 5409 4741 4069 3539 3189 2960 2704 1697 1598 1456 2316 3083 4158 3469 2892 2578 2233 1947 2049
 
Output produced by software:


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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11915NANA0.55395025528304NA
21843NANA0.476287260569315NA
31761NANA0.399508434052524NA
42858NANA0.834526828269122NA
53968NANA1.26664061052328NA
65061NANA1.73103390556832NA
746615017.811835604723325.51.508889440867460.928890949422833
842694374.044482702783296.583333333331.326841775384450.975984587464033
938573738.342709785163248.583333333331.150760909048101.03174061326808
1035683312.392160620013216.251.029892626698801.07716714295452
1132742966.964914397033234.208333333330.9173697574822361.10348456906690
1229872656.127768277073302.416666666670.8042981962533721.12456939597358
1316831874.106038665073383.166666666670.553950255283040.89802816130874
1413811637.773281375163438.6250.4762872605693150.843218054479702
1510711385.794880619693468.750.3995084340525240.772841648484857
1627722899.320061162823474.208333333330.8345268282691220.956086234538813
1744854376.823852971083455.458333333331.266640610523281.02471567297722
1861815907.369581990083412.6251.731033905568321.04632017926289
1954795111.300110545143387.458333333331.508889440867461.07193862256224
2047824503.190415506873393.916666666671.326841775384451.06191378972851
2140673918.676533907253405.291666666671.150760909048101.03785039791097
2234893495.627223786843394.166666666671.029892626698800.998104138867628
2329033056.370242011653331.666666666670.9173697574822360.949819481977843
2423302588.49969494213218.333333333330.8042981962533720.900135319526131
2517361710.067519319383087.041666666670.553950255283041.01516459460673
2614831414.493782680772969.833333333330.4762872605693151.04843161430473
2712421145.207572396312866.541666666670.3995084340525241.08451954906406
2823342320.123670392872780.166666666670.8345268282691221.00598085773798
2934233438.084830497012714.333333333331.266640610523280.995612432141521
3045234619.840988310912668.833333333331.731033905568320.979038025647217
3139863992.269978961812645.833333333331.508889440867460.998429470202454
3234623490.810140888532630.916666666671.326841775384450.991746861122273
3329083001.999573108012608.708333333331.150760909048100.968687679388743
3425752678.7507220435726011.029892626698800.961268989611537
3522372410.503709004262627.6250.9173697574822360.928021803759874
3619042160.613054535312686.333333333330.8042981962533720.881231369033592
3716101525.971384480322754.708333333330.553950255283041.05506565612847
3812511339.061787788102811.458333333330.4762872605693150.934236202846497
399411143.809292877132863.041666666670.3995084340525240.82268959157782
4024502432.576160502132914.916666666670.8345268282691221.00716271078406
4139463762.714263635712970.6251.266640610523281.04871104301903
4254095252.101122319743034.083333333331.731033905568321.02987354470642
4347414633.862343297333071.041666666671.508889440867461.02312059546992
4440694098.780099384483089.1251.326841775384450.992734399342636
4535393596.175789146523125.041666666671.150760909048100.984100947089662
4631893234.806916075373140.916666666671.029892626698800.985839366223768
4729602843.272892096513099.3750.9173697574822361.04105378285284
4827042421.976455892813011.291666666670.8042981962533721.11644355312415
4916971609.871766895062906.166666666670.553950255283041.05412122561351
5015981335.569014543932804.1250.4762872605693151.19649376602652
5114561084.682044637362715.041666666670.3995084340525241.34232884853071
5223162199.117280293852635.166666666670.8345268282691221.05314983459660
5330833233.891808742242553.1251.266640610523280.953340489519677
5441584299.239083717112483.6251.731033905568320.967147888040924
553469NANA1.50888944086746NA
562892NANA1.32684177538445NA
572578NANA1.15076090904810NA
582233NANA1.02989262669880NA
591947NANA0.917369757482236NA
602049NANA0.804298196253372NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259870825esjrrmonragnxbj/11b2j1259870747.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259870825esjrrmonragnxbj/11b2j1259870747.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t1259870825esjrrmonragnxbj/2741g1259870747.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259870825esjrrmonragnxbj/2741g1259870747.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t1259870825esjrrmonragnxbj/3nq111259870747.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259870825esjrrmonragnxbj/3nq111259870747.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t1259870825esjrrmonragnxbj/4qbmt1259870747.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259870825esjrrmonragnxbj/4qbmt1259870747.ps (open in new window)


 
Parameters (Session):
par1 = FALSE ; par2 = 0.5 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = 1 ; par7 = 1 ; par8 = 2 ; par9 = 1 ;
 
Parameters (R input):
par1 = multiplicative ; par2 = 12 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = 1 ; par7 = 1 ; par8 = 2 ; par9 = 1 ;
 
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