Home » date » 2009 » Dec » 03 »

WS 9

*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: Thu, 03 Dec 2009 08:08:45 -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/03/t1259853016cmb9irexju2zs0i.htm/, Retrieved Thu, 03 Dec 2009 16:10:22 +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/03/t1259853016cmb9irexju2zs0i.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:
WS 9 link 8
 
Dataseries X:
» Textbox « » Textfile « » CSV «
162 161 149 139 135 130 127 122 117 112 113 149 157 157 147 137 132 125 123 117 114 111 112 144 150 149 134 123 116 117 111 105 102 95 93 124 130 124 115 106 105 105 101 95 93 84 87 116 120 117 109 105 107 109 109 108 107 99 103 131 137
 
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
1162NANA1.18952770150201NA
2161NANA1.16949833965368NA
3149NANA1.08206739453927NA
4139NANA1.01182342432999NA
5135NANA0.991901410099487NA
6130NANA0.987443308193821NA
7127129.662611035097134.4583333333330.9643330228826570.979465082386961
8122123.686848427896134.0833333333330.9224625115815710.986361941877119
9117120.827184057670133.8333333333330.9028183117634160.968325140674935
10112114.403180167371133.6666666666670.8558841409030260.978993764300474
11113114.214050154276133.4583333333330.8558030607875850.989370395738208
12149141.969475382265133.1251.066437373763491.04952138196471
13157157.909802374392132.751.189527701502010.99423846803231
14157154.812342711656132.3751.169498339653681.01413102631241
15147142.877982220623132.0416666666671.082067394539271.02884991595845
16137133.434214083517131.8751.011823424329991.02672317546871
17132130.724340006028131.7916666666670.9919014100994871.00975839689772
18125129.889938498662131.5416666666670.9874433081938210.962353215690278
19123126.367806540248131.0416666666670.9643330228826570.973349173080919
20117120.304485885430130.4166666666670.9224625115815710.972532313644756
21114116.952588803019129.5416666666670.9028183117634160.974753967969087
22111109.909788427630128.4166666666670.8558841409030261.00991914904001
23112108.829622563488127.1666666666670.8558030607875851.02913156695607
24144134.548848656494126.1666666666671.066437373763491.07024327177734
25150149.087471921585125.3333333333331.189527701502011.00612075626914
26149145.407626896941124.3333333333331.169498339653681.02470553422624
27134133.454978659843123.3333333333331.082067394539271.00408393411494
28123123.611095005647122.1666666666671.011823424329990.995056309422558
29116119.730766044092120.7083333333330.9919014100994870.96884037271825
30117117.588040617414119.0833333333330.9874433081938210.994999146049831
31111113.228769103472117.4166666666670.9643330228826570.980316229513762
32105106.582856025654115.5416666666670.9224625115815710.985149056005095
33102102.657965533432113.7083333333330.9028183117634160.99359070160788
349596.0373329771604112.2083333333330.8558841409030260.989198648640033
359395.0297982082881111.0416666666670.8558030607875850.97864040283618
36124117.396980895131110.0833333333331.066437373763491.05624522074181
37130129.856774080636109.1666666666671.189527701502011.00110295300633
38124126.695653462482108.3333333333331.169498339653680.97872339430113
39115116.367331054410107.5416666666671.082067394539270.988249871832404
40106107.969991237879106.7083333333331.011823424329990.981754270651568
41105105.1415494705461060.9919014100994870.998653724704854
42105104.092982072099105.4166666666670.9874433081938211.00871353582005
43101100.933523061718104.6666666666670.9643330228826571.00065862100386
449595.8976652665008103.9583333333330.9224625115815710.99063934180247
459393.3664604081999103.4166666666670.9028183117634160.996075031584171
468488.2630520306246103.1250.8558841409030260.951700604810884
478788.290349104586103.1666666666670.8558030607875850.985385162504484
48116110.287398403375103.4166666666671.066437373763491.05179741003348
49120123.611753647750103.9166666666671.189527701502010.970781470684069
50117122.553680176209104.7916666666671.169498339653680.954683693152067
51109114.608971538284105.9166666666671.082067394539270.95105992608606
52105108.391584331350107.1251.011823424329990.968709892449013
53107107.538644544953108.4166666666670.9919014100994870.994991153671018
54109108.330759603097109.7083333333330.9874433081938211.00617775043169
55109107.081146082595111.0416666666670.9643330228826571.01791962439331
56108NANA0.922462511581571NA
57107NANA0.902818311763416NA
5899NANA0.855884140903026NA
59103NANA0.855803060787585NA
60131NANA1.06643737376349NA
61137NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259853016cmb9irexju2zs0i/1jqaj1259852923.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259853016cmb9irexju2zs0i/1jqaj1259852923.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t1259853016cmb9irexju2zs0i/2ddjf1259852923.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259853016cmb9irexju2zs0i/2ddjf1259852923.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t1259853016cmb9irexju2zs0i/31uin1259852923.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259853016cmb9irexju2zs0i/31uin1259852923.ps (open in new window)


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