Home » date » 2010 » Dec » 26 »

Paper: Nijverheid

*The author of this computation has been verified*
R Software Module: /rwasp_decomposeloess.wasp (opens new window with default values)
Title produced by software: Decomposition by Loess
Date of computation: Sun, 26 Dec 2010 18:35:04 +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/Dec/26/t1293388394giaj0h7wz92udvn.htm/, Retrieved Sun, 26 Dec 2010 19:33:15 +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/2010/Dec/26/t1293388394giaj0h7wz92udvn.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
105,0 104,0 109,8 98,6 93,5 98,2 88,0 85,3 96,8 98,8 110,3 111,6 111,2 106,9 117,6 97,0 97,3 98,4 87,6 87,4 94,7 101,5 110,4 108,4 109,7 105,2 111,1 96,2 97,3 98,9 91,7 90,9 98,8 111,5 119,0 115,3 116,3 113,6 115,1 109,7 97,6 100,8 94,0 87,2 102,9 111,3 106,6 108,9 108,2 100,2 104,0 90,0 87,4 91,9 89,3 81,3 94,9 102,6 107,2 114,0
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Seasonal Decomposition by Loess - Parameters
ComponentWindowDegreeJump
Seasonal601061
Trend1912
Low-pass1312


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
1105102.4228550157858.5924062622091798.9847387220055-2.57714498421473
2104104.3141168713124.484363863303299.20151926538450.314116871312336
3109.8110.16537836087510.016321830362199.41829980876340.365378360874558
498.6100.861794703048-3.3066318833224599.6448371802752.26179470304751
593.594.2182095813604-7.0895841331469299.87137455178650.718209581360426
698.2100.379982558607-4.10597766714644100.1259951085392.17998255860736
78887.2817549476964-11.6623706129881100.380615665292-0.718245052303573
885.385.2906310988278-15.3354154880396100.644784389212-0.00936890117222333
996.896.7995104129409-4.10846352607281100.908953113132-0.000489587059121277
1098.893.03331174739893.45572269637396101.110965556227-5.76668825260113
11110.3110.2271175518559.05990444882288101.312977999322-0.072882448145279
12111.6111.707185963939.99972722221843101.4930868138510.107185963930149
13111.2112.134398109418.59240626220917101.673195628380.93439810941041
14106.9107.5307837622474.4843638633032101.7848523744490.630783762247376
15117.6123.28716904911910.0163218303621101.8965091205185.68716904911949
169795.4313417586927-3.30663188332245101.87529012463-1.56865824130728
1797.399.835513004406-7.08958413314692101.8540711287412.5355130044059
1898.499.2568394417539-4.10597766714644101.6491382253930.856839441753863
1987.685.418165290944-11.6623706129881101.444205322044-2.18183470905606
2087.488.9706038322114-15.3354154880396101.1648116558281.57060383221138
2194.792.6230455364606-4.10846352607281100.885417989612-2.07695446353944
22101.598.81126987390063.45572269637396100.733007429725-2.68873012609936
23110.4111.1594986813399.05990444882288100.5805968698390.75949868133857
24108.4106.1027239376069.99972722221843100.697548840176-2.2972760623942
25109.7109.9930929272788.59240626220917100.8145008105130.29309292727784
26105.2104.7247037490694.4843638633032101.190932387628-0.475296250931294
27111.1110.61631420489510.0163218303621101.567363964743-0.483685795105274
2896.293.5444726641784-3.30663188332245102.162159219144-2.65552733582163
2997.398.932629659602-7.08958413314692102.7569544735451.63262965960195
3098.998.4864064156746-4.10597766714644103.419571251472-0.413593584325383
3191.790.9801825835894-11.6623706129881104.082188029399-0.719817416410592
3290.992.4134486245034-15.3354154880396104.7219668635361.51344862450341
3398.896.3467178283992-4.10846352607281105.361745697674-2.45328217160085
34111.5113.6601205142543.45572269637396105.8841567893722.1601205142542
35119122.5335276701079.05990444882288106.406567881073.53352767010711
36115.3113.951482091769.99972722221843106.648790686022-1.3485179082405
37116.3117.1165802468178.59240626220917106.8910134909740.816580246816727
38113.6115.8301932101444.4843638633032106.8854429265532.2301932101438
39115.1113.30380580750610.0163218303621106.879872362132-1.79619419249397
40109.7116.11353978577-3.30663188332245106.5930920975526.41353978577013
4197.695.9832723001741-7.08958413314692106.306311832973-1.61672769982586
42100.8100.038932458112-4.10597766714644105.667045209034-0.761067541887627
439494.6345920278927-11.6623706129881105.0277785850950.634592027892722
4487.285.6776801722042-15.3354154880396104.057735315835-1.52231982779583
45102.9106.820771479497-4.10846352607281103.0876920465753.92077147949738
46111.3117.1673030174323.45572269637396101.9769742861945.86730301743164
47106.6103.2738390253649.05990444882288100.866256525813-3.32616097463625
48108.9107.8464832047959.9997272222184399.9537895729869-1.0535167952053
49108.2108.766271117638.5924062622091799.04132262016040.56627111763045
50100.297.51599850239884.484363863303298.399637634298-2.68400149760117
51104100.22572552120210.016321830362197.7579526484356-3.77427447879762
529085.513796329858-3.3066318833224597.7928355534645-4.48620367014202
5387.484.0618656746535-7.0895841331469297.8277184584934-3.33813432534647
5491.989.9396794564597-4.1059776671464497.9662982106868-1.96032054354033
5589.392.1574926501079-11.662370612988198.10487796288022.85749265010791
5681.379.6063419004749-15.335415488039698.3290735875647-1.69365809952511
5794.995.3551943138236-4.1084635260728198.55326921224920.455194313823625
58102.6102.8845696574673.4557226963739698.85970764615930.284569657466733
59107.2106.1739494711089.0599044488228899.1661460800694-1.0260505288923
60114118.4702690760179.9997272222184399.53000370176494.47026907601669
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293388394giaj0h7wz92udvn/11v6r1293388500.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293388394giaj0h7wz92udvn/11v6r1293388500.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293388394giaj0h7wz92udvn/21v6r1293388500.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293388394giaj0h7wz92udvn/21v6r1293388500.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293388394giaj0h7wz92udvn/3u55c1293388500.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293388394giaj0h7wz92udvn/3u55c1293388500.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293388394giaj0h7wz92udvn/4u55c1293388500.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293388394giaj0h7wz92udvn/4u55c1293388500.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
Parameters (R input):
par1 = 12 ; par2 = periodic ; par3 = 0 ; par5 = 1 ; par7 = 1 ; par8 = FALSE ;
 
