Home » date » 2010 » May » 29 »

decompositie eigen tijdreeks wijnprijzen 2000-2005

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 29 May 2010 12:35:13 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/May/29/t1275136641qgqh2i9evh2kc4x.htm/, Retrieved Sat, 29 May 2010 14:37:22 +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/2010/May/29/t1275136641qgqh2i9evh2kc4x.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:
KDGP2W52
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2,17 2,18 2,18 2,18 2,17 2,17 2,18 2,17 2,18 2,17 2,17 2,17 2,17 2,17 2,17 2,17 2,17 2,17 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,19 2,19 2,19 2,20 2,20 2,21 2,21 2,21 2,20 2,21 2,20 2,21 2,21 2,22 2,22 2,23 2,24 2,24 2,25 2,25 2,32 2,36 2,37 2,37 2,37 2,38 2,38 2,41 2,42 2,43 2,44 2,44 2,44 2,43 2,43 2,43 2,42 2,42 2,42 2,42 2,42
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
12.17NANA0.999604207607484NA
22.18NANA0.999504423159968NA
32.18NANA0.99774038265317NA
42.18NANA1.00115055499094NA
52.17NANA1.00286184124549NA
62.17NANA1.00098135176417NA
72.182.177088533483292.174166666666671.001343901947091.00133732113873
82.172.172577665087822.173750.999460685491810.998813545251228
92.182.17348779366812.172916666666671.000262838888481.00299620101428
102.172.166605456890822.172083333333330.997478054198731.00156675646615
112.172.171438254302032.171666666666670.9998948216279510.999337648998683
122.172.171051946935692.171666666666670.9997169364247230.999515466713187
132.172.170807137520922.171666666666670.9996042076074840.99962818552281
142.172.171006899138712.172083333333330.9995044231599680.999536206384644
152.172.167590981314012.17250.997740382653171.00111138065565
162.172.175416726782392.172916666666671.001150554990940.997510027979602
172.172.179970927407392.173751.002861841245490.995426119090843
182.172.176717364523832.174583333333331.000981351764170.996913993229756
192.182.178340213360722.175416666666671.001343901947091.00076195014401
202.182.175076316801552.176250.999460685491811.00226368296157
212.182.17765555549682.177083333333331.000262838888481.00107659106018
222.182.172424078873652.177916666666670.997478054198731.003487312261
232.182.17852084262192.178750.9998948216279511.00067897325064
242.182.178966372682392.179583333333330.9997169364247231.00047436588769
252.182.179137172584322.180.9996042076074841.00039594910616
262.182.179336102665052.180416666666670.9995044231599681.00030463283481
272.182.176321209662232.181250.997740382653171.00169037103597
282.182.184593940203142.182083333333331.001150554990940.997897119405762
292.182.189581686719322.183333333333331.002861841245490.995623964715526
302.182.187144253604712.1851.000981351764170.996733524278095
312.182.190022558883442.187083333333331.001343901947090.995423536235833
322.192.188402459274772.189583333333330.999460685491811.00073000316667
332.192.192659498080132.192083333333331.000262838888480.998787090251608
342.192.188633097254382.194166666666670.997478054198731.0006245463195
352.22.196019002000392.196250.9998948216279511.00181282493275
362.22.197711065240352.198333333333330.9997169364247231.00104150850212
372.212.199545758489632.200416666666670.9996042076074841.00475290930867
382.212.201408492009832.20250.9995044231599681.00390273228315
392.212.19960181859082.204583333333330.997740382653171.00472730169675
402.22.209622704077922.207083333333331.001150554990940.995645091779625
412.212.215906810052022.209583333333331.002861841245490.997334359899423
422.22.214671240778222.21251.000981351764170.993375431753444
432.212.218393969438612.215416666666671.001343901947090.996216195340303
442.212.217136953982662.218333333333330.999460685491810.996781004452683
452.222.222250607063912.221666666666671.000262838888480.99898723975741
462.222.22271359743952.228333333333330.997478054198730.998779151104925
472.232.239347777604272.239583333333330.9998948216279510.995825669555326
482.242.25227894802022.252916666666670.9997169364247230.994548211698648
492.242.265769537243632.266666666666670.9996042076074840.988626584999029
502.252.278870084804732.280.9995044231599680.987331403840338
512.252.288151277551272.293333333333330.997740382653170.983326592989909
522.322.309320613512432.306666666666671.001150554990941.00462447112154
532.362.327475189890582.320833333333331.002861841245491.01397428864148
542.372.33812560749582.335833333333331.000981351764171.01363245516067
552.372.354409849453092.351251.001343901947091.00662168082186
562.372.365806730949572.367083333333330.999460685491811.00177244784858
572.382.383542989834682.382916666666671.000262838888480.998513561597258
582.382.389791171517792.395833333333330.997478054198730.995902917529161
592.412.403497177488192.403750.9998948216279511.00270556694334
602.422.408484719336562.409166666666670.9997169364247231.00478113087909
612.432.413211157865732.414166666666670.9996042076074841.00695705474407
622.442.417551323518172.418750.9995044231599681.00928570833779
632.442.417026076977312.42250.997740382653171.00950503730246
642.442.428624387982182.425833333333331.001150554990941.0046839733942
652.432.434864978723952.427916666666671.002861841245490.998001951333458
662.432.430716382533992.428333333333331.000981351764170.999705279258768
672.43NANA1.00134390194709NA
682.42NANA0.99946068549181NA
692.42NANA1.00026283888848NA
702.42NANA0.99747805419873NA
712.42NANA0.999894821627951NA
722.42NANA0.999716936424723NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/29/t1275136641qgqh2i9evh2kc4x/1iix31275136509.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/29/t1275136641qgqh2i9evh2kc4x/1iix31275136509.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/29/t1275136641qgqh2i9evh2kc4x/2iix31275136509.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/29/t1275136641qgqh2i9evh2kc4x/2iix31275136509.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/29/t1275136641qgqh2i9evh2kc4x/3t9w61275136509.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/29/t1275136641qgqh2i9evh2kc4x/3t9w61275136509.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/29/t1275136641qgqh2i9evh2kc4x/4t9w61275136509.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/29/t1275136641qgqh2i9evh2kc4x/4t9w61275136509.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