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 computationMon, 28 Dec 2009 12:01:45 -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/28/t1262026954jwb83ygtxcm40cl.htm/, Retrieved Sat, 04 May 2024 22:56:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=71035, Retrieved Sat, 04 May 2024 22:56:06 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact82
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]
-    D          [(Partial) Autocorrelation Function] [tijdreeksanalyse D2] [2009-12-28 19:01:45] [f47dffd5f5a8c03c3681db4cc9472742] [Current]
Feedback Forum

Post a new message
Dataseries X:
286.445
288.576
293.299
295.881
292.710
271.993
267.430
273.963
273.046
268.347
264.319
255.765
246.263
245.098
246.969
248.333
247.934
226.839
225.554
237.085
237.080
245.039
248.541
247.105
243.422
250.643
254.663
260.993
258.556
235.372
246.057
253.353
255.198
264.176
269.034
265.861
269.826
278.506
292.300
290.726
289.802
271.311
274.352
275.216
276.836
280.408
280.190
282.656
281.477
288.186
292.300
291.186
287.259
264.993
267.140
270.150
275.037
277.103
277.128




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

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9492696.50790
20.88786.08650
30.8082465.54111e-06
40.7118054.87996e-06
50.608374.17086.5e-05
60.5007953.43330.000627
70.3907642.67890.005073
80.2863631.96320.027778
90.1786541.22480.113378
100.0879550.6030.274707
110.0135240.09270.463262
12-0.062738-0.43010.33454
13-0.123099-0.84390.201494
14-0.170551-1.16920.124101
15-0.216546-1.48460.072167
16-0.258882-1.77480.041203
17-0.298584-2.0470.023137
18-0.343685-2.35620.011342
19-0.366898-2.51530.007685
20-0.395172-2.70920.004691
21-0.414381-2.84090.003316
22-0.425112-2.91440.002721
23-0.431209-2.95620.002429
24-0.431435-2.95780.002419
25-0.413244-2.83310.003385
26-0.387256-2.65490.005397
27-0.345743-2.37030.010964
28-0.305944-2.09740.02068
29-0.259524-1.77920.040836
30-0.20357-1.39560.084696
31-0.156282-1.07140.144726
32-0.116146-0.79630.214942
33-0.075109-0.51490.30451
34-0.042345-0.29030.386432
35-0.017279-0.11850.453103
360.0131970.09050.464147

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.949269 & 6.5079 & 0 \tabularnewline
2 & 0.8878 & 6.0865 & 0 \tabularnewline
3 & 0.808246 & 5.5411 & 1e-06 \tabularnewline
4 & 0.711805 & 4.8799 & 6e-06 \tabularnewline
5 & 0.60837 & 4.1708 & 6.5e-05 \tabularnewline
6 & 0.500795 & 3.4333 & 0.000627 \tabularnewline
7 & 0.390764 & 2.6789 & 0.005073 \tabularnewline
8 & 0.286363 & 1.9632 & 0.027778 \tabularnewline
9 & 0.178654 & 1.2248 & 0.113378 \tabularnewline
10 & 0.087955 & 0.603 & 0.274707 \tabularnewline
11 & 0.013524 & 0.0927 & 0.463262 \tabularnewline
12 & -0.062738 & -0.4301 & 0.33454 \tabularnewline
13 & -0.123099 & -0.8439 & 0.201494 \tabularnewline
14 & -0.170551 & -1.1692 & 0.124101 \tabularnewline
15 & -0.216546 & -1.4846 & 0.072167 \tabularnewline
16 & -0.258882 & -1.7748 & 0.041203 \tabularnewline
17 & -0.298584 & -2.047 & 0.023137 \tabularnewline
18 & -0.343685 & -2.3562 & 0.011342 \tabularnewline
19 & -0.366898 & -2.5153 & 0.007685 \tabularnewline
20 & -0.395172 & -2.7092 & 0.004691 \tabularnewline
21 & -0.414381 & -2.8409 & 0.003316 \tabularnewline
22 & -0.425112 & -2.9144 & 0.002721 \tabularnewline
23 & -0.431209 & -2.9562 & 0.002429 \tabularnewline
24 & -0.431435 & -2.9578 & 0.002419 \tabularnewline
25 & -0.413244 & -2.8331 & 0.003385 \tabularnewline
26 & -0.387256 & -2.6549 & 0.005397 \tabularnewline
27 & -0.345743 & -2.3703 & 0.010964 \tabularnewline
28 & -0.305944 & -2.0974 & 0.02068 \tabularnewline
29 & -0.259524 & -1.7792 & 0.040836 \tabularnewline
30 & -0.20357 & -1.3956 & 0.084696 \tabularnewline
31 & -0.156282 & -1.0714 & 0.144726 \tabularnewline
32 & -0.116146 & -0.7963 & 0.214942 \tabularnewline
33 & -0.075109 & -0.5149 & 0.30451 \tabularnewline
34 & -0.042345 & -0.2903 & 0.386432 \tabularnewline
35 & -0.017279 & -0.1185 & 0.453103 \tabularnewline
36 & 0.013197 & 0.0905 & 0.464147 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=71035&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.949269[/C][C]6.5079[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.8878[/C][C]6.0865[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.808246[/C][C]5.5411[/C][C]1e-06[/C][/ROW]
[ROW][C]4[/C][C]0.711805[/C][C]4.8799[/C][C]6e-06[/C][/ROW]
[ROW][C]5[/C][C]0.60837[/C][C]4.1708[/C][C]6.5e-05[/C][/ROW]
[ROW][C]6[/C][C]0.500795[/C][C]3.4333[/C][C]0.000627[/C][/ROW]
[ROW][C]7[/C][C]0.390764[/C][C]2.6789[/C][C]0.005073[/C][/ROW]
[ROW][C]8[/C][C]0.286363[/C][C]1.9632[/C][C]0.027778[/C][/ROW]
[ROW][C]9[/C][C]0.178654[/C][C]1.2248[/C][C]0.113378[/C][/ROW]
[ROW][C]10[/C][C]0.087955[/C][C]0.603[/C][C]0.274707[/C][/ROW]
[ROW][C]11[/C][C]0.013524[/C][C]0.0927[/C][C]0.463262[/C][/ROW]
[ROW][C]12[/C][C]-0.062738[/C][C]-0.4301[/C][C]0.33454[/C][/ROW]
[ROW][C]13[/C][C]-0.123099[/C][C]-0.8439[/C][C]0.201494[/C][/ROW]
[ROW][C]14[/C][C]-0.170551[/C][C]-1.1692[/C][C]0.124101[/C][/ROW]
[ROW][C]15[/C][C]-0.216546[/C][C]-1.4846[/C][C]0.072167[/C][/ROW]
[ROW][C]16[/C][C]-0.258882[/C][C]-1.7748[/C][C]0.041203[/C][/ROW]
[ROW][C]17[/C][C]-0.298584[/C][C]-2.047[/C][C]0.023137[/C][/ROW]
[ROW][C]18[/C][C]-0.343685[/C][C]-2.3562[/C][C]0.011342[/C][/ROW]
[ROW][C]19[/C][C]-0.366898[/C][C]-2.5153[/C][C]0.007685[/C][/ROW]
[ROW][C]20[/C][C]-0.395172[/C][C]-2.7092[/C][C]0.004691[/C][/ROW]
[ROW][C]21[/C][C]-0.414381[/C][C]-2.8409[/C][C]0.003316[/C][/ROW]
[ROW][C]22[/C][C]-0.425112[/C][C]-2.9144[/C][C]0.002721[/C][/ROW]
[ROW][C]23[/C][C]-0.431209[/C][C]-2.9562[/C][C]0.002429[/C][/ROW]
[ROW][C]24[/C][C]-0.431435[/C][C]-2.9578[/C][C]0.002419[/C][/ROW]
[ROW][C]25[/C][C]-0.413244[/C][C]-2.8331[/C][C]0.003385[/C][/ROW]
[ROW][C]26[/C][C]-0.387256[/C][C]-2.6549[/C][C]0.005397[/C][/ROW]
[ROW][C]27[/C][C]-0.345743[/C][C]-2.3703[/C][C]0.010964[/C][/ROW]
[ROW][C]28[/C][C]-0.305944[/C][C]-2.0974[/C][C]0.02068[/C][/ROW]
[ROW][C]29[/C][C]-0.259524[/C][C]-1.7792[/C][C]0.040836[/C][/ROW]
[ROW][C]30[/C][C]-0.20357[/C][C]-1.3956[/C][C]0.084696[/C][/ROW]
[ROW][C]31[/C][C]-0.156282[/C][C]-1.0714[/C][C]0.144726[/C][/ROW]
[ROW][C]32[/C][C]-0.116146[/C][C]-0.7963[/C][C]0.214942[/C][/ROW]
[ROW][C]33[/C][C]-0.075109[/C][C]-0.5149[/C][C]0.30451[/C][/ROW]
[ROW][C]34[/C][C]-0.042345[/C][C]-0.2903[/C][C]0.386432[/C][/ROW]
[ROW][C]35[/C][C]-0.017279[/C][C]-0.1185[/C][C]0.453103[/C][/ROW]
[ROW][C]36[/C][C]0.013197[/C][C]0.0905[/C][C]0.464147[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=71035&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=71035&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.9492696.50790
20.88786.08650
30.8082465.54111e-06
40.7118054.87996e-06
50.608374.17086.5e-05
60.5007953.43330.000627
70.3907642.67890.005073
80.2863631.96320.027778
90.1786541.22480.113378
100.0879550.6030.274707
110.0135240.09270.463262
12-0.062738-0.43010.33454
13-0.123099-0.84390.201494
14-0.170551-1.16920.124101
15-0.216546-1.48460.072167
16-0.258882-1.77480.041203
17-0.298584-2.0470.023137
18-0.343685-2.35620.011342
19-0.366898-2.51530.007685
20-0.395172-2.70920.004691
21-0.414381-2.84090.003316
22-0.425112-2.91440.002721
23-0.431209-2.95620.002429
24-0.431435-2.95780.002419
25-0.413244-2.83310.003385
26-0.387256-2.65490.005397
27-0.345743-2.37030.010964
28-0.305944-2.09740.02068
29-0.259524-1.77920.040836
30-0.20357-1.39560.084696
31-0.156282-1.07140.144726
32-0.116146-0.79630.214942
33-0.075109-0.51490.30451
34-0.042345-0.29030.386432
35-0.017279-0.11850.453103
360.0131970.09050.464147







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9492696.50790
2-0.134606-0.92280.18041
3-0.20781-1.42470.080429
4-0.194198-1.33140.094747
5-0.087035-0.59670.276791
6-0.059612-0.40870.342316
7-0.064899-0.44490.329209
8-0.0019-0.0130.494831
9-0.118699-0.81380.209943
100.0855450.58650.280185
110.0802590.55020.292385
12-0.152631-1.04640.150368
130.0120470.08260.467263
140.0199980.13710.445769
15-0.101958-0.6990.244003
16-0.108819-0.7460.229684
17-0.068269-0.4680.320964
18-0.164571-1.12820.132472
190.1710581.17270.12341
20-0.078678-0.53940.296083
21-0.033242-0.22790.410358
22-0.013497-0.09250.463336
230.0193410.13260.44754
24-0.043816-0.30040.382604
250.0976580.66950.253223
260.0317060.21740.414432
270.0150790.10340.459051
28-0.080655-0.55290.291462
290.0360420.24710.402956
300.0013750.00940.496258
31-0.08164-0.55970.289172
32-0.070019-0.480.316718
33-0.004957-0.0340.486518
34-0.021057-0.14440.442917
35-0.011521-0.0790.46869
360.0851440.58370.281101

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.949269 & 6.5079 & 0 \tabularnewline
2 & -0.134606 & -0.9228 & 0.18041 \tabularnewline
3 & -0.20781 & -1.4247 & 0.080429 \tabularnewline
4 & -0.194198 & -1.3314 & 0.094747 \tabularnewline
5 & -0.087035 & -0.5967 & 0.276791 \tabularnewline
6 & -0.059612 & -0.4087 & 0.342316 \tabularnewline
7 & -0.064899 & -0.4449 & 0.329209 \tabularnewline
8 & -0.0019 & -0.013 & 0.494831 \tabularnewline
9 & -0.118699 & -0.8138 & 0.209943 \tabularnewline
10 & 0.085545 & 0.5865 & 0.280185 \tabularnewline
11 & 0.080259 & 0.5502 & 0.292385 \tabularnewline
12 & -0.152631 & -1.0464 & 0.150368 \tabularnewline
13 & 0.012047 & 0.0826 & 0.467263 \tabularnewline
14 & 0.019998 & 0.1371 & 0.445769 \tabularnewline
15 & -0.101958 & -0.699 & 0.244003 \tabularnewline
16 & -0.108819 & -0.746 & 0.229684 \tabularnewline
17 & -0.068269 & -0.468 & 0.320964 \tabularnewline
18 & -0.164571 & -1.1282 & 0.132472 \tabularnewline
19 & 0.171058 & 1.1727 & 0.12341 \tabularnewline
20 & -0.078678 & -0.5394 & 0.296083 \tabularnewline
21 & -0.033242 & -0.2279 & 0.410358 \tabularnewline
22 & -0.013497 & -0.0925 & 0.463336 \tabularnewline
23 & 0.019341 & 0.1326 & 0.44754 \tabularnewline
24 & -0.043816 & -0.3004 & 0.382604 \tabularnewline
25 & 0.097658 & 0.6695 & 0.253223 \tabularnewline
26 & 0.031706 & 0.2174 & 0.414432 \tabularnewline
27 & 0.015079 & 0.1034 & 0.459051 \tabularnewline
28 & -0.080655 & -0.5529 & 0.291462 \tabularnewline
29 & 0.036042 & 0.2471 & 0.402956 \tabularnewline
30 & 0.001375 & 0.0094 & 0.496258 \tabularnewline
31 & -0.08164 & -0.5597 & 0.289172 \tabularnewline
32 & -0.070019 & -0.48 & 0.316718 \tabularnewline
33 & -0.004957 & -0.034 & 0.486518 \tabularnewline
34 & -0.021057 & -0.1444 & 0.442917 \tabularnewline
35 & -0.011521 & -0.079 & 0.46869 \tabularnewline
36 & 0.085144 & 0.5837 & 0.281101 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=71035&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.949269[/C][C]6.5079[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.134606[/C][C]-0.9228[/C][C]0.18041[/C][/ROW]
[ROW][C]3[/C][C]-0.20781[/C][C]-1.4247[/C][C]0.080429[/C][/ROW]
[ROW][C]4[/C][C]-0.194198[/C][C]-1.3314[/C][C]0.094747[/C][/ROW]
[ROW][C]5[/C][C]-0.087035[/C][C]-0.5967[/C][C]0.276791[/C][/ROW]
[ROW][C]6[/C][C]-0.059612[/C][C]-0.4087[/C][C]0.342316[/C][/ROW]
[ROW][C]7[/C][C]-0.064899[/C][C]-0.4449[/C][C]0.329209[/C][/ROW]
[ROW][C]8[/C][C]-0.0019[/C][C]-0.013[/C][C]0.494831[/C][/ROW]
[ROW][C]9[/C][C]-0.118699[/C][C]-0.8138[/C][C]0.209943[/C][/ROW]
[ROW][C]10[/C][C]0.085545[/C][C]0.5865[/C][C]0.280185[/C][/ROW]
[ROW][C]11[/C][C]0.080259[/C][C]0.5502[/C][C]0.292385[/C][/ROW]
[ROW][C]12[/C][C]-0.152631[/C][C]-1.0464[/C][C]0.150368[/C][/ROW]
[ROW][C]13[/C][C]0.012047[/C][C]0.0826[/C][C]0.467263[/C][/ROW]
[ROW][C]14[/C][C]0.019998[/C][C]0.1371[/C][C]0.445769[/C][/ROW]
[ROW][C]15[/C][C]-0.101958[/C][C]-0.699[/C][C]0.244003[/C][/ROW]
[ROW][C]16[/C][C]-0.108819[/C][C]-0.746[/C][C]0.229684[/C][/ROW]
[ROW][C]17[/C][C]-0.068269[/C][C]-0.468[/C][C]0.320964[/C][/ROW]
[ROW][C]18[/C][C]-0.164571[/C][C]-1.1282[/C][C]0.132472[/C][/ROW]
[ROW][C]19[/C][C]0.171058[/C][C]1.1727[/C][C]0.12341[/C][/ROW]
[ROW][C]20[/C][C]-0.078678[/C][C]-0.5394[/C][C]0.296083[/C][/ROW]
[ROW][C]21[/C][C]-0.033242[/C][C]-0.2279[/C][C]0.410358[/C][/ROW]
[ROW][C]22[/C][C]-0.013497[/C][C]-0.0925[/C][C]0.463336[/C][/ROW]
[ROW][C]23[/C][C]0.019341[/C][C]0.1326[/C][C]0.44754[/C][/ROW]
[ROW][C]24[/C][C]-0.043816[/C][C]-0.3004[/C][C]0.382604[/C][/ROW]
[ROW][C]25[/C][C]0.097658[/C][C]0.6695[/C][C]0.253223[/C][/ROW]
[ROW][C]26[/C][C]0.031706[/C][C]0.2174[/C][C]0.414432[/C][/ROW]
[ROW][C]27[/C][C]0.015079[/C][C]0.1034[/C][C]0.459051[/C][/ROW]
[ROW][C]28[/C][C]-0.080655[/C][C]-0.5529[/C][C]0.291462[/C][/ROW]
[ROW][C]29[/C][C]0.036042[/C][C]0.2471[/C][C]0.402956[/C][/ROW]
[ROW][C]30[/C][C]0.001375[/C][C]0.0094[/C][C]0.496258[/C][/ROW]
[ROW][C]31[/C][C]-0.08164[/C][C]-0.5597[/C][C]0.289172[/C][/ROW]
[ROW][C]32[/C][C]-0.070019[/C][C]-0.48[/C][C]0.316718[/C][/ROW]
[ROW][C]33[/C][C]-0.004957[/C][C]-0.034[/C][C]0.486518[/C][/ROW]
[ROW][C]34[/C][C]-0.021057[/C][C]-0.1444[/C][C]0.442917[/C][/ROW]
[ROW][C]35[/C][C]-0.011521[/C][C]-0.079[/C][C]0.46869[/C][/ROW]
[ROW][C]36[/C][C]0.085144[/C][C]0.5837[/C][C]0.281101[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=71035&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=71035&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.9492696.50790
2-0.134606-0.92280.18041
3-0.20781-1.42470.080429
4-0.194198-1.33140.094747
5-0.087035-0.59670.276791
6-0.059612-0.40870.342316
7-0.064899-0.44490.329209
8-0.0019-0.0130.494831
9-0.118699-0.81380.209943
100.0855450.58650.280185
110.0802590.55020.292385
12-0.152631-1.04640.150368
130.0120470.08260.467263
140.0199980.13710.445769
15-0.101958-0.6990.244003
16-0.108819-0.7460.229684
17-0.068269-0.4680.320964
18-0.164571-1.12820.132472
190.1710581.17270.12341
20-0.078678-0.53940.296083
21-0.033242-0.22790.410358
22-0.013497-0.09250.463336
230.0193410.13260.44754
24-0.043816-0.30040.382604
250.0976580.66950.253223
260.0317060.21740.414432
270.0150790.10340.459051
28-0.080655-0.55290.291462
290.0360420.24710.402956
300.0013750.00940.496258
31-0.08164-0.55970.289172
32-0.070019-0.480.316718
33-0.004957-0.0340.486518
34-0.021057-0.14440.442917
35-0.011521-0.0790.46869
360.0851440.58370.281101



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