Home » date » 2010 » Jun » 02 »

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 02 Jun 2010 12:03:42 +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/Jun/02/t1275480269u056xr091c2m0ty.htm/, Retrieved Wed, 02 Jun 2010 14:04:32 +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/Jun/02/t1275480269u056xr091c2m0ty.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:
KDGP2W52
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8027,7 8059,6 8059,5 7988,9 7950,2 8003,8 8037,5 8069 8157,6 8244,3 8329,4 8417 8432,5 8486,4 8531,1 8643,8 8727,9 8847,3 8904,3 9003,2 9025,3 9044,7 9120,7 9184,3 9247,2 9407,1 9488,9 9592,5 9666,2 9809,6 9932,7 10008,9 10103,4 10194,3 10328,8 10507,6 10601,2 10684 10819,9 11014,3 11043 11258,5 11267,9 11334,5 11297,2 11371,3 11340,1 11380,1 11477,9 11538,8 11596,4 11598,8 11645,8 11738,7 11935,5 12042,8 12127,6 12213,8 12303,5 12410,3 12534,1 12587,5 12683,2 12748,7 12915,9 12962,5 12965,9 13060,7 13099,9 13204 13321,1 13391,2 13366,9 13415,3 13324,6 13141,9 12925,4 12901,5 12973 13155
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server184.73.237.11 @ 184.73.237.11


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
18027.7NANA0.998620064834709NA
28059.6NANA1.00018982747866NA
38059.58028.390144018398024.23751.000517512600841.00387498059057
47988.98012.960855594068007.5751.000672595085790.996997257814224
57950.27986.813485538287997.850.9986200648347090.995415758036096
68003.88006.63209032238005.11251.000189827478660.999646281945973
78037.58045.211344698998041.051.000517512600840.999041498803624
880698102.483527631938097.03751.000672595085790.995867498216104
98157.68152.322278533828163.58750.9986200648347091.0006473887177
108244.38245.139857057438243.5751.000189827478660.99989813913748
118329.48325.743948763368321.43751.000517512600841.00043912607199
1284178391.70292442668386.06251.000672595085791.00301453421328
138432.58429.888725554638441.53750.9986200648347091.00030976380951
148486.48496.7126034148495.11.000189827478660.998786283131448
158531.18564.805101930428560.3751.000517512600840.996064697149638
168643.88648.225344176838642.41251.000672595085790.999488294534345
178727.98722.12240477778734.1750.9986200648347091.00066240703285
188847.38827.425369869828825.751.000189827478661.0022514639657
198904.38912.45992462148907.851.000517512600840.999084436318321
209003.28975.732976140978969.71.000672595085791.00306014271281
219025.39008.976018401469021.4250.9986200648347091.00181196859279
229044.79072.834446414569071.11251.000189827478660.996899045542964
239120.79126.207984719669121.48751.000517512600840.999396465133286
249184.39200.709192331149194.5251.000672595085790.998216529618737
259247.29273.036129045389285.850.9986200648347090.997213843590617
269407.19384.681132249569382.91.000189827478661.00238887900766
279488.99491.209279785359486.31.000517512600840.999756692775675
289592.59595.437005870169588.98751.000672595085790.999693916403352
299666.29681.396839057929694.7750.9986200648347090.998430305119133
309809.69804.160745894119802.31.000189827478661.00055479038409
319932.79914.1280323617399091.000517512600841.00187328301366
3210008.910018.471345442710011.73751.000672595085790.99904463015238
3310103.410095.38726968610109.33750.9986200648347091.00079370212355
3410194.310223.127762252110221.18751.000189827478660.997180142621466
3510328.810351.104055990110345.751.000517512600840.99784524859672
3610507.610476.229024064710469.18751.000672595085791.00299449122993
3710601.210577.171519965510591.78750.9986200648347091.00227173020587
381068410718.54678854810716.51251.000189827478660.996776914890658
3910819.910840.682287843610835.0751.000517512600840.99808293543785
4011014.310969.485562997310962.11251.000672595085791.00408537271372
411104311074.621622512111089.9250.9986200648347090.997144676938869
4211258.511188.07340068511185.951.000189827478661.00629479239122
4311267.911263.576027482111257.751.000517512600841.00038388985055
4411334.511311.227762626611303.6251.000672595085791.00205744573992
4511297.211311.119819366511326.750.9986200648347090.998769368586945
4611371.311343.627923603611341.4751.000189827478661.00243943794549
4711340.111375.646495362311369.76251.000517512600840.996875210971367
4811380.111420.964021085211413.28751.000672595085790.996422016476917
4911477.911450.439801161811466.26250.9986200648347091.00239817852546
5011538.811527.825382706611525.63751.000189827478661.00095201106271
5111596.411579.952171435411573.96251.000517512600841.00142037102754
5211598.811627.753012859611619.93751.000672595085790.99751000792435
5311645.811671.184766493511687.31250.9986200648347090.997825005172878
5411738.711787.437154801611785.21.000189827478660.995865330676932
5511935.511907.083878649211900.9251.000517512600841.00238648871885
5612042.812028.62245445112020.53751.000672595085791.00117865080583
5712127.612109.192009680812125.9250.9986200648347091.00152016668862
5812213.812220.18178603312217.86251.000189827478660.999477766685898
5912303.512320.985467143212314.61251.000517512600840.998580838587153
6012410.312420.485842686612412.13751.000672595085790.999179915921518
6112534.112489.054599593112506.31250.9986200648347091.00360679025363
6212587.512598.466081158312596.0751.000189827478660.99912957013277
6312683.212692.665216605512686.11.000517512600840.999254276667351
6412748.712789.296236012912780.71.000672595085790.996825764665722
6512915.912845.162514713212862.91250.9986200648347091.00550693579827
6612962.512939.705845548412937.251.000189827478661.00176156666339
6712965.913005.977275676512999.251.000517512600840.99691854946176
6813060.713061.2165053213052.43751.000672595085790.999960455037261
6913099.913108.910556586813127.0250.9986200648347090.999312638792679
701320413215.245640645913212.73751.000189827478660.999149040362043
7113321.113294.301409870213287.4251.000517512600841.00201579528729
7213391.213356.189769536413347.21251.000672595085791.00262127381144
7313366.913355.607160853513374.06250.9986200648347091.00084555041269
7413415.313345.870432114613343.33751.000189827478661.00520232593584
7513324.613263.848158080413256.98751.000517512600841.00458025764435
7613141.913146.411268384113137.5751.000672595085790.999656844115702
7712925.413011.420272757413029.40.9986200648347090.993388863709409
7812901.512989.552806075312987.08751.000189827478660.9932212596238
7912973NANA1.00051751260084NA
8013155NANA1.00067259508579NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275480269u056xr091c2m0ty/1h0ss1275480218.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275480269u056xr091c2m0ty/1h0ss1275480218.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/02/t1275480269u056xr091c2m0ty/2ar9v1275480218.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275480269u056xr091c2m0ty/2ar9v1275480218.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/02/t1275480269u056xr091c2m0ty/384gn1275480218.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275480269u056xr091c2m0ty/384gn1275480218.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/02/t1275480269u056xr091c2m0ty/484gn1275480218.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275480269u056xr091c2m0ty/484gn1275480218.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 4 ;
 
Parameters (R input):
par1 = multiplicative ; par2 = 4 ;
 
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