Home » date » 2011 » May » 20 »

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 20 May 2011 01:41:30 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/20/t13058559135q550lr7yk2v88i.htm/, Retrieved Fri, 20 May 2011 03:45:13 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
90 51 47 59 54 79 59 80 46 62 55 77 72 72 71 50 66 78 59 52 71 98 70 84 90 98 98 78 59 0 58 55 62 80 91 86 61 49 61 56 73 85 82 32 39 30 51 48 57 59 32 56 54 74 62 78 72 48 59 61 80 69 58 63 27 23 34 45 51 51 73 37 35 66 54 30 66 61 37 55 64 53 63 70 72 52 53 50 60 73 66 78
 
Output produced by software:


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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
190NANA1.22344330851761NA
251NANA0.670235382929591NA
347NANA0.87552574869771NA
45960.350225440159262.71428571428570.9623042780890980.977626836845904
55465.449760994626361.28571428571431.067944818094140.825060308538539
67963.16796354220260.57142857142861.042867322630691.25063395382726
75972.603020416724562.71428571428571.157679141041160.812638367678833
88076.028262743594162.14285714285711.223443308517611.05224027372295
94643.852543625964765.42857142857140.6702353829295911.04896993871899
106256.408873237523964.42857142857140.875525748697711.09911785932921
115563.787026433334566.28571428571430.9623042780890980.862244300688353
127769.4164131761188651.067944818094141.10924774814626
137268.382300155355565.57142857142861.042867322630691.05290403856591
147276.572206043151366.14285714285711.157679141041160.940288960193014
157184.941921134222469.42857142857141.223443308517610.835865248300756
165044.810022744435566.85714285714280.6702353829295911.11582179471687
176656.0336479166535640.875525748697711.17786370250552
187861.450001757975363.85714285714280.9623042780890981.26932461787728
195972.315120539517267.71428571428571.067944818094140.815873631404085
205273.596636768508970.57142857142861.042867322630690.706554025879755
217184.675960030439573.14285714285711.157679141041160.838490640962049
229891.58347052331874.85714285714291.223443308517611.0700620913361
237053.906074369908680.42857142857140.6702353829295911.29855495541474
248476.1707401367008870.875525748697711.10278566086201
259084.6827764718406880.9623042780890981.06278990545294
269888.029165720045282.42857142857141.067944818094141.11326739494118
279875.533390367680272.42857142857141.042867322630691.29743944397249
287879.549095262971568.71428571428571.157679141041160.980526550831905
295977.950816514121863.71428571428571.223443308517610.756887517519607
30039.256643857304658.57142857142860.6702353829295910
315849.0294419270718560.875525748697711.18296267957264
325555.676176089440757.85714285714290.9623042780890980.987855198813323
336265.907451630952461.71428571428571.067944818094140.94071305240518
348073.447655722418870.42857142857141.042867322630691.08921107437853
359180.045243466274869.14285714285711.157679141041161.13685705807542
368685.6410315962325701.223443308517611.00419154693815
376146.341989333988969.14285714285710.6702353829295911.31630085105691
384959.660826018401168.14285714285710.875525748697710.821309446585386
396164.749330711423667.28571428571430.9623042780890980.942094680049533
405671.24717572142366.71428571428571.067944818094140.785996068376947
417365.253698187463462.57142857142861.042867322630691.11871054097628
428570.783810337945561.14285714285711.157679141041161.2008395647844
438269.386713354498656.71428571428571.223443308517611.18178244847915
443237.5331814440571560.6702353829295910.852578938657138
453945.902564253151452.42857142857140.875525748697710.849625737353497
463046.603021467457848.42857142857140.9623042780890980.643735085308762
475148.210080359678145.14285714285711.067944818094141.05787004749852
484847.078010564471345.14285714285711.042867322630691.01958429051003
495755.072450566672547.57142857142861.157679141041161.03500024810034
505962.395608734398511.223443308517610.945579363623934
513236.384206501892154.28571428571430.6702353829295910.879502484088416
525649.279592140985456.28571428571430.875525748697711.13637304139588
535457.050896486710859.28571428571430.9623042780890980.94652325073592
547465.297197449184361.14285714285711.067944818094141.13327987862861
556266.14758446400463.42857142857141.042867322630690.937298020817964
567873.926082292200163.85714285714281.157679141041161.05510798870279
577279.349037438141964.85714285714291.223443308517610.907383407846995
584844.044039449658965.71428571428570.6702353829295911.08981829550086
595958.41007494883366.71428571428570.875525748697711.01009971399084
606161.450001757975363.85714285714280.9623042780890980.992676944750179
618066.822832903604562.57142857142861.067944818094141.19719557707774
626962.125096219571359.57142857142861.042867322630691.11066226370307
635863.010821819526254.42857142857141.157679141041160.920476805811578
646361.871275887890450.57142857142861.223443308517611.0182431038622
652730.543583879219945.57142857142860.6702353829295910.883982708341218
662337.6476071940015430.875525748697710.610928601158605
673440.4167796797421420.9623042780890980.841234761141587
684546.379317814373943.42857142857141.067944818094140.97026006678463
695146.780048472291144.85714285714291.042867322630691.09020836158835
705153.914771425631446.57142857142861.157679141041160.945937424038755
717362.570386349900551.14285714285711.223443308517611.16668609958353
723735.1394836478852.42857142857140.6702353829295911.05294660475844
733543.275987007058349.42857142857140.875525748697710.808762605328714
746649.627406341452151.57142857142860.9623042780890981.32991032305616
755453.244677359264849.85714285714291.067944818094141.01418588069637
763051.994385085444649.85714285714291.042867322630690.576985379300087
776661.026229006312852.71428571428571.157679141041161.08150218479291
786164.143384889423152.42857142857141.223443308517610.95099440269886
793735.043735736032952.28571428571430.6702353829295911.05582350805013
805549.9049676757695570.875525748697711.10209469240282
816455.401232009986657.57142857142860.9623042780890981.15520896698585
825363.16130781299659.14285714285711.067944818094140.839121320238001
836363.912868772652561.28571428571431.042867322630690.985716980160918
847070.618427603511611.157679141041160.991242687999466
857272.1831552025388591.223443308517610.997462632354808
865240.2141229757755600.6702353829295911.29307805696333
875353.782295991430861.42857142857140.875525748697710.985454395781924
885058.56308892370860.85714285714290.9623042780890980.853780101407161
896065.907451630952461.71428571428571.067944818094140.91036747006953
9073NANA1.04286732263069NA
9166NANA1.15767914104116NA
9278NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t13058559135q550lr7yk2v88i/1sy3u1305855687.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058559135q550lr7yk2v88i/1sy3u1305855687.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t13058559135q550lr7yk2v88i/2s39p1305855687.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058559135q550lr7yk2v88i/2s39p1305855687.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t13058559135q550lr7yk2v88i/3yb3u1305855687.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058559135q550lr7yk2v88i/3yb3u1305855687.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t13058559135q550lr7yk2v88i/4b4uz1305855687.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058559135q550lr7yk2v88i/4b4uz1305855687.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = multiplicative ; par2 = 7 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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