| | *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, 14 Dec 2010 20:45:19 +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/14/t12923594545lz15ffe7i2xhol.htm/, Retrieved Tue, 14 Dec 2010 21:44:14 +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/14/t12923594545lz15ffe7i2xhol.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 « | 48154
57802
64781
47840
49709
26591
35263
40005
35908
30333
36287
44112
38390
48114
50736
46148
48033
21956
30600
43291
38127
33213
39636
51168
48929
62300
57657
56389
57276
23872
36577
46356
36860
34149
40059
50497
47472
48103
59723
49231
56126
21210
34865
41668
35193
33253
35704
46641
51145
51570
65540
54955
58552
20972
35681
37034
35645
33379
32747
49585
41745
48564
52518
45594
51442
25094
33702
39120
33842
29896
31481
43895
39477
53726
61465
50104
47460
26451
30306
42598
34485
29027
35489
40357
37532
43899
48572
43901
50556
18387
27534
38030
31917
26414
35306
38271
41454
52408
53536
53152
56421
21538
33625
42625
31295
33795
41227
45382
47206
46235
51378
46865
58608
21124
33591 | | Output produced by software: |
Classical Decomposition by Moving Averages | t | Observations | Fit | Trend | Seasonal | Random | 1 | 48154 | NA | NA | 1790.24305555555 | NA | 2 | 57802 | NA | NA | 9602.62847222222 | NA | 3 | 64781 | NA | NA | 14745.8836805556 | NA | 4 | 47840 | NA | NA | 8467.75347222222 | NA | 5 | 49709 | NA | NA | 11722.9930555556 | NA | 6 | 26591 | NA | NA | -19107.6006944444 | NA | 7 | 35263 | 33924.7013888889 | 42658.5833333333 | -8733.88194444445 | 1338.29861111111 | 8 | 40005 | 41557.0711805555 | 41848.0833333333 | -291.012152777779 | -1552.07118055554 | 9 | 35908 | 33904.8888888889 | 40859.2083333333 | -6954.31944444445 | 2003.11111111112 | 10 | 30333 | 30212.3524305556 | 40203.5 | -9991.14756944445 | 120.647569444445 | 11 | 36287 | 34828.5815972222 | 40063.1666666667 | -5234.58506944444 | 1458.41840277778 | 12 | 44112 | 43783.2534722222 | 39800.2083333333 | 3983.04513888889 | 328.746527777766 | 13 | 38390 | 41203.0347222222 | 39412.7916666667 | 1790.24305555555 | -2813.03472222222 | 14 | 48114 | 48958.0451388889 | 39355.4166666667 | 9602.62847222222 | -844.04513888889 | 15 | 50736 | 54330.6753472222 | 39584.7916666667 | 14745.8836805556 | -3594.67534722222 | 16 | 46148 | 48265.0034722222 | 39797.25 | 8467.75347222222 | -2117.00347222223 | 17 | 48033 | 51779.7847222222 | 40056.7916666667 | 11722.9930555556 | -3746.78472222223 | 18 | 21956 | 21382.7326388889 | 40490.3333333333 | -19107.6006944444 | 573.267361111102 | 19 | 30600 | 32489.5763888889 | 41223.4583333333 | -8733.88194444445 | -1889.57638888889 | 20 | 43291 | 41962.6545138889 | 42253.6666666667 | -291.012152777779 | 1328.34548611112 | 21 | 38127 | 36178.8055555555 | 43133.125 | -6954.31944444445 | 1948.19444444445 | 22 | 33213 | 33857.0607638889 | 43848.2083333333 | -9991.14756944445 | -644.06076388889 | 23 | 39636 | 39425.4565972222 | 44660.0416666667 | -5234.58506944444 | 210.543402777774 | 24 | 51168 | 49108.0451388889 | 45125 | 3983.04513888889 | 2059.95486111111 | 25 | 48929 | 47244.1180555556 | 45453.875 | 1790.24305555555 | 1684.88194444444 | 26 | 62300 | 55433.2534722222 | 45830.625 | 9602.62847222222 | 6866.74652777779 | 27 | 57657 | 60651.4253472222 | 45905.5416666667 | 14745.8836805556 | -2994.42534722222 | 28 | 56389 | 54359.5034722222 | 45891.75 | 8467.75347222222 | 2029.49652777777 | 29 | 57276 | 57671.3680555555 | 45948.375 | 11722.9930555556 | -395.368055555547 | 30 | 23872 | 26830.4409722222 | 45938.0416666667 | -19107.6006944444 | -2958.44097222222 | 31 | 36577 | 37115.4930555556 | 45849.375 | -8733.88194444445 | -538.493055555555 | 32 | 46356 | 44906.1128472222 | 45197.125 | -291.012152777779 | 1449.88715277778 | 33 | 36860 | 37737.3472222222 | 44691.6666666667 | -6954.31944444445 | -877.347222222226 | 34 | 34149 | 34488.3524305556 | 44479.5 | -9991.14756944445 | -339.352430555555 | 35 | 40059 | 38898.7482638889 | 44133.3333333333 | -5234.58506944444 | 1160.25173611111 | 36 | 50497 | 47957.5451388889 | 43974.5 | 3983.04513888889 | 2539.45486111112 | 37 | 47472 | 45582.4930555555 | 43792.25 | 1790.24305555555 | 1889.50694444445 | 38 | 48103 | 53128.2118055555 | 43525.5833333333 | 9602.62847222222 | -5025.21180555555 | 39 | 59723 | 58006.6753472222 | 43260.7916666667 | 14745.8836805556 | 1716.32465277778 | 40 | 49231 | 51621.7534722222 | 43154 | 8467.75347222222 | -2390.75347222222 | 41 | 56126 | 54658.2013888889 | 42935.2083333333 | 11722.9930555556 | 1467.79861111111 | 42 | 21210 | 23485.4826388889 | 42593.0833333333 | -19107.6006944444 | -2275.4826388889 | 43 | 34865 | 33851.5763888889 | 42585.4583333333 | -8733.88194444445 | 1013.42361111111 | 44 | 41668 | 42591.9461805555 | 42882.9583333333 | -291.012152777779 | -923.946180555547 | 45 | 35193 | 36315.4722222222 | 43269.7916666667 | -6954.31944444445 | -1122.47222222223 | 46 | 33253 | 33759.5190972222 | 43750.6666666667 | -9991.14756944445 | -506.519097222212 | 47 | 35704 | 38855.6649305555 | 44090.25 | -5234.58506944444 | -3151.66493055555 | 48 | 46641 | 48164.4618055556 | 44181.4166666667 | 3983.04513888889 | -1523.46180555555 | 49 | 51145 | 45995.7430555556 | 44205.5 | 1790.24305555555 | 5149.25694444444 | 50 | 51570 | 53649.0451388889 | 44046.4166666667 | 9602.62847222222 | -2079.04513888888 | 51 | 65540 | 58618.0503472222 | 43872.1666666667 | 14745.8836805556 | 6921.94965277777 | 52 | 54955 | 52364.0034722222 | 43896.25 | 8467.75347222222 | 2590.99652777777 | 53 | 58552 | 55501.2847222222 | 43778.2916666667 | 11722.9930555556 | 3050.71527777778 | 54 | 20972 | 24670.1493055556 | 43777.75 | -19107.6006944444 | -3698.14930555556 | 55 | 35681 | 34774.8680555555 | 43508.75 | -8733.88194444445 | 906.131944444453 | 56 | 37034 | 42700.8211805556 | 42991.8333333333 | -291.012152777779 | -5666.82118055555 | 57 | 35645 | 35369.6805555556 | 42324 | -6954.31944444445 | 275.319444444438 | 58 | 33379 | 31400.2274305556 | 41391.375 | -9991.14756944445 | 1978.77256944445 | 59 | 32747 | 35470.4982638889 | 40705.0833333333 | -5234.58506944444 | -2723.49826388888 | 60 | 49585 | 44563.6284722222 | 40580.5833333333 | 3983.04513888889 | 5021.37152777778 | 61 | 41745 | 42460.1180555556 | 40669.875 | 1790.24305555555 | -715.118055555555 | 62 | 48564 | 50276.9618055556 | 40674.3333333333 | 9602.62847222222 | -1712.96180555555 | 63 | 52518 | 55432.0086805556 | 40686.125 | 14745.8836805556 | -2914.00868055555 | 64 | 45594 | 48933.6284722222 | 40465.875 | 8467.75347222222 | -3339.62847222222 | 65 | 51442 | 51990.9930555556 | 40268 | 11722.9930555556 | -548.993055555555 | 66 | 25094 | 20870.5659722222 | 39978.1666666667 | -19107.6006944444 | 4223.43402777777 | 67 | 33702 | 30912.7013888889 | 39646.5833333333 | -8733.88194444445 | 2789.29861111112 | 68 | 39120 | 39476.1545138889 | 39767.1666666667 | -291.012152777779 | -356.154513888891 | 69 | 33842 | 33400.7222222222 | 40355.0416666667 | -6954.31944444445 | 441.277777777781 | 70 | 29896 | 30924.6024305556 | 40915.75 | -9991.14756944445 | -1028.60243055555 | 71 | 31481 | 35703.1649305556 | 40937.75 | -5234.58506944444 | -4222.16493055555 | 72 | 43895 | 44811.4201388889 | 40828.375 | 3983.04513888889 | -916.42013888889 | 73 | 39477 | 42533.6597222222 | 40743.4166666667 | 1790.24305555555 | -3056.65972222222 | 74 | 53726 | 50349.4618055556 | 40746.8333333333 | 9602.62847222222 | 3376.53819444445 | 75 | 61465 | 55664.4253472222 | 40918.5416666667 | 14745.8836805556 | 5800.57465277778 | 76 | 50104 | 49376.8784722222 | 40909.125 | 8467.75347222222 | 727.121527777781 | 77 | 47460 | 52762.9097222222 | 41039.9166666667 | 11722.9930555556 | -5302.90972222222 | 78 | 26451 | 21951.8993055556 | 41059.5 | -19107.6006944444 | 4499.10069444444 | 79 | 30306 | 32097.1597222222 | 40831.0416666667 | -8733.88194444445 | -1791.15972222222 | 80 | 42598 | 40049.5295138889 | 40340.5416666667 | -291.012152777779 | 2548.47048611111 | 81 | 34485 | 32439.5555555555 | 39393.875 | -6954.31944444445 | 2045.44444444445 | 82 | 29027 | 28607.0607638889 | 38598.2083333333 | -9991.14756944445 | 419.939236111109 | 83 | 35489 | 33234.1649305556 | 38468.75 | -5234.58506944444 | 2254.83506944445 | 84 | 40357 | 42244.7951388889 | 38261.75 | 3983.04513888889 | -1887.79513888889 | 85 | 37532 | 39600.4930555556 | 37810.25 | 1790.24305555555 | -2068.49305555556 | 86 | 43899 | 47107.0451388889 | 37504.4166666667 | 9602.62847222222 | -3208.04513888888 | 87 | 48572 | 51952.9670138889 | 37207.0833333333 | 14745.8836805556 | -3380.96701388888 | 88 | 43901 | 45458.9618055556 | 36991.2083333333 | 8467.75347222222 | -1557.96180555556 | 89 | 50556 | 48597.7013888889 | 36874.7083333333 | 11722.9930555556 | 1958.29861111111 | 90 | 18387 | 17672.5659722222 | 36780.1666666667 | -19107.6006944444 | 714.434027777774 | 91 | 27534 | 28122.7847222222 | 36856.6666666667 | -8733.88194444445 | -588.784722222226 | 92 | 38030 | 37083.6128472222 | 37374.625 | -291.012152777779 | 946.387152777781 | 93 | 31917 | 30981.6805555556 | 37936 | -6954.31944444445 | 935.319444444445 | 94 | 26414 | 28537.1440972222 | 38528.2916666667 | -9991.14756944445 | -2123.14409722223 | 95 | 35306 | 33923.5399305556 | 39158.125 | -5234.58506944444 | 1382.46006944445 | 96 | 38271 | 43516.8368055556 | 39533.7916666667 | 3983.04513888889 | -5245.83680555555 | 97 | 41454 | 41709.1180555555 | 39918.875 | 1790.24305555555 | -255.118055555547 | 98 | 52408 | 49966.7534722222 | 40364.125 | 9602.62847222222 | 2441.24652777779 | 99 | 53536 | 55275.5503472222 | 40529.6666666667 | 14745.8836805556 | -1739.55034722221 | 100 | 53152 | 49279.0451388889 | 40811.2916666667 | 8467.75347222222 | 3872.95486111112 | 101 | 56421 | 53088.5347222222 | 41365.5416666667 | 11722.9930555556 | 3332.46527777778 | 102 | 21538 | 22800.9409722222 | 41908.5416666667 | -19107.6006944444 | -1262.94097222223 | 103 | 33625 | 33710.6180555556 | 42444.5 | -8733.88194444445 | -85.6180555555547 | 104 | 42625 | 42135.9461805555 | 42426.9583333333 | -291.012152777779 | 489.053819444453 | 105 | 31295 | 35125.5138888889 | 42079.8333333333 | -6954.31944444445 | -3830.51388888888 | 106 | 33795 | 31736.8107638889 | 41727.9583333333 | -9991.14756944445 | 2058.18923611112 | 107 | 41227 | 36322.5399305556 | 41557.125 | -5234.58506944444 | 4904.46006944445 | 108 | 45382 | 45614.0451388889 | 41631 | 3983.04513888889 | -232.045138888891 | 109 | 47206 | NA | 41612.3333333333 | NA | NA | 110 | 46235 | NA | NA | NA | NA | 111 | 51378 | NA | NA | NA | NA | 112 | 46865 | NA | NA | NA | NA | 113 | 58608 | NA | NA | NA | NA | 114 | 21124 | NA | NA | NA | NA | 115 | 33591 | NA | NA | NA | NA |
| | Charts produced by software: | | http://www.freestatistics.org/blog/date/2010/Dec/14/t12923594545lz15ffe7i2xhol/17aye1292359515.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/14/t12923594545lz15ffe7i2xhol/17aye1292359515.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Dec/14/t12923594545lz15ffe7i2xhol/27aye1292359515.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/14/t12923594545lz15ffe7i2xhol/27aye1292359515.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Dec/14/t12923594545lz15ffe7i2xhol/301fh1292359515.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/14/t12923594545lz15ffe7i2xhol/301fh1292359515.ps (open in new window) |
| http://www.freestatistics.org/blog/date/2010/Dec/14/t12923594545lz15ffe7i2xhol/401fh1292359515.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/14/t12923594545lz15ffe7i2xhol/401fh1292359515.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
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
|