R code (references can be found in the software module):
par1 <- as.numeric(par1) #seasonal period
if (par2 != 'periodic') par2 <- as.numeric(par2) #s.window
par3 <- as.numeric(par3) #s.degree
if (par4 == '') par4 <- NULL else par4 <- as.numeric(par4)#t.window
par5 <- as.numeric(par5)#t.degree
if (par6 != '') par6 <- as.numeric(par6)#l.window
par7 <- as.numeric(par7)#l.degree
if (par8 == 'FALSE') par8 <- FALSE else par9 <- TRUE #robust
nx <- length(x)
x <- ts(x,frequency=par1)
if (par6 != '') {
m <- stl(x,s.window=par2, s.degree=par3, t.window=par4, t.degre=par5, l.window=par6, l.degree=par7, robust=par8)
} else {
m <- stl(x,s.window=par2, s.degree=par3, t.window=par4, t.degre=par5, l.degree=par7, robust=par8)
}
m$time.series
m$win
m$deg
m$jump
m$inner
m$outer
bitmap(file='test1.png')
plot(m,main=main)
dev.off()
mylagmax <- nx/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$time.series[,'trend']),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$time.series[,'seasonal']),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$time.series[,'remainder']),na.action=na.pass,lag.max = mylagmax,main='Remainder')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'trend']),'trend']),main='Trend')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'seasonal']),'seasonal']),main='Seasonal')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'remainder']),'remainder']),main='Remainder')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'trend']),'trend']),main='Trend')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'seasonal']),'seasonal']),main='Seasonal')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'remainder']),'remainder']),main='Remainder')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Seasonal Decomposition by Loess - Parameters',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Component',header=TRUE)
a<-table.element(a,'Window',header=TRUE)
a<-table.element(a,'Degree',header=TRUE)
a<-table.element(a,'Jump',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,m$win['s'])
a<-table.element(a,m$deg['s'])
a<-table.element(a,m$jump['s'])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,m$win['t'])
a<-table.element(a,m$deg['t'])
a<-table.element(a,m$jump['t'])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Low-pass',header=TRUE)
a<-table.element(a,m$win['l'])
a<-table.element(a,m$deg['l'])
a<-table.element(a,m$jump['l'])
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Seasonal Decomposition by Loess - Time Series Components',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observed',header=TRUE)
a<-table.element(a,'Fitted',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Remainder',header=TRUE)
a<-table.row.end(a)
for (i in 1:nx) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]+m$time.series[i,'remainder'])
a<-table.element(a,m$time.series[i,'seasonal'])
a<-table.element(a,m$time.series[i,'trend'])
a<-table.element(a,m$time.series[i,'remainder'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.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