Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationTue, 26 Apr 2016 12:27:15 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2016/Apr/26/t146167006939l3rsw59fn9auf.htm/, Retrieved Fri, 03 May 2024 20:25:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=294856, Retrieved Fri, 03 May 2024 20:25:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact115
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Classical Decomposition] [CPI Wijnen - Mult...] [2016-04-26 11:27:15] [25a5f245cb671e152cfd8b6d35402e87] [Current]
Feedback Forum

Post a new message
Dataseries X:
110.27
110.91
110.27
109.41
111.47
110.77
110.83
110.52
110.44
109.99
110.55
109.99
111.2
111.81
110.36
111.24
112.6
111.75
112.49
111.94
113.22
112.85
114.37
113.68
118
118.27
119.2
117.98
117.59
117.41
118.31
118.4
117.92
118.94
118.81
117.44
120.21
119.74
118.79
118.19
119.16
118.88
119.59
119.44
119.84
119.31
118.15
118.23
119.89
118.83
118.95
119.86
119.07
119.52
119.92
119.68
119.81
120.09
119.98
118.96




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Maurice George Kendall' @ kendall.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 & 'Sir Maurice George Kendall' @ kendall.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=294856&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]'Sir Maurice George Kendall' @ kendall.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=294856&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=294856&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'Sir Maurice George Kendall' @ kendall.wessa.net







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1110.27NANA1.00968NA
2110.91NANA1.00676NA
3110.27NANA1.00206NA
4109.41NANA1.00031NA
5111.47NANA1.00114NA
6110.77NANA0.997561NA
7110.83110.692110.491.001831.00124
8110.52110.365110.5670.9981761.0014
9110.44110.512110.6080.9991290.999353
10109.99110.312110.6880.9966080.997077
11110.55110.462110.8110.996851.0008
12109.99109.779110.8990.9899021.00192
13111.2112.084111.0091.009680.992116
14111.81111.888111.1371.006760.9993
15110.36111.542111.3121.002060.989406
16111.24111.582111.5481.000310.996933
17112.6111.954111.8261.001141.00577
18111.75111.865112.1390.9975610.99897
19112.49112.781112.5761.001830.997416
20111.94112.922113.1280.9981760.991304
21113.22113.667113.7660.9991290.99607
22112.85114.027114.4150.9966080.989679
23114.37114.542114.9040.996850.9985
24113.68114.183115.3480.9899020.995597
25118116.947115.8261.009681.009
26118.27117.123116.3381.006761.00979
27119.2117.043116.8021.002061.01843
28117.98117.289117.2521.000311.0059
29117.59117.825117.6911.001140.998002
30117.41117.745118.0320.9975610.997158
31118.31118.497118.2811.001830.998419
32118.4118.219118.4350.9981761.00153
33117.92118.376118.4790.9991290.996152
34118.94118.069118.470.9966081.00738
35118.81118.171118.5450.996851.00541
36117.44117.473118.6710.9899020.99972
37120.21119.936118.7861.009681.00229
38119.74119.686118.8821.006761.00045
39118.79119.251119.0061.002060.996136
40118.19119.138119.1011.000310.99204
41119.16119.225119.0891.001140.999452
42118.88118.804119.0950.9975611.00064
43119.59119.332119.1141.001831.00216
44119.44118.846119.0630.9981761.005
45119.84118.928119.0320.9991291.00767
46119.31118.704119.1080.9966081.00511
47118.15118.798119.1740.996850.994543
48118.23117.993119.1970.9899021.00201
49119.89120.391119.2371.009680.995836
50118.83120.067119.2611.006760.989701
51118.95119.515119.271.002060.995272
52119.86119.338119.3011.000311.00437
53119.07119.546119.411.001140.996017
54119.52119.225119.5160.9975611.00248
55119.92NANA1.00183NA
56119.68NANA0.998176NA
57119.81NANA0.999129NA
58120.09NANA0.996608NA
59119.98NANA0.99685NA
60118.96NANA0.989902NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 110.27 & NA & NA & 1.00968 & NA \tabularnewline
2 & 110.91 & NA & NA & 1.00676 & NA \tabularnewline
3 & 110.27 & NA & NA & 1.00206 & NA \tabularnewline
4 & 109.41 & NA & NA & 1.00031 & NA \tabularnewline
5 & 111.47 & NA & NA & 1.00114 & NA \tabularnewline
6 & 110.77 & NA & NA & 0.997561 & NA \tabularnewline
7 & 110.83 & 110.692 & 110.49 & 1.00183 & 1.00124 \tabularnewline
8 & 110.52 & 110.365 & 110.567 & 0.998176 & 1.0014 \tabularnewline
9 & 110.44 & 110.512 & 110.608 & 0.999129 & 0.999353 \tabularnewline
10 & 109.99 & 110.312 & 110.688 & 0.996608 & 0.997077 \tabularnewline
11 & 110.55 & 110.462 & 110.811 & 0.99685 & 1.0008 \tabularnewline
12 & 109.99 & 109.779 & 110.899 & 0.989902 & 1.00192 \tabularnewline
13 & 111.2 & 112.084 & 111.009 & 1.00968 & 0.992116 \tabularnewline
14 & 111.81 & 111.888 & 111.137 & 1.00676 & 0.9993 \tabularnewline
15 & 110.36 & 111.542 & 111.312 & 1.00206 & 0.989406 \tabularnewline
16 & 111.24 & 111.582 & 111.548 & 1.00031 & 0.996933 \tabularnewline
17 & 112.6 & 111.954 & 111.826 & 1.00114 & 1.00577 \tabularnewline
18 & 111.75 & 111.865 & 112.139 & 0.997561 & 0.99897 \tabularnewline
19 & 112.49 & 112.781 & 112.576 & 1.00183 & 0.997416 \tabularnewline
20 & 111.94 & 112.922 & 113.128 & 0.998176 & 0.991304 \tabularnewline
21 & 113.22 & 113.667 & 113.766 & 0.999129 & 0.99607 \tabularnewline
22 & 112.85 & 114.027 & 114.415 & 0.996608 & 0.989679 \tabularnewline
23 & 114.37 & 114.542 & 114.904 & 0.99685 & 0.9985 \tabularnewline
24 & 113.68 & 114.183 & 115.348 & 0.989902 & 0.995597 \tabularnewline
25 & 118 & 116.947 & 115.826 & 1.00968 & 1.009 \tabularnewline
26 & 118.27 & 117.123 & 116.338 & 1.00676 & 1.00979 \tabularnewline
27 & 119.2 & 117.043 & 116.802 & 1.00206 & 1.01843 \tabularnewline
28 & 117.98 & 117.289 & 117.252 & 1.00031 & 1.0059 \tabularnewline
29 & 117.59 & 117.825 & 117.691 & 1.00114 & 0.998002 \tabularnewline
30 & 117.41 & 117.745 & 118.032 & 0.997561 & 0.997158 \tabularnewline
31 & 118.31 & 118.497 & 118.281 & 1.00183 & 0.998419 \tabularnewline
32 & 118.4 & 118.219 & 118.435 & 0.998176 & 1.00153 \tabularnewline
33 & 117.92 & 118.376 & 118.479 & 0.999129 & 0.996152 \tabularnewline
34 & 118.94 & 118.069 & 118.47 & 0.996608 & 1.00738 \tabularnewline
35 & 118.81 & 118.171 & 118.545 & 0.99685 & 1.00541 \tabularnewline
36 & 117.44 & 117.473 & 118.671 & 0.989902 & 0.99972 \tabularnewline
37 & 120.21 & 119.936 & 118.786 & 1.00968 & 1.00229 \tabularnewline
38 & 119.74 & 119.686 & 118.882 & 1.00676 & 1.00045 \tabularnewline
39 & 118.79 & 119.251 & 119.006 & 1.00206 & 0.996136 \tabularnewline
40 & 118.19 & 119.138 & 119.101 & 1.00031 & 0.99204 \tabularnewline
41 & 119.16 & 119.225 & 119.089 & 1.00114 & 0.999452 \tabularnewline
42 & 118.88 & 118.804 & 119.095 & 0.997561 & 1.00064 \tabularnewline
43 & 119.59 & 119.332 & 119.114 & 1.00183 & 1.00216 \tabularnewline
44 & 119.44 & 118.846 & 119.063 & 0.998176 & 1.005 \tabularnewline
45 & 119.84 & 118.928 & 119.032 & 0.999129 & 1.00767 \tabularnewline
46 & 119.31 & 118.704 & 119.108 & 0.996608 & 1.00511 \tabularnewline
47 & 118.15 & 118.798 & 119.174 & 0.99685 & 0.994543 \tabularnewline
48 & 118.23 & 117.993 & 119.197 & 0.989902 & 1.00201 \tabularnewline
49 & 119.89 & 120.391 & 119.237 & 1.00968 & 0.995836 \tabularnewline
50 & 118.83 & 120.067 & 119.261 & 1.00676 & 0.989701 \tabularnewline
51 & 118.95 & 119.515 & 119.27 & 1.00206 & 0.995272 \tabularnewline
52 & 119.86 & 119.338 & 119.301 & 1.00031 & 1.00437 \tabularnewline
53 & 119.07 & 119.546 & 119.41 & 1.00114 & 0.996017 \tabularnewline
54 & 119.52 & 119.225 & 119.516 & 0.997561 & 1.00248 \tabularnewline
55 & 119.92 & NA & NA & 1.00183 & NA \tabularnewline
56 & 119.68 & NA & NA & 0.998176 & NA \tabularnewline
57 & 119.81 & NA & NA & 0.999129 & NA \tabularnewline
58 & 120.09 & NA & NA & 0.996608 & NA \tabularnewline
59 & 119.98 & NA & NA & 0.99685 & NA \tabularnewline
60 & 118.96 & NA & NA & 0.989902 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=294856&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]110.27[/C][C]NA[/C][C]NA[/C][C]1.00968[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]110.91[/C][C]NA[/C][C]NA[/C][C]1.00676[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]110.27[/C][C]NA[/C][C]NA[/C][C]1.00206[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]109.41[/C][C]NA[/C][C]NA[/C][C]1.00031[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]111.47[/C][C]NA[/C][C]NA[/C][C]1.00114[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]110.77[/C][C]NA[/C][C]NA[/C][C]0.997561[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]110.83[/C][C]110.692[/C][C]110.49[/C][C]1.00183[/C][C]1.00124[/C][/ROW]
[ROW][C]8[/C][C]110.52[/C][C]110.365[/C][C]110.567[/C][C]0.998176[/C][C]1.0014[/C][/ROW]
[ROW][C]9[/C][C]110.44[/C][C]110.512[/C][C]110.608[/C][C]0.999129[/C][C]0.999353[/C][/ROW]
[ROW][C]10[/C][C]109.99[/C][C]110.312[/C][C]110.688[/C][C]0.996608[/C][C]0.997077[/C][/ROW]
[ROW][C]11[/C][C]110.55[/C][C]110.462[/C][C]110.811[/C][C]0.99685[/C][C]1.0008[/C][/ROW]
[ROW][C]12[/C][C]109.99[/C][C]109.779[/C][C]110.899[/C][C]0.989902[/C][C]1.00192[/C][/ROW]
[ROW][C]13[/C][C]111.2[/C][C]112.084[/C][C]111.009[/C][C]1.00968[/C][C]0.992116[/C][/ROW]
[ROW][C]14[/C][C]111.81[/C][C]111.888[/C][C]111.137[/C][C]1.00676[/C][C]0.9993[/C][/ROW]
[ROW][C]15[/C][C]110.36[/C][C]111.542[/C][C]111.312[/C][C]1.00206[/C][C]0.989406[/C][/ROW]
[ROW][C]16[/C][C]111.24[/C][C]111.582[/C][C]111.548[/C][C]1.00031[/C][C]0.996933[/C][/ROW]
[ROW][C]17[/C][C]112.6[/C][C]111.954[/C][C]111.826[/C][C]1.00114[/C][C]1.00577[/C][/ROW]
[ROW][C]18[/C][C]111.75[/C][C]111.865[/C][C]112.139[/C][C]0.997561[/C][C]0.99897[/C][/ROW]
[ROW][C]19[/C][C]112.49[/C][C]112.781[/C][C]112.576[/C][C]1.00183[/C][C]0.997416[/C][/ROW]
[ROW][C]20[/C][C]111.94[/C][C]112.922[/C][C]113.128[/C][C]0.998176[/C][C]0.991304[/C][/ROW]
[ROW][C]21[/C][C]113.22[/C][C]113.667[/C][C]113.766[/C][C]0.999129[/C][C]0.99607[/C][/ROW]
[ROW][C]22[/C][C]112.85[/C][C]114.027[/C][C]114.415[/C][C]0.996608[/C][C]0.989679[/C][/ROW]
[ROW][C]23[/C][C]114.37[/C][C]114.542[/C][C]114.904[/C][C]0.99685[/C][C]0.9985[/C][/ROW]
[ROW][C]24[/C][C]113.68[/C][C]114.183[/C][C]115.348[/C][C]0.989902[/C][C]0.995597[/C][/ROW]
[ROW][C]25[/C][C]118[/C][C]116.947[/C][C]115.826[/C][C]1.00968[/C][C]1.009[/C][/ROW]
[ROW][C]26[/C][C]118.27[/C][C]117.123[/C][C]116.338[/C][C]1.00676[/C][C]1.00979[/C][/ROW]
[ROW][C]27[/C][C]119.2[/C][C]117.043[/C][C]116.802[/C][C]1.00206[/C][C]1.01843[/C][/ROW]
[ROW][C]28[/C][C]117.98[/C][C]117.289[/C][C]117.252[/C][C]1.00031[/C][C]1.0059[/C][/ROW]
[ROW][C]29[/C][C]117.59[/C][C]117.825[/C][C]117.691[/C][C]1.00114[/C][C]0.998002[/C][/ROW]
[ROW][C]30[/C][C]117.41[/C][C]117.745[/C][C]118.032[/C][C]0.997561[/C][C]0.997158[/C][/ROW]
[ROW][C]31[/C][C]118.31[/C][C]118.497[/C][C]118.281[/C][C]1.00183[/C][C]0.998419[/C][/ROW]
[ROW][C]32[/C][C]118.4[/C][C]118.219[/C][C]118.435[/C][C]0.998176[/C][C]1.00153[/C][/ROW]
[ROW][C]33[/C][C]117.92[/C][C]118.376[/C][C]118.479[/C][C]0.999129[/C][C]0.996152[/C][/ROW]
[ROW][C]34[/C][C]118.94[/C][C]118.069[/C][C]118.47[/C][C]0.996608[/C][C]1.00738[/C][/ROW]
[ROW][C]35[/C][C]118.81[/C][C]118.171[/C][C]118.545[/C][C]0.99685[/C][C]1.00541[/C][/ROW]
[ROW][C]36[/C][C]117.44[/C][C]117.473[/C][C]118.671[/C][C]0.989902[/C][C]0.99972[/C][/ROW]
[ROW][C]37[/C][C]120.21[/C][C]119.936[/C][C]118.786[/C][C]1.00968[/C][C]1.00229[/C][/ROW]
[ROW][C]38[/C][C]119.74[/C][C]119.686[/C][C]118.882[/C][C]1.00676[/C][C]1.00045[/C][/ROW]
[ROW][C]39[/C][C]118.79[/C][C]119.251[/C][C]119.006[/C][C]1.00206[/C][C]0.996136[/C][/ROW]
[ROW][C]40[/C][C]118.19[/C][C]119.138[/C][C]119.101[/C][C]1.00031[/C][C]0.99204[/C][/ROW]
[ROW][C]41[/C][C]119.16[/C][C]119.225[/C][C]119.089[/C][C]1.00114[/C][C]0.999452[/C][/ROW]
[ROW][C]42[/C][C]118.88[/C][C]118.804[/C][C]119.095[/C][C]0.997561[/C][C]1.00064[/C][/ROW]
[ROW][C]43[/C][C]119.59[/C][C]119.332[/C][C]119.114[/C][C]1.00183[/C][C]1.00216[/C][/ROW]
[ROW][C]44[/C][C]119.44[/C][C]118.846[/C][C]119.063[/C][C]0.998176[/C][C]1.005[/C][/ROW]
[ROW][C]45[/C][C]119.84[/C][C]118.928[/C][C]119.032[/C][C]0.999129[/C][C]1.00767[/C][/ROW]
[ROW][C]46[/C][C]119.31[/C][C]118.704[/C][C]119.108[/C][C]0.996608[/C][C]1.00511[/C][/ROW]
[ROW][C]47[/C][C]118.15[/C][C]118.798[/C][C]119.174[/C][C]0.99685[/C][C]0.994543[/C][/ROW]
[ROW][C]48[/C][C]118.23[/C][C]117.993[/C][C]119.197[/C][C]0.989902[/C][C]1.00201[/C][/ROW]
[ROW][C]49[/C][C]119.89[/C][C]120.391[/C][C]119.237[/C][C]1.00968[/C][C]0.995836[/C][/ROW]
[ROW][C]50[/C][C]118.83[/C][C]120.067[/C][C]119.261[/C][C]1.00676[/C][C]0.989701[/C][/ROW]
[ROW][C]51[/C][C]118.95[/C][C]119.515[/C][C]119.27[/C][C]1.00206[/C][C]0.995272[/C][/ROW]
[ROW][C]52[/C][C]119.86[/C][C]119.338[/C][C]119.301[/C][C]1.00031[/C][C]1.00437[/C][/ROW]
[ROW][C]53[/C][C]119.07[/C][C]119.546[/C][C]119.41[/C][C]1.00114[/C][C]0.996017[/C][/ROW]
[ROW][C]54[/C][C]119.52[/C][C]119.225[/C][C]119.516[/C][C]0.997561[/C][C]1.00248[/C][/ROW]
[ROW][C]55[/C][C]119.92[/C][C]NA[/C][C]NA[/C][C]1.00183[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]119.68[/C][C]NA[/C][C]NA[/C][C]0.998176[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]119.81[/C][C]NA[/C][C]NA[/C][C]0.999129[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]120.09[/C][C]NA[/C][C]NA[/C][C]0.996608[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]119.98[/C][C]NA[/C][C]NA[/C][C]0.99685[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]118.96[/C][C]NA[/C][C]NA[/C][C]0.989902[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=294856&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=294856&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
1110.27NANA1.00968NA
2110.91NANA1.00676NA
3110.27NANA1.00206NA
4109.41NANA1.00031NA
5111.47NANA1.00114NA
6110.77NANA0.997561NA
7110.83110.692110.491.001831.00124
8110.52110.365110.5670.9981761.0014
9110.44110.512110.6080.9991290.999353
10109.99110.312110.6880.9966080.997077
11110.55110.462110.8110.996851.0008
12109.99109.779110.8990.9899021.00192
13111.2112.084111.0091.009680.992116
14111.81111.888111.1371.006760.9993
15110.36111.542111.3121.002060.989406
16111.24111.582111.5481.000310.996933
17112.6111.954111.8261.001141.00577
18111.75111.865112.1390.9975610.99897
19112.49112.781112.5761.001830.997416
20111.94112.922113.1280.9981760.991304
21113.22113.667113.7660.9991290.99607
22112.85114.027114.4150.9966080.989679
23114.37114.542114.9040.996850.9985
24113.68114.183115.3480.9899020.995597
25118116.947115.8261.009681.009
26118.27117.123116.3381.006761.00979
27119.2117.043116.8021.002061.01843
28117.98117.289117.2521.000311.0059
29117.59117.825117.6911.001140.998002
30117.41117.745118.0320.9975610.997158
31118.31118.497118.2811.001830.998419
32118.4118.219118.4350.9981761.00153
33117.92118.376118.4790.9991290.996152
34118.94118.069118.470.9966081.00738
35118.81118.171118.5450.996851.00541
36117.44117.473118.6710.9899020.99972
37120.21119.936118.7861.009681.00229
38119.74119.686118.8821.006761.00045
39118.79119.251119.0061.002060.996136
40118.19119.138119.1011.000310.99204
41119.16119.225119.0891.001140.999452
42118.88118.804119.0950.9975611.00064
43119.59119.332119.1141.001831.00216
44119.44118.846119.0630.9981761.005
45119.84118.928119.0320.9991291.00767
46119.31118.704119.1080.9966081.00511
47118.15118.798119.1740.996850.994543
48118.23117.993119.1970.9899021.00201
49119.89120.391119.2371.009680.995836
50118.83120.067119.2611.006760.989701
51118.95119.515119.271.002060.995272
52119.86119.338119.3011.000311.00437
53119.07119.546119.411.001140.996017
54119.52119.225119.5160.9975611.00248
55119.92NANA1.00183NA
56119.68NANA0.998176NA
57119.81NANA0.999129NA
58120.09NANA0.996608NA
59119.98NANA0.99685NA
60118.96NANA0.989902NA



Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
Parameters (R input):
par1 = multiplicative ; par2 = 12 ;
R code (references can be found in the software module):
par2 <- '12'
par1 <- 'additive'
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')