Home » date » 2009 » Jun » 01 »

opgave 9 - oef 2/blog - Van Mechelen Wout

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 01 Jun 2009 10:29:12 -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/01/t1243873782wi8lx4abng035bj.htm/, Retrieved Mon, 01 Jun 2009 18:29:46 +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/01/t1243873782wi8lx4abng035bj.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 «
266433 267722 266003 262971 265521 264676 270223 269508 268457 265814 266680 263018 269285 269829 270911 266844 271244 269907 271296 270157 271322 267179 264101 265518 269419 268714 272482 268351 268175 270674 272764 272599 270333 270846 270491 269160 274027 273784 276663 274525 271344 271115 270798 273911 273985 271917 273338 270601 273547 275363 281229 277793 279913 282500 280041 282166 290304 283519 287816 285226 287595 289741 289148 288301 290155 289648 288225 289351 294735 305333 309030 310215 321935
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1266433NANA1.00098850530469NA
2267722NANA1.00237258862511NA
3266003NANA1.01052881148383NA
4262971NANA0.997848682072232NA
5265521NANA0.99905471515886NA
6264676NANA0.998631083401062NA
7270223265312.329736854266537.6666666670.995402762599611.01850901640349
8269508268056.286033123266744.2916666671.004918547115891.00541570573987
9268457269189.43357316267036.5833333331.008062004886950.997279114698382
10265814266567.076619588267402.4583333330.9968759385424060.997174907609978
11266680266441.979294315267802.2916666670.9949204602997011.0008933303465
12263018265682.325009351268258.7083333330.9903959005096650.989971764176418
13269285268786.809803611268521.3751.000988505304691.00185347709864
14269829269230.385993158268593.1251.002372588625111.00222342661893
15270911271569.049639125268739.5416666671.010528811483830.9975768606916
16266844268337.268302994268915.7916666670.9978486820722320.994435106564072
17271244268611.054127586268865.2083333330.999054715158861.00980207564788
18269907268493.867126119268861.9166666670.9986310834010621.00526318492488
19271296267735.140061021268971.6666666670.995402762599611.01329993492138
20270157270253.540436391268930.7916666671.004918547115890.99964277827319
21271322271118.066201426268949.7916666671.008062004886951.00075219553396
22267179268237.425327611269078.0416666670.9968759385424060.996054147454188
23264101267646.496331584269012.9583333330.9949204602997010.98675306278924
24265518266334.335643853268917.0416666670.9903959005096650.996934921508036
25269419269276.084643433269010.1666666671.000988505304691.00053073913621
26268714269811.720329036269173.0833333331.002372588625110.995931532078379
27272482272068.335082732269233.6251.010528811483831.00152044491742
28268351268765.761157887269345.2083333330.9978486820722320.998456793171494
29268175269509.245943793269764.250.999054715158860.99504935001721
30270674269812.393033237270182.250.9986310834010621.00319335578725
31272764269282.3277550222705260.995402762599611.01292944945182
32272599272261.828281196270929.251.004918547115891.00123840980916
33270333273502.048837817271314.7083333331.008062004886950.988413070939384
34270846270897.214941135271746.1666666670.9968759385424060.999810943271803
35270491270753.13546887272135.4583333330.9949204602997010.999031828501575
36269160269670.814366687272285.8750.9903959005096650.99810578550042
37274027272491.426553890272222.3333333331.000988505304691.00563530921149
38273784272840.890291861272195.0833333331.002372588625111.00345662890606
39276663275269.985095083272401.9166666671.010528811483831.00506054048877
40274525272012.261845010272598.7083333330.9978486820722321.00923759148925
41271344272504.120588881272761.9583333330.999054715158860.99574274111388
42271115272566.992047913272940.6250.9986310834010620.994672898442311
43270798271725.709736283272980.6666666670.995402762599610.996585859552328
44273911274369.351832529273026.4583333331.004918547115890.99832943501354
45273985275485.704850517273282.51.008062004886950.994552512801595
46271917272754.145595654273608.9166666670.9968759385424060.996930768572458
47273338272709.812374126274102.1250.9949204602997011.00230350210139
48270601272293.05257927274933.5416666670.9903959005096650.993785913510308
49273547276065.664551352275793.0416666671.000988505304690.990876574399627
50275363277178.198248366276522.1251.002372588625110.993451150704357
51281229280468.271617458277546.0416666671.010528811483831.00271235094849
52277793278109.824101954278709.4166666670.9978486820722320.998860795000763
53279913279531.596337148279796.0833333330.999054715158861.00136443846724
54282500280624.030848050281008.7083333330.9986310834010621.00668499111171
55280041280906.060565049282203.4166666670.995402762599610.996920463149465
56282166284781.689743652283387.8333333331.004918547115890.990815105612982
57290304286609.039035691284316.8751.008062004886951.01289199034595
58283519284194.044647382285084.6666666670.9968759385424060.997624705161503
59287816284496.759432354285949.250.9949204602997011.01166705931649
60285226283920.589316724286673.8333333330.9903959005096651.00459780210522
61287595287596.676761772287312.6666666671.000988505304690.999994169745661
62289741288636.235777891287953.0416666671.002372588625111.00382753128391
63289148291473.940903328288437.0416666671.010528811483830.992020072545356
64288301288907.710998771289530.5833333330.9978486820722320.99789998336606
65290155291048.033057022291323.4166666670.999054715158860.996931664345426
66289648292847.108870365293248.5416666670.9986310834010620.989075839325493
67288225294361.085607568295720.5833333330.995402762599610.979154562516635
68289351NANA1.00491854711589NA
69294735NANA1.00806200488695NA
70305333NANA0.996875938542406NA
71309030NANA0.994920460299701NA
72310215NANA0.990395900509665NA
73321935NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243873782wi8lx4abng035bj/1zh5c1243873749.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243873782wi8lx4abng035bj/1zh5c1243873749.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243873782wi8lx4abng035bj/260r21243873749.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243873782wi8lx4abng035bj/260r21243873749.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243873782wi8lx4abng035bj/3i79n1243873749.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243873782wi8lx4abng035bj/3i79n1243873749.ps (open in new window)


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