Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationTue, 15 Dec 2015 12:49:29 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2015/Dec/15/t1450184215kselqsb19vm42aa.htm/, Retrieved Fri, 24 May 2024 08:07:07 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=286478, Retrieved Fri, 24 May 2024 08:07:07 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact80
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [Classical decompo...] [2015-12-15 12:49:29] [3d80f64e234173ed9202e2943c9a46ef] [Current]
Feedback Forum

Post a new message
Dataseries X:
1554
1994
1961
1716
1425
1664
1524
1342
1449
1622
1530
1385
1117
1253
1088
1167
1344
1745
1559
1395
1521
1890
1531
1635
1269
1612
1343
1634
1571
1881
1528
1960
1676
2166
1663
2067
1801
2347
1938
1980
2097
2579
2191
2449
2208
2353
2151
2307
1826
2414
2029
2091
1988
2484
2321
2614




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 2 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=286478&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=286478&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286478&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11554NANA-143.63NA
21994NANA207.197NA
319611720.781790.12-69.3413240.216
417161738.521732.755.77404-22.524
514251493.251636.88-143.63-68.2452
616641742.71535.5207.197-78.6971
715241422.411491.75-69.3413101.591
813421495.271489.55.77404-153.274
914491341.371485-143.63107.63
1016221698.321491.12207.197-76.3221
1115301385.661455-69.3413144.341
1213851373.151367.385.7740411.851
1311171122.371266-143.63-5.37019
1412531390.71183.5207.197-137.697
1510881115.281184.62-69.3413-27.2837
1611671280.271274.55.77404-113.274
1713441251.251394.88-143.6392.7548
1817451689.451482.25207.19755.5529
1915591463.531532.88-69.341395.4663
2013951578.91573.125.77404-183.899
2115211444.121587.75-143.6376.8798
2218901821.451614.25207.19768.5529
2315311543.411612.75-69.3413-12.4087
2416351552.271546.55.7740482.726
2512691344.621488.25-143.63-75.6202
2616121671.821464.62207.197-59.8221
2713431432.911502.25-69.3413-89.9087
2816341579.41573.625.7740454.601
2915711486.751630.38-143.6384.2548
3018811901.451694.25207.197-20.4471
3115281678.781748.12-69.3413-150.784
3219601802.651796.885.77404157.351
3316761705.751849.38-143.63-29.7452
3421662086.821879.62207.19779.1779
3516631839.281908.62-69.3413-176.284
3620671952.651946.885.77404114.351
3718011860.252003.88-143.63-59.2452
3823472234.572027.38207.197112.428
3919381984.162053.5-69.3413-46.1587
4019802125.272119.55.77404-145.274
4120972036.52180.12-143.6360.5048
4225792477.572270.38207.197101.428
4321912273.532342.88-69.3413-82.5337
4424492334.272328.55.77404114.726
4522082151.622295.25-143.6356.3798
4623532479.72272.5207.197-126.697
4721512137.662207-69.341313.3413
4823072172.652166.885.77404134.351
4918262015.622159.25-143.63-189.62
5024142324.22117207.19789.8029
5120292040.912110.25-69.3413-11.9087
5220912145.022139.255.77404-54.024
5319882040.872184.5-143.63-52.8702
5424842493.572286.38207.197-9.57212
552321NANA-69.3413NA
562614NANA5.77404NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 1554 & NA & NA & -143.63 & NA \tabularnewline
2 & 1994 & NA & NA & 207.197 & NA \tabularnewline
3 & 1961 & 1720.78 & 1790.12 & -69.3413 & 240.216 \tabularnewline
4 & 1716 & 1738.52 & 1732.75 & 5.77404 & -22.524 \tabularnewline
5 & 1425 & 1493.25 & 1636.88 & -143.63 & -68.2452 \tabularnewline
6 & 1664 & 1742.7 & 1535.5 & 207.197 & -78.6971 \tabularnewline
7 & 1524 & 1422.41 & 1491.75 & -69.3413 & 101.591 \tabularnewline
8 & 1342 & 1495.27 & 1489.5 & 5.77404 & -153.274 \tabularnewline
9 & 1449 & 1341.37 & 1485 & -143.63 & 107.63 \tabularnewline
10 & 1622 & 1698.32 & 1491.12 & 207.197 & -76.3221 \tabularnewline
11 & 1530 & 1385.66 & 1455 & -69.3413 & 144.341 \tabularnewline
12 & 1385 & 1373.15 & 1367.38 & 5.77404 & 11.851 \tabularnewline
13 & 1117 & 1122.37 & 1266 & -143.63 & -5.37019 \tabularnewline
14 & 1253 & 1390.7 & 1183.5 & 207.197 & -137.697 \tabularnewline
15 & 1088 & 1115.28 & 1184.62 & -69.3413 & -27.2837 \tabularnewline
16 & 1167 & 1280.27 & 1274.5 & 5.77404 & -113.274 \tabularnewline
17 & 1344 & 1251.25 & 1394.88 & -143.63 & 92.7548 \tabularnewline
18 & 1745 & 1689.45 & 1482.25 & 207.197 & 55.5529 \tabularnewline
19 & 1559 & 1463.53 & 1532.88 & -69.3413 & 95.4663 \tabularnewline
20 & 1395 & 1578.9 & 1573.12 & 5.77404 & -183.899 \tabularnewline
21 & 1521 & 1444.12 & 1587.75 & -143.63 & 76.8798 \tabularnewline
22 & 1890 & 1821.45 & 1614.25 & 207.197 & 68.5529 \tabularnewline
23 & 1531 & 1543.41 & 1612.75 & -69.3413 & -12.4087 \tabularnewline
24 & 1635 & 1552.27 & 1546.5 & 5.77404 & 82.726 \tabularnewline
25 & 1269 & 1344.62 & 1488.25 & -143.63 & -75.6202 \tabularnewline
26 & 1612 & 1671.82 & 1464.62 & 207.197 & -59.8221 \tabularnewline
27 & 1343 & 1432.91 & 1502.25 & -69.3413 & -89.9087 \tabularnewline
28 & 1634 & 1579.4 & 1573.62 & 5.77404 & 54.601 \tabularnewline
29 & 1571 & 1486.75 & 1630.38 & -143.63 & 84.2548 \tabularnewline
30 & 1881 & 1901.45 & 1694.25 & 207.197 & -20.4471 \tabularnewline
31 & 1528 & 1678.78 & 1748.12 & -69.3413 & -150.784 \tabularnewline
32 & 1960 & 1802.65 & 1796.88 & 5.77404 & 157.351 \tabularnewline
33 & 1676 & 1705.75 & 1849.38 & -143.63 & -29.7452 \tabularnewline
34 & 2166 & 2086.82 & 1879.62 & 207.197 & 79.1779 \tabularnewline
35 & 1663 & 1839.28 & 1908.62 & -69.3413 & -176.284 \tabularnewline
36 & 2067 & 1952.65 & 1946.88 & 5.77404 & 114.351 \tabularnewline
37 & 1801 & 1860.25 & 2003.88 & -143.63 & -59.2452 \tabularnewline
38 & 2347 & 2234.57 & 2027.38 & 207.197 & 112.428 \tabularnewline
39 & 1938 & 1984.16 & 2053.5 & -69.3413 & -46.1587 \tabularnewline
40 & 1980 & 2125.27 & 2119.5 & 5.77404 & -145.274 \tabularnewline
41 & 2097 & 2036.5 & 2180.12 & -143.63 & 60.5048 \tabularnewline
42 & 2579 & 2477.57 & 2270.38 & 207.197 & 101.428 \tabularnewline
43 & 2191 & 2273.53 & 2342.88 & -69.3413 & -82.5337 \tabularnewline
44 & 2449 & 2334.27 & 2328.5 & 5.77404 & 114.726 \tabularnewline
45 & 2208 & 2151.62 & 2295.25 & -143.63 & 56.3798 \tabularnewline
46 & 2353 & 2479.7 & 2272.5 & 207.197 & -126.697 \tabularnewline
47 & 2151 & 2137.66 & 2207 & -69.3413 & 13.3413 \tabularnewline
48 & 2307 & 2172.65 & 2166.88 & 5.77404 & 134.351 \tabularnewline
49 & 1826 & 2015.62 & 2159.25 & -143.63 & -189.62 \tabularnewline
50 & 2414 & 2324.2 & 2117 & 207.197 & 89.8029 \tabularnewline
51 & 2029 & 2040.91 & 2110.25 & -69.3413 & -11.9087 \tabularnewline
52 & 2091 & 2145.02 & 2139.25 & 5.77404 & -54.024 \tabularnewline
53 & 1988 & 2040.87 & 2184.5 & -143.63 & -52.8702 \tabularnewline
54 & 2484 & 2493.57 & 2286.38 & 207.197 & -9.57212 \tabularnewline
55 & 2321 & NA & NA & -69.3413 & NA \tabularnewline
56 & 2614 & NA & NA & 5.77404 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=286478&T=1

