Home » date » 2008 » Apr » 03 » attachments

Multiplicative model HPC

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 03 Apr 2008 04:35:14 -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/Apr/03/t1207219018m2hq9onrh4n7i2l.htm/, Retrieved Thu, 03 Apr 2008 12:37:04 +0200
 
User-defined keywords:
HPC
 
Dataseries X:
» Textbox « » Textfile « » CSV «
13328 12873 14000 13477 14237 13674 13529 14058 12975 14326 14008 16193 14483 14011 15057 14884 15414 14440 14900 15074 14442 15307 14938 17193 15528 14765 15838 15723 16150 15486 15986 15983 15692 16490 15686 18897 16316 15636 17163 16534 16518 16375 16290 16352 15943 16362 16393 19051 16747 16320 17910 16961 17480 17049 16879 17473 16998 17307 17418 20169 17871 17226 19062 17804 19100 18522 18060 18869 18127 18871 18890 21263 19547 18450 20254 19240 20216 19420 19415 20018 18652 19978 19509 21971
 
Text written by user:
 
Output produced by software:


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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
113328NANA0.994578556481803NA
212873NANA0.953159362044224NA
314000NANA1.0334682729003NA
413477NANA0.992228846279956NA
514237NANA1.01993449653857NA
613674NANA0.980599134598712NA
71352913938.938439760813937.95833333330.9801064274603130.990360470810323
81405814034.493930963114033.50.9939309631206081.00786257764928
91297514125.917526302114124.95833333330.9591929688052250.957666299030709
101432614228.617167599614227.6250.9921675995951141.01486318032334
111400814336.266630429114335.29166666670.9749637624581751.00226167851349
121619314417.375669609714416.251.125669609717000.997847260779928
131448314506.286245223114505.29166666670.9945785564818031.00390582323847
141401114605.703159362014604.750.9531593620442241.00649005470097
151505714709.241801606214708.20833333331.03346827290030.990561693474166
161488414811.200562179614810.20833333330.9922288462799561.01285352719771
171541414890.853267829914889.83333333331.019934496538571.01497007343933
181444014971.230599134614970.250.9805991345987120.983663676423608
191490015056.438439760815055.45833333330.9801064274603131.00976206240078
201507415131.410597629815130.41666666670.9939309631206081.00235463504241
211444215195.334192968815194.3750.9591929688052250.990919816157124
221530715262.867167599615261.8750.9921675995951141.01087428620270
231493815328.474963762515327.50.9749637624581750.999614750892224
241719315402.875669609715401.751.125669609717000.9916779393566
251552815491.577911889815490.58333333330.9945785564818031.00787960831257
261476515574.661492695415573.70833333330.9531593620442240.994662847345605
271583815664.700134939615663.66666666671.03346827290030.978384936746434
281572315766.033895512915765.04166666670.9922288462799561.00514436604148
291615015846.519934496515845.51.019934496538570.999296342856524
301548615948.647265801315947.66666666670.9805991345987120.990263107723003
311598616052.480106427516051.50.9801064274603131.01613391829484
321598316121.618930963116120.6250.9939309631206080.997516766025312
331569216213.084192968816212.1250.9591929688052251.00909573186929
341649016302.117167599616301.1250.9921675995951141.01957232229254
351568616351.224963762516350.250.9749637624581750.98400960817584
361889716403.750669609716402.6251.125669609717001.02345456064235
371631616453.327911889816452.33333333330.9945785564818030.997119260522989
381563616481.328159362016480.3750.9531593620442240.995389497855752
391716316507.241801606216506.20833333331.03346827290031.00611756655861
401653416512.325562179616511.33333333330.9922288462799561.0092155637266
411651816536.478267829916535.45833333331.019934496538570.979419944625052
421637516572.313932467916571.33333333330.9805991345987121.00770253194678
431629016596.688439760816595.70833333330.9801064274603131.00150253625658
441635216643.160597629816642.16666666670.9939309631206080.988564001003074
451594316702.750859635516701.79166666670.9591929688052250.995178528682899
461636216751.700500932916750.70833333330.9921675995951140.98450555537538
471639316809.558297095816808.58333333330.9749637624581751.00031977230897
481905116877.875669609716876.751.125669609717001.00280852786605
491674716930.369578556516929.3750.9945785564818030.994619578477879
501632017001.578159362017000.6250.9531593620442241.00713977683759
511791017092.325134939617091.29166666671.03346827290031.01396637164899
521696117175.617228846317174.6250.9922288462799560.99529619129175
531748017257.728267829917256.70833333331.019934496538570.99314163398572
541704917346.9805991346173460.9805991345987121.00232384696495
551687917440.396773094117439.41666666670.9801064274603130.987510044673132
561747317524.9939309631175240.9939309631206081.00317803000739
571699817610.709192968817609.750.9591929688052251.00632589419991
581730717693.867167599617692.8750.9921675995951140.985912434192216
591741817796.474963762517795.50.9749637624581751.00392118110001
602016917925.500669609717924.3751.125669609717000.999607263694481
611787118035.952911889818034.95833333330.9945785564818030.996310299893777
621722618143.286492695418142.33333333330.9531593620442240.996152393705766
631906218248.575134939618247.54166666671.03346827290031.01080400201749
641780418360.742228846318359.750.9922288462799560.977324922188142
651910018487.269934496518486.251.019934496538571.01300657553906
661852218594.147265801318593.16666666670.9805991345987121.01588140738734
671806018709.563439760818708.58333333330.9801064274603130.984926008820351
681886918830.410597629818829.41666666670.9939309631206081.00822113836750
691812718931.042526302118930.08333333330.9591929688052250.998314599536455
701887119040.575500932919039.58333333330.9921675995951140.998969972382853
711889019146.891630429119145.91666666670.9749637624581751.01196925796864
722126319230.959002943019229.83333333331.125669609717000.982286278886196
731954719324.702911889819323.70833333330.9945785564818031.01706930551662
741845019428.994826028719428.04166666670.9531593620442240.99632683183729
752025419498.825134939619497.79166666671.03346827290031.00514387718412
761924019566.783895512919565.79166666670.9922288462799560.991050520606075
772021619638.728267829919637.70833333331.019934496538571.00932758473729
781942019693.9805991346196930.9805991345987121.00564764063085
7919415NANA0.980106427460313NA
8020018NANA0.993930963120608NA
8118652NANA0.959192968805225NA
8219978NANA0.992167599595114NA
8319509NANA0.974963762458175NA
8421971NANA1.12566960971700NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/03/t1207219018m2hq9onrh4n7i2l/1j6451207218912.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/03/t1207219018m2hq9onrh4n7i2l/1j6451207218912.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/03/t1207219018m2hq9onrh4n7i2l/2bsse1207218912.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/03/t1207219018m2hq9onrh4n7i2l/2bsse1207218912.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/03/t1207219018m2hq9onrh4n7i2l/31nvw1207218912.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/03/t1207219018m2hq9onrh4n7i2l/31nvw1207218912.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/03/t1207219018m2hq9onrh4n7i2l/4x7ue1207218912.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Apr/03/t1207219018m2hq9onrh4n7i2l/4x7ue1207218912.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])
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