Home » date » 2008 » May » 17 » attachments

eigen reeks - classical decomposition 2 - Clélia Comes

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 17 May 2008 10:50:20 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/17/t121104305357vnv1ed0hueqxw.htm/, Retrieved Sat, 17 May 2008 18:50:53 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.43 1.43 1.43 1.43 1.43 1.43 1.44 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.48 1.57 1.58 1.58 1.58 1.58 1.59 1.6 1.6 1.61 1.61 1.61 1.62 1.63 1.63 1.64 1.64 1.64 1.64 1.64 1.65 1.65 1.65 1.65 1.65 1.66 1.66 1.67 1.68 1.68 1.68 1.68 1.69 1.7 1.7 1.71 1.72 1.73 1.74 1.74 1.75 1.75 1.75 1.76 1.79 1.83
 
Text written by user:
 
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
11.43NANA0.993039395825668NA
21.43NANA1.00686706649896NA
31.43NANA1.00625204918517NA
41.43NANA1.00549653718428NA
51.43NANA1.00322713114234NA
61.43NANA1.00098394843927NA
71.441.454242860765621.453751.000339027181850.99020599574536
81.481.457314013383771.457916666666670.9995866339299951.01556698584374
91.481.460161671409091.462083333333330.9986856686753541.01358639182178
101.481.462982163690391.466250.997771296634541.01163229240381
111.481.463341007396271.470416666666670.9951879902949951.01138421770424
121.481.463617233113251.474583333333330.992563255007571.01119334107040
131.481.468043240162281.478333333333330.9930393958256681.00814469186643
141.481.490163258418451.481.006867066498960.9931797684844
151.481.489253032794061.481.006252049185170.993786796071385
161.481.488134875032741.481.005496537184280.99453350958356
171.481.484776154090661.481.003227131142340.996783249732624
181.481.481456243690121.481.000983948439270.999017018763581
191.481.480501760229141.481.000339027181850.999661087718624
201.481.479388218216391.480.9995866339299951.00041353701217
211.481.478054789639521.480.9986856686753541.00131606106493
221.481.476701519019121.480.997771296634541.00223368157911
231.481.472878225636591.480.9951879902949951.00483527710536
241.481.468993617411201.480.992563255007571.00749246454058
251.481.469698305821991.480.9930393958256681.00700939379001
261.481.490163258418451.481.006867066498960.9931797684844
271.481.489253032794061.481.006252049185170.993786796071385
281.481.488134875032741.481.005496537184280.99453350958356
291.481.484776154090661.481.003227131142340.996783249732624
301.481.481456243690121.481.000983948439270.999017018763581
311.481.480501760229141.481.000339027181850.999661087718624
321.481.483136668093631.483750.9995866339299950.99788511189757
331.481.489706122440741.491666666666670.9986856686753540.993484538799617
341.481.496656944951811.50.997771296634540.988870565824726
351.481.501075218694951.508333333333330.9951879902949950.985959918308908
361.481.505387603428151.516666666666670.992563255007570.983135503859382
371.481.514798845049071.525416666666670.9930393958256680.977027415116662
381.571.545540947075901.5351.006867066498961.01582556125115
391.581.554659415991091.5451.006252049185171.01629976556168
401.581.563966072212051.555416666666671.005496537184281.01025209438544
411.581.571304494151691.566251.003227131142341.00553394067202
421.581.578635102017771.577083333333331.000983948439271.00086460638085
431.591.588871821507181.588333333333331.000339027181851.00071005003522
441.61.596006658841561.596666666666670.9995866339299951.00250208301846
451.61.599145426966411.601250.9986856686753541.00053439356995
461.611.602254407178961.605833333333330.997771296634541.00483418412602
471.611.603081987700191.610833333333330.9951879902949951.00431544509444
481.611.603816792883071.615833333333330.992563255007571.00385530762888
491.621.609137587652511.620416666666670.9930393958256681.00675045591554
501.631.635319927172051.624166666666671.006867066498960.996746858468695
511.631.638094481736031.627916666666671.006252049185170.995058598984197
521.641.640635183172351.631666666666671.005496537184280.99961284313608
531.641.640276359417731.6351.003227131142340.999831516551378
541.641.639945368859671.638333333333331.000983948439271.00003331278063
551.641.641806428362211.641251.000339027181850.998899731216172
561.641.643070529522431.643750.9995866339299950.998131224760435
571.651.64408628205681.646250.9986856686753541.00359696325414
581.651.645075425326201.648750.997771296634541.00299352515878
591.651.643718830637231.651666666666670.9951879902949951.00382131617993
601.651.642692187037531.6550.992563255007571.00444868065979
611.651.64679033141091.658333333333330.9930393958256681.00194904507749
621.661.673077442165761.661666666666671.006867066498960.992183600211096
631.661.675409661893321.6651.006252049185170.990802451338438
641.671.677922346426271.668751.005496537184280.995278478504596
651.681.678315388140211.672916666666671.003227131142341.00100375166175
661.681.679150573506881.67751.000983948439271.00050586677962
671.681.683487221161461.682916666666671.000339027181850.99792857283523
681.681.688051928049281.688750.9995866339299950.995230047183096
691.691.692772208404721.6950.9986856686753540.998362326371523
701.71.697458418399511.701250.997771296634541.0014972865155
711.71.698868831766081.707083333333330.9951879902949951.00066583612152
721.711.700178142223381.712916666666670.992563255007571.00577695803322
731.72NA1.71875NANA
741.73NA1.725NANA
751.74NA1.7325NANA
761.74NA1.74208333333333NANA
771.75NANANANA
781.75NANANANA
791.75NANANANA
801.76NANANANA
811.79NANANANA
821.83NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t121104305357vnv1ed0hueqxw/168np1211043015.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t121104305357vnv1ed0hueqxw/168np1211043015.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t121104305357vnv1ed0hueqxw/23uem1211043015.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t121104305357vnv1ed0hueqxw/23uem1211043015.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t121104305357vnv1ed0hueqxw/3vwqt1211043015.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t121104305357vnv1ed0hueqxw/3vwqt1211043015.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t121104305357vnv1ed0hueqxw/46s3n1211043015.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/17/t121104305357vnv1ed0hueqxw/46s3n1211043015.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