Home » date » 2010 » Jan » 07 »

WIJN

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 07 Jan 2010 06:31:48 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/07/t1262871166osfw6v3dklqoumo.htm/, Retrieved Thu, 07 Jan 2010 14:32:51 +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/Jan/07/t1262871166osfw6v3dklqoumo.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:
KDGP2W52
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2,12 2,13 2,14 2,15 2,15 2,16 2,17 2,17 2,18 2,17 2,17 2,18 2,17 2,18 2,18 2,18 2,17 2,17 2,18 2,17 2,18 2,17 2,17 2,17 2,17 2,17 2,17 2,17 2,17 2,17 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,19 2,19 2,19 2,2 2,2 2,21 2,21 2,21 2,2 2,21 2,2 2,21 2,21 2,22 2,22 2,23 2,24 2,24 2,25 2,25 2,32 2,36 2,37 2,37 2,37 2,38 2,38 2,41 2,42 2,43 2,44 2,44 2,44 2,43 2,43 2,43 2,42 2,42 2,42 2,42 2,42
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
12.12NANA-0.00196180555555559NA
22.13NANA-0.0005034722222224NA
32.14NANA-0.00390624999999997NA
42.15NANA0.00269097222222232NA
52.15NANA0.00421875000000012NA
62.16NANA0.000815972222222251NA
72.172.163385416666672.159583333333330.003802083333333310.00661458333333309
82.172.163246527777782.16375-0.0005034722222223260.006753472222222
92.182.169427083333332.16750.001927083333333310.0105729166666668
102.172.164913194444442.17041666666667-0.005503472222222220.00508680555555596
112.172.171371527777782.1725-0.00112847222222205-0.00137152777777771
122.182.173802083333332.173755.20833333332428e-050.0061979166666668
132.172.172621527777782.17458333333333-0.00196180555555559-0.00262152777777747
142.182.174496527777782.175-0.00050347222222240.00550347222222225
152.182.171093752.175-0.003906249999999970.00890625000000034
162.182.177690972222222.1750.002690972222222320.00230902777777819
172.172.179218752.1750.00421875000000012-0.00921875000000005
182.172.175399305555562.174583333333330.000815972222222251-0.00539930555555523
192.182.177968752.174166666666670.003802083333333310.00203124999999993
202.172.173246527777782.17375-0.000503472222222326-0.00324652777777779
212.182.174843752.172916666666670.001927083333333310.0051562500000002
222.172.166579861111112.17208333333333-0.005503472222222220.00342013888888903
232.172.170538194444442.17166666666667-0.00112847222222205-0.000538194444444251
242.172.171718752.171666666666675.20833333332428e-05-0.00171875000000021
252.172.169704861111112.17166666666667-0.001961805555555590.000295138888888768
262.172.171579861111112.17208333333333-0.0005034722222224-0.00157986111111130
272.172.168593752.1725-0.003906249999999970.00140624999999961
282.172.175607638888892.172916666666670.00269097222222232-0.00560763888888882
292.172.177968752.173750.00421875000000012-0.0079687500000003
302.172.175399305555562.174583333333330.000815972222222251-0.00539930555555568
312.182.179218752.175416666666670.003802083333333310.000781249999999734
322.182.175746527777782.17625-0.0005034722222223260.0042534722222225
332.182.179010416666672.177083333333330.001927083333333310.000989583333333321
342.182.172413194444442.17791666666667-0.005503472222222220.00758680555555591
352.182.177621527777782.17875-0.001128472222222050.00237847222222243
362.182.179635416666672.179583333333335.20833333332428e-050.000364583333333446
372.182.178038194444442.18-0.001961805555555590.00196180555555570
382.182.179913194444442.18041666666667-0.00050347222222248.68055555560687e-05
392.182.177343752.18125-0.003906249999999970.00265625000000025
402.182.184774305555562.182083333333330.00269097222222232-0.00477430555555536
412.182.187552083333332.183333333333330.00421875000000012-0.00755208333333313
422.182.185815972222222.1850.000815972222222251-0.00581597222222197
432.182.190885416666672.187083333333330.00380208333333331-0.0108854166666665
442.192.189079861111112.18958333333333-0.0005034722222223260.000920138888889088
452.192.194010416666672.192083333333330.00192708333333331-0.00401041666666702
462.192.188663194444442.19416666666667-0.005503472222222220.00133680555555538
472.22.195121527777782.19625-0.001128472222222050.00487847222222237
482.22.198385416666672.198333333333335.20833333332428e-050.00161458333333364
492.212.198454861111112.20041666666667-0.001961805555555590.0115451388888892
502.212.201996527777782.2025-0.00050347222222240.0080034722222222
512.212.200677083333332.20458333333333-0.003906249999999970.00932291666666707
522.22.209774305555552.207083333333330.00269097222222232-0.0097743055555548
532.212.213802083333332.209583333333330.00421875000000012-0.00380208333333298
542.22.213315972222222.21250.000815972222222251-0.0133159722222218
552.212.219218752.215416666666670.00380208333333331-0.00921875000000005
562.212.217829861111112.21833333333333-0.000503472222222326-0.00782986111111095
572.222.223593752.221666666666670.00192708333333331-0.00359374999999984
582.222.222829861111112.22833333333333-0.00550347222222222-0.00282986111111105
592.232.238454861111112.23958333333333-0.00112847222222205-0.00845486111111127
602.242.252968752.252916666666675.20833333332428e-05-0.0129687500000002
612.242.264704861111112.26666666666667-0.00196180555555559-0.0247048611111111
622.252.279496527777782.28-0.0005034722222224-0.0294965277777779
632.252.289427083333332.29333333333333-0.00390624999999997-0.0394270833333334
642.322.309357638888892.306666666666670.002690972222222320.0106423611111111
652.362.325052083333332.320833333333330.004218750000000120.0349479166666669
662.372.336649305555562.335833333333330.0008159722222222510.0333506944444451
672.372.355052083333332.351250.003802083333333310.0149479166666668
682.372.366579861111112.36708333333333-0.0005034722222223260.00342013888888903
692.382.384843752.382916666666670.00192708333333331-0.00484375000000004
702.382.390329861111112.39583333333333-0.00550347222222222-0.0103298611111113
712.412.402621527777782.40375-0.001128472222222050.00737847222222321
722.422.409218752.409166666666675.20833333332428e-050.0107812500000000
732.432.412204861111112.41416666666667-0.001961805555555590.0177951388888893
742.442.418246527777782.41875-0.00050347222222240.0217534722222221
752.442.418593752.4225-0.003906249999999970.0214062500000001
762.442.428524305555562.425833333333330.002690972222222320.0114756944444445
772.432.432135416666672.427916666666670.00421875000000012-0.00213541666666694
782.432.429149305555562.428333333333330.0008159722222222510.000850694444444411
792.43NANA0.00380208333333331NA
802.42NANA-0.000503472222222326NA
812.42NANA0.00192708333333331NA
822.42NANA-0.00550347222222222NA
832.42NANA-0.00112847222222205NA
842.42NANA5.20833333332428e-05NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/07/t1262871166osfw6v3dklqoumo/1bfd91262871105.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/07/t1262871166osfw6v3dklqoumo/1bfd91262871105.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/07/t1262871166osfw6v3dklqoumo/27g6u1262871105.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/07/t1262871166osfw6v3dklqoumo/27g6u1262871105.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/07/t1262871166osfw6v3dklqoumo/3smlj1262871105.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/07/t1262871166osfw6v3dklqoumo/3smlj1262871105.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/07/t1262871166osfw6v3dklqoumo/4o4xh1262871105.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/07/t1262871166osfw6v3dklqoumo/4o4xh1262871105.ps (open in new window)


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