Home » date » 2008 » May » 25 »

decomposition champagne Katrien Broux

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 25 May 2008 06:26:13 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/25/t1211718419hq9llce776tdpu6.htm/, Retrieved Sun, 25 May 2008 14:26:59 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2815 2672 2755 2721 2946 3036 2282 2212 2922 4301 5764 7312 2541 2475 3031 3266 3776 3230 3028 1759 3595 4474 6838 8357 3113 3006 4047 3523 3937 3986 3260 1573 3528 5211 7614 9254 5375 3088 3718 4514 4520 4539 3663 1643 4739 5428 8314 10651 3633 4292 4154 4121 4647 4753 3965 1723 5048 6922 9858 11331 4016 4276 4968 4677 3523 1821 5222 6872 10803 13916 2639 2899 3370 3740 2927 3986 4217 1738 5221 6424 9842 13076
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time13 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
12815NANA0.827542628685895NA
22672NANA0.726000462117258NA
32755NANA0.850329372490055NA
42721NANA0.865344404325017NA
52946NANA0.936205334788187NA
63036NANA0.89182887170247NA
722822585.240560502993466.750.745724543305110.882703155313333
822121243.640065564693447.1250.360776028013111.77864967625951
929223060.677094075473450.416666666670.8870456497743180.954690713912975
1043013994.309767616873484.6251.146266748248911.07678178464514
1157646007.082703458923541.916666666671.695997751723570.959533984221833
1273127409.112240049533584.583333333332.066938204826090.986892864232155
1325412998.807600700513623.750.8275426286858950.847336787930786
1424752639.707430239103635.958333333330.7260004621172580.937603907026857
1530313099.556853897813645.1250.8503293724900550.977881724024001
1632663184.791912067683680.3750.8653444043250171.02549871080261
1737763494.230377874443732.333333333330.9362053347881871.08063853600201
1832303407.343682948253820.6250.891828871702470.947952510973357
1930282899.3770243702738880.745724543305111.04436228008590
2017591419.277861869073933.958333333330.360776028013111.23936266974780
2135953546.778110151803998.416666666670.8870456497743181.01359597030053
2244744644.051969415964051.458333333331.146266748248910.963382845296336
2368386900.802852044264068.8751.695997751723570.990899196312259
2483578489.087452071164107.083333333332.066938204826090.98444032379017
2531133432.853709446264148.250.8275426286858950.906825709302405
2630063013.022917863644150.166666666670.7260004621172580.99766914555412
2740473520.044728594144139.6250.8503293724900551.14970129985147
2835233606.358861041354167.541666666670.8653444043250170.976885588968458
2939373960.694685932664230.583333333330.9362053347881870.994017542928312
3039863835.124265074874300.291666666670.891828871702471.03934050750300
3132603304.989032216314431.916666666670.745724543305110.986387539632427
3215731634.165083554384529.583333333330.360776028013110.962571049785652
3335284008.818012977994519.291666666670.8870456497743180.88005990508389
3452115211.931620944284546.8751.146266748248910.999821252270361
3576147822.7189632524612.458333333331.695997751723570.973318872347009
3692549631.501422363584659.791666666672.066938204826090.96080554777399
3753753889.140026337954699.6250.8275426286858951.382053606607
3830883426.238180885384719.333333333330.7260004621172580.901280015273785
3937184058.374082161394772.708333333330.8503293724900550.916130431726956
4045144181.524441782714832.208333333330.8653444043250171.07951060978985
4145204559.710065974634870.416666666670.9362053347881870.991291098468967
4245394421.501748219244957.791666666670.891828871702471.02657428594890
4336633686.427136116874943.416666666670.745724543305110.993645029387032
4416431775.3788338525149210.360776028013110.925436289242417
4547394425.766428607334989.333333333330.8870456497743181.07077498924661
4654285721.160623853864991.1251.146266748248910.948758539896337
4783148446.139470156394980.041666666671.695997751723570.984355045210502
481065110322.80612945274994.252.066938204826091.03179308672774
4936334150.746939831285015.750.8275426286858950.875264151889654
5042923652.992325220005031.666666666670.7260004621172581.17492718787508
5141544292.356381158235047.8750.8503293724900550.967766800127416
5241214433.1593833570651230.8653444043250170.929585346168927
5346474914.687922081825249.583333333330.9362053347881870.945533078330551
5447534764.372789852525342.250.891828871702470.997612951304578
5539654016.876324368955386.541666666670.745724543305110.987085406624487
5617231948.851973988825401.833333333330.360776028013110.884110246953978
5750484821.167026994235435.083333333330.8870456497743181.04704939109882
5869226295.488025841075492.166666666671.146266748248911.09951761826681
5998589274.563705300375468.51.695997751723571.06290714186007
601133110953.73901647595299.52.066938204826091.03444129743795
6140164327.80658142725229.708333333330.8275426286858950.927952745678304
6242763990.552290085285496.6250.7260004621172581.07153087822554
6349685060.274665297795950.958333333330.8503293724900550.981764889971173
6446775609.306652902156482.166666666670.8653444043250170.833792889105147
6535236059.862089305856472.791666666670.9362053347881870.581366365782023
6618215191.038585889515820.666666666670.891828871702470.350796853051702
6752224058.543683226125442.416666666670.745724543305111.28666842285878
6868721945.725248412705393.166666666670.360776028013113.53184500514967
69108034688.738503530015285.791666666670.8870456497743182.30403124249022
70139165928.443860828875171.958333333331.146266748248912.34732761693966
7126398771.84170506035172.083333333331.695997751723570.300849022215895
72289910742.99744200885197.541666666672.066938204826090.269850199225024
733370NA5194.04166666667NANA
743740NA5175.33333333333NANA
752927NA5116.625NANA
763986NA5041.58333333333NANA
774217NANANANA
781738NANANANA
795221NANANANA
806424NANANANA
819842NANANANA
8213076NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211718419hq9llce776tdpu6/10jgp1211718358.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211718419hq9llce776tdpu6/10jgp1211718358.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211718419hq9llce776tdpu6/2i8as1211718358.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211718419hq9llce776tdpu6/2i8as1211718358.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211718419hq9llce776tdpu6/3wd371211718358.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211718419hq9llce776tdpu6/3wd371211718358.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211718419hq9llce776tdpu6/4ub2n1211718358.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/25/t1211718419hq9llce776tdpu6/4ub2n1211718358.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