Home » date » 2009 » Jan » 27 »

Opgave9 oefening2 - Robbert Van Hees

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 27 Jan 2009 02:04:17 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jan/27/t1233047141ge0yrh4nddwcfuc.htm/, Retrieved Tue, 27 Jan 2009 10:05:46 +0100
 
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/Jan/27/t1233047141ge0yrh4nddwcfuc.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 «
18,33 18,22 18,21 18,06 18,26 18,21 18,05 18,25 18,27 18,28 18,13 18,01 18,02 17,97 18,06 18,08 18,23 18,06 18,23 18,17 18,27 18,33 18,18 18,29 18,33 18,31 18,44 18,63 18,37 18,59 18,72 18,75 18,87 18,83 18,89 18,78 19,27 19,19 19,43 19,36 19,39 19,07 19,31 19,19 19,06 19,05 19,49 19,25 19,76 20,35 19,61 19,33 18,95 18,97 19,28 19,41 18,99 19,37 19,63 19,53 19,86 20,13 19,47 19,49 18,95 19,33 19,65 19,44 19,73 18,89 19,56 19,56
 
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
118.33NANA1.00891944752635NA
218.22NANA1.0149381042117NA
318.21NANA1.00426649968519NA
418.06NANA1.00220688231699NA
518.26NANA0.991000121945NA
618.21NANA0.99095451053294NA
718.0518.155380810983318.17708333333330.998806050346360.994195615499315
818.2518.140163598574518.153750.9992515925676251.00605487380688
918.2718.042555699411618.13708333333330.99478815682851.01260599132283
1018.2818.090798473969918.13166666666670.9977460322071811.01045843975888
1118.1318.155801224788918.131251.001354083407870.998578899137008
1218.0118.047059685792418.123750.9957685184243010.997946497299967
1318.0218.286664986415118.1251.008919447526350.985417516719798
1417.9718.399982047604618.12916666666671.01493810421170.976631387656132
1518.0618.203167195543918.12583333333331.004266499685190.992135039248613
1618.0818.167922845402118.12791666666671.002206882316990.995160544980828
1718.2317.968896794450218.13208333333330.9910001219451.01453084229581
1818.0617.981695389045718.14583333333330.990954510532941.00435468454226
1918.2318.14872210398118.17041666666670.998806050346361.00447843630826
2018.1718.183880855749418.19750.9992515925676250.99923663953479
2118.2718.132501128591518.22750.99478815682851.00758300636153
2218.3318.225078460804418.266250.9977460322071811.00575698696833
2318.1818.319772955946918.2951.001354083407870.992370377281257
2418.2918.245383582378618.32291666666670.9957685184243011.00244535377510
2518.3318.529226036924518.36541666666671.008919447526350.989248010870637
2618.3118.685010498537418.411.01493810421170.979929874881968
2718.4418.537922695438918.45916666666671.004266499685190.994717709365406
2818.6318.545838357275818.5051.002206882316991.00453803387600
2918.3718.388420179406918.55541666666670.9910001219450.998998272868075
3018.5918.437121566178118.60541666666670.990954510532941.00829188185765
3118.7218.642714929714818.6650.998806050346361.00414559094942
3218.7518.726807554377818.74083333333330.9992515925676251.00123846232493
3318.8718.720669626316318.818750.99478815682851.00797676454232
3418.8318.847838275907118.89041666666670.9977460322071810.999053563828066
3518.8918.989011268357818.96333333333331.001354083407870.994785864995361
3618.7818.94532587012119.02583333333330.9957685184243010.991273527240735
3719.2719.240514247430619.07041666666671.008919447526351.00153248256207
3819.1919.398850298499619.11333333333331.01493810421170.989233882663873
3919.4319.221242359599719.13958333333331.004266499685191.01086077770077
4019.3619.198943175585719.15666666666671.002206882316991.00838883801787
4119.3919.018118173559519.19083333333330.9910001219451.01955408116864
4219.0719.061422907813819.23541666666670.990954510532941.00044997124442
4319.3119.252402789613719.27541666666670.998806050346361.00299168945381
4419.1919.329689348560219.34416666666670.9992515925676250.99277332676996
4519.0619.298890242472919.40.99478815682850.987621555463995
4619.0519.362508937520619.406250.9977460322071810.983860101057718
4719.4919.412917830333819.38666666666671.001354083407871.00397066377862
4819.2519.282227552187919.36416666666670.9957685184243010.998328639567152
4919.7619.531419354800719.358751.008919447526351.01170322755592
5020.3519.655967951566619.36666666666671.01493810421171.03530897334304
5119.6119.455571209526319.37291666666671.004266499685191.00793750997134
5219.3319.426110068910919.38333333333331.002206882316990.995052531434756
5318.9519.227879866037919.40250.9910001219450.985548075608238
5418.9719.244336594549719.420.990954510532940.985744554341904
5519.2819.412627926856819.43583333333330.998806050346360.993167956066716
5619.4119.416291153249419.43083333333330.9992515925676250.999675985840974
5718.9919.31464105495619.41583333333330.99478815682850.983191970586856
5819.3719.372902125356119.41666666666670.9977460322071810.99985019666453
5919.6319.449634146725419.42333333333331.001354083407871.00927348308528
6019.5319.356080383971019.43833333333330.9957685184243011.00898527039457
6119.8619.642400494028619.468751.008919447526351.01107805056910
6220.1319.776491851441719.48541666666671.01493810421171.01787516973252
6319.4719.600771407605819.51751.004266499685190.993328251991397
6419.4919.571430066846919.52833333333331.002206882316990.995839339968069
6518.9519.329870295254719.50541666666670.9910001219450.98034801633677
6619.3319.327329034806819.503750.990954510532941.00013819629129
6719.65NANA0.99880605034636NA
6819.44NANA0.999251592567625NA
6919.73NANA0.9947881568285NA
7018.89NANA0.997746032207181NA
7119.56NANA1.00135408340787NA
7219.56NANA0.995768518424301NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t1233047141ge0yrh4nddwcfuc/1tz381233047054.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t1233047141ge0yrh4nddwcfuc/1tz381233047054.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t1233047141ge0yrh4nddwcfuc/2bbg11233047054.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t1233047141ge0yrh4nddwcfuc/2bbg11233047054.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t1233047141ge0yrh4nddwcfuc/3a83c1233047054.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t1233047141ge0yrh4nddwcfuc/3a83c1233047054.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t1233047141ge0yrh4nddwcfuc/4xxcv1233047054.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t1233047141ge0yrh4nddwcfuc/4xxcv1233047054.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