Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_autocorrelation.wasp
Title produced by software(Partial) Autocorrelation Function
Date of computationSun, 20 Dec 2009 14:02:09 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/20/t1261346152n3w045yvgi7ojh1.htm/, Retrieved Sat, 27 Apr 2024 09:46:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70035, Retrieved Sat, 27 Apr 2024 09:46:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact148
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [Identifying integ...] [2009-11-23 18:42:00] [d46757a0a8c9b00540ab7e7e0c34bfc4]
-   P   [(Partial) Autocorrelation Function] [Identifying integ...] [2009-11-23 18:56:25] [d46757a0a8c9b00540ab7e7e0c34bfc4]
-         [(Partial) Autocorrelation Function] [Identifying integ...] [2009-11-23 19:16:37] [d46757a0a8c9b00540ab7e7e0c34bfc4]
-   PD        [(Partial) Autocorrelation Function] [] [2009-12-20 21:02:09] [aa8eb70c35ea8a87edcd21d6427e653e] [Current]
Feedback Forum

Post a new message
Dataseries X:
2849,27
2921,44
2981,85
3080,58
3106,22
3119,31
3061,26
3097,31
3161,69
3257,16
3277,01
3295,32
3363,99
3494,17
3667,03
3813,06
3917,96
3895,51
3801,06
3570,12
3701,61
3862,27
3970,1
4138,52
4199,75
4290,89
4443,91
4502,64
4356,98
4591,27
4696,96
4621,4
4562,84
4202,52
4296,49
4435,23
4105,18
4116,68
3844,49
3720,98
3674,4
3857,62
3801,06
3504,37
3032,6
3047,03
2962,34
2197,82
2014,45
1862,83
1905,41
1810,99
1670,07
1864,44
2052,02
2029,6
2070,83
2293,41
2443,27
2513,17




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 1 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70035&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]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70035&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70035&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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.355707-2.7090.004429
2-0.25198-1.9190.029953
30.1009290.76870.222608
4-0.005017-0.03820.484826
50.2046721.55870.062249
6-0.18533-1.41140.08173
7-0.133729-1.01840.156347
80.2113271.60940.056478
90.0460860.3510.363437
10-0.325328-2.47760.00808
110.293552.23560.01462
12-0.051655-0.39340.347737
13-0.124732-0.94990.173044
140.1524581.16110.125182
15-0.123015-0.93690.17636
160.1765761.34480.091968
17-0.088198-0.67170.252223
18-0.187489-1.42790.079345
190.2286741.74150.043446
20-0.0245-0.18660.426318
21-0.045367-0.34550.365484
22-0.029226-0.22260.412322
23-0.000702-0.00530.497877
24-0.030207-0.230.409432
250.0829420.63170.265044
26-0.07818-0.59540.276945
27-0.02223-0.16930.433076
280.1295850.98690.163897
29-0.063346-0.48240.315658
300.0228450.1740.431241
31-0.044801-0.34120.367096
320.0301680.22980.409546
330.0175360.13350.447112
340.0001760.00130.499467
35-0.076171-0.58010.282046
360.0265670.20230.420184

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.355707 & -2.709 & 0.004429 \tabularnewline
2 & -0.25198 & -1.919 & 0.029953 \tabularnewline
3 & 0.100929 & 0.7687 & 0.222608 \tabularnewline
4 & -0.005017 & -0.0382 & 0.484826 \tabularnewline
5 & 0.204672 & 1.5587 & 0.062249 \tabularnewline
6 & -0.18533 & -1.4114 & 0.08173 \tabularnewline
7 & -0.133729 & -1.0184 & 0.156347 \tabularnewline
8 & 0.211327 & 1.6094 & 0.056478 \tabularnewline
9 & 0.046086 & 0.351 & 0.363437 \tabularnewline
10 & -0.325328 & -2.4776 & 0.00808 \tabularnewline
11 & 0.29355 & 2.2356 & 0.01462 \tabularnewline
12 & -0.051655 & -0.3934 & 0.347737 \tabularnewline
13 & -0.124732 & -0.9499 & 0.173044 \tabularnewline
14 & 0.152458 & 1.1611 & 0.125182 \tabularnewline
15 & -0.123015 & -0.9369 & 0.17636 \tabularnewline
16 & 0.176576 & 1.3448 & 0.091968 \tabularnewline
17 & -0.088198 & -0.6717 & 0.252223 \tabularnewline
18 & -0.187489 & -1.4279 & 0.079345 \tabularnewline
19 & 0.228674 & 1.7415 & 0.043446 \tabularnewline
20 & -0.0245 & -0.1866 & 0.426318 \tabularnewline
21 & -0.045367 & -0.3455 & 0.365484 \tabularnewline
22 & -0.029226 & -0.2226 & 0.412322 \tabularnewline
23 & -0.000702 & -0.0053 & 0.497877 \tabularnewline
24 & -0.030207 & -0.23 & 0.409432 \tabularnewline
25 & 0.082942 & 0.6317 & 0.265044 \tabularnewline
26 & -0.07818 & -0.5954 & 0.276945 \tabularnewline
27 & -0.02223 & -0.1693 & 0.433076 \tabularnewline
28 & 0.129585 & 0.9869 & 0.163897 \tabularnewline
29 & -0.063346 & -0.4824 & 0.315658 \tabularnewline
30 & 0.022845 & 0.174 & 0.431241 \tabularnewline
31 & -0.044801 & -0.3412 & 0.367096 \tabularnewline
32 & 0.030168 & 0.2298 & 0.409546 \tabularnewline
33 & 0.017536 & 0.1335 & 0.447112 \tabularnewline
34 & 0.000176 & 0.0013 & 0.499467 \tabularnewline
35 & -0.076171 & -0.5801 & 0.282046 \tabularnewline
36 & 0.026567 & 0.2023 & 0.420184 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70035&T=1

