Home » date » 2010 » Dec » 07 »

*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, 07 Dec 2010 09:46:51 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/07/t129171510907oikse81eeez4o.htm/, Retrieved Tue, 07 Dec 2010 10:45:09 +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/2010/Dec/07/t129171510907oikse81eeez4o.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
46 62 66 59 58 61 41 27 58 70 49 59 44 36 72 45 56 54 53 35 61 52 47 51 52 63 74 45 51 64 36 30 55 64 39 40 63 45 59 55 40 64 27 28 45 57 45 69 60 56 58 50 51 53 37 22 55 70 62 58 39 49 58 47 42 62 39 40 72 70 54 65
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
146NANA1.02430936011645NA
262NANA0.984160598768847NA
366NANA1.26227639794752NA
459NANA0.954726884053607NA
558NANA0.940644204431537NA
661NANA1.16559081846246NA
74141.181405946902554.58333333333330.754468505897450.995594954986811
82729.604286691540153.41666666666670.5542144154422480.912030081363714
95856.397920740005652.58333333333331.072543659080931.02840670788875
107064.428984065430852.251.233090604123081.08646754275858
114949.358889400612151.58333333333330.9568766927420760.992728981446498
125956.180552859567851.20833333333331.097097858933791.05018546448768
134452.666572932654351.41666666666671.024309360116450.835444524865204
143651.422391285672252.250.9841605987688470.700084128721385
157266.532485141817252.70833333333331.262276397947521.08217812466389
164549.725358544458752.08333333333330.9547268840536070.904970850230595
175648.208015477116351.250.9406442044315371.16163255105538
185459.250866605175350.83333333333331.165590818462460.911379075007206
195338.352149049787150.83333333333330.754468505897451.38193038234175
203528.980795474167552.29166666666670.5542144154422481.20769631845329
216157.381085760829853.51.072543659080931.06306806835713
225266.073104870928253.58333333333331.233090604123080.787007059855601
234751.073293475108353.3750.9568766927420760.920246116943809
245158.786160274535553.58333333333331.097097858933790.867551133835352
255254.587152982872753.29166666666671.024309360116450.952605094028545
266351.545411360518452.3750.9841605987688471.22222324620452
277465.533182993442151.91666666666671.262276397947521.12919892823465
284549.804919118129952.16666666666670.9547268840536070.903525209894764
295149.227046698583852.33333333333330.9406442044315371.03601583723419
306460.076493434919551.54166666666671.165590818462461.06530851487414
313638.886564241464451.54166666666670.754468505897450.925769625119349
323028.403488791415251.250.5542144154422481.05620827850793
335553.493114996661449.8751.072543659080931.02816970003397
346461.243500004779549.66666666666671.233090604123081.04500885800135
353947.485005877325549.6250.9568766927420760.821311891605405
364053.940644730911349.16666666666671.097097858933790.741555837894492
376349.977760862348648.79166666666671.024309360116451.26056067564767
384547.567762273827648.33333333333330.9841605987688470.946018854974803
395960.37888770182347.83333333333331.262276397947520.977162750850387
405544.991504411026247.1250.9547268840536071.22245301018476
414044.288664625318247.08333333333330.9406442044315370.903165637040532
426456.579720979532148.54166666666671.165590818462461.13114732437709
432737.44049960516149.6250.754468505897450.721144223093598
442827.687628504802349.95833333333330.5542144154422481.01128198809600
454554.029386826201950.3751.072543659080930.83288007958989
465761.808666531669250.1251.233090604123080.922200772132733
474548.202663396882150.3750.9568766927420760.933558372687571
486955.266304643789650.3751.097097858933791.24850033749730
496051.556904459194850.33333333333331.024309360116451.16376265467000
505649.700110237826750.50.9841605987688471.12675806415774
515863.955337496007750.66666666666671.262276397947520.906882869684185
525049.287775389267551.6250.9547268840536071.01445032982535
535149.736562309317552.8750.9406442044315371.02540259382675
545361.922012230818453.1251.165590818462460.855915337544894
553739.075181367938851.79166666666670.754468505897450.94689259792812
562228.057104781763850.6250.5542144154422480.784115117048687
575553.984697507073550.33333333333331.072543659080931.01880722759989
587061.911424082012850.20833333333331.233090604123081.13064755072137
596247.564745601720749.70833333333330.9568766927420761.30348642078635
605854.534906071167149.70833333333331.097097858933791.06353900975480
613951.386186232508750.16666666666671.024309360116450.758958834258208
624950.1921905372112510.9841605987688470.97624748941118
635866.216916042330352.45833333333331.262276397947520.875909110036513
644750.759646002183553.16666666666670.9547268840536070.92593238333416
654249.697368800799652.83333333333330.9406442044315370.845115164312769
666261.533481957997652.79166666666671.165590818462461.00758153166630
6739NANA0.75446850589745NA
6840NANA0.554214415442248NA
6972NANA1.07254365908093NA
7070NANA1.23309060412308NA
7154NANA0.956876692742076NA
7265NANA1.09709785893379NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/07/t129171510907oikse81eeez4o/1d5l61291715207.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t129171510907oikse81eeez4o/1d5l61291715207.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t129171510907oikse81eeez4o/2d5l61291715207.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t129171510907oikse81eeez4o/2d5l61291715207.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t129171510907oikse81eeez4o/3d5l61291715207.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t129171510907oikse81eeez4o/3d5l61291715207.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t129171510907oikse81eeez4o/46w2r1291715207.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t129171510907oikse81eeez4o/46w2r1291715207.ps (open in new window)


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