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:42:48 -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/t1259232247i51u3eb7rbchztl.htm/, Retrieved Sun, 28 Apr 2024 20:26:32 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59805, Retrieved Sun, 28 Apr 2024 20:26:32 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact210
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:19:56] [b98453cac15ba1066b407e146608df68]
-   PD          [(Partial) Autocorrelation Function] [Methode ACF, D=1] [2009-11-26 10:42:48] [f97f6131ca109ba89501d75ae11b45c9] [Current]
Feedback Forum

Post a new message
Dataseries X:
10
9.2
9.2
9.5
9.6
9.5
9.1
8.9
9
10.1
10.3
10.2
9.6
9.2
9.3
9.4
9.4
9.2
9
9
9
9.8
10
9.8
9.3
9
9
9.1
9.1
9.1
9.2
8.8
8.3
8.4
8.1
7.7
7.9
7.9
8
7.9
7.6
7.1
6.8
6.5
6.9
8.2
8.7
8.3
7.9
7.5
7.8
8.3
8.4
8.2
7.7
7.2
7.3
8.1
8.5
8.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=59805&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=59805&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59805&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.8835076.12110
20.6379064.41952.8e-05
30.3968072.74920.004198
40.2595121.7980.039238
50.243181.68480.04926
60.2825141.95730.028069
70.2805961.9440.028883
80.1944221.3470.092154
90.0195030.13510.44654
10-0.190869-1.32240.096154
11-0.365117-2.52960.007378
12-0.456325-3.16150.00136
13-0.454589-3.14950.001407
14-0.39207-2.71630.004575
15-0.330096-2.2870.013324
16-0.300849-2.08430.021237
17-0.307056-2.12730.019278
18-0.330422-2.28920.013253
19-0.33367-2.31170.012565
20-0.303219-2.10080.020469
21-0.24507-1.69790.048001
22-0.179065-1.24060.110391
23-0.124759-0.86440.195845
24-0.090585-0.62760.266624
25-0.051595-0.35750.361158
26-0.021063-0.14590.442296
27-0.008624-0.05970.476302
28-0.010361-0.07180.471537
29-0.009101-0.06310.474993
300.0045040.03120.487618
310.039820.27590.391913
320.0727340.50390.308312
330.0863330.59810.276283
340.0808970.56050.288883
350.0669780.4640.322358
360.0620940.43020.334487

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.883507 & 6.1211 & 0 \tabularnewline
2 & 0.637906 & 4.4195 & 2.8e-05 \tabularnewline
3 & 0.396807 & 2.7492 & 0.004198 \tabularnewline
4 & 0.259512 & 1.798 & 0.039238 \tabularnewline
5 & 0.24318 & 1.6848 & 0.04926 \tabularnewline
6 & 0.282514 & 1.9573 & 0.028069 \tabularnewline
7 & 0.280596 & 1.944 & 0.028883 \tabularnewline
8 & 0.194422 & 1.347 & 0.092154 \tabularnewline
9 & 0.019503 & 0.1351 & 0.44654 \tabularnewline
10 & -0.190869 & -1.3224 & 0.096154 \tabularnewline
11 & -0.365117 & -2.5296 & 0.007378 \tabularnewline
12 & -0.456325 & -3.1615 & 0.00136 \tabularnewline
13 & -0.454589 & -3.1495 & 0.001407 \tabularnewline
14 & -0.39207 & -2.7163 & 0.004575 \tabularnewline
15 & -0.330096 & -2.287 & 0.013324 \tabularnewline
16 & -0.300849 & -2.0843 & 0.021237 \tabularnewline
17 & -0.307056 & -2.1273 & 0.019278 \tabularnewline
18 & -0.330422 & -2.2892 & 0.013253 \tabularnewline
19 & -0.33367 & -2.3117 & 0.012565 \tabularnewline
20 & -0.303219 & -2.1008 & 0.020469 \tabularnewline
21 & -0.24507 & -1.6979 & 0.048001 \tabularnewline
22 & -0.179065 & -1.2406 & 0.110391 \tabularnewline
23 & -0.124759 & -0.8644 & 0.195845 \tabularnewline
24 & -0.090585 & -0.6276 & 0.266624 \tabularnewline
25 & -0.051595 & -0.3575 & 0.361158 \tabularnewline
26 & -0.021063 & -0.1459 & 0.442296 \tabularnewline
27 & -0.008624 & -0.0597 & 0.476302 \tabularnewline
28 & -0.010361 & -0.0718 & 0.471537 \tabularnewline
29 & -0.009101 & -0.0631 & 0.474993 \tabularnewline
30 & 0.004504 & 0.0312 & 0.487618 \tabularnewline
31 & 0.03982 & 0.2759 & 0.391913 \tabularnewline
32 & 0.072734 & 0.5039 & 0.308312 \tabularnewline
33 & 0.086333 & 0.5981 & 0.276283 \tabularnewline
34 & 0.080897 & 0.5605 & 0.288883 \tabularnewline
35 & 0.066978 & 0.464 & 0.322358 \tabularnewline
36 & 0.062094 & 0.4302 & 0.334487 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59805&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.883507[/C][C]6.1211[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.637906[/C][C]4.4195[/C][C]2.8e-05[/C][/ROW]
[ROW][C]3[/C][C]0.396807[/C][C]2.7492[/C][C]0.004198[/C][/ROW]
[ROW][C]4[/C][C]0.259512[/C][C]1.798[/C][C]0.039238[/C][/ROW]
[ROW][C]5[/C][C]0.24318[/C][C]1.6848[/C][C]0.04926[/C][/ROW]
[ROW][C]6[/C][C]0.282514[/C][C]1.9573[/C][C]0.028069[/C][/ROW]
[ROW][C]7[/C][C]0.280596[/C][C]1.944[/C][C]0.028883[/C][/ROW]
[ROW][C]8[/C][C]0.194422[/C][C]1.347[/C][C]0.092154[/C][/ROW]
[ROW][C]9[/C][C]0.019503[/C][C]0.1351[/C][C]0.44654[/C][/ROW]
[ROW][C]10[/C][C]-0.190869[/C][C]-1.3224[/C][C]0.096154[/C][/ROW]
[ROW][C]11[/C][C]-0.365117[/C][C]-2.5296[/C][C]0.007378[/C][/ROW]
[ROW][C]12[/C][C]-0.456325[/C][C]-3.1615[/C][C]0.00136[/C][/ROW]
[ROW][C]13[/C][C]-0.454589[/C][C]-3.1495[/C][C]0.001407[/C][/ROW]
[ROW][C]14[/C][C]-0.39207[/C][C]-2.7163[/C][C]0.004575[/C][/ROW]
[ROW][C]15[/C][C]-0.330096[/C][C]-2.287[/C][C]0.013324[/C][/ROW]
[ROW][C]16[/C][C]-0.300849[/C][C]-2.0843[/C][C]0.021237[/C][/ROW]
[ROW][C]17[/C][C]-0.307056[/C][C]-2.1273[/C][C]0.019278[/C][/ROW]
[ROW][C]18[/C][C]-0.330422[/C][C]-2.2892[/C][C]0.013253[/C][/ROW]
[ROW][C]19[/C][C]-0.33367[/C][C]-2.3117[/C][C]0.012565[/C][/ROW]
[ROW][C]20[/C][C]-0.303219[/C][C]-2.1008[/C][C]0.020469[/C][/ROW]
[ROW][C]21[/C][C]-0.24507[/C][C]-1.6979[/C][C]0.048001[/C][/ROW]
[ROW][C]22[/C][C]-0.179065[/C][C]-1.2406[/C][C]0.110391[/C][/ROW]
[ROW][C]23[/C][C]-0.124759[/C][C]-0.8644[/C][C]0.195845[/C][/ROW]
[ROW][C]24[/C][C]-0.090585[/C][C]-0.6276[/C][C]0.266624[/C][/ROW]
[ROW][C]25[/C][C]-0.051595[/C][C]-0.3575[/C][C]0.361158[/C][/ROW]
[ROW][C]26[/C][C]-0.021063[/C][C]-0.1459[/C][C]0.442296[/C][/ROW]
[ROW][C]27[/C][C]-0.008624[/C][C]-0.0597[/C][C]0.476302[/C][/ROW]
[ROW][C]28[/C][C]-0.010361[/C][C]-0.0718[/C][C]0.471537[/C][/ROW]
[ROW][C]29[/C][C]-0.009101[/C][C]-0.0631[/C][C]0.474993[/C][/ROW]
[ROW][C]30[/C][C]0.004504[/C][C]0.0312[/C][C]0.487618[/C][/ROW]
[ROW][C]31[/C][C]0.03982[/C][C]0.2759[/C][C]0.391913[/C][/ROW]
[ROW][C]32[/C][C]0.072734[/C][C]0.5039[/C][C]0.308312[/C][/ROW]
[ROW][C]33[/C][C]0.086333[/C][C]0.5981[/C][C]0.276283[/C][/ROW]
[ROW][C]34[/C][C]0.080897[/C][C]0.5605[/C][C]0.288883[/C][/ROW]
[ROW][C]35[/C][C]0.066978[/C][C]0.464[/C][C]0.322358[/C][/ROW]
[ROW][C]36[/C][C]0.062094[/C][C]0.4302[/C][C]0.334487[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59805&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59805&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.8835076.12110
20.6379064.41952.8e-05
30.3968072.74920.004198
40.2595121.7980.039238
50.243181.68480.04926
60.2825141.95730.028069
70.2805961.9440.028883
80.1944221.3470.092154
90.0195030.13510.44654
10-0.190869-1.32240.096154
11-0.365117-2.52960.007378
12-0.456325-3.16150.00136
13-0.454589-3.14950.001407
14-0.39207-2.71630.004575
15-0.330096-2.2870.013324
16-0.300849-2.08430.021237
17-0.307056-2.12730.019278
18-0.330422-2.28920.013253
19-0.33367-2.31170.012565
20-0.303219-2.10080.020469
21-0.24507-1.69790.048001
22-0.179065-1.24060.110391
23-0.124759-0.86440.195845
24-0.090585-0.62760.266624
25-0.051595-0.35750.361158
26-0.021063-0.14590.442296
27-0.008624-0.05970.476302
28-0.010361-0.07180.471537
29-0.009101-0.06310.474993
300.0045040.03120.487618
310.039820.27590.391913
320.0727340.50390.308312
330.0863330.59810.276283
340.0808970.56050.288883
350.0669780.4640.322358
360.0620940.43020.334487







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8835076.12110
2-0.650263-4.50522.1e-05
30.3256522.25620.014326
40.2376611.64660.05309
50.0534540.37030.356379
6-0.136311-0.94440.17485
7-0.22053-1.52790.066553
8-0.017144-0.11880.452975
9-0.311411-2.15750.018
10-0.126842-0.87880.191948
11-0.094854-0.65720.257105
12-0.064184-0.44470.329274
130.0556670.38570.350722
14-0.002036-0.01410.494402
15-0.009128-0.06320.474919
160.1132190.78440.218329
170.0361010.25010.401784
18-0.047835-0.33140.370889
190.015690.10870.456946
20-0.136098-0.94290.175223
21-0.078763-0.54570.293906
22-0.165849-1.1490.128118
23-0.071083-0.49250.312314
24-0.057099-0.39560.347079
250.1742451.20720.116634
26-0.232825-1.61310.056644
27-0.03376-0.23390.408029
280.0978430.67790.250552
290.115570.80070.213628
30-0.069032-0.47830.317316
31-0.001643-0.01140.495482
32-0.066796-0.46280.322809
33-0.083211-0.57650.283485
340.010940.07580.469948
35-0.074898-0.51890.303105
360.0306310.21220.416419

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.883507 & 6.1211 & 0 \tabularnewline
2 & -0.650263 & -4.5052 & 2.1e-05 \tabularnewline
3 & 0.325652 & 2.2562 & 0.014326 \tabularnewline
4 & 0.237661 & 1.6466 & 0.05309 \tabularnewline
5 & 0.053454 & 0.3703 & 0.356379 \tabularnewline
6 & -0.136311 & -0.9444 & 0.17485 \tabularnewline
7 & -0.22053 & -1.5279 & 0.066553 \tabularnewline
8 & -0.017144 & -0.1188 & 0.452975 \tabularnewline
9 & -0.311411 & -2.1575 & 0.018 \tabularnewline
10 & -0.126842 & -0.8788 & 0.191948 \tabularnewline
11 & -0.094854 & -0.6572 & 0.257105 \tabularnewline
12 & -0.064184 & -0.4447 & 0.329274 \tabularnewline
13 & 0.055667 & 0.3857 & 0.350722 \tabularnewline
14 & -0.002036 & -0.0141 & 0.494402 \tabularnewline
15 & -0.009128 & -0.0632 & 0.474919 \tabularnewline
16 & 0.113219 & 0.7844 & 0.218329 \tabularnewline
17 & 0.036101 & 0.2501 & 0.401784 \tabularnewline
18 & -0.047835 & -0.3314 & 0.370889 \tabularnewline
19 & 0.01569 & 0.1087 & 0.456946 \tabularnewline
20 & -0.136098 & -0.9429 & 0.175223 \tabularnewline
21 & -0.078763 & -0.5457 & 0.293906 \tabularnewline
22 & -0.165849 & -1.149 & 0.128118 \tabularnewline
23 & -0.071083 & -0.4925 & 0.312314 \tabularnewline
24 & -0.057099 & -0.3956 & 0.347079 \tabularnewline
25 & 0.174245 & 1.2072 & 0.116634 \tabularnewline
26 & -0.232825 & -1.6131 & 0.056644 \tabularnewline
27 & -0.03376 & -0.2339 & 0.408029 \tabularnewline
28 & 0.097843 & 0.6779 & 0.250552 \tabularnewline
29 & 0.11557 & 0.8007 & 0.213628 \tabularnewline
30 & -0.069032 & -0.4783 & 0.317316 \tabularnewline
31 & -0.001643 & -0.0114 & 0.495482 \tabularnewline
32 & -0.066796 & -0.4628 & 0.322809 \tabularnewline
33 & -0.083211 & -0.5765 & 0.283485 \tabularnewline
34 & 0.01094 & 0.0758 & 0.469948 \tabularnewline
35 & -0.074898 & -0.5189 & 0.303105 \tabularnewline
36 & 0.030631 & 0.2122 & 0.416419 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59805&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.883507[/C][C]6.1211[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.650263[/C][C]-4.5052[/C][C]2.1e-05[/C][/ROW]
[ROW][C]3[/C][C]0.325652[/C][C]2.2562[/C][C]0.014326[/C][/ROW]
[ROW][C]4[/C][C]0.237661[/C][C]1.6466[/C][C]0.05309[/C][/ROW]
[ROW][C]5[/C][C]0.053454[/C][C]0.3703[/C][C]0.356379[/C][/ROW]
[ROW][C]6[/C][C]-0.136311[/C][C]-0.9444[/C][C]0.17485[/C][/ROW]
[ROW][C]7[/C][C]-0.22053[/C][C]-1.5279[/C][C]0.066553[/C][/ROW]
[ROW][C]8[/C][C]-0.017144[/C][C]-0.1188[/C][C]0.452975[/C][/ROW]
[ROW][C]9[/C][C]-0.311411[/C][C]-2.1575[/C][C]0.018[/C][/ROW]
[ROW][C]10[/C][C]-0.126842[/C][C]-0.8788[/C][C]0.191948[/C][/ROW]
[ROW][C]11[/C][C]-0.094854[/C][C]-0.6572[/C][C]0.257105[/C][/ROW]
[ROW][C]12[/C][C]-0.064184[/C][C]-0.4447[/C][C]0.329274[/C][/ROW]
[ROW][C]13[/C][C]0.055667[/C][C]0.3857[/C][C]0.350722[/C][/ROW]
[ROW][C]14[/C][C]-0.002036[/C][C]-0.0141[/C][C]0.494402[/C][/ROW]
[ROW][C]15[/C][C]-0.009128[/C][C]-0.0632[/C][C]0.474919[/C][/ROW]
[ROW][C]16[/C][C]0.113219[/C][C]0.7844[/C][C]0.218329[/C][/ROW]
[ROW][C]17[/C][C]0.036101[/C][C]0.2501[/C][C]0.401784[/C][/ROW]
[ROW][C]18[/C][C]-0.047835[/C][C]-0.3314[/C][C]0.370889[/C][/ROW]
[ROW][C]19[/C][C]0.01569[/C][C]0.1087[/C][C]0.456946[/C][/ROW]
[ROW][C]20[/C][C]-0.136098[/C][C]-0.9429[/C][C]0.175223[/C][/ROW]
[ROW][C]21[/C][C]-0.078763[/C][C]-0.5457[/C][C]0.293906[/C][/ROW]
[ROW][C]22[/C][C]-0.165849[/C][C]-1.149[/C][C]0.128118[/C][/ROW]
[ROW][C]23[/C][C]-0.071083[/C][C]-0.4925[/C][C]0.312314[/C][/ROW]
[ROW][C]24[/C][C]-0.057099[/C][C]-0.3956[/C][C]0.347079[/C][/ROW]
[ROW][C]25[/C][C]0.174245[/C][C]1.2072[/C][C]0.116634[/C][/ROW]
[ROW][C]26[/C][C]-0.232825[/C][C]-1.6131[/C][C]0.056644[/C][/ROW]
[ROW][C]27[/C][C]-0.03376[/C][C]-0.2339[/C][C]0.408029[/C][/ROW]
[ROW][C]28[/C][C]0.097843[/C][C]0.6779[/C][C]0.250552[/C][/ROW]
[ROW][C]29[/C][C]0.11557[/C][C]0.8007[/C][C]0.213628[/C][/ROW]
[ROW][C]30[/C][C]-0.069032[/C][C]-0.4783[/C][C]0.317316[/C][/ROW]
[ROW][C]31[/C][C]-0.001643[/C][C]-0.0114[/C][C]0.495482[/C][/ROW]
[ROW][C]32[/C][C]-0.066796[/C][C]-0.4628[/C][C]0.322809[/C][/ROW]
[ROW][C]33[/C][C]-0.083211[/C][C]-0.5765[/C][C]0.283485[/C][/ROW]
[ROW][C]34[/C][C]0.01094[/C][C]0.0758[/C][C]0.469948[/C][/ROW]
[ROW][C]35[/C][C]-0.074898[/C][C]-0.5189[/C][C]0.303105[/C][/ROW]
[ROW][C]36[/C][C]0.030631[/C][C]0.2122[/C][C]0.416419[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59805&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59805&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.8835076.12110
2-0.650263-4.50522.1e-05
30.3256522.25620.014326
40.2376611.64660.05309
50.0534540.37030.356379
6-0.136311-0.94440.17485
7-0.22053-1.52790.066553
8-0.017144-0.11880.452975
9-0.311411-2.15750.018
10-0.126842-0.87880.191948
11-0.094854-0.65720.257105
12-0.064184-0.44470.329274
130.0556670.38570.350722
14-0.002036-0.01410.494402
15-0.009128-0.06320.474919
160.1132190.78440.218329
170.0361010.25010.401784
18-0.047835-0.33140.370889
190.015690.10870.456946
20-0.136098-0.94290.175223
21-0.078763-0.54570.293906
22-0.165849-1.1490.128118
23-0.071083-0.49250.312314
24-0.057099-0.39560.347079
250.1742451.20720.116634
26-0.232825-1.61310.056644
27-0.03376-0.23390.408029
280.0978430.67790.250552
290.115570.80070.213628
30-0.069032-0.47830.317316
31-0.001643-0.01140.495482
32-0.066796-0.46280.322809
33-0.083211-0.57650.283485
340.010940.07580.469948
35-0.074898-0.51890.303105
360.0306310.21220.416419



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