Home » date » 2008 » May » 24 »

Decompositie tijdsreeksen - Blue Jeans Dames - Kim Liekens

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 24 May 2008 07:40:23 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/24/t1211636472ouoecmpln3zpalx.htm/, Retrieved Sat, 24 May 2008 15:41:12 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
44,13 44,13 44,14 44,14 44,14 44,14 44,15 44,17 44,19 44,26 44,27 44,29 44,29 44,29 44,29 44,32 44,33 44,34 44,34 44,34 44,37 44,47 44,51 44,51 44,51 44,52 44,7 44,84 44,9 44,91 44,94 44,94 44,95 45,28 45,34 45,34 45,34 45,36 45,44 45,62 45,75 45,77 45,77 45,77 46,09 46,25 46,28 46,29 46,29 46,29 46,3 46,34 46,34 46,35 46,42 46,52 46,59 46,66 46,67 46,72 46,72 46,72 46,76 46,89 47,02 47,02 47,04 47,18 47,22 47,8 47,88 47,91
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
144.13NANA0.99981394728005NA
244.13NANA0.998920056057169NA
344.14NANA0.999332584251624NA
444.14NANA1.00038570492657NA
544.14NANA1.00038552819624NA
644.14NANA0.999552473570032NA
744.1544.140933068287244.18583333333330.9989838312042811.00020540870078
844.1744.128966394552544.19916666666670.9984117286046691.00092985648204
944.1944.195895938629144.21208333333330.9996338694428370.999866595336424
1044.2644.319410269431444.22583333333331.002115888589200.998659497744437
1144.2744.315784978497444.241251.001684739434290.998966847173764
1244.2944.292005290967244.25751.000779648443030.999954725667667
1344.2944.265512748390144.273750.999813947280051.00055319028493
1444.2944.240920632701944.288750.9989200560571691.00110936586753
1544.2944.273764590961144.30333333333330.9993325842516241.00036670495922
1644.3244.336677614968544.31958333333331.000385704926570.999623841571682
1744.3344.355427011007844.33833333333331.000385528196240.999426744082488
1844.3444.337648846382744.35750.9995524735700321.00005302837833
1944.3444.33073999621644.37583333333330.9989838312042811.00020888448478
2044.3444.324072686517344.39458333333330.9984117286046691.00035933777104
2144.3744.404986022987644.421250.9996338694428370.999212114987053
2244.4744.55407240667644.461.002115888589200.99811302531655
2344.5144.580396697164644.50541666666671.001684739434290.998420904649125
2444.5144.587652278778144.55291666666671.000779648443030.998258435355766
2544.5144.593368405269144.60166666666670.999813947280050.998130475264586
2644.5244.603445369712744.65166666666670.9989200560571690.9981291721072
2744.744.670999293201144.70083333333330.9993325842516241.00064920658274
2844.8444.776013670382144.758751.000385704926571.00142903140259
2944.944.844365437913744.82708333333331.000385528196241.00124061432340
3044.9144.876157741518644.896250.9995524735700321.00075412557992
3144.9444.919724213363544.96541666666670.9989838312042811.00045137825291
3244.9444.963472197711245.0350.9984117286046690.999477971861069
3344.9545.084320540096545.10083333333330.9996338694428370.997020681725102
3445.2845.259729011557645.16416666666671.002115888589201.00044788134806
3545.3445.308287607820245.23208333333331.001684739434291.00069992475669
3645.3445.338654006630645.30333333333331.000779648443031.00002968754585
3745.3445.365308090398245.373750.999813947280050.99944212678226
3845.3645.393840864067945.44291666666670.9989200560571690.999254505381705
3945.4445.494615898055245.5250.9993325842516240.998799508535745
4045.6245.630509793340245.61291666666671.000385704926570.999769676179648
4145.7545.710115747106945.69251.000385528196241.00087254762411
4245.7745.750766155892345.771250.9995524735700321.00042040485272
4345.7745.803824903979345.85041666666670.9989838312042810.999261526650881
4445.7745.855802680151745.928750.9984117286046690.99812885883276
4546.0945.986490107268646.00333333333330.9996338694428371.00225087612666
4646.2546.166643890730846.06916666666671.002115888589201.00180554838395
4746.2846.201456500482546.123751.001684739434291.00170002215226
4846.2946.208498317735646.17251.000779648443031.00176378123574
4946.2946.215149945586246.223750.999813947280051.00161959994724
5046.2946.232101277775946.28208333333330.9989200560571691.00125234892259
5146.346.303242514145446.33416666666670.9993325842516240.99992997220131
5246.3446.389969274330346.37208333333331.000385704926570.998922843125099
5346.3446.423307263250146.40541666666671.000385528196240.998205486249014
5446.3546.41880039239546.43958333333330.9995524735700320.998517833468048
5546.4246.42818979848246.47541666666670.9989838312042810.999823602890452
5646.5246.437377512063946.511250.9984117286046691.00177922381415
5746.5946.53129056611546.54833333333330.9996338694428371.00126171944020
5846.6646.688996797657946.59041666666671.002115888589200.999378937230466
5946.6746.720245721781146.64166666666671.001684739434290.998924540720947
6046.7246.734324624688446.69791666666671.000779648443030.999693488141672
6146.7246.742968391921246.75166666666670.999813947280050.999508623591711
6246.7246.754453223755846.8050.9989200560571690.999263102840902
6346.7646.827475732300846.858750.9993325842516240.998559056809158
6446.8946.950602096466246.93251.000385704926570.99870923707556
6547.0247.048548218372847.03041666666671.000385528196240.999393217868482
6647.0247.109324559552947.13041666666670.9995524735700320.998103887916287
6747.04NANA0.998983831204281NA
6847.18NANA0.998411728604669NA
6947.22NANA0.999633869442837NA
7047.8NANA1.00211588858920NA
7147.88NANA1.00168473943429NA
7247.91NANA1.00077964844303NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211636472ouoecmpln3zpalx/1h6cc1211636415.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211636472ouoecmpln3zpalx/1h6cc1211636415.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211636472ouoecmpln3zpalx/2xijr1211636415.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211636472ouoecmpln3zpalx/2xijr1211636415.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211636472ouoecmpln3zpalx/3gac61211636415.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211636472ouoecmpln3zpalx/3gac61211636415.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211636472ouoecmpln3zpalx/44o5h1211636415.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211636472ouoecmpln3zpalx/44o5h1211636415.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