Home » date » 2009 » Dec » 01 »

ws9

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 01 Dec 2009 10:40:35 -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/t125968931123p3ahpv3575nez.htm/, Retrieved Tue, 01 Dec 2009 18:41:56 +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/t125968931123p3ahpv3575nez.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 «
325412 326011 328282 317480 317539 313737 312276 309391 302950 300316 304035 333476 337698 335932 323931 313927 314485 313218 309664 302963 298989 298423 310631 329765 335083 327616 309119 295916 291413 291542 284678 276475 272566 264981 263290 296806 303598 286994 276427 266424 267153 268381 262522 255542 253158 243803 250741 280445 285257 270976 261076 255603 260376 263903 264291 263276 262572 256167 264221 293860 300713 287224
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1325412NANA1.08837280424321NA
2326011NANA1.05568185749621NA
3328282NANA1.01496970182463NA
4317480NANA0.984632916839484NA
5317539NANA0.989403446223187NA
6313737NANA0.995753404241022NA
7312276311557.78688835316420.6666666670.9846315987209541.00230523242196
8309391307083.893271311317345.9583333330.9676628462012961.00751295258150
9302950306506.898029094317578.0416666670.965138825154690.988395373637705
10300316301478.207485489317248.7083333330.9502897870547870.996144970161582
11304035305501.475564377316973.4166666670.963807876310480.995199775838503
12333476329388.198491489316824.5416666671.039654935690051.01241028527200
13337698344681.227564733316694.0833333331.088372804243210.979740040923982
14335932333930.557985069316317.4166666671.055681857496211.00599358749019
15323931320613.239066425315884.5416666671.014969701824631.01034817196955
16313927310790.149266788315640.6250.9846329168394841.01009314722687
17314485312489.803993357315836.5833333330.9894034462231871.0063848355407
18313218314615.050895155315956.7916666670.9957534042410220.995559491222115
19309664310841.508426597315693.2083333330.9846315987209540.996211868766956
20302963305043.858395093315237.750.9676628462012960.993178494377692
21298989303318.1195649314274.0833333330.965138825154690.985727461415394
22298423297351.811657651312906.4583333330.9502897870547871.00360242749616
23310631299931.870799148311194.6666666670.963807876310481.03567186498836
24329765321596.634532827309330.1666666671.039654935690051.02539941215193
25335083334550.47210737307385.9166666671.088372804243211.00159177145761
26327616322237.561810976305241.1666666671.055681857496211.01669091014343
27309119307572.908337383303036.5416666671.014969701824631.00502674852273
28295916295923.710198258300542.1666666670.9846329168394840.999973945317686
29291413294027.16466054297176.2083333330.9894034462231870.991109104957843
30291542292582.596175666293830.3750.9957534042410220.996443410547081
31284678286670.771941195291145.2083333330.9846315987209540.9930485695221
32276475278823.098251576288140.750.9676628462012960.991578537551945
33272566275147.567108052850860.965138825154690.990617517955244
34264981268452.1133940422824950.9502897870547870.987069897308102
35263290270112.297644686280255.3333333330.963807876310480.974742735876246
36296806289314.612357405278279.4583333331.039654935690051.02589356818708
37303598300816.719830786276391.251.088372804243211.00924576323676
38286994289885.883380797274595.8751.055681857496210.990024062755074
39276427277000.4561734682729151.014969701824630.997929764515952
40266424267055.996184129271223.9166666670.9846329168394840.997633469410312
41267153266959.477430202269818.6250.9894034462231871.00072491365229
42268381267473.346416523268614.0416666670.9957534042410221.00339343562877
43262522263062.178046030267168.1250.9846315987209540.997946576546876
44255542257143.337929571265736.50.9676628462012960.993772586361894
45253158255211.136752124264429.4583333330.965138825154690.991955144363005
46243803250248.322637813263338.9583333330.9502897870547870.974244292349799
47250741253101.450055759262605.7083333330.963807876310480.990673897540929
48280445272531.76596325262136.751.039654935690051.02903600616530
49285257285179.659612423262023.8751.088372804243211.00027119882141
50270976277031.857097179262419.8333333331.055681857496210.97814021405107
51261076267073.375843155263134.3333333331.014969701824630.977544089431523
52255603259984.198469902264041.750.9846329168394840.983148212484886
53260376262309.240007809265118.5833333330.9894034462231870.992629920288924
54263903265108.598040351266239.2083333330.9957534042410220.99545243704179
55264291263332.008130396267442.1666666670.9846315987209541.00364175960383
56263276260072.13081074268763.1666666670.9676628462012961.01231915614823
57262572NANA0.96513882515469NA
58256167NANA0.950289787054787NA
59264221NANA0.96380787631048NA
60293860NANA1.03965493569005NA
61300713NANANANA
62287224NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/01/t125968931123p3ahpv3575nez/16ic51259689233.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t125968931123p3ahpv3575nez/16ic51259689233.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t125968931123p3ahpv3575nez/20y0q1259689233.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t125968931123p3ahpv3575nez/20y0q1259689233.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t125968931123p3ahpv3575nez/3x5hg1259689233.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t125968931123p3ahpv3575nez/3x5hg1259689233.ps (open in new window)


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