Home » date » 2010 » Jan » 12 »

KDGP2W52

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 12 Jan 2010 06:40:16 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/12/t1263303675z83buikdoeyv8et.htm/, Retrieved Tue, 12 Jan 2010 14:41:21 +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/2010/Jan/12/t1263303675z83buikdoeyv8et.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:
Classical decomposition maandelijkse bezokers VS
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2357402 2199181 2603060 2629720 2638792 2717481 3810804 3871664 2998364 2923432 2712359 2996099 2395029 2483862 3120231 3360606 3177203 3062783 4242509 4026394 3192481 3118695 2782482 3209833 2630190 2592882 3785309 3231539 3421369 3312134 4647303 4289177 3463853 3304422 3006121 3464238 2921118 2624018 3500718 3939351 3467672 3343628 4852445 4597807 3653145 3572079 3334861 3695369 3075704 2852998 3942704 4004560 3822145 3760085 5267816 5271333 4144142 4109749 3896808 4211074 3402318 3279817 4706628 4079499 4344530 4048625 5394915 5611967 4145481 4025610 3552218 3910443
 
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
12357402NANA0.801187255272192NA
22199181NANA0.764307105895857NA
32603060NANA1.04250046166845NA
42629720NANA1.01803762623020NA
52638792NANA0.98990679466426NA
62717481NANA0.948422064907969NA
738108043807094.558427422873097.6251.325083604991471.00097434973459
838716643679723.735192712886527.1251.274792709662381.05216159652737
929983642921276.024080932919937.6251.000458365640921.02638846013989
1029234322873700.9604143529719400.966944474119381.01730557224663
1127123592677223.526516113024827.3750.8850830790025211.01312384757413
1229960993010447.138369913061648.750.9832764579444040.995233884632274
1323950292478892.629689093094024.041666670.8011872552721920.966168914020447
1424838622383460.245760373118458.833333330.7643071058958571.04212436704922
1531202313266147.821717063132994.1251.042500461668450.955324489373434
1633606063206022.714129053149218.291666671.018037626230201.04821652859467
1731772033128378.726660513160276.041666670.989906794664261.01560689341204
1830627833008492.872536623172103.416666670.9484220649079691.01804562276314
1942425094228086.539298363190807.3751.325083604991471.00341110820878
2040263944085899.622487133205148.251.274792709662380.9854363474424
2131924813238886.247328763237402.333333331.000458365640920.985672467698724
2231186953151983.833156073259736.1250.966944474119380.9894387677989
2327824822889381.960305343264531.916666670.8850830790025210.963002482269932
2432098333230156.698520433285095.1250.9832764579444040.993708138515466
2526301902653813.539719313312351.166666670.8011872552721920.99109826694086
2625928822552913.277440463340166.8750.7643071058958571.01565612232610
2737853093505327.877324783362423.333333331.042500461668451.07987301972131
2832315393442462.80118573381469.1251.018037626230200.938728807436046
2934213693364224.020489273398526.041666670.989906794664261.01698608034504
3033121343242128.230980873418444.541666670.9484220649079691.02159253552965
3146473034559833.642466773441166.751.325083604991471.01918257646915
3242891774403881.153934443454586.083333331.274792709662380.973953848906216
3334638533445604.081269883444025.458333331.000458365640921.00529629008432
3433044223347232.685965273461659.666666670.966944474119380.987210125503144
3530061213091666.997320593493081.1250.8850830790025210.972330138596838
3634642383437851.767510733496322.666666670.9832764579444041.00767520948362
3729211182809108.733658393506182.50.8011872552721921.03987359584893
3826240182696161.848918133527589.666666670.7643071058958570.973242018483764
3935007183699142.352529993548336.416666671.042500461668450.946359362895488
4039393513631722.952492343567375.958333331.018037626230201.08470581361294
4134676723555968.760385153592225.833333330.989906794664260.975169421798974
4233436283429070.992878343615553.791666670.9484220649079690.975082757675246
4348524454812207.188671673631625.333333331.325083604991471.00836161240585
4445978074649943.130011643647607.251.274792709662380.988787791903273
4536531453677248.918991663675564.166666671.000458365640920.993445121741101
4635720793574501.018669163696697.291666670.966944474119380.99932241768669
4733348613287361.447580363714184.041666670.8850830790025211.01444914201771
4836953693683654.616965423746306.1250.9832764579444041.00318009809623
4930757043029261.471372263780965.6250.8011872552721921.01533130403785
5028529982924496.049114163826336.333333330.7643071058958570.975552010358905
5139427044039541.384212263874858.1251.042500461668450.97602762912871
5240045603988385.605506343917719.251.018037626230201.0040553738012
5338221453923531.835988153963536.6250.989906794664260.974159293150577
5437600853801691.795849704008438.791666670.9484220649079690.989055715696069
5552678165358022.486827344043535.416666671.325083604991470.983164220185877
5652713335194689.091079094074928.458333331.274792709662381.014754282225
5741441424126433.29868114124542.751.000458365640921.00429152734022
5841097494022001.067981374159495.3750.966944474119381.02181698376890
5938968083703527.36381354184383.8750.8850830790025211.05218825654564
6042110744147629.632858784218172.416666670.9832764579444041.01529653627667
6134023183393421.175340464235490.708333330.8011872552721921.00262178615617
6232798173252111.130983464254979.583333330.7643071058958571.00851934878626
6347066284450672.638780614269228.458333331.042500461668451.05750936588532
6440794994342722.975745574265778.458333331.018037626230200.939387343559399
6543445304205039.674179534247914.750.989906794664261.03317217829762
6640486254003318.50236714221030.541666670.9484220649079691.01131723534016
675394915NANA1.32508360499147NA
685611967NANA1.27479270966238NA
694145481NANA1.00045836564092NA
704025610NANA0.96694447411938NA
713552218NANA0.885083079002521NA
723910443NANA0.983276457944404NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263303675z83buikdoeyv8et/1opcb1263303612.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263303675z83buikdoeyv8et/1opcb1263303612.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/12/t1263303675z83buikdoeyv8et/2elqb1263303612.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263303675z83buikdoeyv8et/2elqb1263303612.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/12/t1263303675z83buikdoeyv8et/3oou91263303612.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263303675z83buikdoeyv8et/3oou91263303612.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/12/t1263303675z83buikdoeyv8et/4pi501263303612.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263303675z83buikdoeyv8et/4pi501263303612.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