Free Statistics

of Irreproducible Research!

Author's title

multiplicatief decompositiemodel-consumtieprijsindexen woninghuur-Maxime Jo...

Author*Unverified author*
R Software Modulerwasp_decompose.wasp
Title produced by softwareClassical Decomposition
Date of computationTue, 02 May 2017 20:26:19 +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/2017/May/02/t1493753251w59vqm5l5tyevby.htm/, Retrieved Fri, 17 May 2024 04:32:17 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Fri, 17 May 2024 04:32:17 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
97.96
98.36
98.36
98.51
98.77
98.78
98.89
98.87
99.05
99.09
99.1
99.12
99.37
99.46
99.6
99.87
99.88
100.01
100.02
100.19
100.2
100.35
100.47
100.57
101.41
101.67
101.82
101.86
101.98
102.06
102.17
102.2
102.35
102.47
102.55
102.62
102.81
102.88
102.94
102.95
102.94
103.05
103.09
103.1
103.14
103.19
103.36
103.43
103.62
103.79
103.9
103.92
103.94
103.98
104.04
104.09
104.16
104.22
104.28
104.32




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

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







Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
197.96NANA1.00091NA
298.36NANA1.00129NA
398.36NANA1.00136NA
498.51NANA1.00116NA
598.77NANA1.00045NA
698.78NANA1.00027NA
798.8998.799798.79711.000031.00091
898.8798.837698.90170.9993521.00033
999.0598.916498.99920.9991641.00135
1099.0999.000999.10750.9989251.0009
1199.199.08899.21040.9987661.00012
1299.1299.14399.30790.998340.999768
1399.3799.496299.40621.000910.998731
1499.4699.636599.50831.001290.998228
1599.699.746799.61121.001360.998529
1699.8799.827199.71171.001161.00043
1799.8899.865899.82121.000451.00014
18100.0199.965699.93871.000271.00044
19100.02100.087100.0841.000030.999332
20100.19100.196100.2610.9993520.999937
21100.2100.362100.4460.9991640.998387
22100.35100.513100.6210.9989250.998378
23100.47100.667100.7920.9987660.99804
24100.57100.797100.9650.998340.997749
25101.41101.231101.141.000911.00177
26101.67101.443101.3131.001291.00223
27101.82101.624101.4861.001361.00193
28101.86101.782101.6641.001161.00077
29101.98101.885101.8391.000451.00094
30102.06102.039102.0111.000271.00021
31102.17102.158102.1551.000031.00012
32102.2102.198102.2640.9993521.00002
33102.35102.275102.3610.9991641.00073
34102.47102.343102.4530.9989251.00124
35102.55102.412102.5380.9987661.00135
36102.62102.449102.620.998341.00167
37102.81102.792102.6991.000911.00017
38102.88102.907102.7751.001290.999734
39102.94102.985102.8451.001360.99956
40102.95103.028102.9081.001160.999248
41102.94103.018102.9721.000450.999243
42103.05103.067103.041.000270.999832
43103.09103.11103.1071.000030.999807
44103.1103.112103.1790.9993520.999884
45103.14103.17103.2570.9991640.999706
46103.19103.226103.3370.9989250.999652
47103.36103.292103.4190.9987661.00066
48103.43103.328103.50.998341.00099
49103.62103.672103.5781.000910.999501
50103.79103.792103.6591.001290.999978
51103.9103.884103.7421.001361.00016
52103.92103.948103.8281.001160.999729
53103.94103.955103.9091.000450.999851
54103.98104.013103.9851.000270.999687
55104.04NANA1.00003NA
56104.09NANA0.999352NA
57104.16NANA0.999164NA
58104.22NANA0.998925NA
59104.28NANA0.998766NA
60104.32NANA0.99834NA

