Home » date » 2009 » Dec » 01 »

Loess analayse

*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: Tue, 01 Dec 2009 11:59:45 -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/Dec/01/t1259694024703tetwvoix4ej6.htm/, Retrieved Tue, 01 Dec 2009 20:00:30 +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/Dec/01/t1259694024703tetwvoix4ej6.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 «
7291 6820 8031 7862 7357 7213 7079 7012 7319 8148 7599 6908 7878 7407 7911 7323 7179 6758 6934 6696 7688 8296 7697 7907 7592 7710 9011 8225 7733 8062 7859 8221 8330 8868 9053 8811 8120 7953 8878 8601 8361 9116 9310 9891 10147 10317 10682 10276 10614 9413 11068 9772 10350 10541 10049 10714 10759 11684 11462 10485 11056 10184 11082 10554 11315 10847 11104 11026 11073 12073 12328 11172
 
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


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


Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
172917059.29644705479-7.257677600661597529.96123054587-231.703552945211
268206696.66384735216-570.6378329637547513.97398561159-123.336152647837
380318105.03147578964458.9817835330547497.9867406773174.0314757896385
478628435.13104666571-195.9685937151917484.83754704948573.131046665713
573577492.89734339120-250.5856968128427471.68835342165135.897343391195
672137214.78738789924-252.3196622958097463.532274396571.78738789924228
770797030.67786101956-328.0540563910477455.37619537149-48.3221389804385
870126742.17265033516-166.2893133777187448.11666304256-269.827349664842
973197113.1676608343783.97520845200127440.85713071363-205.832339165634
1081488159.98045968218709.3864475797917426.6330927380311.9804596821750
1175997223.29285647857562.2980887589937412.40905476244-375.707143521428
1269086458.21711773595-43.52843630319027401.31131856724-449.78288226405
1378788373.04409522862-7.257677600661597390.21358237205495.044095228615
1474077997.56521094242-570.6378329637547387.07262202133590.565210942425
1579117979.08655479633458.9817835330547383.9316616706168.0865547963349
1673237452.11018645392-195.9685937151917389.85840726127129.110186453924
1771797212.80054396092-250.5856968128427395.7851528519233.8005439609205
1867586358.8761589154-252.3196622958097409.44350338041-399.123841084606
1969346772.95220248214-328.0540563910477423.1018539089-161.047797517861
2066966097.03955801429-166.2893133777187461.24975536343-598.960441985708
2176887792.6271347300683.97520845200127499.39765681794104.627134730055
2282968304.0990868898709.3864475797917578.51446553048.09908688980431
2376977174.07063699814562.2980887589937657.63127424287-522.929363001859
2479078102.55611753246-43.52843630319027754.97231877073195.556117532463
2575927338.94431430207-7.257677600661597852.31336329859-253.055685697926
2677108047.68463225956-570.6378329637547942.9532007042337.684632259558
2790119529.42517835714458.9817835330548033.5930381098518.425178357144
2882258537.96628309847-195.9685937151918108.00231061673312.966283098465
2977337534.17411368919-250.5856968128428182.41158312365-198.825886310809
3080628139.84467825182-252.3196622958098236.4749840439977.8446782518222
3178597755.51567142672-328.0540563910478290.53838496432-103.484328573277
3282218289.49810095547-166.2893133777188318.7912124222568.4981009554685
3383308228.9807516678383.97520845200128347.04403988017-101.019248332173
3488688646.79343314828709.3864475797918379.82011927193-221.206566851719
3590539131.10571257732562.2980887589938412.5961986636878.1057125773223
3688119174.79429792085-43.52843630319028490.73413838234363.794297920847
3781207678.38559949966-7.257677600661598568.872078101-441.614400500338
3879537785.48808781948-570.6378329637548691.14974514427-167.511912180518
3988788483.5908042794458.9817835330548813.42741218754-394.409195720598
4086018440.17387570904-195.9685937151918957.79471800616-160.826124290965
4183617870.42367298807-250.5856968128429102.16202382477-490.576327011926
4291169223.22662130505-252.3196622958099261.09304099076107.226621305053
4393109528.0299982343-328.0540563910479420.02405815674218.029998234304
44989110365.7798723614-166.2893133777189582.50944101636474.779872361356
451014710465.029967672083.97520845200129744.99482387598318.029967672017
461031710043.0602326372709.3864475797919881.55331978296-273.939767362754
471068210783.5900955511562.29808875899310018.1118156899101.590095551064
481027610477.9704812413-43.528436303190210117.5579550619201.970481241326
491061411018.2535831669-7.2576776006615910217.0040944338404.253583166874
5094139104.94802843086-570.63783296375410291.6898045329-308.051971569143
511106811310.6427018349458.98178353305410366.375514632242.642701834939
5297729306.68853796056-195.96859371519110433.2800557546-465.311462039441
531035010450.4010999356-250.58569681284210500.1845968773100.401099935587
541054110780.7116177449-252.31966229580910553.6080445509239.711617744946
55100499819.02256416658-328.05405639104710607.0314922245-229.977435833422
561071410944.7419608983-166.28931337771810649.5473524795230.741960898253
571075910741.961578813583.975208452001210692.0632127345-17.0384211864603
581168411921.6836236201709.38644757979110736.9299288001237.683623620147
591146211579.9052663753562.29808875899310781.7966448657117.905266375341
601048510183.4445146541-43.528436303190210830.0839216491-301.5554853459
611105611240.8864791681-7.2576776006615910878.3711984325184.886479168146
621018410015.0372183325-570.63783296375410923.6006146312-168.962781667469
631108210736.1881856370458.98178353305410968.8300308299-345.811814362985
641055410282.7420467196-195.96859371519111021.2265469955-271.257953280356
651131511806.9626336517-250.58569681284211073.6230631612491.962633651679
661084710818.7747548058-252.31966229580911127.5449074900-28.2252451941567
671110411354.5873045723-328.05405639104711181.4667518188250.587304572276
681102610981.4504380764-166.28931337771811236.8388753013-44.5495619236026
691107310769.813792764183.975208452001211292.2109987839-303.186207235871
701207312088.7774133873709.38644757979111347.836139032915.7774133872699
711232812690.240631959562.29808875899311403.461279282362.240631958999
721117210928.3463560868-43.528436303190211459.1820802164-243.653643913167
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259694024703tetwvoix4ej6/1ruv91259693983.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259694024703tetwvoix4ej6/1ruv91259693983.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259694024703tetwvoix4ej6/2xru81259693983.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259694024703tetwvoix4ej6/2xru81259693983.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259694024703tetwvoix4ej6/35ekc1259693983.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259694024703tetwvoix4ej6/35ekc1259693983.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259694024703tetwvoix4ej6/4urfg1259693983.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259694024703tetwvoix4ej6/4urfg1259693983.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