Home » date » 2009 » 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: Tue, 02 Jun 2009 09:19:21 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/02/t1243955985iqobkk4samj4j8j.htm/, Retrieved Tue, 02 Jun 2009 17:19:45 +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/2009/Jun/02/t1243955985iqobkk4samj4j8j.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
4,43 4,44 4,44 4,44 4,45 4,47 4,48 4,48 4,5 4,52 4,52 4,53 4,53 4,63 4,66 4,67 4,68 4,69 4,69 4,7 4,71 4,72 4,72 4,72 4,73 4,74 4,76 4,81 4,82 4,83 4,83 4,84 4,89 4,92 4,95 4,95 5,01 5,05 5,08 5,11 5,14 5,17 5,18 5,2 5,22 5,24 5,28 5,29 5,33 5,4 5,43 5,46 5,46 5,46 5,47 5,49 5,5 5,54 5,55 5,55 5,56 5,6 5,61 5,63 5,64 5,66 5,67 5,69 5,77 5,77 5,78 5,8 5,82 5,85 5,87 5,88 5,9 5,91 5,94 5,97 5,98 6 6,01 6,02
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
14.43NANA0.996710082103818NA
24.44NANA1.00230434222501NA
34.44NANA1.00290088638054NA
44.44NANA1.00383710178960NA
54.45NANA1.00242865640388NA
64.47NANA1.00102635201897NA
74.484.473862093706814.479166666666670.9988157232461711.00137194803162
84.484.480220824234414.491250.997544297074180.999950711305743
94.54.507231607532784.508333333333330.9997556245913730.998395554486109
104.524.526206739693054.527083333333330.9998063667982810.99862871051854
114.524.540587050440994.546250.9987543690824290.995465993667274
124.534.547270445174414.5650.996116198285740.996202019347072
134.534.567839247108294.582916666666670.9967100821038180.99171616051676
144.634.611435227853584.600833333333331.002304342225011.00402581218842
154.664.632148468970144.618751.002900886380541.00601265939907
164.674.653621497712974.635833333333331.003837101789601.00351951749730
174.684.663799323919054.65251.002428656403881.00347370779825
184.694.673541780988564.668751.001026352018971.00352157309867
194.694.679451663408314.6850.9988157232461711.00225418218852
204.74.686379978963074.697916666666670.997544297074181.00290629891261
214.714.705516473076734.706666666666670.9997556245913731.00095282355272
224.724.715753363398564.716666666666670.9998063667982811.00090052135347
234.724.722443575144754.728333333333330.9987543690824290.999482561282974
244.724.721590779874414.740.996116198285740.999663083916295
254.734.736034073463314.751666666666670.9967100821038180.998725922708809
264.744.774309683465144.763333333333331.002304342225010.992813687058473
274.764.79052323394444.776666666666671.002900886380540.993628413337374
284.814.810889310326674.79251.003837101789600.999815146375378
294.824.822099515909494.810416666666671.002428656403880.99956460543741
304.834.834540185938274.829583333333331.001026352018970.999060885676061
314.834.845088604179974.850833333333330.9988157232461710.9968857939632
324.844.863444091693744.875416666666670.997544297074180.995179528899329
334.894.900468819872054.901666666666670.9997556245913730.99786371054345
344.924.926545872398534.92750.9998063667982810.998671305907207
354.954.94716330818834.953333333333330.9987543690824291.00057339764932
364.954.961488764294894.980833333333330.996116198285740.99768441190927
375.014.993102215472585.009583333333330.9967100821038181.00338422563733
385.055.050778631195545.039166666666671.002304342225010.999845839374006
395.085.082618117102745.067916666666671.002900886380540.999484888094597
405.115.114550033618025.0951.003837101789600.999110374600284
415.145.134523113822045.122083333333331.002428656403881.00106667864893
425.175.155285712897685.151.001026352018971.00285421369867
435.185.171368407107055.17750.9988157232461711.00166911196678
445.25.192633709728225.205416666666670.997544297074181.00141860386917
455.225.233304129892265.234583333333330.9997556245913730.997457795388526
465.245.262730763234455.263750.9998063667982810.995680804461203
475.285.285075203061195.291666666666670.9987543690824290.999039710341634
485.295.296432835968475.317083333333330.996116198285740.998785439904989
495.335.323677726037025.341250.9967100821038181.00118757638767
505.45.377780422846455.365416666666671.002304342225011.00413173752114
515.435.404800026852495.389166666666671.002900886380541.00466251721106
525.465.434104844354385.413333333333331.003837101789601.00476530291323
535.465.450288140589265.437083333333331.002428656403881.00178189834376
545.465.464769693396885.459166666666671.001026352018970.999127192239657
555.475.4730939901715.479583333333330.9988157232461710.99943469083912
565.495.48399977316535.49750.997544297074181.00109413331198
575.55.511986010247115.513333333333330.9997556245913730.99782546431997
585.545.526846278463665.527916666666670.9998063667982811.00237996876946
595.555.535596090639365.54250.9987543690824291.00260205208704
605.555.536745868804915.558333333333330.996116198285741.00239384857264
615.565.556658707728785.5750.9967100821038181.00060131320762
625.65.604551780274865.591666666666671.002304342225010.999187842230153
635.615.627527598702835.611251.002900886380540.996885382009166
645.635.653694210370865.632083333333331.003837101789600.995809074652925
655.645.664974944502425.651251.002428656403880.995591340694867
665.665.677070698887575.671251.001026352018970.996993044513095
675.675.685758504578835.69250.9988157232461710.997228425272347
685.695.69971872740765.713750.997544297074180.998294875962763
695.775.733598507031525.7350.9997556245913731.00634880397081
705.775.755135398882615.756250.9998063667982811.00258284125171
715.785.770303367373735.77750.9987543690824291.00168043723335
725.85.776228804809445.798750.996116198285741.00411534861132
735.825.801267973711765.820416666666670.9967100821038181.00322895380340
745.855.856798373068155.843333333333331.002304342225010.998839233889386
755.875.880760072513925.863751.002900886380540.99817029221032
765.885.904653485818265.882083333333331.003837101789600.99582473622246
775.95.91558210860345.901251.002428656403880.99736592133837
785.915.926076003952295.921.001026352018970.99728724303543
795.94NANA0.998815723246171NA
805.97NANA0.99754429707418NA
815.98NANA0.999755624591373NA
826NANA0.999806366798281NA
836.01NANA0.998754369082429NA
846.02NANA0.99611619828574NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243955985iqobkk4samj4j8j/1b78m1243955956.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243955985iqobkk4samj4j8j/1b78m1243955956.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243955985iqobkk4samj4j8j/20tnu1243955956.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243955985iqobkk4samj4j8j/20tnu1243955956.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243955985iqobkk4samj4j8j/3efpg1243955956.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243955985iqobkk4samj4j8j/3efpg1243955956.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243955985iqobkk4samj4j8j/4q1bx1243955956.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243955985iqobkk4samj4j8j/4q1bx1243955956.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