Home » date » 2008 » May » 19 » attachments

Maandelijkse Australische bierproductie

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 19 May 2008 13:34:47 -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/19/t1211225908sm8bk99mvf4uwxe.htm/, Retrieved Mon, 19 May 2008 21:38:28 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
164 148 152 144 155 125 153 146 138 190 192 192 147 133 163 150 129 131 145 137 138 168 176 188 139 143 150 154 137 129 128 140 143 151 177 184 151 134 164 126 131 125 127 143 143 160 190 182 138 136 152 127 151 130 119 153
 
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 time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1164NANA0.943176610177838NA
2148NANA0.915088331493679NA
3152NANA1.03653212181376NA
4144NANA1.01222559485875NA
5155NANA0.892411024621307NA
6125NANA0.874703290486576NA
7153144.726467721348157.5416666666670.918655177284411.05716668422103
8146145.561583205721156.2083333333330.9318426238829851.00301189905072
9138147.46591242336156.0416666666670.9450418953699980.935809487984014
10190168.651834446503156.751.075928768398751.12658128281592
11192186.28420804226155.9166666666671.194767769378471.03068318038233
12192195.347121695543155.0833333333331.259626792233480.982865774184483
13147146.1923745775651550.9431766101778381.00552440183538
14133141.190503813379154.2916666666670.9150883314936790.941989697662636
15163159.539569082501153.9166666666671.036532121813761.02169011071924
16150154.8705160133891531.012225594858750.968551044196382
17129135.125902644743151.4166666666670.8924110246213070.954665223137504
18131131.715737159104150.5833333333330.8747032904865760.994566046741712
19145137.874831190769150.0833333333330.918655177284411.05167853151800
20137139.931700686428150.1666666666670.9318426238829850.979049059848147
21138141.79566105114150.0416666666670.9450418953699980.973231472507673
22168161.030672337012149.6666666666671.075928768398751.04327950422018
23176179.414293368334150.1666666666671.194767769378470.98096978058864
24188189.468863331786150.4166666666671.259626792233480.992247468497163
25139141.122800297859149.6250.9431766101778380.984957779371026
26143136.386290073037149.0416666666670.9150883314936791.04849248354377
27150154.83198569593149.3751.036532121813760.96879207048717
28154150.695085434596148.8751.012225594858751.02193113701003
29137132.262750607416148.2083333333330.8924110246213071.03581695806890
30129129.528978932887148.0833333333330.8747032904865760.995916134464696
31128136.343739228628148.4166666666670.918655177284410.938803649688405
32140138.417456422618148.5416666666670.9318426238829851.01143312135826
33143140.574981936287148.750.9450418953699981.01725070869873
34151159.416779184414148.1666666666671.075928768398750.947202676986231
35177175.332170156291146.751.194767769378471.00951240061777
36184184.325387263500146.3333333333331.259626792233480.998234712709246
37151137.821682162237146.1250.9431766101778381.09561861117216
38134133.793539800472146.2083333333330.9150883314936791.00154312532456
39164151.67920049208146.3333333333331.036532121813761.08122932787059
40126148.501929979069146.7083333333331.012225594858750.848473821301578
41131131.742177509720147.6250.8924110246213070.99436643963422
42125129.528978932887148.0833333333330.8747032904865760.965035014016178
43127135.463361350397147.4583333333330.918655177284410.937522875070956
44143136.9808657107991470.9318426238829851.04394142392054
45143138.527391162986146.5833333333330.9450418953699981.03228681923095
46160157.220091282267146.1251.075928768398751.01768163785596
47190175.6308620986351471.194767769378471.08181442446769
48182186.477249700232148.0416666666671.259626792233480.975990370367274
49138NA147.916666666667NANA
50136NA148NANA
51152NANANANA
52127NANANANA
53151NANANANA
54130NANANANA
55119NANANANA
56153NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211225908sm8bk99mvf4uwxe/1hutp1211225682.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211225908sm8bk99mvf4uwxe/1hutp1211225682.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211225908sm8bk99mvf4uwxe/22swo1211225682.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211225908sm8bk99mvf4uwxe/22swo1211225682.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211225908sm8bk99mvf4uwxe/3b8s21211225682.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211225908sm8bk99mvf4uwxe/3b8s21211225682.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211225908sm8bk99mvf4uwxe/42r961211225683.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t1211225908sm8bk99mvf4uwxe/42r961211225683.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