Home » date » 2010 » May » 24 »

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 24 May 2010 09:22:07 +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/May/24/t1274692964fb6mxbqm7y2so01.htm/, Retrieved Mon, 24 May 2010 11:22:44 +0200
 
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/May/24/t1274692964fb6mxbqm7y2so01.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 «
15136 16733 20016 17708 18019 19227 22893 23739 21133 22591 26786 29740 15028 17977 20008 21354 19498 22125 25817 28779 20960 22254 27392 29945 16933 17892 20533 23569 22417 22084 26580 27454 24081 23451 28991 31386 16896 20045 23471 21747 25621 23859 25500 30998 24475 23145 29701 34365 17556 22077 25702 22214 26886 23191 27831 35406 23195 25110 30009 36242 18450 21845 26488 22394 28057 25451 24872 33424 24052 28449 33533 37351 19969 21701 26249 24493 24603 26485 30723 34569 26689 26157 32064 38870 21337 19419 23166 28286 24570 24001 33151 24878 26804 28967 33311 40226 20504 23060 23562 27562 23940 24584 34303 25517 23494 29095 32903 34379 16991 21109 23740 25552 21752 20294 29009 25500 24166 26960 31222 38641 14672 17543 25453 32683 22449 22316 27595 25451 25421 25288 32568 35110 16052 22146 21198 19543 22084 23816 29961 26773 26635 26972 30207 38687 16974 21697 24 etc...
 
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
115136NANA-8024.93936965812NA
216733NANA-5212.29193376068NA
320016NANA-2000.87526709402NA
417708NANA-1112.74706196581NA
518019NANA-1753.67013888889NA
619227NANA-2194.41693376068NA
72289324162.159989316221138.91666666673023.24332264957-1269.15998931624
82373924154.496527777821186.252968.24652777778-415.496527777781
92113319823.881143162421237.75-1413.868856837611309.11885683761
102259121651.368322649621389.3333333333262.034989316240939.63167735043
112678626888.108707265021602.8755285.23370726496-102.108707264961
122974031959.301014957321785.2510174.0510149573-2219.30101495726
131502814002.893963675222027.8333333333-8024.939369658121025.10603632479
141797717147.37473290622359.6666666667-5212.29193376068829.625267094016
152000820561.583066239322562.4583333333-2000.87526709402-553.583066239316
162135421428.461271367522541.2083333333-1112.74706196581-74.4612713675233
171949820798.746527777822552.4166666667-1753.67013888889-1300.74652777777
182212520391.791399572622586.2083333333-2194.416933760681733.20860042736
192581725697.368322649622674.1253023.24332264957119.631677350430
202877925718.204861111122749.95833333332968.246527777783060.79513888889
212096021354.422809829122768.2916666667-1413.86885683761-394.422809829059
222225423144.493322649622882.4583333333262.034989316240-890.493322649574
232739228381.608707265023096.3755285.23370726496-989.608707264957
242994533390.342681623923216.291666666710174.0510149573-3445.34268162393
251693315221.435630341923246.375-8024.939369658121711.56436965812
261789218010.666399572723222.9583333333-5212.29193376068-118.666399572652
272053321296.916399572623297.7916666667-2000.87526709402-763.916399572649
282356922364.961271367523477.7083333333-1112.747061965811204.03872863248
292241721840.538194444423594.2083333333-1753.67013888889576.461805555558
302208421526.458066239323720.875-2194.41693376068557.541933760687
312658026802.618322649623779.3753023.24332264957-222.618322649574
322745426835.788194444423867.54166666672968.24652777778618.211805555558
332408122665.797809829124079.6666666667-1413.868856837611415.20219017094
342345124388.201655982924126.1666666667262.034989316240-937.201655982906
352899129468.983707265024183.755285.23370726496-477.983707264953
363138634565.259348290624391.208333333310174.0510149573-3179.2593482906
371689616395.227297008524420.1666666667-8024.93936965812500.772702991457
382004519310.541399572724522.8333333333-5212.29193376068734.458600427348
392347122686.041399572624686.9166666667-2000.87526709402784.958600427351
402174723577.836271367524690.5833333333-1112.74706196581-1830.83627136752
412562122953.746527777824707.4166666667-1753.670138888892667.25347222222
422385922666.708066239324861.125-2194.416933760681192.29193376068
432550028035.993322649625012.753023.24332264957-2535.99332264957
443099828093.163194444425124.91666666672968.246527777782904.83680555555
452447523888.672809829125302.5416666667-1413.86885683761586.327190170941
462314525676.993322649625414.9583333333262.034989316240-2531.99332264957
472970130772.358707265025487.1255285.23370726496-1071.35870726496
483436535686.05101495732551210174.0510149573-1321.05101495727
491755617556.352297008525581.2916666667-8024.93936965812-0.352297008543246
502207720649.791399572625862.0833333333-5212.291933760681427.20860042736
512570223991.541399572625992.4166666667-2000.875267094021710.45860042736
522221424908.211271367526020.9583333333-1112.74706196581-2694.21127136752
532688624361.996527777826115.6666666667-1753.670138888892524.00347222222
542319124012.291399572726206.7083333333-2194.41693376068-821.291399572652
552783129345.409989316226322.16666666673023.24332264957-1514.40998931624
563540629317.996527777826349.752968.246527777786088.00347222222
572319524958.964476495726372.8333333333-1413.86885683761-1763.96447649573
582511026675.118322649626413.0833333333262.034989316240-1565.11832264957
593000931754.608707265026469.3755285.23370726496-1745.60870726495
603624236786.384348290626612.333333333310174.0510149573-544.384348290601
611845018558.268963675226583.2083333333-8024.93936965812-108.268963675211
622184521165.041399572626377.3333333333-5212.29193376068679.958600427351
632648824329.583066239326330.4583333333-2000.875267094022158.41693376069
642239425392.544604700926505.2916666667-1112.74706196581-2998.54460470086
652805725037.579861111126791.25-1753.670138888893019.42013888889
662545124789.87473290626984.2916666667-2194.41693376068661.12526709402
672487230117.034989316227093.79166666673023.24332264957-5245.03498931624
683342430119.329861111127151.08333333332968.246527777783304.67013888889
692405225721.256143162427135.125-1413.86885683761-1669.25614316240
702844927474.659989316227212.625262.034989316240974.340010683762
713353332441.400373931627156.16666666675285.233707264961091.59962606838
723735137229.384348290627055.333333333310174.0510149573121.615651709402
731996919317.268963675227342.2083333333-8024.93936965812651.731036324793
742170122421.416399572627633.7083333333-5212.29193376068-720.416399572649
752624925790.416399572627791.2916666667-2000.87526709402458.583600427351
762449326692.919604700927805.6666666667-1112.74706196581-2199.91960470085
772460325895.288194444427648.9583333333-1753.67013888889-1292.28819444444
782648525456.62473290627651.0416666667-2194.416933760681028.37526709402
793072330794.576655982927771.33333333333023.24332264957-71.5766559829062
803456930701.496527777827733.252968.246527777783867.50347222222
812668926095.839476495727509.7083333333-1413.86885683761593.160523504277
822615727801.326655982927539.2916666667262.034989316240-1644.32665598291
833206432981.192040598327695.95833333335285.23370726496-917.192040598286
843887037765.134348290627591.083333333310174.05101495731104.86565170940
852133719563.810630341927588.75-8024.939369658121773.18936965812
861941922073.833066239327286.125-5212.29193376068-2654.83306623932
872316624886.24973290626887.125-2000.87526709402-1720.24973290598
882828625896.252938034227009-1112.747061965812389.74706196581
892457025424.371527777827178.0416666667-1753.67013888889-854.371527777774
902400125092.083066239327286.5-2194.41693376068-1091.08306623931
913315130331.534989316227308.29166666673023.243322649572819.46501068376
922487830393.538194444427425.29166666672968.24652777778-5515.53819444445
932680426179.631143162427593.5-1413.86885683761624.368856837609
942896727841.868322649627579.8333333333262.0349893162401125.13167735043
953331132808.650373931627523.41666666675285.23370726496502.349626068379
964022637695.509348290627521.458333333310174.05101495732530.4906517094
972050419568.810630341927593.75-8024.93936965812935.189369658117
982306022456.083066239327668.375-5212.29193376068603.916933760684
992356225556.208066239327557.0833333333-2000.87526709402-1994.20806623931
1002756226311.752938034227424.5-1112.747061965811250.24706196581
1012394025659.163194444427412.8333333333-1753.67013888889-1719.16319444445
1022458424957.791399572627152.2083333333-2194.41693376068-373.791399572645
1033430329785.451655982926762.20833333333023.243322649574517.54834401709
1042551729502.788194444426534.54166666672968.24652777778-3985.78819444445
1052349425046.797809829126460.6666666667-1413.86885683761-1552.79780982906
1062909526646.368322649626384.3333333333262.0349893162402448.63167735043
1073290331494.650373931626209.41666666675285.233707264961408.34962606838
1083437936113.551014957325939.510174.0510149573-1734.55101495726
1091699117515.227297008525540.1666666667-8024.93936965812-524.227297008543
1102110920106.583066239325318.875-5212.291933760681002.41693376069
1112374023345.291399572625346.1666666667-2000.87526709402394.708600427351
1122555224172.461271367525285.2083333333-1112.747061965811379.53872863248
1132175223372.538194444425126.2083333333-1753.67013888889-1620.53819444444
1142029423039.333066239325233.75-2194.41693376068-2745.33306623931
1152900928337.951655982925314.70833333333023.24332264957671.048344017097
1162550028037.746527777825069.52968.24652777778-2537.74652777778
1172416623578.422809829124992.2916666667-1413.86885683761587.577190170938
1182696025622.826655982925360.7916666667262.0349893162401337.17334401709
1193122230972.192040598325686.95833333335285.23370726496249.807959401711
1203864135974.301014957325800.2510174.05101495732666.69898504274
1211467217800.643963675225825.5833333333-8024.93936965812-3128.64396367521
1221754320552.333066239325764.625-5212.29193376068-3009.33306623931
1232545323813.99973290625814.875-2000.875267094021639.00026709402
1243268324684.752938034225797.5-1112.747061965817998.24706196582
1252244924030.246527777825783.9166666667-1753.67013888889-1581.24652777778
1262231623498.458066239325692.875-2194.41693376068-1182.45806623931
1272759528626.493322649625603.253023.24332264957-1031.49332264957
1282545128820.788194444425852.54166666672968.24652777778-3369.78819444444
1292542124453.172809829125867.0416666667-1413.86885683761967.827190170941
1302528825404.284989316225142.25262.034989316240-116.284989316238
1313256829864.775373931624579.54166666675285.233707264962703.22462606838
1323511034800.884348290624626.833333333310174.0510149573309.115651709402
1331605216762.977297008524787.9166666667-8024.93936965812-710.977297008547
1342214619729.291399572624941.5833333333-5212.291933760682416.70860042735
1352119823046.37473290625047.25-2000.87526709402-1848.37473290598
1361954324055.252938034225168-1112.74706196581-4512.25293803419
1372208423386.121527777825139.7916666667-1753.67013888889-1302.12152777777
1382381622996.041399572625190.4583333333-2194.41693376068819.958600427351
1392996128401.159989316225377.91666666673023.243322649571559.84001068377
1402677328365.871527777825397.6252968.24652777778-1592.87152777778
1412663524089.256143162425503.125-1413.868856837612545.74385683761
1422697226064.951655982925802.9166666667262.034989316240907.048344017094
1433020731385.775373931626100.54166666675285.23370726496-1178.77537393162
1443868736405.092681623926231.041666666710174.05101495732281.90731837607
1451697418230.560630341926255.5-8024.93936965812-1256.56063034188
1462169720963.99973290626176.2916666667-5212.29193376068733.000267094016
1472417924018.583066239326019.4583333333-2000.87526709402160.416933760684
1482375724790.002938034225902.75-1112.74706196581-1033.00293803419
1492501324123.829861111125877.5-1753.67013888889889.17013888889
1502401923652.62473290625847.0416666667-2194.41693376068366.375267094019
1513034528830.493322649625807.253023.243322649571514.50667735043
1522448828702.913194444425734.66666666672968.24652777778-4214.91319444445
1532515624234.922809829125648.7916666667-1413.86885683761921.077190170945
1542565026045.034989316225783262.034989316240-395.034989316242
1553092331204.525373931625919.29166666675285.23370726496-281.525373931621
1563724036132.467681623925958.416666666710174.05101495731107.53231837607
1571746617922.102297008525947.0416666667-8024.93936965812-456.102297008547
1581946320974.62473290626186.9166666667-5212.29193376068-1511.62473290598
1592435224365.791399572626366.6666666667-2000.87526709402-13.7913995726485
1602680525271.169604700926383.9166666667-1112.747061965811533.83039529914
1612523624829.413194444426583.0833333333-1753.67013888889406.586805555562
1622473524467.49973290626661.9166666667-2194.41693376068267.500267094019
1632935629524.493322649626501.253023.24332264957-168.493322649570
1643123429448.954861111126480.70833333332968.246527777781785.04513888889
1652272425172.422809829126586.2916666667-1413.86885683761-2448.42280982906
1662849626795.451655982926533.4166666667262.0349893162401700.54834401710
1673285731737.858707265026452.6255285.233707264961119.14129273505
1683719836683.217681623926509.166666666710174.0510149573514.78231837607
16913652NA26639.0833333333NANA
17022784NA26323.5NANA
17123565NANANANA
17226323NANANANA
17323779NANANANA
17427549NANANANA
17529660NANANANA
17623356NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/24/t1274692964fb6mxbqm7y2so01/1d4kh1274692923.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274692964fb6mxbqm7y2so01/1d4kh1274692923.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274692964fb6mxbqm7y2so01/2d4kh1274692923.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274692964fb6mxbqm7y2so01/2d4kh1274692923.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274692964fb6mxbqm7y2so01/35vjj1274692923.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274692964fb6mxbqm7y2so01/35vjj1274692923.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274692964fb6mxbqm7y2so01/45vjj1274692923.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274692964fb6mxbqm7y2so01/45vjj1274692923.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