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 computationFri, 27 Nov 2009 10:42:52 -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/27/t125934384511sj5cekm9us9pa.htm/, Retrieved Mon, 29 Apr 2024 06:53:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61050, Retrieved Mon, 29 Apr 2024 06:53:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact101
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:26:39] [b98453cac15ba1066b407e146608df68]
-    D          [(Partial) Autocorrelation Function] [WS8: 1.3 The long...] [2009-11-27 17:42:52] [b8ce264f75295a954feffaf60221d1b0] [Current]
Feedback Forum

Post a new message
Dataseries X:
14,3
14,2
15,9
15,3
15,5
15,1
15
12,1
15,8
16,9
15,1
13,7
14,8
14,7
16
15,4
15
15,5
15,1
11,7
16,3
16,7
15
14,9
14,6
15,3
17,9
16,4
15,4
17,9
15,9
13,9
17,8
17,9
17,4
16,7
16
16,6
19,1
17,8
17,2
18,6
16,3
15,1
19,2
17,7
19,1
18
17,5
17,8
21,1
17,2
19,4
19,8
17,6
16,2
19,5
19,9
20
17,3




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

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.568775-3.89930.000153
20.021650.14840.44132
30.1894031.29850.100229
4-0.121623-0.83380.204304
50.0029250.02010.492044
60.1956471.34130.093136
7-0.301014-2.06360.022299
80.1193330.81810.208713
90.1340490.9190.181397
10-0.161572-1.10770.136818
110.0662980.45450.325775
12-0.019951-0.13680.445895
13-0.107315-0.73570.232781
140.1484591.01780.156996
15-0.000541-0.00370.498527
16-0.195388-1.33950.093423
170.136750.93750.176644
180.0640130.43890.33139
19-0.075859-0.52010.302731
20-0.075547-0.51790.30347
210.2354231.6140.056613
22-0.321235-2.20230.016294
230.2969232.03560.023725
24-0.044048-0.3020.382001
25-0.18803-1.28910.101841
260.1701731.16660.124619
27-0.010347-0.07090.471875
28-0.09189-0.630.265884
290.1037120.7110.240295
30-0.09904-0.6790.25024
310.012440.08530.466198
320.0959350.65770.256971
33-0.134371-0.92120.180826
34-0.002385-0.01640.493512
350.1008780.69160.2463
36-0.130401-0.8940.187942

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.568775 & -3.8993 & 0.000153 \tabularnewline
2 & 0.02165 & 0.1484 & 0.44132 \tabularnewline
3 & 0.189403 & 1.2985 & 0.100229 \tabularnewline
4 & -0.121623 & -0.8338 & 0.204304 \tabularnewline
5 & 0.002925 & 0.0201 & 0.492044 \tabularnewline
6 & 0.195647 & 1.3413 & 0.093136 \tabularnewline
7 & -0.301014 & -2.0636 & 0.022299 \tabularnewline
8 & 0.119333 & 0.8181 & 0.208713 \tabularnewline
9 & 0.134049 & 0.919 & 0.181397 \tabularnewline
10 & -0.161572 & -1.1077 & 0.136818 \tabularnewline
11 & 0.066298 & 0.4545 & 0.325775 \tabularnewline
12 & -0.019951 & -0.1368 & 0.445895 \tabularnewline
13 & -0.107315 & -0.7357 & 0.232781 \tabularnewline
14 & 0.148459 & 1.0178 & 0.156996 \tabularnewline
15 & -0.000541 & -0.0037 & 0.498527 \tabularnewline
16 & -0.195388 & -1.3395 & 0.093423 \tabularnewline
17 & 0.13675 & 0.9375 & 0.176644 \tabularnewline
18 & 0.064013 & 0.4389 & 0.33139 \tabularnewline
19 & -0.075859 & -0.5201 & 0.302731 \tabularnewline
20 & -0.075547 & -0.5179 & 0.30347 \tabularnewline
21 & 0.235423 & 1.614 & 0.056613 \tabularnewline
22 & -0.321235 & -2.2023 & 0.016294 \tabularnewline
23 & 0.296923 & 2.0356 & 0.023725 \tabularnewline
24 & -0.044048 & -0.302 & 0.382001 \tabularnewline
25 & -0.18803 & -1.2891 & 0.101841 \tabularnewline
26 & 0.170173 & 1.1666 & 0.124619 \tabularnewline
27 & -0.010347 & -0.0709 & 0.471875 \tabularnewline
28 & -0.09189 & -0.63 & 0.265884 \tabularnewline
29 & 0.103712 & 0.711 & 0.240295 \tabularnewline
30 & -0.09904 & -0.679 & 0.25024 \tabularnewline
31 & 0.01244 & 0.0853 & 0.466198 \tabularnewline
32 & 0.095935 & 0.6577 & 0.256971 \tabularnewline
33 & -0.134371 & -0.9212 & 0.180826 \tabularnewline
34 & -0.002385 & -0.0164 & 0.493512 \tabularnewline
35 & 0.100878 & 0.6916 & 0.2463 \tabularnewline
36 & -0.130401 & -0.894 & 0.187942 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61050&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.568775[/C][C]-3.8993[/C][C]0.000153[/C][/ROW]
[ROW][C]2[/C][C]0.02165[/C][C]0.1484[/C][C]0.44132[/C][/ROW]
[ROW][C]3[/C][C]0.189403[/C][C]1.2985[/C][C]0.100229[/C][/ROW]
[ROW][C]4[/C][C]-0.121623[/C][C]-0.8338[/C][C]0.204304[/C][/ROW]
[ROW][C]5[/C][C]0.002925[/C][C]0.0201[/C][C]0.492044[/C][/ROW]
[ROW][C]6[/C][C]0.195647[/C][C]1.3413[/C][C]0.093136[/C][/ROW]
[ROW][C]7[/C][C]-0.301014[/C][C]-2.0636[/C][C]0.022299[/C][/ROW]
[ROW][C]8[/C][C]0.119333[/C][C]0.8181[/C][C]0.208713[/C][/ROW]
[ROW][C]9[/C][C]0.134049[/C][C]0.919[/C][C]0.181397[/C][/ROW]
[ROW][C]10[/C][C]-0.161572[/C][C]-1.1077[/C][C]0.136818[/C][/ROW]
[ROW][C]11[/C][C]0.066298[/C][C]0.4545[/C][C]0.325775[/C][/ROW]
[ROW][C]12[/C][C]-0.019951[/C][C]-0.1368[/C][C]0.445895[/C][/ROW]
[ROW][C]13[/C][C]-0.107315[/C][C]-0.7357[/C][C]0.232781[/C][/ROW]
[ROW][C]14[/C][C]0.148459[/C][C]1.0178[/C][C]0.156996[/C][/ROW]
[ROW][C]15[/C][C]-0.000541[/C][C]-0.0037[/C][C]0.498527[/C][/ROW]
[ROW][C]16[/C][C]-0.195388[/C][C]-1.3395[/C][C]0.093423[/C][/ROW]
[ROW][C]17[/C][C]0.13675[/C][C]0.9375[/C][C]0.176644[/C][/ROW]
[ROW][C]18[/C][C]0.064013[/C][C]0.4389[/C][C]0.33139[/C][/ROW]
[ROW][C]19[/C][C]-0.075859[/C][C]-0.5201[/C][C]0.302731[/C][/ROW]
[ROW][C]20[/C][C]-0.075547[/C][C]-0.5179[/C][C]0.30347[/C][/ROW]
[ROW][C]21[/C][C]0.235423[/C][C]1.614[/C][C]0.056613[/C][/ROW]
[ROW][C]22[/C][C]-0.321235[/C][C]-2.2023[/C][C]0.016294[/C][/ROW]
[ROW][C]23[/C][C]0.296923[/C][C]2.0356[/C][C]0.023725[/C][/ROW]
[ROW][C]24[/C][C]-0.044048[/C][C]-0.302[/C][C]0.382001[/C][/ROW]
[ROW][C]25[/C][C]-0.18803[/C][C]-1.2891[/C][C]0.101841[/C][/ROW]
[ROW][C]26[/C][C]0.170173[/C][C]1.1666[/C][C]0.124619[/C][/ROW]
[ROW][C]27[/C][C]-0.010347[/C][C]-0.0709[/C][C]0.471875[/C][/ROW]
[ROW][C]28[/C][C]-0.09189[/C][C]-0.63[/C][C]0.265884[/C][/ROW]
[ROW][C]29[/C][C]0.103712[/C][C]0.711[/C][C]0.240295[/C][/ROW]
[ROW][C]30[/C][C]-0.09904[/C][C]-0.679[/C][C]0.25024[/C][/ROW]
[ROW][C]31[/C][C]0.01244[/C][C]0.0853[/C][C]0.466198[/C][/ROW]
[ROW][C]32[/C][C]0.095935[/C][C]0.6577[/C][C]0.256971[/C][/ROW]
[ROW][C]33[/C][C]-0.134371[/C][C]-0.9212[/C][C]0.180826[/C][/ROW]
[ROW][C]34[/C][C]-0.002385[/C][C]-0.0164[/C][C]0.493512[/C][/ROW]
[ROW][C]35[/C][C]0.100878[/C][C]0.6916[/C][C]0.2463[/C][/ROW]
[ROW][C]36[/C][C]-0.130401[/C][C]-0.894[/C][C]0.187942[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61050&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61050&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.568775-3.89930.000153
20.021650.14840.44132
30.1894031.29850.100229
4-0.121623-0.83380.204304
50.0029250.02010.492044
60.1956471.34130.093136
7-0.301014-2.06360.022299
80.1193330.81810.208713
90.1340490.9190.181397
10-0.161572-1.10770.136818
110.0662980.45450.325775
12-0.019951-0.13680.445895
13-0.107315-0.73570.232781
140.1484591.01780.156996
15-0.000541-0.00370.498527
16-0.195388-1.33950.093423
170.136750.93750.176644
180.0640130.43890.33139
19-0.075859-0.52010.302731
20-0.075547-0.51790.30347
210.2354231.6140.056613
22-0.321235-2.20230.016294
230.2969232.03560.023725
24-0.044048-0.3020.382001
25-0.18803-1.28910.101841
260.1701731.16660.124619
27-0.010347-0.07090.471875
28-0.09189-0.630.265884
290.1037120.7110.240295
30-0.09904-0.6790.25024
310.012440.08530.466198
320.0959350.65770.256971
33-0.134371-0.92120.180826
34-0.002385-0.01640.493512
350.1008780.69160.2463
36-0.130401-0.8940.187942







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.568775-3.89930.000153
2-0.446204-3.0590.00183
3-0.085968-0.58940.279218
40.0069410.04760.481124
50.0022220.01520.493955
60.2821991.93470.029532
7-0.02393-0.16410.435194
8-0.167232-1.14650.1287
90.0014870.01020.495956
100.055530.38070.352572
110.0731980.50180.309067
12-0.046137-0.31630.376588
13-0.195964-1.34350.092787
14-0.151774-1.04050.151712
150.0420820.28850.387115
16-0.037545-0.25740.398998
17-0.086878-0.59560.277148
180.0879990.60330.274608
190.1839221.26090.106783
20-0.155168-1.06380.146433
210.1825681.25160.108451
22-0.059004-0.40450.343837
230.049210.33740.36867
240.1416160.97090.168292
25-0.002524-0.01730.493134
26-0.031974-0.21920.41372
27-0.127745-0.87580.192804
28-0.036122-0.24760.402746
29-0.09127-0.62570.267264
30-0.063517-0.43550.332614
310.0958720.65730.257108
32-0.035664-0.24450.403953
33-0.111131-0.76190.224969
34-0.101941-0.69890.244039
35-0.026921-0.18460.427183
36-0.04179-0.28650.387877

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.568775 & -3.8993 & 0.000153 \tabularnewline
2 & -0.446204 & -3.059 & 0.00183 \tabularnewline
3 & -0.085968 & -0.5894 & 0.279218 \tabularnewline
4 & 0.006941 & 0.0476 & 0.481124 \tabularnewline
5 & 0.002222 & 0.0152 & 0.493955 \tabularnewline
6 & 0.282199 & 1.9347 & 0.029532 \tabularnewline
7 & -0.02393 & -0.1641 & 0.435194 \tabularnewline
8 & -0.167232 & -1.1465 & 0.1287 \tabularnewline
9 & 0.001487 & 0.0102 & 0.495956 \tabularnewline
10 & 0.05553 & 0.3807 & 0.352572 \tabularnewline
11 & 0.073198 & 0.5018 & 0.309067 \tabularnewline
12 & -0.046137 & -0.3163 & 0.376588 \tabularnewline
13 & -0.195964 & -1.3435 & 0.092787 \tabularnewline
14 & -0.151774 & -1.0405 & 0.151712 \tabularnewline
15 & 0.042082 & 0.2885 & 0.387115 \tabularnewline
16 & -0.037545 & -0.2574 & 0.398998 \tabularnewline
17 & -0.086878 & -0.5956 & 0.277148 \tabularnewline
18 & 0.087999 & 0.6033 & 0.274608 \tabularnewline
19 & 0.183922 & 1.2609 & 0.106783 \tabularnewline
20 & -0.155168 & -1.0638 & 0.146433 \tabularnewline
21 & 0.182568 & 1.2516 & 0.108451 \tabularnewline
22 & -0.059004 & -0.4045 & 0.343837 \tabularnewline
23 & 0.04921 & 0.3374 & 0.36867 \tabularnewline
24 & 0.141616 & 0.9709 & 0.168292 \tabularnewline
25 & -0.002524 & -0.0173 & 0.493134 \tabularnewline
26 & -0.031974 & -0.2192 & 0.41372 \tabularnewline
27 & -0.127745 & -0.8758 & 0.192804 \tabularnewline
28 & -0.036122 & -0.2476 & 0.402746 \tabularnewline
29 & -0.09127 & -0.6257 & 0.267264 \tabularnewline
30 & -0.063517 & -0.4355 & 0.332614 \tabularnewline
31 & 0.095872 & 0.6573 & 0.257108 \tabularnewline
32 & -0.035664 & -0.2445 & 0.403953 \tabularnewline
33 & -0.111131 & -0.7619 & 0.224969 \tabularnewline
34 & -0.101941 & -0.6989 & 0.244039 \tabularnewline
35 & -0.026921 & -0.1846 & 0.427183 \tabularnewline
36 & -0.04179 & -0.2865 & 0.387877 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61050&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.568775[/C][C]-3.8993[/C][C]0.000153[/C][/ROW]
[ROW][C]2[/C][C]-0.446204[/C][C]-3.059[/C][C]0.00183[/C][/ROW]
[ROW][C]3[/C][C]-0.085968[/C][C]-0.5894[/C][C]0.279218[/C][/ROW]
[ROW][C]4[/C][C]0.006941[/C][C]0.0476[/C][C]0.481124[/C][/ROW]
[ROW][C]5[/C][C]0.002222[/C][C]0.0152[/C][C]0.493955[/C][/ROW]
[ROW][C]6[/C][C]0.282199[/C][C]1.9347[/C][C]0.029532[/C][/ROW]
[ROW][C]7[/C][C]-0.02393[/C][C]-0.1641[/C][C]0.435194[/C][/ROW]
[ROW][C]8[/C][C]-0.167232[/C][C]-1.1465[/C][C]0.1287[/C][/ROW]
[ROW][C]9[/C][C]0.001487[/C][C]0.0102[/C][C]0.495956[/C][/ROW]
[ROW][C]10[/C][C]0.05553[/C][C]0.3807[/C][C]0.352572[/C][/ROW]
[ROW][C]11[/C][C]0.073198[/C][C]0.5018[/C][C]0.309067[/C][/ROW]
[ROW][C]12[/C][C]-0.046137[/C][C]-0.3163[/C][C]0.376588[/C][/ROW]
[ROW][C]13[/C][C]-0.195964[/C][C]-1.3435[/C][C]0.092787[/C][/ROW]
[ROW][C]14[/C][C]-0.151774[/C][C]-1.0405[/C][C]0.151712[/C][/ROW]
[ROW][C]15[/C][C]0.042082[/C][C]0.2885[/C][C]0.387115[/C][/ROW]
[ROW][C]16[/C][C]-0.037545[/C][C]-0.2574[/C][C]0.398998[/C][/ROW]
[ROW][C]17[/C][C]-0.086878[/C][C]-0.5956[/C][C]0.277148[/C][/ROW]
[ROW][C]18[/C][C]0.087999[/C][C]0.6033[/C][C]0.274608[/C][/ROW]
[ROW][C]19[/C][C]0.183922[/C][C]1.2609[/C][C]0.106783[/C][/ROW]
[ROW][C]20[/C][C]-0.155168[/C][C]-1.0638[/C][C]0.146433[/C][/ROW]
[ROW][C]21[/C][C]0.182568[/C][C]1.2516[/C][C]0.108451[/C][/ROW]
[ROW][C]22[/C][C]-0.059004[/C][C]-0.4045[/C][C]0.343837[/C][/ROW]
[ROW][C]23[/C][C]0.04921[/C][C]0.3374[/C][C]0.36867[/C][/ROW]
[ROW][C]24[/C][C]0.141616[/C][C]0.9709[/C][C]0.168292[/C][/ROW]
[ROW][C]25[/C][C]-0.002524[/C][C]-0.0173[/C][C]0.493134[/C][/ROW]
[ROW][C]26[/C][C]-0.031974[/C][C]-0.2192[/C][C]0.41372[/C][/ROW]
[ROW][C]27[/C][C]-0.127745[/C][C]-0.8758[/C][C]0.192804[/C][/ROW]
[ROW][C]28[/C][C]-0.036122[/C][C]-0.2476[/C][C]0.402746[/C][/ROW]
[ROW][C]29[/C][C]-0.09127[/C][C]-0.6257[/C][C]0.267264[/C][/ROW]
[ROW][C]30[/C][C]-0.063517[/C][C]-0.4355[/C][C]0.332614[/C][/ROW]
[ROW][C]31[/C][C]0.095872[/C][C]0.6573[/C][C]0.257108[/C][/ROW]
[ROW][C]32[/C][C]-0.035664[/C][C]-0.2445[/C][C]0.403953[/C][/ROW]
[ROW][C]33[/C][C]-0.111131[/C][C]-0.7619[/C][C]0.224969[/C][/ROW]
[ROW][C]34[/C][C]-0.101941[/C][C]-0.6989[/C][C]0.244039[/C][/ROW]
[ROW][C]35[/C][C]-0.026921[/C][C]-0.1846[/C][C]0.427183[/C][/ROW]
[ROW][C]36[/C][C]-0.04179[/C][C]-0.2865[/C][C]0.387877[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61050&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61050&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.568775-3.89930.000153
2-0.446204-3.0590.00183
3-0.085968-0.58940.279218
40.0069410.04760.481124
50.0022220.01520.493955
60.2821991.93470.029532
7-0.02393-0.16410.435194
8-0.167232-1.14650.1287
90.0014870.01020.495956
100.055530.38070.352572
110.0731980.50180.309067
12-0.046137-0.31630.376588
13-0.195964-1.34350.092787
14-0.151774-1.04050.151712
150.0420820.28850.387115
16-0.037545-0.25740.398998
17-0.086878-0.59560.277148
180.0879990.60330.274608
190.1839221.26090.106783
20-0.155168-1.06380.146433
210.1825681.25160.108451
22-0.059004-0.40450.343837
230.049210.33740.36867
240.1416160.97090.168292
25-0.002524-0.01730.493134
26-0.031974-0.21920.41372
27-0.127745-0.87580.192804
28-0.036122-0.24760.402746
29-0.09127-0.62570.267264
30-0.063517-0.43550.332614
310.0958720.65730.257108
32-0.035664-0.24450.403953
33-0.111131-0.76190.224969
34-0.101941-0.69890.244039
35-0.026921-0.18460.427183
36-0.04179-0.28650.387877



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