\begin{tabular}{lllllllll}
\hline
Classical Decomposition by Moving Averages \tabularnewline
t & Observations & Fit & Trend & Seasonal & Random \tabularnewline
1 & 97.96 & NA & NA & 1.00091 & NA \tabularnewline
2 & 98.36 & NA & NA & 1.00129 & NA \tabularnewline
3 & 98.36 & NA & NA & 1.00136 & NA \tabularnewline
4 & 98.51 & NA & NA & 1.00116 & NA \tabularnewline
5 & 98.77 & NA & NA & 1.00045 & NA \tabularnewline
6 & 98.78 & NA & NA & 1.00027 & NA \tabularnewline
7 & 98.89 & 98.7997 & 98.7971 & 1.00003 & 1.00091 \tabularnewline
8 & 98.87 & 98.8376 & 98.9017 & 0.999352 & 1.00033 \tabularnewline
9 & 99.05 & 98.9164 & 98.9992 & 0.999164 & 1.00135 \tabularnewline
10 & 99.09 & 99.0009 & 99.1075 & 0.998925 & 1.0009 \tabularnewline
11 & 99.1 & 99.088 & 99.2104 & 0.998766 & 1.00012 \tabularnewline
12 & 99.12 & 99.143 & 99.3079 & 0.99834 & 0.999768 \tabularnewline
13 & 99.37 & 99.4962 & 99.4062 & 1.00091 & 0.998731 \tabularnewline
14 & 99.46 & 99.6365 & 99.5083 & 1.00129 & 0.998228 \tabularnewline
15 & 99.6 & 99.7467 & 99.6112 & 1.00136 & 0.998529 \tabularnewline
16 & 99.87 & 99.8271 & 99.7117 & 1.00116 & 1.00043 \tabularnewline
17 & 99.88 & 99.8658 & 99.8212 & 1.00045 & 1.00014 \tabularnewline
18 & 100.01 & 99.9656 & 99.9387 & 1.00027 & 1.00044 \tabularnewline
19 & 100.02 & 100.087 & 100.084 & 1.00003 & 0.999332 \tabularnewline
20 & 100.19 & 100.196 & 100.261 & 0.999352 & 0.999937 \tabularnewline
21 & 100.2 & 100.362 & 100.446 & 0.999164 & 0.998387 \tabularnewline
22 & 100.35 & 100.513 & 100.621 & 0.998925 & 0.998378 \tabularnewline
23 & 100.47 & 100.667 & 100.792 & 0.998766 & 0.99804 \tabularnewline
24 & 100.57 & 100.797 & 100.965 & 0.99834 & 0.997749 \tabularnewline
25 & 101.41 & 101.231 & 101.14 & 1.00091 & 1.00177 \tabularnewline
26 & 101.67 & 101.443 & 101.313 & 1.00129 & 1.00223 \tabularnewline
27 & 101.82 & 101.624 & 101.486 & 1.00136 & 1.00193 \tabularnewline
28 & 101.86 & 101.782 & 101.664 & 1.00116 & 1.00077 \tabularnewline
29 & 101.98 & 101.885 & 101.839 & 1.00045 & 1.00094 \tabularnewline
30 & 102.06 & 102.039 & 102.011 & 1.00027 & 1.00021 \tabularnewline
31 & 102.17 & 102.158 & 102.155 & 1.00003 & 1.00012 \tabularnewline
32 & 102.2 & 102.198 & 102.264 & 0.999352 & 1.00002 \tabularnewline
33 & 102.35 & 102.275 & 102.361 & 0.999164 & 1.00073 \tabularnewline
34 & 102.47 & 102.343 & 102.453 & 0.998925 & 1.00124 \tabularnewline
35 & 102.55 & 102.412 & 102.538 & 0.998766 & 1.00135 \tabularnewline
36 & 102.62 & 102.449 & 102.62 & 0.99834 & 1.00167 \tabularnewline
37 & 102.81 & 102.792 & 102.699 & 1.00091 & 1.00017 \tabularnewline
38 & 102.88 & 102.907 & 102.775 & 1.00129 & 0.999734 \tabularnewline
39 & 102.94 & 102.985 & 102.845 & 1.00136 & 0.99956 \tabularnewline
40 & 102.95 & 103.028 & 102.908 & 1.00116 & 0.999248 \tabularnewline
41 & 102.94 & 103.018 & 102.972 & 1.00045 & 0.999243 \tabularnewline
42 & 103.05 & 103.067 & 103.04 & 1.00027 & 0.999832 \tabularnewline
43 & 103.09 & 103.11 & 103.107 & 1.00003 & 0.999807 \tabularnewline
44 & 103.1 & 103.112 & 103.179 & 0.999352 & 0.999884 \tabularnewline
45 & 103.14 & 103.17 & 103.257 & 0.999164 & 0.999706 \tabularnewline
46 & 103.19 & 103.226 & 103.337 & 0.998925 & 0.999652 \tabularnewline
47 & 103.36 & 103.292 & 103.419 & 0.998766 & 1.00066 \tabularnewline
48 & 103.43 & 103.328 & 103.5 & 0.99834 & 1.00099 \tabularnewline
49 & 103.62 & 103.672 & 103.578 & 1.00091 & 0.999501 \tabularnewline
50 & 103.79 & 103.792 & 103.659 & 1.00129 & 0.999978 \tabularnewline
51 & 103.9 & 103.884 & 103.742 & 1.00136 & 1.00016 \tabularnewline
52 & 103.92 & 103.948 & 103.828 & 1.00116 & 0.999729 \tabularnewline
53 & 103.94 & 103.955 & 103.909 & 1.00045 & 0.999851 \tabularnewline
54 & 103.98 & 104.013 & 103.985 & 1.00027 & 0.999687 \tabularnewline
55 & 104.04 & NA & NA & 1.00003 & NA \tabularnewline
56 & 104.09 & NA & NA & 0.999352 & NA \tabularnewline
57 & 104.16 & NA & NA & 0.999164 & NA \tabularnewline
58 & 104.22 & NA & NA & 0.998925 & NA \tabularnewline
59 & 104.28 & NA & NA & 0.998766 & NA \tabularnewline
60 & 104.32 & NA & NA & 0.99834 & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&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]97.96[/C][C]NA[/C][C]NA[/C][C]1.00091[/C][C]NA[/C][/ROW]
[ROW][C]2[/C][C]98.36[/C][C]NA[/C][C]NA[/C][C]1.00129[/C][C]NA[/C][/ROW]
[ROW][C]3[/C][C]98.36[/C][C]NA[/C][C]NA[/C][C]1.00136[/C][C]NA[/C][/ROW]
[ROW][C]4[/C][C]98.51[/C][C]NA[/C][C]NA[/C][C]1.00116[/C][C]NA[/C][/ROW]
[ROW][C]5[/C][C]98.77[/C][C]NA[/C][C]NA[/C][C]1.00045[/C][C]NA[/C][/ROW]
[ROW][C]6[/C][C]98.78[/C][C]NA[/C][C]NA[/C][C]1.00027[/C][C]NA[/C][/ROW]
[ROW][C]7[/C][C]98.89[/C][C]98.7997[/C][C]98.7971[/C][C]1.00003[/C][C]1.00091[/C][/ROW]
[ROW][C]8[/C][C]98.87[/C][C]98.8376[/C][C]98.9017[/C][C]0.999352[/C][C]1.00033[/C][/ROW]
[ROW][C]9[/C][C]99.05[/C][C]98.9164[/C][C]98.9992[/C][C]0.999164[/C][C]1.00135[/C][/ROW]
[ROW][C]10[/C][C]99.09[/C][C]99.0009[/C][C]99.1075[/C][C]0.998925[/C][C]1.0009[/C][/ROW]
[ROW][C]11[/C][C]99.1[/C][C]99.088[/C][C]99.2104[/C][C]0.998766[/C][C]1.00012[/C][/ROW]
[ROW][C]12[/C][C]99.12[/C][C]99.143[/C][C]99.3079[/C][C]0.99834[/C][C]0.999768[/C][/ROW]
[ROW][C]13[/C][C]99.37[/C][C]99.4962[/C][C]99.4062[/C][C]1.00091[/C][C]0.998731[/C][/ROW]
[ROW][C]14[/C][C]99.46[/C][C]99.6365[/C][C]99.5083[/C][C]1.00129[/C][C]0.998228[/C][/ROW]
[ROW][C]15[/C][C]99.6[/C][C]99.7467[/C][C]99.6112[/C][C]1.00136[/C][C]0.998529[/C][/ROW]
[ROW][C]16[/C][C]99.87[/C][C]99.8271[/C][C]99.7117[/C][C]1.00116[/C][C]1.00043[/C][/ROW]
[ROW][C]17[/C][C]99.88[/C][C]99.8658[/C][C]99.8212[/C][C]1.00045[/C][C]1.00014[/C][/ROW]
[ROW][C]18[/C][C]100.01[/C][C]99.9656[/C][C]99.9387[/C][C]1.00027[/C][C]1.00044[/C][/ROW]
[ROW][C]19[/C][C]100.02[/C][C]100.087[/C][C]100.084[/C][C]1.00003[/C][C]0.999332[/C][/ROW]
[ROW][C]20[/C][C]100.19[/C][C]100.196[/C][C]100.261[/C][C]0.999352[/C][C]0.999937[/C][/ROW]
[ROW][C]21[/C][C]100.2[/C][C]100.362[/C][C]100.446[/C][C]0.999164[/C][C]0.998387[/C][/ROW]
[ROW][C]22[/C][C]100.35[/C][C]100.513[/C][C]100.621[/C][C]0.998925[/C][C]0.998378[/C][/ROW]
[ROW][C]23[/C][C]100.47[/C][C]100.667[/C][C]100.792[/C][C]0.998766[/C][C]0.99804[/C][/ROW]
[ROW][C]24[/C][C]100.57[/C][C]100.797[/C][C]100.965[/C][C]0.99834[/C][C]0.997749[/C][/ROW]
[ROW][C]25[/C][C]101.41[/C][C]101.231[/C][C]101.14[/C][C]1.00091[/C][C]1.00177[/C][/ROW]
[ROW][C]26[/C][C]101.67[/C][C]101.443[/C][C]101.313[/C][C]1.00129[/C][C]1.00223[/C][/ROW]
[ROW][C]27[/C][C]101.82[/C][C]101.624[/C][C]101.486[/C][C]1.00136[/C][C]1.00193[/C][/ROW]
[ROW][C]28[/C][C]101.86[/C][C]101.782[/C][C]101.664[/C][C]1.00116[/C][C]1.00077[/C][/ROW]
[ROW][C]29[/C][C]101.98[/C][C]101.885[/C][C]101.839[/C][C]1.00045[/C][C]1.00094[/C][/ROW]
[ROW][C]30[/C][C]102.06[/C][C]102.039[/C][C]102.011[/C][C]1.00027[/C][C]1.00021[/C][/ROW]
[ROW][C]31[/C][C]102.17[/C][C]102.158[/C][C]102.155[/C][C]1.00003[/C][C]1.00012[/C][/ROW]
[ROW][C]32[/C][C]102.2[/C][C]102.198[/C][C]102.264[/C][C]0.999352[/C][C]1.00002[/C][/ROW]
[ROW][C]33[/C][C]102.35[/C][C]102.275[/C][C]102.361[/C][C]0.999164[/C][C]1.00073[/C][/ROW]
[ROW][C]34[/C][C]102.47[/C][C]102.343[/C][C]102.453[/C][C]0.998925[/C][C]1.00124[/C][/ROW]
[ROW][C]35[/C][C]102.55[/C][C]102.412[/C][C]102.538[/C][C]0.998766[/C][C]1.00135[/C][/ROW]
[ROW][C]36[/C][C]102.62[/C][C]102.449[/C][C]102.62[/C][C]0.99834[/C][C]1.00167[/C][/ROW]
[ROW][C]37[/C][C]102.81[/C][C]102.792[/C][C]102.699[/C][C]1.00091[/C][C]1.00017[/C][/ROW]
[ROW][C]38[/C][C]102.88[/C][C]102.907[/C][C]102.775[/C][C]1.00129[/C][C]0.999734[/C][/ROW]
[ROW][C]39[/C][C]102.94[/C][C]102.985[/C][C]102.845[/C][C]1.00136[/C][C]0.99956[/C][/ROW]
[ROW][C]40[/C][C]102.95[/C][C]103.028[/C][C]102.908[/C][C]1.00116[/C][C]0.999248[/C][/ROW]
[ROW][C]41[/C][C]102.94[/C][C]103.018[/C][C]102.972[/C][C]1.00045[/C][C]0.999243[/C][/ROW]
[ROW][C]42[/C][C]103.05[/C][C]103.067[/C][C]103.04[/C][C]1.00027[/C][C]0.999832[/C][/ROW]
[ROW][C]43[/C][C]103.09[/C][C]103.11[/C][C]103.107[/C][C]1.00003[/C][C]0.999807[/C][/ROW]
[ROW][C]44[/C][C]103.1[/C][C]103.112[/C][C]103.179[/C][C]0.999352[/C][C]0.999884[/C][/ROW]
[ROW][C]45[/C][C]103.14[/C][C]103.17[/C][C]103.257[/C][C]0.999164[/C][C]0.999706[/C][/ROW]
[ROW][C]46[/C][C]103.19[/C][C]103.226[/C][C]103.337[/C][C]0.998925[/C][C]0.999652[/C][/ROW]
[ROW][C]47[/C][C]103.36[/C][C]103.292[/C][C]103.419[/C][C]0.998766[/C][C]1.00066[/C][/ROW]
[ROW][C]48[/C][C]103.43[/C][C]103.328[/C][C]103.5[/C][C]0.99834[/C][C]1.00099[/C][/ROW]
[ROW][C]49[/C][C]103.62[/C][C]103.672[/C][C]103.578[/C][C]1.00091[/C][C]0.999501[/C][/ROW]
[ROW][C]50[/C][C]103.79[/C][C]103.792[/C][C]103.659[/C][C]1.00129[/C][C]0.999978[/C][/ROW]
[ROW][C]51[/C][C]103.9[/C][C]103.884[/C][C]103.742[/C][C]1.00136[/C][C]1.00016[/C][/ROW]
[ROW][C]52[/C][C]103.92[/C][C]103.948[/C][C]103.828[/C][C]1.00116[/C][C]0.999729[/C][/ROW]
[ROW][C]53[/C][C]103.94[/C][C]103.955[/C][C]103.909[/C][C]1.00045[/C][C]0.999851[/C][/ROW]
[ROW][C]54[/C][C]103.98[/C][C]104.013[/C][C]103.985[/C][C]1.00027[/C][C]0.999687[/C][/ROW]
[ROW][C]55[/C][C]104.04[/C][C]NA[/C][C]NA[/C][C]1.00003[/C][C]NA[/C][/ROW]
[ROW][C]56[/C][C]104.09[/C][C]NA[/C][C]NA[/C][C]0.999352[/C][C]NA[/C][/ROW]
[ROW][C]57[/C][C]104.16[/C][C]NA[/C][C]NA[/C][C]0.999164[/C][C]NA[/C][/ROW]
[ROW][C]58[/C][C]104.22[/C][C]NA[/C][C]NA[/C][C]0.998925[/C][C]NA[/C][/ROW]
[ROW][C]59[/C][C]104.28[/C][C]NA[/C][C]NA[/C][C]0.998766[/C][C]NA[/C][/ROW]
[ROW][C]60[/C][C]104.32[/C][C]NA[/C][C]NA[/C][C]0.99834[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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
197.96NANA1.00091NA
298.36NANA1.00129NA
398.36NANA1.00136NA
498.51NANA1.00116NA
598.77NANA1.00045NA
698.78NANA1.00027NA
798.8998.799798.79711.000031.00091
898.8798.837698.90170.9993521.00033
999.0598.916498.99920.9991641.00135
1099.0999.000999.10750.9989251.0009
1199.199.08899.21040.9987661.00012
1299.1299.14399.30790.998340.999768
1399.3799.496299.40621.000910.998731
1499.4699.636599.50831.001290.998228
1599.699.746799.61121.001360.998529
1699.8799.827199.71171.001161.00043
1799.8899.865899.82121.000451.00014
18100.0199.965699.93871.000271.00044
19100.02100.087100.0841.000030.999332
20100.19100.196100.2610.9993520.999937
21100.2100.362100.4460.9991640.998387
22100.35100.513100.6210.9989250.998378
23100.47100.667100.7920.9987660.99804
24100.57100.797100.9650.998340.997749
25101.41101.231101.141.000911.00177
26101.67101.443101.3131.001291.00223
27101.82101.624101.4861.001361.00193
28101.86101.782101.6641.001161.00077
29101.98101.885101.8391.000451.00094
30102.06102.039102.0111.000271.00021
31102.17102.158102.1551.000031.00012
32102.2102.198102.2640.9993521.00002
33102.35102.275102.3610.9991641.00073
34102.47102.343102.4530.9989251.00124
35102.55102.412102.5380.9987661.00135
36102.62102.449102.620.998341.00167
37102.81102.792102.6991.000911.00017
38102.88102.907102.7751.001290.999734
39102.94102.985102.8451.001360.99956
40102.95103.028102.9081.001160.999248
41102.94103.018102.9721.000450.999243
42103.05103.067103.041.000270.999832
43103.09103.11103.1071.000030.999807
44103.1103.112103.1790.9993520.999884
45103.14103.17103.2570.9991640.999706
46103.19103.226103.3370.9989250.999652
47103.36103.292103.4190.9987661.00066
48103.43103.328103.50.998341.00099
49103.62103.672103.5781.000910.999501
50103.79103.792103.6591.001290.999978
51103.9103.884103.7421.001361.00016
52103.92103.948103.8281.001160.999729
53103.94103.955103.9091.000450.999851
54103.98104.013103.9851.000270.999687
55104.04NANA1.00003NA
56104.09NANA0.999352NA
57104.16NANA0.999164NA
58104.22NANA0.998925NA
59104.28NANA0.998766NA
60104.32NANA0.99834NA



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')