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 computationThu, 26 Nov 2009 03:20:41 -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/Nov/26/t1259231005xjqvz8gzcbtpjsm.htm/, Retrieved Sun, 28 Apr 2024 19:43:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59783, Retrieved Sun, 28 Apr 2024 19:43:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact114
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-12 13:32:37] [76963dc1903f0f612b6153510a3818cf]
- R  D  [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-17 12:14:40] [76963dc1903f0f612b6153510a3818cf]
-         [Univariate Explorative Data Analysis] [Run Sequence Plot...] [2008-12-22 18:19:51] [1ce0d16c8f4225c977b42c8fa93bc163]
- RMP       [(Partial) Autocorrelation Function] [Identifying Integ...] [2009-11-22 12:16:10] [b98453cac15ba1066b407e146608df68]
- R  D          [(Partial) Autocorrelation Function] [] [2009-11-26 10:20:41] [c5f9f441970441f2f938cd843072158d] [Current]
Feedback Forum

Post a new message
Dataseries X:
14.9
18.6
19.1
18.8
18.2
18
19
20.7
21.2
20.7
19.6
18.6
18.7
23.8
24.9
24.8
23.8
22.3
21.7
20.7
19.7
18.4
17.4
17
18
23.8
25.5
25.6
23.7
22
21.3
20.7
20.4
20.3
20.4
19.8
19.5
23.1
23.5
23.5
22.9
21.9
21.5
20.5
20.2
19.4
19.2
18.8
18.8
22.6
23.3
23
21.4
19.9
18.8
18.6
18.4
18.6
19.9
19.2
18.4




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=59783&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=59783&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59783&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
10.7168825.5990
20.3522662.75130.003902
30.0268050.20940.417435
4-0.175393-1.36990.087875
5-0.242306-1.89250.031588
6-0.259342-2.02550.023597
7-0.247312-1.93160.029031
8-0.199206-1.55590.062458
9-0.065196-0.50920.306226
100.1339581.04620.149787
110.3478682.71690.004281
120.4527463.53610.000391
130.2199381.71780.045456
14-0.009465-0.07390.470656
15-0.182736-1.42720.079308
16-0.240064-1.8750.032794
17-0.202543-1.58190.059421
18-0.155084-1.21120.115237
19-0.108842-0.85010.199301
20-0.083827-0.65470.257557
21-0.017986-0.14050.444372
220.0810610.63310.264516
230.2017421.57570.060139
240.2569712.0070.024593
250.0639520.49950.309618
26-0.106658-0.8330.20404
27-0.232497-1.81590.037153
28-0.26449-2.06570.021554
29-0.23253-1.81610.037134
30-0.175015-1.36690.088335
31-0.112066-0.87530.192433
32-0.075011-0.58590.280066
33-0.033434-0.26110.397436
340.0098780.07710.46938
350.0776410.60640.273251
360.1137080.88810.188991

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.716882 & 5.599 & 0 \tabularnewline
2 & 0.352266 & 2.7513 & 0.003902 \tabularnewline
3 & 0.026805 & 0.2094 & 0.417435 \tabularnewline
4 & -0.175393 & -1.3699 & 0.087875 \tabularnewline
5 & -0.242306 & -1.8925 & 0.031588 \tabularnewline
6 & -0.259342 & -2.0255 & 0.023597 \tabularnewline
7 & -0.247312 & -1.9316 & 0.029031 \tabularnewline
8 & -0.199206 & -1.5559 & 0.062458 \tabularnewline
9 & -0.065196 & -0.5092 & 0.306226 \tabularnewline
10 & 0.133958 & 1.0462 & 0.149787 \tabularnewline
11 & 0.347868 & 2.7169 & 0.004281 \tabularnewline
12 & 0.452746 & 3.5361 & 0.000391 \tabularnewline
13 & 0.219938 & 1.7178 & 0.045456 \tabularnewline
14 & -0.009465 & -0.0739 & 0.470656 \tabularnewline
15 & -0.182736 & -1.4272 & 0.079308 \tabularnewline
16 & -0.240064 & -1.875 & 0.032794 \tabularnewline
17 & -0.202543 & -1.5819 & 0.059421 \tabularnewline
18 & -0.155084 & -1.2112 & 0.115237 \tabularnewline
19 & -0.108842 & -0.8501 & 0.199301 \tabularnewline
20 & -0.083827 & -0.6547 & 0.257557 \tabularnewline
21 & -0.017986 & -0.1405 & 0.444372 \tabularnewline
22 & 0.081061 & 0.6331 & 0.264516 \tabularnewline
23 & 0.201742 & 1.5757 & 0.060139 \tabularnewline
24 & 0.256971 & 2.007 & 0.024593 \tabularnewline
25 & 0.063952 & 0.4995 & 0.309618 \tabularnewline
26 & -0.106658 & -0.833 & 0.20404 \tabularnewline
27 & -0.232497 & -1.8159 & 0.037153 \tabularnewline
28 & -0.26449 & -2.0657 & 0.021554 \tabularnewline
29 & -0.23253 & -1.8161 & 0.037134 \tabularnewline
30 & -0.175015 & -1.3669 & 0.088335 \tabularnewline
31 & -0.112066 & -0.8753 & 0.192433 \tabularnewline
32 & -0.075011 & -0.5859 & 0.280066 \tabularnewline
33 & -0.033434 & -0.2611 & 0.397436 \tabularnewline
34 & 0.009878 & 0.0771 & 0.46938 \tabularnewline
35 & 0.077641 & 0.6064 & 0.273251 \tabularnewline
36 & 0.113708 & 0.8881 & 0.188991 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59783&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.716882[/C][C]5.599[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.352266[/C][C]2.7513[/C][C]0.003902[/C][/ROW]
[ROW][C]3[/C][C]0.026805[/C][C]0.2094[/C][C]0.417435[/C][/ROW]
[ROW][C]4[/C][C]-0.175393[/C][C]-1.3699[/C][C]0.087875[/C][/ROW]
[ROW][C]5[/C][C]-0.242306[/C][C]-1.8925[/C][C]0.031588[/C][/ROW]
[ROW][C]6[/C][C]-0.259342[/C][C]-2.0255[/C][C]0.023597[/C][/ROW]
[ROW][C]7[/C][C]-0.247312[/C][C]-1.9316[/C][C]0.029031[/C][/ROW]
[ROW][C]8[/C][C]-0.199206[/C][C]-1.5559[/C][C]0.062458[/C][/ROW]
[ROW][C]9[/C][C]-0.065196[/C][C]-0.5092[/C][C]0.306226[/C][/ROW]
[ROW][C]10[/C][C]0.133958[/C][C]1.0462[/C][C]0.149787[/C][/ROW]
[ROW][C]11[/C][C]0.347868[/C][C]2.7169[/C][C]0.004281[/C][/ROW]
[ROW][C]12[/C][C]0.452746[/C][C]3.5361[/C][C]0.000391[/C][/ROW]
[ROW][C]13[/C][C]0.219938[/C][C]1.7178[/C][C]0.045456[/C][/ROW]
[ROW][C]14[/C][C]-0.009465[/C][C]-0.0739[/C][C]0.470656[/C][/ROW]
[ROW][C]15[/C][C]-0.182736[/C][C]-1.4272[/C][C]0.079308[/C][/ROW]
[ROW][C]16[/C][C]-0.240064[/C][C]-1.875[/C][C]0.032794[/C][/ROW]
[ROW][C]17[/C][C]-0.202543[/C][C]-1.5819[/C][C]0.059421[/C][/ROW]
[ROW][C]18[/C][C]-0.155084[/C][C]-1.2112[/C][C]0.115237[/C][/ROW]
[ROW][C]19[/C][C]-0.108842[/C][C]-0.8501[/C][C]0.199301[/C][/ROW]
[ROW][C]20[/C][C]-0.083827[/C][C]-0.6547[/C][C]0.257557[/C][/ROW]
[ROW][C]21[/C][C]-0.017986[/C][C]-0.1405[/C][C]0.444372[/C][/ROW]
[ROW][C]22[/C][C]0.081061[/C][C]0.6331[/C][C]0.264516[/C][/ROW]
[ROW][C]23[/C][C]0.201742[/C][C]1.5757[/C][C]0.060139[/C][/ROW]
[ROW][C]24[/C][C]0.256971[/C][C]2.007[/C][C]0.024593[/C][/ROW]
[ROW][C]25[/C][C]0.063952[/C][C]0.4995[/C][C]0.309618[/C][/ROW]
[ROW][C]26[/C][C]-0.106658[/C][C]-0.833[/C][C]0.20404[/C][/ROW]
[ROW][C]27[/C][C]-0.232497[/C][C]-1.8159[/C][C]0.037153[/C][/ROW]
[ROW][C]28[/C][C]-0.26449[/C][C]-2.0657[/C][C]0.021554[/C][/ROW]
[ROW][C]29[/C][C]-0.23253[/C][C]-1.8161[/C][C]0.037134[/C][/ROW]
[ROW][C]30[/C][C]-0.175015[/C][C]-1.3669[/C][C]0.088335[/C][/ROW]
[ROW][C]31[/C][C]-0.112066[/C][C]-0.8753[/C][C]0.192433[/C][/ROW]
[ROW][C]32[/C][C]-0.075011[/C][C]-0.5859[/C][C]0.280066[/C][/ROW]
[ROW][C]33[/C][C]-0.033434[/C][C]-0.2611[/C][C]0.397436[/C][/ROW]
[ROW][C]34[/C][C]0.009878[/C][C]0.0771[/C][C]0.46938[/C][/ROW]
[ROW][C]35[/C][C]0.077641[/C][C]0.6064[/C][C]0.273251[/C][/ROW]
[ROW][C]36[/C][C]0.113708[/C][C]0.8881[/C][C]0.188991[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59783&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59783&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
10.7168825.5990
20.3522662.75130.003902
30.0268050.20940.417435
4-0.175393-1.36990.087875
5-0.242306-1.89250.031588
6-0.259342-2.02550.023597
7-0.247312-1.93160.029031
8-0.199206-1.55590.062458
9-0.065196-0.50920.306226
100.1339581.04620.149787
110.3478682.71690.004281
120.4527463.53610.000391
130.2199381.71780.045456
14-0.009465-0.07390.470656
15-0.182736-1.42720.079308
16-0.240064-1.8750.032794
17-0.202543-1.58190.059421
18-0.155084-1.21120.115237
19-0.108842-0.85010.199301
20-0.083827-0.65470.257557
21-0.017986-0.14050.444372
220.0810610.63310.264516
230.2017421.57570.060139
240.2569712.0070.024593
250.0639520.49950.309618
26-0.106658-0.8330.20404
27-0.232497-1.81590.037153
28-0.26449-2.06570.021554
29-0.23253-1.81610.037134
30-0.175015-1.36690.088335
31-0.112066-0.87530.192433
32-0.075011-0.58590.280066
33-0.033434-0.26110.397436
340.0098780.07710.46938
350.0776410.60640.273251
360.1137080.88810.188991







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7168825.5990
2-0.332564-2.59740.005879
3-0.16493-1.28810.10128
4-0.046711-0.36480.358252
5-0.009644-0.07530.470104
6-0.123439-0.96410.169404
7-0.077116-0.60230.274604
8-0.008723-0.06810.472952
90.1400991.09420.139082
100.1630071.27310.103902
110.1950941.52370.066371
120.0521760.40750.342531
13-0.496133-3.87490.000132
140.1596991.24730.10853
150.0277320.21660.414623
160.0045370.03540.485925
17-0.008197-0.0640.474582
180.0037990.02970.488212
190.013490.10540.458216
20-0.088576-0.69180.245843
21-0.00828-0.06470.474325
22-0.010164-0.07940.468493
230.0431860.33730.368527
240.0863870.67470.251207
25-0.199491-1.55810.062195
26-0.023335-0.18230.427995
27-0.040318-0.31490.376959
28-0.068933-0.53840.296135
29-0.092121-0.71950.237294
300.0302680.23640.406958
310.0116310.09080.463958
32-0.035015-0.27350.392707
33-0.104215-0.81390.209422
34-0.085488-0.66770.253427
35-0.042772-0.33410.369739
360.0322540.25190.400979

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.716882 & 5.599 & 0 \tabularnewline
2 & -0.332564 & -2.5974 & 0.005879 \tabularnewline
3 & -0.16493 & -1.2881 & 0.10128 \tabularnewline
4 & -0.046711 & -0.3648 & 0.358252 \tabularnewline
5 & -0.009644 & -0.0753 & 0.470104 \tabularnewline
6 & -0.123439 & -0.9641 & 0.169404 \tabularnewline
7 & -0.077116 & -0.6023 & 0.274604 \tabularnewline
8 & -0.008723 & -0.0681 & 0.472952 \tabularnewline
9 & 0.140099 & 1.0942 & 0.139082 \tabularnewline
10 & 0.163007 & 1.2731 & 0.103902 \tabularnewline
11 & 0.195094 & 1.5237 & 0.066371 \tabularnewline
12 & 0.052176 & 0.4075 & 0.342531 \tabularnewline
13 & -0.496133 & -3.8749 & 0.000132 \tabularnewline
14 & 0.159699 & 1.2473 & 0.10853 \tabularnewline
15 & 0.027732 & 0.2166 & 0.414623 \tabularnewline
16 & 0.004537 & 0.0354 & 0.485925 \tabularnewline
17 & -0.008197 & -0.064 & 0.474582 \tabularnewline
18 & 0.003799 & 0.0297 & 0.488212 \tabularnewline
19 & 0.01349 & 0.1054 & 0.458216 \tabularnewline
20 & -0.088576 & -0.6918 & 0.245843 \tabularnewline
21 & -0.00828 & -0.0647 & 0.474325 \tabularnewline
22 & -0.010164 & -0.0794 & 0.468493 \tabularnewline
23 & 0.043186 & 0.3373 & 0.368527 \tabularnewline
24 & 0.086387 & 0.6747 & 0.251207 \tabularnewline
25 & -0.199491 & -1.5581 & 0.062195 \tabularnewline
26 & -0.023335 & -0.1823 & 0.427995 \tabularnewline
27 & -0.040318 & -0.3149 & 0.376959 \tabularnewline
28 & -0.068933 & -0.5384 & 0.296135 \tabularnewline
29 & -0.092121 & -0.7195 & 0.237294 \tabularnewline
30 & 0.030268 & 0.2364 & 0.406958 \tabularnewline
31 & 0.011631 & 0.0908 & 0.463958 \tabularnewline
32 & -0.035015 & -0.2735 & 0.392707 \tabularnewline
33 & -0.104215 & -0.8139 & 0.209422 \tabularnewline
34 & -0.085488 & -0.6677 & 0.253427 \tabularnewline
35 & -0.042772 & -0.3341 & 0.369739 \tabularnewline
36 & 0.032254 & 0.2519 & 0.400979 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59783&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.716882[/C][C]5.599[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.332564[/C][C]-2.5974[/C][C]0.005879[/C][/ROW]
[ROW][C]3[/C][C]-0.16493[/C][C]-1.2881[/C][C]0.10128[/C][/ROW]
[ROW][C]4[/C][C]-0.046711[/C][C]-0.3648[/C][C]0.358252[/C][/ROW]
[ROW][C]5[/C][C]-0.009644[/C][C]-0.0753[/C][C]0.470104[/C][/ROW]
[ROW][C]6[/C][C]-0.123439[/C][C]-0.9641[/C][C]0.169404[/C][/ROW]
[ROW][C]7[/C][C]-0.077116[/C][C]-0.6023[/C][C]0.274604[/C][/ROW]
[ROW][C]8[/C][C]-0.008723[/C][C]-0.0681[/C][C]0.472952[/C][/ROW]
[ROW][C]9[/C][C]0.140099[/C][C]1.0942[/C][C]0.139082[/C][/ROW]
[ROW][C]10[/C][C]0.163007[/C][C]1.2731[/C][C]0.103902[/C][/ROW]
[ROW][C]11[/C][C]0.195094[/C][C]1.5237[/C][C]0.066371[/C][/ROW]
[ROW][C]12[/C][C]0.052176[/C][C]0.4075[/C][C]0.342531[/C][/ROW]
[ROW][C]13[/C][C]-0.496133[/C][C]-3.8749[/C][C]0.000132[/C][/ROW]
[ROW][C]14[/C][C]0.159699[/C][C]1.2473[/C][C]0.10853[/C][/ROW]
[ROW][C]15[/C][C]0.027732[/C][C]0.2166[/C][C]0.414623[/C][/ROW]
[ROW][C]16[/C][C]0.004537[/C][C]0.0354[/C][C]0.485925[/C][/ROW]
[ROW][C]17[/C][C]-0.008197[/C][C]-0.064[/C][C]0.474582[/C][/ROW]
[ROW][C]18[/C][C]0.003799[/C][C]0.0297[/C][C]0.488212[/C][/ROW]
[ROW][C]19[/C][C]0.01349[/C][C]0.1054[/C][C]0.458216[/C][/ROW]
[ROW][C]20[/C][C]-0.088576[/C][C]-0.6918[/C][C]0.245843[/C][/ROW]
[ROW][C]21[/C][C]-0.00828[/C][C]-0.0647[/C][C]0.474325[/C][/ROW]
[ROW][C]22[/C][C]-0.010164[/C][C]-0.0794[/C][C]0.468493[/C][/ROW]
[ROW][C]23[/C][C]0.043186[/C][C]0.3373[/C][C]0.368527[/C][/ROW]
[ROW][C]24[/C][C]0.086387[/C][C]0.6747[/C][C]0.251207[/C][/ROW]
[ROW][C]25[/C][C]-0.199491[/C][C]-1.5581[/C][C]0.062195[/C][/ROW]
[ROW][C]26[/C][C]-0.023335[/C][C]-0.1823[/C][C]0.427995[/C][/ROW]
[ROW][C]27[/C][C]-0.040318[/C][C]-0.3149[/C][C]0.376959[/C][/ROW]
[ROW][C]28[/C][C]-0.068933[/C][C]-0.5384[/C][C]0.296135[/C][/ROW]
[ROW][C]29[/C][C]-0.092121[/C][C]-0.7195[/C][C]0.237294[/C][/ROW]
[ROW][C]30[/C][C]0.030268[/C][C]0.2364[/C][C]0.406958[/C][/ROW]
[ROW][C]31[/C][C]0.011631[/C][C]0.0908[/C][C]0.463958[/C][/ROW]
[ROW][C]32[/C][C]-0.035015[/C][C]-0.2735[/C][C]0.392707[/C][/ROW]
[ROW][C]33[/C][C]-0.104215[/C][C]-0.8139[/C][C]0.209422[/C][/ROW]
[ROW][C]34[/C][C]-0.085488[/C][C]-0.6677[/C][C]0.253427[/C][/ROW]
[ROW][C]35[/C][C]-0.042772[/C][C]-0.3341[/C][C]0.369739[/C][/ROW]
[ROW][C]36[/C][C]0.032254[/C][C]0.2519[/C][C]0.400979[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59783&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59783&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
10.7168825.5990
2-0.332564-2.59740.005879
3-0.16493-1.28810.10128
4-0.046711-0.36480.358252
5-0.009644-0.07530.470104
6-0.123439-0.96410.169404
7-0.077116-0.60230.274604
8-0.008723-0.06810.472952
90.1400991.09420.139082
100.1630071.27310.103902
110.1950941.52370.066371
120.0521760.40750.342531
13-0.496133-3.87490.000132
140.1596991.24730.10853
150.0277320.21660.414623
160.0045370.03540.485925
17-0.008197-0.0640.474582
180.0037990.02970.488212
190.013490.10540.458216
20-0.088576-0.69180.245843
21-0.00828-0.06470.474325
22-0.010164-0.07940.468493
230.0431860.33730.368527
240.0863870.67470.251207
25-0.199491-1.55810.062195
26-0.023335-0.18230.427995
27-0.040318-0.31490.376959
28-0.068933-0.53840.296135
29-0.092121-0.71950.237294
300.0302680.23640.406958
310.0116310.09080.463958
32-0.035015-0.27350.392707
33-0.104215-0.81390.209422
34-0.085488-0.66770.253427
35-0.042772-0.33410.369739
360.0322540.25190.400979



Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 0 ; 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')