Home » date » 2008 » May » 17 » attachments

Broodprijs - classical decomposition - Clélia Comes

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 17 May 2008 10:45:24 -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/17/t12110428568tpmvcfd3nenr10.htm/, Retrieved Sat, 17 May 2008 18:47:42 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.43 1.43 1.43 1.43 1.43 1.43 1.44 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.57 1.58 1.58 1.58 1.58 1.59 1.6 1.6 1.61 1.61 1.61 1.62 1.63 1.63 1.64 1.64 1.64 1.64 1.64 1.65 1.65 1.65 1.65 1.65 1.66 1.66 1.67 1.68 1.68 1.68 1.68 1.69 1.7 1.7 1.71 1.72 1.73 1.74 1.74 1.75 1.75 1.75 1.76 1.79 1.83
 
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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11.43NANA-0.0107118055555556NA
21.43NANA0.0105381944444444NA
31.43NANA0.00960069444444446NA
41.43NANA0.0085590277777778NA
51.43NANA0.00501736111111113NA
61.43NANA0.00147569444444441NA
71.441.454184027777781.453750.000434027777777799-0.0141840277777778
81.481.457204861111111.45791666666667-0.0007118055555554350.0227951388888890
91.481.460121527777781.46208333333333-0.001961805555555580.0198784722222223
101.481.462934027777781.46625-0.003315972222222230.0170659722222226
111.481.463038194444441.47041666666667-0.007378472222222260.0169618055555558
121.481.463038194444441.47458333333333-0.01154513888888890.0169618055555560
131.481.467621527777781.47833333333333-0.01071180555555560.0123784722222224
141.481.490538194444441.480.0105381944444444-0.0105381944444443
151.481.489600694444441.480.00960069444444446-0.00960069444444422
161.481.488559027777781.480.0085590277777778-0.00855902777777762
171.481.485017361111111.480.00501736111111113-0.00501736111111084
181.481.481475694444441.480.00147569444444441-0.00147569444444429
191.481.480434027777781.480.000434027777777799-0.000434027777777679
201.481.479288194444441.48-0.0007118055555554350.000711805555555722
211.481.478038194444441.48-0.001961805555555580.00196180555555570
221.481.476684027777781.48-0.003315972222222230.00331597222222246
231.481.472621527777781.48-0.007378472222222260.00737847222222254
241.481.468454861111111.48-0.01154513888888890.0115451388888892
251.481.469288194444441.48-0.01071180555555560.0107118055555557
261.481.490538194444441.480.0105381944444444-0.0105381944444443
271.481.489600694444441.480.00960069444444446-0.00960069444444422
281.481.488559027777781.480.0085590277777778-0.00855902777777762
291.481.485017361111111.480.00501736111111113-0.00501736111111084
301.481.481475694444441.480.00147569444444441-0.00147569444444429
311.481.480434027777781.480.000434027777777799-0.000434027777777679
321.481.483038194444441.48375-0.000711805555555435-0.0030381944444442
331.481.489704861111111.49166666666667-0.00196180555555558-0.00970486111111102
341.481.496684027777781.5-0.00331597222222223-0.0166840277777776
351.481.500954861111111.50833333333333-0.00737847222222226-0.0209548611111108
361.481.505121527777781.51666666666667-0.0115451388888889-0.0251215277777774
371.481.514704861111111.52541666666667-0.0107118055555556-0.0347048611111112
381.571.545538194444441.5350.01053819444444440.0244618055555557
391.581.554600694444441.5450.009600694444444460.0253993055555557
401.581.563975694444441.555416666666670.00855902777777780.0160243055555558
411.581.571267361111111.566250.005017361111111130.00873263888888931
421.581.578559027777781.577083333333330.001475694444444410.00144097222222239
431.591.588767361111111.588333333333330.0004340277777777990.00123263888888903
441.61.595954861111111.59666666666667-0.0007118055555554350.00404513888888935
451.61.599288194444441.60125-0.001961805555555580.000711805555555722
461.611.602517361111111.60583333333333-0.003315972222222230.00748263888888911
471.611.603454861111111.61083333333333-0.007378472222222260.00654513888888908
481.611.604288194444441.61583333333333-0.01154513888888890.00571180555555562
491.621.609704861111111.62041666666667-0.01071180555555560.010295138888889
501.631.634704861111111.624166666666670.0105381944444444-0.00470486111111135
511.631.637517361111111.627916666666670.00960069444444446-0.00751736111111101
521.641.640225694444441.631666666666670.0085590277777778-0.000225694444444535
531.641.640017361111111.6350.00501736111111113-1.73611111111693e-05
541.641.639809027777781.638333333333330.001475694444444410.000190972222221975
551.641.641684027777781.641250.000434027777777799-0.00168402777777787
561.641.643038194444441.64375-0.000711805555555435-0.00303819444444442
571.651.644288194444441.64625-0.001961805555555580.00571180555555539
581.651.645434027777781.64875-0.003315972222222230.00456597222222221
591.651.644288194444441.65166666666667-0.007378472222222260.00571180555555562
601.651.643454861111111.655-0.01154513888888890.00654513888888908
611.651.647621527777781.65833333333333-0.01071180555555560.00237847222222221
621.661.672204861111111.661666666666670.0105381944444444-0.0122048611111110
631.661.674600694444441.6650.00960069444444446-0.0146006944444443
641.671.677309027777781.668750.0085590277777778-0.00730902777777787
651.681.677934027777781.672916666666670.005017361111111130.00206597222222227
661.681.678975694444441.67750.001475694444444410.00102430555555544
671.681.683350694444441.682916666666670.000434027777777799-0.00335069444444436
681.681.688038194444441.68875-0.000711805555555435-0.00803819444444409
691.691.693038194444441.695-0.00196180555555558-0.00303819444444398
701.71.697934027777781.70125-0.003315972222222230.00206597222222271
711.71.699704861111111.70708333333333-0.007378472222222260.000295138888889213
721.711.701371527777781.71291666666667-0.01154513888888890.00862847222222252
731.72NA1.71875NANA
741.73NA1.725NANA
751.74NA1.7325NANA
761.74NA1.74208333333333NANA
771.75NANANANA
781.75NANANANA
791.75NANANANA
801.76NANANANA
811.79NANANANA
821.83NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t12110428568tpmvcfd3nenr10/19uzp1211042721.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t12110428568tpmvcfd3nenr10/19uzp1211042721.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t12110428568tpmvcfd3nenr10/2qbfe1211042721.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t12110428568tpmvcfd3nenr10/2qbfe1211042721.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t12110428568tpmvcfd3nenr10/3xv6x1211042721.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t12110428568tpmvcfd3nenr10/3xv6x1211042721.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t12110428568tpmvcfd3nenr10/4yhgi1211042721.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t12110428568tpmvcfd3nenr10/4yhgi1211042721.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; 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