Home » date » 2009 » Dec » 11 »

workshop 9 - review link 1

*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, 11 Dec 2009 05:05:10 -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/11/t1260533182nydu6l0zifvp65f.htm/, Retrieved Fri, 11 Dec 2009 13:06:28 +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/11/t1260533182nydu6l0zifvp65f.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 «
5.4 5.4 5.6 5.7 5.8 5.8 5.8 5.9 6.1 6.4 6.4 6.3 6.2 6.2 6.3 6.4 6.5 6.6 6.6 6.6 6.8 7 7.2 7.3 7.5 7.6 7.6 7.7 7.7 7.7 7.7 7.6 7.7 7.9 7.9 7.9 7.8 7.6 7.4 7 7 7.2 7.5 7.8 7.8 7.7 7.6 7.6 7.5 7.5 7.6 7.6 7.9 7.6 7.5 7.5 7.6 7.7 7.8 7.9 7.9
 
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
15.4NANA1.00516082012022NA
25.4NANA0.996874593128301NA
35.6NANA0.992777735408245NA
45.7NANA0.9825635645486NA
55.8NANA0.992173282025906NA
65.8NANA0.988244689581904NA
75.85.857806401523225.916666666666670.9900517861729380.990131732331033
85.95.942514907814075.983333333333330.993177979021850.99284563716312
96.16.053444092859556.045833333333331.001258843753481.00769081310181
106.46.186745239252116.104166666666671.013528230321171.03446962053567
116.46.3061761414086.16251.023314586841051.01487809038126
126.36.354939959500236.2251.020873889076340.991354763404476
136.26.324136826589716.291666666666671.005160820120220.980370945475472
146.26.334307310502756.354166666666670.9968745931283010.978796843298074
156.36.366187228305376.41250.9927777354082450.989603317349655
166.46.353911050747616.466666666666670.98256356454861.00725363463295
176.56.473930665219036.5250.9921732820259061.00402681711144
186.66.522414951240566.60.9882446895819041.01189514149888
196.66.629221751582966.695833333333330.9900517861729380.995591978564303
206.66.761886740507096.808333333333330.993177979021850.976058939358255
216.86.929545581143846.920833333333331.001258843753480.981305328087262
2277.124258852299197.029166666666671.013528230321170.982558346787317
237.27.299644052799527.133333333333331.023314586841050.986349464154857
247.37.380067489781067.229166666666671.020873889076340.98915084585718
257.57.358614837296767.320833333333331.005160820120221.01921355660397
267.67.38517927742557.408333333333330.9968745931283011.02908808500169
277.67.433423293869237.48750.9927777354082451.02240915114684
287.77.430636956898787.56250.98256356454861.03625033017541
297.77.56945533078937.629166666666670.9921732820259061.01724624342252
307.77.593013364954297.683333333333330.9882446895819041.01409014180582
317.77.644024832410237.720833333333330.9900517861729381.00732273492263
327.67.68057637110237.733333333333330.993177979021850.989509072339224
337.77.73472456799567.7251.001258843753480.995510561793075
347.97.791498270593967.68751.013528230321171.01392565661158
357.97.807037535441557.629166666666671.023314586841051.01190752114825
367.97.737373350957787.579166666666671.020873889076341.02101832775358
377.87.588964191907657.551.005160820120221.0278082492888
387.67.526403178118677.550.9968745931283011.00977848517274
397.47.507881624024857.56250.9927777354082450.985630883726292
4077.42654294204657.558333333333330.98256356454860.94256507430509
4177.478506113270267.53750.9921732820259060.936015815722718
427.27.424188230484057.51250.9882446895819040.969802997509745
437.57.413012748969877.48750.9900517861729381.01173439922145
447.87.419867151609077.470833333333330.993177979021851.05123175935953
457.87.484409857057237.4751.001258843753481.04216633628705
467.77.609907795994757.508333333333331.013528230321171.01183880362554
477.67.747344184542497.570833333333331.023314586841050.980981329726325
487.67.784163404207117.6251.020873889076340.976341272061738
497.57.6811039337527.641666666666671.005160820120220.97642214773892
507.57.605322416741337.629166666666670.9968745931283010.986151485634654
517.67.553383936897737.608333333333330.9927777354082451.00617154688438
527.67.467483090569367.60.98256356454861.01774585999371
537.97.548785054080437.608333333333330.9921732820259061.04652602285049
547.67.53948344426867.629166666666660.9882446895819041.00802661829272
557.57.582146595774427.658333333333330.9900517861729380.989165786398776
567.5NANA0.99317797902185NA
577.6NANA1.00125884375348NA
587.7NANA1.01352823032117NA
597.8NANA1.02331458684105NA
607.9NANA1.02087388907634NA
617.9NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260533182nydu6l0zifvp65f/1qcok1260533108.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260533182nydu6l0zifvp65f/1qcok1260533108.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t1260533182nydu6l0zifvp65f/2n3yd1260533108.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260533182nydu6l0zifvp65f/2n3yd1260533108.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t1260533182nydu6l0zifvp65f/3ec4f1260533108.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260533182nydu6l0zifvp65f/3ec4f1260533108.ps (open in new window)


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