Home » date » 2009 » Jun » 03 »

Opgave 9 oefening 2 - Renske van der Eijk - Decompositiemodel

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 03 Jun 2009 09:25:16 -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/03/t1244042769ommu27y1voch26f.htm/, Retrieved Wed, 03 Jun 2009 17:26:14 +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/03/t1244042769ommu27y1voch26f.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 «
464 675 703 887 1139 1077 1318 1260 1120 963 996 960 530 883 894 1045 1199 1287 1565 1577 1076 918 1008 1063 544 635 804 980 1018 1064 1404 1286 1104 999 996 1015 615 722 832 977 1270 1437 1520 1708 1151 934 1159 1209 699 830 996 1124 1458 1270 1753 2258 1208 1241 1265 1828 809 997 1164 1205 1538 1513 1378 2083 1357 1536 1526 1376
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1464NANA0.559511314301936NA
2675NANA0.708793417842948NA
3703NANA0.811090709588377NA
4887NANA0.922975029059648NA
51139NANA1.10592810920734NA
61077NANA1.12123713443669NA
713181328.76382904756966.251.375176019712870.991899366304034
812601411.15709977247977.6666666666671.443392873957520.892884286379706
911201019.53045282642994.2916666666671.025383684693211.09854492025722
10963913.2101817702441008.833333333330.9052141236777571.05452175109704
11996982.42423049411017.916666666670.9651322771943671.01381864278640
129601086.970127761881029.166666666671.056165306327330.88318894464624
13530586.4844222455751048.208333333330.5595113143019360.903689816637749
14883759.6198125141031071.708333333330.7087934178429481.16242360382564
15894878.4788293766781083.083333333330.8110907095883771.01766823525427
161045996.2361719912571079.3750.9229750290596481.04894806008828
1711991192.1905017255210781.105928109207341.00571175350301
1812871214.066225525261082.791666666671.121237134436691.06007396708790
1915651495.733117441031087.666666666671.375176019712871.04630965360817
2015771555.857235386721077.916666666671.443392873957521.01358914181354
2110761090.837343232791063.833333333331.025383684693210.98639820746435
22918957.1507840237681057.3750.9052141236777570.959096534551033
2310081010.614135757151047.1250.9651322771943670.997413319619567
2410631088.158313731491030.291666666671.056165306327330.97687991405844
25544567.5076635021681014.291666666670.5595113143019360.958577363771444
26635705.574314403578995.4583333333330.7087934178429480.899976072026893
27804798.518803589757984.50.8110907095883771.00686420455674
28980912.860761032869989.0416666666670.9229750290596481.07354817057879
2910181096.98852365792991.9166666666671.105928109207340.927995123053313
3010641109.37070809723989.4166666666671.121237134436690.959102302083446
3114041361.93995052314990.3751.375176019712871.03088245517778
3212861439.00255396590996.9583333333331.443392873957520.893674577891313
3311041027.178106141421001.751.025383684693211.07478926332178
34999907.7411797730241002.791666666670.9052141236777571.10053396525406
35996977.8398521774261013.166666666670.9651322771943671.01857169942720
3610151097.575787712911039.208333333331.056165306327330.924765297633814
37615592.848863445761059.583333333330.5595113143019361.03736388465939
38722766.9144781060710820.7087934178429480.941434828278392
39832893.450212057831101.541666666670.8110907095883770.931221447789133
409771016.003220530281100.791666666670.9229750290596480.96161112510064
4112701221.912319660461104.8751.105928109207341.03935444431307
4214371255.505281285481119.751.121237134436691.14455910414705
4315201555.782470301831131.333333333331.375176019712870.977000338424634
4417081644.505614395611139.333333333331.443392873957521.03861001449225
4511511179.874826520321150.666666666671.025383684693210.975527211979362
469341053.329784664531163.6250.9052141236777570.886711848082285
4711591136.523684086131177.583333333330.9651322771943671.01977637266041
4812091244.646806618991178.458333333331.056165306327330.971359901918018
49699660.8994270477331181.208333333330.5595113143019361.05764957782225
50830860.3570770250321213.833333333330.7087934178429480.964715723464493
519961005.042775518701239.1250.8110907095883770.99100259636807
5211241157.679887490941254.291666666670.9229750290596480.970907426262768
5314581406.187590857141271.51.105928109207341.03684601505499
5412701459.523721539031301.708333333331.121237134436690.870146871378577
5517531831.849056259191332.083333333331.375176019712870.956956575657928
5622581939.378750271181343.6251.443392873957521.16429036859575
5712081392.043800611421357.583333333331.025383684693210.867788786149843
5812411238.295203936021367.958333333330.9052141236777571.00218429018814
5912651326.735170383191374.666666666670.9651322771943670.953468354678983
6018281466.089465845621388.1251.056165306327331.24685433091604
61809773.5943309367141382.6250.5595113143019361.04576774628172
62997963.7523168528721359.708333333330.7087934178429481.03449816157713
6311641101.968115314511358.6250.8110907095883771.05629190520434
6412051271.051986893771377.1250.9229750290596480.948033607142076
6515381548.621915255461400.291666666671.105928109207340.993141053248163
6615131561.135836847351392.333333333331.121237134436690.969166144475577
671378NANA1.37517601971287NA
682083NANA1.44339287395752NA
691357NANA1.02538368469321NA
701536NANA0.905214123677757NA
711526NANA0.965132277194367NA
721376NANA1.05616530632733NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244042769ommu27y1voch26f/1x9lz1244042714.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244042769ommu27y1voch26f/1x9lz1244042714.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244042769ommu27y1voch26f/24f831244042714.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244042769ommu27y1voch26f/24f831244042714.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244042769ommu27y1voch26f/3ad811244042714.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244042769ommu27y1voch26f/3ad811244042714.ps (open in new window)


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