[TABLE]
[ROW][C]Classical Decomposition by Moving Averages[/C][/ROW]
[ROW][C]t[/C][C]Observations[/C][C]Fit[/C][C]Trend[/C][C]Seasonal[/C][C]Random[/C][/ROW]
[ROW][C]1[/C][C]1554[/C][C]NA[/C][C]NA[/C][C]-143.63[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]1994[/C][C]NA[/C][C]NA[/C][C]207.197[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]1961[/C][C]1720.78[/C][C]1790.12[/C][C]-69.3413[/C][C]240.216[/C][/ROW]
[ROW][C]4[/C][C]1716[/C][C]1738.52[/C][C]1732.75[/C][C]5.77404[/C][C]-22.524[/C][/ROW]
[ROW][C]5[/C][C]1425[/C][C]1493.25[/C][C]1636.88[/C][C]-143.63[/C][C]-68.2452[/C][/ROW]
[ROW][C]6[/C][C]1664[/C][C]1742.7[/C][C]1535.5[/C][C]207.197[/C][C]-78.6971[/C][/ROW]
[ROW][C]7[/C][C]1524[/C][C]1422.41[/C][C]1491.75[/C][C]-69.3413[/C][C]101.591[/C][/ROW]
[ROW][C]8[/C][C]1342[/C][C]1495.27[/C][C]1489.5[/C][C]5.77404[/C][C]-153.274[/C][/ROW]
[ROW][C]9[/C][C]1449[/C][C]1341.37[/C][C]1485[/C][C]-143.63[/C][C]107.63[/C][/ROW]
[ROW][C]10[/C][C]1622[/C][C]1698.32[/C][C]1491.12[/C][C]207.197[/C][C]-76.3221[/C][/ROW]
[ROW][C]11[/C][C]1530[/C][C]1385.66[/C][C]1455[/C][C]-69.3413[/C][C]144.341[/C][/ROW]
[ROW][C]12[/C][C]1385[/C][C]1373.15[/C][C]1367.38[/C][C]5.77404[/C][C]11.851[/C][/ROW]
[ROW][C]13[/C][C]1117[/C][C]1122.37[/C][C]1266[/C][C]-143.63[/C][C]-5.37019[/C][/ROW]
[ROW][C]14[/C][C]1253[/C][C]1390.7[/C][C]1183.5[/C][C]207.197[/C][C]-137.697[/C][/ROW]
[ROW][C]15[/C][C]1088[/C][C]1115.28[/C][C]1184.62[/C][C]-69.3413[/C][C]-27.2837[/C][/ROW]
[ROW][C]16[/C][C]1167[/C][C]1280.27[/C][C]1274.5[/C][C]5.77404[/C][C]-113.274[/C][/ROW]
[ROW][C]17[/C][C]1344[/C][C]1251.25[/C][C]1394.88[/C][C]-143.63[/C][C]92.7548[/C][/ROW]
[ROW][C]18[/C][C]1745[/C][C]1689.45[/C][C]1482.25[/C][C]207.197[/C][C]55.5529[/C][/ROW]
[ROW][C]19[/C][C]1559[/C][C]1463.53[/C][C]1532.88[/C][C]-69.3413[/C][C]95.4663[/C][/ROW]
[ROW][C]20[/C][C]1395[/C][C]1578.9[/C][C]1573.12[/C][C]5.77404[/C][C]-183.899[/C][/ROW]
[ROW][C]21[/C][C]1521[/C][C]1444.12[/C][C]1587.75[/C][C]-143.63[/C][C]76.8798[/C][/ROW]
[ROW][C]22[/C][C]1890[/C][C]1821.45[/C][C]1614.25[/C][C]207.197[/C][C]68.5529[/C][/ROW]
[ROW][C]23[/C][C]1531[/C][C]1543.41[/C][C]1612.75[/C][C]-69.3413[/C][C]-12.4087[/C][/ROW]
[ROW][C]24[/C][C]1635[/C][C]1552.27[/C][C]1546.5[/C][C]5.77404[/C][C]82.726[/C][/ROW]
[ROW][C]25[/C][C]1269[/C][C]1344.62[/C][C]1488.25[/C][C]-143.63[/C][C]-75.6202[/C][/ROW]
[ROW][C]26[/C][C]1612[/C][C]1671.82[/C][C]1464.62[/C][C]207.197[/C][C]-59.8221[/C][/ROW]
[ROW][C]27[/C][C]1343[/C][C]1432.91[/C][C]1502.25[/C][C]-69.3413[/C][C]-89.9087[/C][/ROW]
[ROW][C]28[/C][C]1634[/C][C]1579.4[/C][C]1573.62[/C][C]5.77404[/C][C]54.601[/C][/ROW]
[ROW][C]29[/C][C]1571[/C][C]1486.75[/C][C]1630.38[/C][C]-143.63[/C][C]84.2548[/C][/ROW]
[ROW][C]30[/C][C]1881[/C][C]1901.45[/C][C]1694.25[/C][C]207.197[/C][C]-20.4471[/C][/ROW]
[ROW][C]31[/C][C]1528[/C][C]1678.78[/C][C]1748.12[/C][C]-69.3413[/C][C]-150.784[/C][/ROW]
[ROW][C]32[/C][C]1960[/C][C]1802.65[/C][C]1796.88[/C][C]5.77404[/C][C]157.351[/C][/ROW]
[ROW][C]33[/C][C]1676[/C][C]1705.75[/C][C]1849.38[/C][C]-143.63[/C][C]-29.7452[/C][/ROW]
[ROW][C]34[/C][C]2166[/C][C]2086.82[/C][C]1879.62[/C][C]207.197[/C][C]79.1779[/C][/ROW]
[ROW][C]35[/C][C]1663[/C][C]1839.28[/C][C]1908.62[/C][C]-69.3413[/C][C]-176.284[/C][/ROW]
[ROW][C]36[/C][C]2067[/C][C]1952.65[/C][C]1946.88[/C][C]5.77404[/C][C]114.351[/C][/ROW]
[ROW][C]37[/C][C]1801[/C][C]1860.25[/C][C]2003.88[/C][C]-143.63[/C][C]-59.2452[/C][/ROW]
[ROW][C]38[/C][C]2347[/C][C]2234.57[/C][C]2027.38[/C][C]207.197[/C][C]112.428[/C][/ROW]
[ROW][C]39[/C][C]1938[/C][C]1984.16[/C][C]2053.5[/C][C]-69.3413[/C][C]-46.1587[/C][/ROW]
[ROW][C]40[/C][C]1980[/C][C]2125.27[/C][C]2119.5[/C][C]5.77404[/C][C]-145.274[/C][/ROW]
[ROW][C]41[/C][C]2097[/C][C]2036.5[/C][C]2180.12[/C][C]-143.63[/C][C]60.5048[/C][/ROW]
[ROW][C]42[/C][C]2579[/C][C]2477.57[/C][C]2270.38[/C][C]207.197[/C][C]101.428[/C][/ROW]
[ROW][C]43[/C][C]2191[/C][C]2273.53[/C][C]2342.88[/C][C]-69.3413[/C][C]-82.5337[/C][/ROW]
[ROW][C]44[/C][C]2449[/C][C]2334.27[/C][C]2328.5[/C][C]5.77404[/C][C]114.726[/C][/ROW]
[ROW][C]45[/C][C]2208[/C][C]2151.62[/C][C]2295.25[/C][C]-143.63[/C][C]56.3798[/C][/ROW]
[ROW][C]46[/C][C]2353[/C][C]2479.7[/C][C]2272.5[/C][C]207.197[/C][C]-126.697[/C][/ROW]
[ROW][C]47[/C][C]2151[/C][C]2137.66[/C][C]2207[/C][C]-69.3413[/C][C]13.3413[/C][/ROW]
[ROW][C]48[/C][C]2307[/C][C]2172.65[/C][C]2166.88[/C][C]5.77404[/C][C]134.351[/C][/ROW]
[ROW][C]49[/C][C]1826[/C][C]2015.62[/C][C]2159.25[/C][C]-143.63[/C][C]-189.62[/C][/ROW]
[ROW][C]50[/C][C]2414[/C][C]2324.2[/C][C]2117[/C][C]207.197[/C][C]89.8029[/C][/ROW]
[ROW][C]51[/C][C]2029[/C][C]2040.91[/C][C]2110.25[/C][C]-69.3413[/C][C]-11.9087[/C][/ROW]
[ROW][C]52[/C][C]2091[/C][C]2145.02[/C][C]2139.25[/C][C]5.77404[/C][C]-54.024[/C][/ROW]
[ROW][C]53[/C][C]1988[/C][C]2040.87[/C][C]2184.5[/C][C]-143.63[/C][C]-52.8702[/C][/ROW]
[ROW][C]54[/C][C]2484[/C][C]2493.57[/C][C]2286.38[/C][C]207.197[/C][C]-9.57212[/C][/ROW]
[ROW][C]55[/C][C]2321[/C][C]NA[/C][C]NA[/C][C]-69.3413[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]2614[/C][C]NA[/C][C]NA[/C][C]5.77404[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=286478&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286478&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11554NANA-143.63NA
21994NANA207.197NA
319611720.781790.12-69.3413240.216
417161738.521732.755.77404-22.524
514251493.251636.88-143.63-68.2452
616641742.71535.5207.197-78.6971
715241422.411491.75-69.3413101.591
813421495.271489.55.77404-153.274
914491341.371485-143.63107.63
1016221698.321491.12207.197-76.3221
1115301385.661455-69.3413144.341
1213851373.151367.385.7740411.851
1311171122.371266-143.63-5.37019
1412531390.71183.5207.197-137.697
1510881115.281184.62-69.3413-27.2837
1611671280.271274.55.77404-113.274
1713441251.251394.88-143.6392.7548
1817451689.451482.25207.19755.5529
1915591463.531532.88-69.341395.4663
2013951578.91573.125.77404-183.899
2115211444.121587.75-143.6376.8798
2218901821.451614.25207.19768.5529
2315311543.411612.75-69.3413-12.4087
2416351552.271546.55.7740482.726
2512691344.621488.25-143.63-75.6202
2616121671.821464.62207.197-59.8221
2713431432.911502.25-69.3413-89.9087
2816341579.41573.625.7740454.601
2915711486.751630.38-143.6384.2548
3018811901.451694.25207.197-20.4471
3115281678.781748.12-69.3413-150.784
3219601802.651796.885.77404157.351
3316761705.751849.38-143.63-29.7452
3421662086.821879.62207.19779.1779
3516631839.281908.62-69.3413-176.284
3620671952.651946.885.77404114.351
3718011860.252003.88-143.63-59.2452
3823472234.572027.38207.197112.428
3919381984.162053.5-69.3413-46.1587
4019802125.272119.55.77404-145.274
4120972036.52180.12-143.6360.5048
4225792477.572270.38207.197101.428
4321912273.532342.88-69.3413-82.5337
4424492334.272328.55.77404114.726
4522082151.622295.25-143.6356.3798
4623532479.72272.5207.197-126.697
4721512137.662207-69.341313.3413
4823072172.652166.885.77404134.351
4918262015.622159.25-143.63-189.62
5024142324.22117207.19789.8029
5120292040.912110.25-69.3413-11.9087
5220912145.022139.255.77404-54.024
5319882040.872184.5-143.63-52.8702
5424842493.572286.38207.197-9.57212
552321NANA-69.3413NA
562614NANA5.77404NA



Parameters (Session):
par1 = additive ; par2 = 4 ;
Parameters (R input):
par1 = additive ; par2 = 4 ;
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,signif(m$trend[i]+m$seasonal[i],6)) else a<-table.element(a,signif(m$trend[i]*m$seasonal[i],6))
a<-table.element(a,signif(m$trend[i],6))
a<-table.element(a,signif(m$seasonal[i],6))
a<-table.element(a,signif(m$random[i],6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')