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, 17 Dec 2009 02:33:58 -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/17/t1261042518alvrhzndlbk2oyn.htm/, Retrieved Tue, 30 Apr 2024 02:59:25 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68664, Retrieved Tue, 30 Apr 2024 02:59:25 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact139
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-12-17 09:33:58] [479db4778e5b462dda1f74ecdd6ccff3] [Current]
Feedback Forum

Post a new message
Dataseries X:
43.9
51
51.9
54.3
50.3
57.2
48.8
41.1
58
63
53.8
54.7
55.5
56.1
69.6
69.4
57.2
68
53.3
47.9
60.8
61.7
57.8
51.4
50.5
48.1
58.7
54
56.1
60.4
51.2
50.7
56.4
53.3
52.6
47.7
49.5
48.5
55.3
49.8
57.4
64.6
53
41.5
55.9
58.4
53.5
50.6
58.5
49.1
61.1
52.3
58.4
65.5
61.7
45.1
52.1
59.3
57.9
45
64.9
63.8
69.4
71.1
62.9
73.5
62.7
51.9
73.3
66.7
62.5
70.3




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68664&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.3362792.85340.002822
20.1403951.19130.118725
30.312262.64960.00495
40.1788991.5180.066696
50.1473251.25010.107657
60.2447112.07640.020712
70.0948740.8050.211725
80.1278321.08470.140838
90.0127050.10780.457224
10-0.119315-1.01240.157363
11-0.013849-0.11750.453389
120.2412562.04710.022148
13-0.034934-0.29640.383879
14-0.190145-1.61340.055513
15-0.079995-0.67880.249728
16-0.034972-0.29670.383758
17-0.070609-0.59910.275481
180.020920.17750.429803
19-0.050336-0.42710.335285
20-0.044937-0.38130.352051
21-0.056887-0.48270.315385
22-0.194677-1.65190.051456
23-0.04881-0.41420.339992
240.1334221.13210.130669
25-0.073982-0.62780.266073
26-0.172894-1.46710.073358
27-0.06562-0.55680.289695
28-0.120637-1.02360.154717
29-0.143976-1.22170.112908
30-0.018543-0.15730.437706
31-0.015243-0.12930.448725
32-0.046742-0.39660.34641
33-0.031128-0.26410.396218
34-0.153001-1.29830.099171
35-0.082069-0.69640.244218
360.1107430.93970.17526

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.336279 & 2.8534 & 0.002822 \tabularnewline
2 & 0.140395 & 1.1913 & 0.118725 \tabularnewline
3 & 0.31226 & 2.6496 & 0.00495 \tabularnewline
4 & 0.178899 & 1.518 & 0.066696 \tabularnewline
5 & 0.147325 & 1.2501 & 0.107657 \tabularnewline
6 & 0.244711 & 2.0764 & 0.020712 \tabularnewline
7 & 0.094874 & 0.805 & 0.211725 \tabularnewline
8 & 0.127832 & 1.0847 & 0.140838 \tabularnewline
9 & 0.012705 & 0.1078 & 0.457224 \tabularnewline
10 & -0.119315 & -1.0124 & 0.157363 \tabularnewline
11 & -0.013849 & -0.1175 & 0.453389 \tabularnewline
12 & 0.241256 & 2.0471 & 0.022148 \tabularnewline
13 & -0.034934 & -0.2964 & 0.383879 \tabularnewline
14 & -0.190145 & -1.6134 & 0.055513 \tabularnewline
15 & -0.079995 & -0.6788 & 0.249728 \tabularnewline
16 & -0.034972 & -0.2967 & 0.383758 \tabularnewline
17 & -0.070609 & -0.5991 & 0.275481 \tabularnewline
18 & 0.02092 & 0.1775 & 0.429803 \tabularnewline
19 & -0.050336 & -0.4271 & 0.335285 \tabularnewline
20 & -0.044937 & -0.3813 & 0.352051 \tabularnewline
21 & -0.056887 & -0.4827 & 0.315385 \tabularnewline
22 & -0.194677 & -1.6519 & 0.051456 \tabularnewline
23 & -0.04881 & -0.4142 & 0.339992 \tabularnewline
24 & 0.133422 & 1.1321 & 0.130669 \tabularnewline
25 & -0.073982 & -0.6278 & 0.266073 \tabularnewline
26 & -0.172894 & -1.4671 & 0.073358 \tabularnewline
27 & -0.06562 & -0.5568 & 0.289695 \tabularnewline
28 & -0.120637 & -1.0236 & 0.154717 \tabularnewline
29 & -0.143976 & -1.2217 & 0.112908 \tabularnewline
30 & -0.018543 & -0.1573 & 0.437706 \tabularnewline
31 & -0.015243 & -0.1293 & 0.448725 \tabularnewline
32 & -0.046742 & -0.3966 & 0.34641 \tabularnewline
33 & -0.031128 & -0.2641 & 0.396218 \tabularnewline
34 & -0.153001 & -1.2983 & 0.099171 \tabularnewline
35 & -0.082069 & -0.6964 & 0.244218 \tabularnewline
36 & 0.110743 & 0.9397 & 0.17526 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68664&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.336279[/C][C]2.8534[/C][C]0.002822[/C][/ROW]
[ROW][C]2[/C][C]0.140395[/C][C]1.1913[/C][C]0.118725[/C][/ROW]
[ROW][C]3[/C][C]0.31226[/C][C]2.6496[/C][C]0.00495[/C][/ROW]
[ROW][C]4[/C][C]0.178899[/C][C]1.518[/C][C]0.066696[/C][/ROW]
[ROW][C]5[/C][C]0.147325[/C][C]1.2501[/C][C]0.107657[/C][/ROW]
[ROW][C]6[/C][C]0.244711[/C][C]2.0764[/C][C]0.020712[/C][/ROW]
[ROW][C]7[/C][C]0.094874[/C][C]0.805[/C][C]0.211725[/C][/ROW]
[ROW][C]8[/C][C]0.127832[/C][C]1.0847[/C][C]0.140838[/C][/ROW]
[ROW][C]9[/C][C]0.012705[/C][C]0.1078[/C][C]0.457224[/C][/ROW]
[ROW][C]10[/C][C]-0.119315[/C][C]-1.0124[/C][C]0.157363[/C][/ROW]
[ROW][C]11[/C][C]-0.013849[/C][C]-0.1175[/C][C]0.453389[/C][/ROW]
[ROW][C]12[/C][C]0.241256[/C][C]2.0471[/C][C]0.022148[/C][/ROW]
[ROW][C]13[/C][C]-0.034934[/C][C]-0.2964[/C][C]0.383879[/C][/ROW]
[ROW][C]14[/C][C]-0.190145[/C][C]-1.6134[/C][C]0.055513[/C][/ROW]
[ROW][C]15[/C][C]-0.079995[/C][C]-0.6788[/C][C]0.249728[/C][/ROW]
[ROW][C]16[/C][C]-0.034972[/C][C]-0.2967[/C][C]0.383758[/C][/ROW]
[ROW][C]17[/C][C]-0.070609[/C][C]-0.5991[/C][C]0.275481[/C][/ROW]
[ROW][C]18[/C][C]0.02092[/C][C]0.1775[/C][C]0.429803[/C][/ROW]
[ROW][C]19[/C][C]-0.050336[/C][C]-0.4271[/C][C]0.335285[/C][/ROW]
[ROW][C]20[/C][C]-0.044937[/C][C]-0.3813[/C][C]0.352051[/C][/ROW]
[ROW][C]21[/C][C]-0.056887[/C][C]-0.4827[/C][C]0.315385[/C][/ROW]
[ROW][C]22[/C][C]-0.194677[/C][C]-1.6519[/C][C]0.051456[/C][/ROW]
[ROW][C]23[/C][C]-0.04881[/C][C]-0.4142[/C][C]0.339992[/C][/ROW]
[ROW][C]24[/C][C]0.133422[/C][C]1.1321[/C][C]0.130669[/C][/ROW]
[ROW][C]25[/C][C]-0.073982[/C][C]-0.6278[/C][C]0.266073[/C][/ROW]
[ROW][C]26[/C][C]-0.172894[/C][C]-1.4671[/C][C]0.073358[/C][/ROW]
[ROW][C]27[/C][C]-0.06562[/C][C]-0.5568[/C][C]0.289695[/C][/ROW]
[ROW][C]28[/C][C]-0.120637[/C][C]-1.0236[/C][C]0.154717[/C][/ROW]
[ROW][C]29[/C][C]-0.143976[/C][C]-1.2217[/C][C]0.112908[/C][/ROW]
[ROW][C]30[/C][C]-0.018543[/C][C]-0.1573[/C][C]0.437706[/C][/ROW]
[ROW][C]31[/C][C]-0.015243[/C][C]-0.1293[/C][C]0.448725[/C][/ROW]
[ROW][C]32[/C][C]-0.046742[/C][C]-0.3966[/C][C]0.34641[/C][/ROW]
[ROW][C]33[/C][C]-0.031128[/C][C]-0.2641[/C][C]0.396218[/C][/ROW]
[ROW][C]34[/C][C]-0.153001[/C][C]-1.2983[/C][C]0.099171[/C][/ROW]
[ROW][C]35[/C][C]-0.082069[/C][C]-0.6964[/C][C]0.244218[/C][/ROW]
[ROW][C]36[/C][C]0.110743[/C][C]0.9397[/C][C]0.17526[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68664&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68664&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.3362792.85340.002822
20.1403951.19130.118725
30.312262.64960.00495
40.1788991.5180.066696
50.1473251.25010.107657
60.2447112.07640.020712
70.0948740.8050.211725
80.1278321.08470.140838
90.0127050.10780.457224
10-0.119315-1.01240.157363
11-0.013849-0.11750.453389
120.2412562.04710.022148
13-0.034934-0.29640.383879
14-0.190145-1.61340.055513
15-0.079995-0.67880.249728
16-0.034972-0.29670.383758
17-0.070609-0.59910.275481
180.020920.17750.429803
19-0.050336-0.42710.335285
20-0.044937-0.38130.352051
21-0.056887-0.48270.315385
22-0.194677-1.65190.051456
23-0.04881-0.41420.339992
240.1334221.13210.130669
25-0.073982-0.62780.266073
26-0.172894-1.46710.073358
27-0.06562-0.55680.289695
28-0.120637-1.02360.154717
29-0.143976-1.22170.112908
30-0.018543-0.15730.437706
31-0.015243-0.12930.448725
32-0.046742-0.39660.34641
33-0.031128-0.26410.396218
34-0.153001-1.29830.099171
35-0.082069-0.69640.244218
360.1107430.93970.17526







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3362792.85340.002822
20.0307940.26130.397305
30.289082.45290.008297
4-0.010346-0.08780.465143
50.0893140.75790.225505
60.119081.01040.157836
7-0.067815-0.57540.283399
80.0887620.75320.226903
9-0.188177-1.59670.057352
10-0.125797-1.06740.144674
11-0.015015-0.12740.449487
120.3123182.65010.004943
13-0.166502-1.41280.081009
14-0.187382-1.590.05811
15-0.075824-0.64340.261008
160.1083450.91930.180495
170.0509470.43230.333406
180.022890.19420.423274
19-0.080739-0.68510.247742
20-0.038594-0.32750.372126
210.0569940.48360.315066
22-0.099445-0.84380.200782
230.0642610.54530.293626
24-0.021779-0.18480.426952
25-0.031547-0.26770.394853
26-0.081864-0.69460.244758
270.0293750.24930.401936
28-0.121101-1.02760.153794
29-0.083995-0.71270.23916
300.068430.58060.281647
310.0929190.78840.216512
320.0116480.09880.460773
33-0.012692-0.10770.457269
34-0.069144-0.58670.279619
35-0.052218-0.44310.329515
360.0933890.79240.215355

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.336279 & 2.8534 & 0.002822 \tabularnewline
2 & 0.030794 & 0.2613 & 0.397305 \tabularnewline
3 & 0.28908 & 2.4529 & 0.008297 \tabularnewline
4 & -0.010346 & -0.0878 & 0.465143 \tabularnewline
5 & 0.089314 & 0.7579 & 0.225505 \tabularnewline
6 & 0.11908 & 1.0104 & 0.157836 \tabularnewline
7 & -0.067815 & -0.5754 & 0.283399 \tabularnewline
8 & 0.088762 & 0.7532 & 0.226903 \tabularnewline
9 & -0.188177 & -1.5967 & 0.057352 \tabularnewline
10 & -0.125797 & -1.0674 & 0.144674 \tabularnewline
11 & -0.015015 & -0.1274 & 0.449487 \tabularnewline
12 & 0.312318 & 2.6501 & 0.004943 \tabularnewline
13 & -0.166502 & -1.4128 & 0.081009 \tabularnewline
14 & -0.187382 & -1.59 & 0.05811 \tabularnewline
15 & -0.075824 & -0.6434 & 0.261008 \tabularnewline
16 & 0.108345 & 0.9193 & 0.180495 \tabularnewline
17 & 0.050947 & 0.4323 & 0.333406 \tabularnewline
18 & 0.02289 & 0.1942 & 0.423274 \tabularnewline
19 & -0.080739 & -0.6851 & 0.247742 \tabularnewline
20 & -0.038594 & -0.3275 & 0.372126 \tabularnewline
21 & 0.056994 & 0.4836 & 0.315066 \tabularnewline
22 & -0.099445 & -0.8438 & 0.200782 \tabularnewline
23 & 0.064261 & 0.5453 & 0.293626 \tabularnewline
24 & -0.021779 & -0.1848 & 0.426952 \tabularnewline
25 & -0.031547 & -0.2677 & 0.394853 \tabularnewline
26 & -0.081864 & -0.6946 & 0.244758 \tabularnewline
27 & 0.029375 & 0.2493 & 0.401936 \tabularnewline
28 & -0.121101 & -1.0276 & 0.153794 \tabularnewline
29 & -0.083995 & -0.7127 & 0.23916 \tabularnewline
30 & 0.06843 & 0.5806 & 0.281647 \tabularnewline
31 & 0.092919 & 0.7884 & 0.216512 \tabularnewline
32 & 0.011648 & 0.0988 & 0.460773 \tabularnewline
33 & -0.012692 & -0.1077 & 0.457269 \tabularnewline
34 & -0.069144 & -0.5867 & 0.279619 \tabularnewline
35 & -0.052218 & -0.4431 & 0.329515 \tabularnewline
36 & 0.093389 & 0.7924 & 0.215355 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68664&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.336279[/C][C]2.8534[/C][C]0.002822[/C][/ROW]
[ROW][C]2[/C][C]0.030794[/C][C]0.2613[/C][C]0.397305[/C][/ROW]
[ROW][C]3[/C][C]0.28908[/C][C]2.4529[/C][C]0.008297[/C][/ROW]
[ROW][C]4[/C][C]-0.010346[/C][C]-0.0878[/C][C]0.465143[/C][/ROW]
[ROW][C]5[/C][C]0.089314[/C][C]0.7579[/C][C]0.225505[/C][/ROW]
[ROW][C]6[/C][C]0.11908[/C][C]1.0104[/C][C]0.157836[/C][/ROW]
[ROW][C]7[/C][C]-0.067815[/C][C]-0.5754[/C][C]0.283399[/C][/ROW]
[ROW][C]8[/C][C]0.088762[/C][C]0.7532[/C][C]0.226903[/C][/ROW]
[ROW][C]9[/C][C]-0.188177[/C][C]-1.5967[/C][C]0.057352[/C][/ROW]
[ROW][C]10[/C][C]-0.125797[/C][C]-1.0674[/C][C]0.144674[/C][/ROW]
[ROW][C]11[/C][C]-0.015015[/C][C]-0.1274[/C][C]0.449487[/C][/ROW]
[ROW][C]12[/C][C]0.312318[/C][C]2.6501[/C][C]0.004943[/C][/ROW]
[ROW][C]13[/C][C]-0.166502[/C][C]-1.4128[/C][C]0.081009[/C][/ROW]
[ROW][C]14[/C][C]-0.187382[/C][C]-1.59[/C][C]0.05811[/C][/ROW]
[ROW][C]15[/C][C]-0.075824[/C][C]-0.6434[/C][C]0.261008[/C][/ROW]
[ROW][C]16[/C][C]0.108345[/C][C]0.9193[/C][C]0.180495[/C][/ROW]
[ROW][C]17[/C][C]0.050947[/C][C]0.4323[/C][C]0.333406[/C][/ROW]
[ROW][C]18[/C][C]0.02289[/C][C]0.1942[/C][C]0.423274[/C][/ROW]
[ROW][C]19[/C][C]-0.080739[/C][C]-0.6851[/C][C]0.247742[/C][/ROW]
[ROW][C]20[/C][C]-0.038594[/C][C]-0.3275[/C][C]0.372126[/C][/ROW]
[ROW][C]21[/C][C]0.056994[/C][C]0.4836[/C][C]0.315066[/C][/ROW]
[ROW][C]22[/C][C]-0.099445[/C][C]-0.8438[/C][C]0.200782[/C][/ROW]
[ROW][C]23[/C][C]0.064261[/C][C]0.5453[/C][C]0.293626[/C][/ROW]
[ROW][C]24[/C][C]-0.021779[/C][C]-0.1848[/C][C]0.426952[/C][/ROW]
[ROW][C]25[/C][C]-0.031547[/C][C]-0.2677[/C][C]0.394853[/C][/ROW]
[ROW][C]26[/C][C]-0.081864[/C][C]-0.6946[/C][C]0.244758[/C][/ROW]
[ROW][C]27[/C][C]0.029375[/C][C]0.2493[/C][C]0.401936[/C][/ROW]
[ROW][C]28[/C][C]-0.121101[/C][C]-1.0276[/C][C]0.153794[/C][/ROW]
[ROW][C]29[/C][C]-0.083995[/C][C]-0.7127[/C][C]0.23916[/C][/ROW]
[ROW][C]30[/C][C]0.06843[/C][C]0.5806[/C][C]0.281647[/C][/ROW]
[ROW][C]31[/C][C]0.092919[/C][C]0.7884[/C][C]0.216512[/C][/ROW]
[ROW][C]32[/C][C]0.011648[/C][C]0.0988[/C][C]0.460773[/C][/ROW]
[ROW][C]33[/C][C]-0.012692[/C][C]-0.1077[/C][C]0.457269[/C][/ROW]
[ROW][C]34[/C][C]-0.069144[/C][C]-0.5867[/C][C]0.279619[/C][/ROW]
[ROW][C]35[/C][C]-0.052218[/C][C]-0.4431[/C][C]0.329515[/C][/ROW]
[ROW][C]36[/C][C]0.093389[/C][C]0.7924[/C][C]0.215355[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68664&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68664&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.3362792.85340.002822
20.0307940.26130.397305
30.289082.45290.008297
4-0.010346-0.08780.465143
50.0893140.75790.225505
60.119081.01040.157836
7-0.067815-0.57540.283399
80.0887620.75320.226903
9-0.188177-1.59670.057352
10-0.125797-1.06740.144674
11-0.015015-0.12740.449487
120.3123182.65010.004943
13-0.166502-1.41280.081009
14-0.187382-1.590.05811
15-0.075824-0.64340.261008
160.1083450.91930.180495
170.0509470.43230.333406
180.022890.19420.423274
19-0.080739-0.68510.247742
20-0.038594-0.32750.372126
210.0569940.48360.315066
22-0.099445-0.84380.200782
230.0642610.54530.293626
24-0.021779-0.18480.426952
25-0.031547-0.26770.394853
26-0.081864-0.69460.244758
270.0293750.24930.401936
28-0.121101-1.02760.153794
29-0.083995-0.71270.23916
300.068430.58060.281647
310.0929190.78840.216512
320.0116480.09880.460773
33-0.012692-0.10770.457269
34-0.069144-0.58670.279619
35-0.052218-0.44310.329515
360.0933890.79240.215355



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