Home » date » 2009 » Dec » 04 »

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: Fri, 04 Dec 2009 12:51:43 -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/04/t1259956364l5dcrusotlpdkuc.htm/, Retrieved Fri, 04 Dec 2009 20:52:49 +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/04/t1259956364l5dcrusotlpdkuc.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:
ws9.8
 
Dataseries X:
» Textbox « » Textfile « » CSV «
126.51 131.02 136.51 138.04 132.92 129.61 122.96 124.04 121.29 124.56 118.53 113.14 114.15 122.17 129.23 131.19 129.12 128.28 126.83 138.13 140.52 146.83 135.14 131.84 125.7 128.98 133.25 136.76 133.24 128.54 121.08 120.23 119.08 125.75 126.89 126.6 121.89 123.44 126.46 129.49 127.78 125.29 119.02 119.96 122.86 131.89 132.73 135.01 136.71 142.73 144.43 144.93 138.75 130.22 122.19 128.4 140.43 153.5 149.33 142.97
 
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


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1126.51NANA0.969637405271937NA
2131.02NANA1.0060251944183NA
3136.51NANA1.03540392750211NA
4138.04NANA1.04900960884383NA
5132.92NANA1.01866562184587NA
6129.61NANA0.98277443952445NA
7122.96120.961555636422126.0791666666670.9594095427060171.01652131830699
8124.04122.888334516291125.1954166666670.981572151666561.00937164205408
9121.29122.341431798437124.5233333333330.9824779703812140.991405758597227
10124.56127.708142921957123.9345833333331.030447995120740.97534892568377
11118.53123.394273764207123.4908333333330.9992180831036650.96057942061799
12113.14121.472067628367123.2770833333330.9853580596153010.931407542564778
13114.15119.636691171550123.3829166666670.9696374052719370.954138725186885
14122.17124.879164914637124.131251.00602519441830.97830570923109
15129.23129.963469561762125.5195833333331.035403927502110.994356340560655
16131.19133.485161463367127.248751.049009608843830.982805868171371
17129.12131.274165355250128.868751.018665621845870.983590332877602
18128.28128.094820447617130.340.982774439524451.00144564434172
19126.83126.258695574088131.6004166666670.9594095427060171.00452487191725
20138.13129.926206843741132.3654166666670.981572151666561.06314194307332
21140.52130.489449099465132.8166666666670.9824779703812141.0768686738258
22146.83137.272417730003133.216251.030447995120741.06962492850382
23135.14133.515520264312133.620.9992180831036651.01216697304158
24131.84131.843371771676133.80250.9853580596153010.999974425929563
25125.7129.518104362442133.573750.9696374052719370.970520689897083
26128.98133.387203819265132.5883333333331.00602519441830.966959320736367
27133.25135.585281469796130.9491666666671.035403927502110.982776290726542
28136.76135.508438746424129.17751.049009608843831.00923603921020
29133.24130.343784087298127.9554166666671.018665621845871.02221982377589
30128.54125.198911765818127.3933333333330.982774439524451.02668624021614
31121.08121.860602328733127.016250.9594095427060170.993594301079955
32120.23124.293209658364126.6266666666670.981572151666560.967309479982596
33119.08123.903162405522126.1129166666670.9824779703812140.961073129112427
34125.75129.349131354187125.5270833333331.030447995120740.972175063593341
35126.89124.898929661014124.9966666666670.9992180831036651.01594145237585
36126.6122.808870062579124.633750.9853580596153011.03087016382033
37121.89120.635013683395124.41250.9696374052719371.01040316802134
38123.44125.064441221275124.3154166666671.00602519441830.987011166360218
39126.46128.868098490126124.4616666666671.035403927502110.981313463003334
40129.49130.995074904374124.8751.049009608843830.988510446629596
41127.78127.714353450908125.3741666666671.018665621845871.00051401073817
42125.29123.798048700146125.9679166666670.982774439524451.01205149285889
43119.02121.783449811341126.9358333333330.9594095427060170.977308494580984
44119.96125.991738469144128.3570833333330.981572151666560.952125920775186
45122.86127.633303766402129.9095833333330.9824779703812140.962601424349724
46131.89135.299539172678131.3016666666671.030447995120740.97480006810425
47132.73132.298555907265132.4020833333330.9992180831036651.00326113984976
48135.01131.116259636852133.0645833333330.9853580596153011.02969685357051
49136.71129.351649941204133.4020833333330.9696374052719371.05688640277987
50142.73134.692521509023133.8858333333331.00602519441831.05967278955750
51144.43139.748036676657134.9695833333331.035403927502111.03350289159465
52144.93143.296898004753136.6020833333331.049009608843831.01139663187401
53138.75140.773646722972138.1941666666671.018665621845870.985624818493518
54130.22136.819400534495139.21750.982774439524450.951765608468433
55122.19NANA0.959409542706017NA
56128.4NANA0.98157215166656NA
57140.43NANA0.982477970381214NA
58153.5NANA1.03044799512074NA
59149.33NANA0.999218083103665NA
60142.97NANA0.985358059615301NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956364l5dcrusotlpdkuc/1n6ha1259956301.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956364l5dcrusotlpdkuc/1n6ha1259956301.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956364l5dcrusotlpdkuc/2tzki1259956301.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956364l5dcrusotlpdkuc/2tzki1259956301.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956364l5dcrusotlpdkuc/3dr7w1259956301.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956364l5dcrusotlpdkuc/3dr7w1259956301.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956364l5dcrusotlpdkuc/4dmz01259956301.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259956364l5dcrusotlpdkuc/4dmz01259956301.ps (open in new window)


 
Parameters (Session):
par1 = FALSE ; par2 = 0.5 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 1 ;
 
Parameters (R input):
par1 = multiplicative ; par2 = 12 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 1 ;
 
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