[TABLE]
[ROW][C]Autocorrelation Function[/C][/ROW]
[ROW][C]Time lag k[/C][C]ACF(k)[/C][C]T-STAT[/C][C]P-value[/C][/ROW]
[ROW][C]1[/C][C]-0.355707[/C][C]-2.709[/C][C]0.004429[/C][/ROW]
[ROW][C]2[/C][C]-0.25198[/C][C]-1.919[/C][C]0.029953[/C][/ROW]
[ROW][C]3[/C][C]0.100929[/C][C]0.7687[/C][C]0.222608[/C][/ROW]
[ROW][C]4[/C][C]-0.005017[/C][C]-0.0382[/C][C]0.484826[/C][/ROW]
[ROW][C]5[/C][C]0.204672[/C][C]1.5587[/C][C]0.062249[/C][/ROW]
[ROW][C]6[/C][C]-0.18533[/C][C]-1.4114[/C][C]0.08173[/C][/ROW]
[ROW][C]7[/C][C]-0.133729[/C][C]-1.0184[/C][C]0.156347[/C][/ROW]
[ROW][C]8[/C][C]0.211327[/C][C]1.6094[/C][C]0.056478[/C][/ROW]
[ROW][C]9[/C][C]0.046086[/C][C]0.351[/C][C]0.363437[/C][/ROW]
[ROW][C]10[/C][C]-0.325328[/C][C]-2.4776[/C][C]0.00808[/C][/ROW]
[ROW][C]11[/C][C]0.29355[/C][C]2.2356[/C][C]0.01462[/C][/ROW]
[ROW][C]12[/C][C]-0.051655[/C][C]-0.3934[/C][C]0.347737[/C][/ROW]
[ROW][C]13[/C][C]-0.124732[/C][C]-0.9499[/C][C]0.173044[/C][/ROW]
[ROW][C]14[/C][C]0.152458[/C][C]1.1611[/C][C]0.125182[/C][/ROW]
[ROW][C]15[/C][C]-0.123015[/C][C]-0.9369[/C][C]0.17636[/C][/ROW]
[ROW][C]16[/C][C]0.176576[/C][C]1.3448[/C][C]0.091968[/C][/ROW]
[ROW][C]17[/C][C]-0.088198[/C][C]-0.6717[/C][C]0.252223[/C][/ROW]
[ROW][C]18[/C][C]-0.187489[/C][C]-1.4279[/C][C]0.079345[/C][/ROW]
[ROW][C]19[/C][C]0.228674[/C][C]1.7415[/C][C]0.043446[/C][/ROW]
[ROW][C]20[/C][C]-0.0245[/C][C]-0.1866[/C][C]0.426318[/C][/ROW]
[ROW][C]21[/C][C]-0.045367[/C][C]-0.3455[/C][C]0.365484[/C][/ROW]
[ROW][C]22[/C][C]-0.029226[/C][C]-0.2226[/C][C]0.412322[/C][/ROW]
[ROW][C]23[/C][C]-0.000702[/C][C]-0.0053[/C][C]0.497877[/C][/ROW]
[ROW][C]24[/C][C]-0.030207[/C][C]-0.23[/C][C]0.409432[/C][/ROW]
[ROW][C]25[/C][C]0.082942[/C][C]0.6317[/C][C]0.265044[/C][/ROW]
[ROW][C]26[/C][C]-0.07818[/C][C]-0.5954[/C][C]0.276945[/C][/ROW]
[ROW][C]27[/C][C]-0.02223[/C][C]-0.1693[/C][C]0.433076[/C][/ROW]
[ROW][C]28[/C][C]0.129585[/C][C]0.9869[/C][C]0.163897[/C][/ROW]
[ROW][C]29[/C][C]-0.063346[/C][C]-0.4824[/C][C]0.315658[/C][/ROW]
[ROW][C]30[/C][C]0.022845[/C][C]0.174[/C][C]0.431241[/C][/ROW]
[ROW][C]31[/C][C]-0.044801[/C][C]-0.3412[/C][C]0.367096[/C][/ROW]
[ROW][C]32[/C][C]0.030168[/C][C]0.2298[/C][C]0.409546[/C][/ROW]
[ROW][C]33[/C][C]0.017536[/C][C]0.1335[/C][C]0.447112[/C][/ROW]
[ROW][C]34[/C][C]0.000176[/C][C]0.0013[/C][C]0.499467[/C][/ROW]
[ROW][C]35[/C][C]-0.076171[/C][C]-0.5801[/C][C]0.282046[/C][/ROW]
[ROW][C]36[/C][C]0.026567[/C][C]0.2023[/C][C]0.420184[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70035&T=1

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

As an alternative you can also use a QR Code:  

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

Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.355707-2.7090.004429
2-0.25198-1.9190.029953
30.1009290.76870.222608
4-0.005017-0.03820.484826
50.2046721.55870.062249
6-0.18533-1.41140.08173
7-0.133729-1.01840.156347
80.2113271.60940.056478
90.0460860.3510.363437
10-0.325328-2.47760.00808
110.293552.23560.01462
12-0.051655-0.39340.347737
13-0.124732-0.94990.173044
140.1524581.16110.125182
15-0.123015-0.93690.17636
160.1765761.34480.091968
17-0.088198-0.67170.252223
18-0.187489-1.42790.079345
190.2286741.74150.043446
20-0.0245-0.18660.426318
21-0.045367-0.34550.365484
22-0.029226-0.22260.412322
23-0.000702-0.00530.497877
24-0.030207-0.230.409432
250.0829420.63170.265044
26-0.07818-0.59540.276945
27-0.02223-0.16930.433076
280.1295850.98690.163897
29-0.063346-0.48240.315658
300.0228450.1740.431241
31-0.044801-0.34120.367096
320.0301680.22980.409546
330.0175360.13350.447112
340.0001760.00130.499467
35-0.076171-0.58010.282046
360.0265670.20230.420184







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.355707-2.7090.004429
2-0.433336-3.30020.000828
3-0.256088-1.95030.027989
4-0.264799-2.01660.024185
50.1185180.90260.185235
6-0.039869-0.30360.381247
7-0.146508-1.11580.13456
8-0.012931-0.09850.460947
90.0874790.66620.253956
10-0.351911-2.68010.004783
110.1220780.92970.178186
12-0.033104-0.25210.400924
13-0.161186-1.22760.112286
140.0182490.1390.444973
150.0521160.39690.346446
160.0692410.52730.29999
170.0122290.09310.463059
18-0.062123-0.47310.318953
190.0145450.11080.45609
20-0.140748-1.07190.144102
210.1304360.99340.162328
22-0.060172-0.45830.32424
23-0.028869-0.21990.413375
24-0.153243-1.16710.123979
25-0.070632-0.53790.296347
26-0.103512-0.78830.216859
27-0.163279-1.24350.109344
28-0.022389-0.17050.432601
290.1384431.05430.148048
30-0.076863-0.58540.280283
310.0447490.34080.367243
320.0506660.38590.350505
33-0.044039-0.33540.369271
34-0.009011-0.06860.472762
35-0.051853-0.39490.347182
36-0.074982-0.5710.285088

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.355707 & -2.709 & 0.004429 \tabularnewline
2 & -0.433336 & -3.3002 & 0.000828 \tabularnewline
3 & -0.256088 & -1.9503 & 0.027989 \tabularnewline
4 & -0.264799 & -2.0166 & 0.024185 \tabularnewline
5 & 0.118518 & 0.9026 & 0.185235 \tabularnewline
6 & -0.039869 & -0.3036 & 0.381247 \tabularnewline
7 & -0.146508 & -1.1158 & 0.13456 \tabularnewline
8 & -0.012931 & -0.0985 & 0.460947 \tabularnewline
9 & 0.087479 & 0.6662 & 0.253956 \tabularnewline
10 & -0.351911 & -2.6801 & 0.004783 \tabularnewline
11 & 0.122078 & 0.9297 & 0.178186 \tabularnewline
12 & -0.033104 & -0.2521 & 0.400924 \tabularnewline
13 & -0.161186 & -1.2276 & 0.112286 \tabularnewline
14 & 0.018249 & 0.139 & 0.444973 \tabularnewline
15 & 0.052116 & 0.3969 & 0.346446 \tabularnewline
16 & 0.069241 & 0.5273 & 0.29999 \tabularnewline
17 & 0.012229 & 0.0931 & 0.463059 \tabularnewline
18 & -0.062123 & -0.4731 & 0.318953 \tabularnewline
19 & 0.014545 & 0.1108 & 0.45609 \tabularnewline
20 & -0.140748 & -1.0719 & 0.144102 \tabularnewline
21 & 0.130436 & 0.9934 & 0.162328 \tabularnewline
22 & -0.060172 & -0.4583 & 0.32424 \tabularnewline
23 & -0.028869 & -0.2199 & 0.413375 \tabularnewline
24 & -0.153243 & -1.1671 & 0.123979 \tabularnewline
25 & -0.070632 & -0.5379 & 0.296347 \tabularnewline
26 & -0.103512 & -0.7883 & 0.216859 \tabularnewline
27 & -0.163279 & -1.2435 & 0.109344 \tabularnewline
28 & -0.022389 & -0.1705 & 0.432601 \tabularnewline
29 & 0.138443 & 1.0543 & 0.148048 \tabularnewline
30 & -0.076863 & -0.5854 & 0.280283 \tabularnewline
31 & 0.044749 & 0.3408 & 0.367243 \tabularnewline
32 & 0.050666 & 0.3859 & 0.350505 \tabularnewline
33 & -0.044039 & -0.3354 & 0.369271 \tabularnewline
34 & -0.009011 & -0.0686 & 0.472762 \tabularnewline
35 & -0.051853 & -0.3949 & 0.347182 \tabularnewline
36 & -0.074982 & -0.571 & 0.285088 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70035&T=2

[TABLE]
[ROW][C]Partial Autocorrelation Function[/C][/ROW]
[ROW][C]Time lag k[/C][C]PACF(k)[/C][C]T-STAT[/C][C]P-value[/C][/ROW]
[ROW][C]1[/C][C]-0.355707[/C][C]-2.709[/C][C]0.004429[/C][/ROW]
[ROW][C]2[/C][C]-0.433336[/C][C]-3.3002[/C][C]0.000828[/C][/ROW]
[ROW][C]3[/C][C]-0.256088[/C][C]-1.9503[/C][C]0.027989[/C][/ROW]
[ROW][C]4[/C][C]-0.264799[/C][C]-2.0166[/C][C]0.024185[/C][/ROW]
[ROW][C]5[/C][C]0.118518[/C][C]0.9026[/C][C]0.185235[/C][/ROW]
[ROW][C]6[/C][C]-0.039869[/C][C]-0.3036[/C][C]0.381247[/C][/ROW]
[ROW][C]7[/C][C]-0.146508[/C][C]-1.1158[/C][C]0.13456[/C][/ROW]
[ROW][C]8[/C][C]-0.012931[/C][C]-0.0985[/C][C]0.460947[/C][/ROW]
[ROW][C]9[/C][C]0.087479[/C][C]0.6662[/C][C]0.253956[/C][/ROW]
[ROW][C]10[/C][C]-0.351911[/C][C]-2.6801[/C][C]0.004783[/C][/ROW]
[ROW][C]11[/C][C]0.122078[/C][C]0.9297[/C][C]0.178186[/C][/ROW]
[ROW][C]12[/C][C]-0.033104[/C][C]-0.2521[/C][C]0.400924[/C][/ROW]
[ROW][C]13[/C][C]-0.161186[/C][C]-1.2276[/C][C]0.112286[/C][/ROW]
[ROW][C]14[/C][C]0.018249[/C][C]0.139[/C][C]0.444973[/C][/ROW]
[ROW][C]15[/C][C]0.052116[/C][C]0.3969[/C][C]0.346446[/C][/ROW]
[ROW][C]16[/C][C]0.069241[/C][C]0.5273[/C][C]0.29999[/C][/ROW]
[ROW][C]17[/C][C]0.012229[/C][C]0.0931[/C][C]0.463059[/C][/ROW]
[ROW][C]18[/C][C]-0.062123[/C][C]-0.4731[/C][C]0.318953[/C][/ROW]
[ROW][C]19[/C][C]0.014545[/C][C]0.1108[/C][C]0.45609[/C][/ROW]
[ROW][C]20[/C][C]-0.140748[/C][C]-1.0719[/C][C]0.144102[/C][/ROW]
[ROW][C]21[/C][C]0.130436[/C][C]0.9934[/C][C]0.162328[/C][/ROW]
[ROW][C]22[/C][C]-0.060172[/C][C]-0.4583[/C][C]0.32424[/C][/ROW]
[ROW][C]23[/C][C]-0.028869[/C][C]-0.2199[/C][C]0.413375[/C][/ROW]
[ROW][C]24[/C][C]-0.153243[/C][C]-1.1671[/C][C]0.123979[/C][/ROW]
[ROW][C]25[/C][C]-0.070632[/C][C]-0.5379[/C][C]0.296347[/C][/ROW]
[ROW][C]26[/C][C]-0.103512[/C][C]-0.7883[/C][C]0.216859[/C][/ROW]
[ROW][C]27[/C][C]-0.163279[/C][C]-1.2435[/C][C]0.109344[/C][/ROW]
[ROW][C]28[/C][C]-0.022389[/C][C]-0.1705[/C][C]0.432601[/C][/ROW]
[ROW][C]29[/C][C]0.138443[/C][C]1.0543[/C][C]0.148048[/C][/ROW]
[ROW][C]30[/C][C]-0.076863[/C][C]-0.5854[/C][C]0.280283[/C][/ROW]
[ROW][C]31[/C][C]0.044749[/C][C]0.3408[/C][C]0.367243[/C][/ROW]
[ROW][C]32[/C][C]0.050666[/C][C]0.3859[/C][C]0.350505[/C][/ROW]
[ROW][C]33[/C][C]-0.044039[/C][C]-0.3354[/C][C]0.369271[/C][/ROW]
[ROW][C]34[/C][C]-0.009011[/C][C]-0.0686[/C][C]0.472762[/C][/ROW]
[ROW][C]35[/C][C]-0.051853[/C][C]-0.3949[/C][C]0.347182[/C][/ROW]
[ROW][C]36[/C][C]-0.074982[/C][C]-0.571[/C][C]0.285088[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70035&T=2

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

As an alternative you can also use a QR Code:  

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

Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.355707-2.7090.004429
2-0.433336-3.30020.000828
3-0.256088-1.95030.027989
4-0.264799-2.01660.024185
50.1185180.90260.185235
6-0.039869-0.30360.381247
7-0.146508-1.11580.13456
8-0.012931-0.09850.460947
90.0874790.66620.253956
10-0.351911-2.68010.004783
110.1220780.92970.178186
12-0.033104-0.25210.400924
13-0.161186-1.22760.112286
140.0182490.1390.444973
150.0521160.39690.346446
160.0692410.52730.29999
170.0122290.09310.463059
18-0.062123-0.47310.318953
190.0145450.11080.45609
20-0.140748-1.07190.144102
210.1304360.99340.162328
22-0.060172-0.45830.32424
23-0.028869-0.21990.413375
24-0.153243-1.16710.123979
25-0.070632-0.53790.296347
26-0.103512-0.78830.216859
27-0.163279-1.24350.109344
28-0.022389-0.17050.432601
290.1384431.05430.148048
30-0.076863-0.58540.280283
310.0447490.34080.367243
320.0506660.38590.350505
33-0.044039-0.33540.369271
34-0.009011-0.06860.472762
35-0.051853-0.39490.347182
36-0.074982-0.5710.285088



Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 2 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 2 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 2:(par1+1)) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')