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 09:04:13 -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/t1261065965ryl9s4b7reu0hn8.htm/, Retrieved Tue, 30 Apr 2024 00:34:43 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68965, Retrieved Tue, 30 Apr 2024 00:34:43 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact124
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [data set] [2008-12-01 19:54:57] [b98453cac15ba1066b407e146608df68]
- RMP   [(Partial) Autocorrelation Function] [] [2009-11-27 14:47:30] [b98453cac15ba1066b407e146608df68]
- R PD    [(Partial) Autocorrelation Function] [] [2009-12-01 17:18:57] [ee35698a38947a6c6c039b1e3deafc05]
-   PD      [(Partial) Autocorrelation Function] [] [2009-12-04 16:50:35] [78d53abea600e0825abda35dbfc51d4c]
-   P           [(Partial) Autocorrelation Function] [] [2009-12-17 16:04:13] [6e025b5370bdd3143fbe248190b38274] [Current]
Feedback Forum

Post a new message
Dataseries X:
15836.8
17570.4
18252.1
16196.7
16643
17729
16446.1
15993.8
16373.5
17842.2
22321.5
22786.7
18274.1
22392.9
23899.3
21343.5
22952.3
21374.4
21164.1
20906.5
17877.4
20664.3
22160
19813.6
17735.4
19640.2
20844.4
19823.1
18594.6
21350.6
18574.1
18924.2
17343.4
19961.2
19932.1
19464.6
16165.4
17574.9
19795.4
19439.5
17170
21072.4
17751.8
17515.5
18040.3
19090.1
17746.5
19202.1
15141.6
16258.1
18586.5
17209.4
17838.7
19123.5
16583.6
15991.2
16704.4
17420.4
17872
17823.2




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68965&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.528339-3.62210.000357
20.0774570.5310.298953
30.359512.46470.008712
4-0.378655-2.59590.006275
50.1693581.16110.12574
60.1556441.0670.145702
7-0.423139-2.90090.002822
80.3179092.17950.017171
9-0.197133-1.35150.091506
10-0.123586-0.84730.200572
110.1923241.31850.096862
12-0.161153-1.10480.137433
13-5.2e-05-4e-040.49986
140.0667990.45790.32455
15-0.002186-0.0150.494052
16-0.08395-0.57550.283838
170.1132850.77660.220631
18-0.075001-0.51420.304768
19-0.040182-0.27550.39208
200.1552391.06430.146323
21-0.106401-0.72940.234674
22-0.148848-1.02040.15637
230.3367942.30890.012696
24-0.32331-2.21650.015767
250.1610731.10430.137551
260.063230.43350.333323
27-0.153717-1.05380.148674
280.1206730.82730.206125
290.0090930.06230.475279
30-0.13303-0.9120.18321
310.1864221.2780.103755
32-0.158517-1.08670.141347
330.0239740.16440.435076
340.0994490.68180.24936
35-0.141062-0.96710.169229
360.0587690.40290.344424

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.528339 & -3.6221 & 0.000357 \tabularnewline
2 & 0.077457 & 0.531 & 0.298953 \tabularnewline
3 & 0.35951 & 2.4647 & 0.008712 \tabularnewline
4 & -0.378655 & -2.5959 & 0.006275 \tabularnewline
5 & 0.169358 & 1.1611 & 0.12574 \tabularnewline
6 & 0.155644 & 1.067 & 0.145702 \tabularnewline
7 & -0.423139 & -2.9009 & 0.002822 \tabularnewline
8 & 0.317909 & 2.1795 & 0.017171 \tabularnewline
9 & -0.197133 & -1.3515 & 0.091506 \tabularnewline
10 & -0.123586 & -0.8473 & 0.200572 \tabularnewline
11 & 0.192324 & 1.3185 & 0.096862 \tabularnewline
12 & -0.161153 & -1.1048 & 0.137433 \tabularnewline
13 & -5.2e-05 & -4e-04 & 0.49986 \tabularnewline
14 & 0.066799 & 0.4579 & 0.32455 \tabularnewline
15 & -0.002186 & -0.015 & 0.494052 \tabularnewline
16 & -0.08395 & -0.5755 & 0.283838 \tabularnewline
17 & 0.113285 & 0.7766 & 0.220631 \tabularnewline
18 & -0.075001 & -0.5142 & 0.304768 \tabularnewline
19 & -0.040182 & -0.2755 & 0.39208 \tabularnewline
20 & 0.155239 & 1.0643 & 0.146323 \tabularnewline
21 & -0.106401 & -0.7294 & 0.234674 \tabularnewline
22 & -0.148848 & -1.0204 & 0.15637 \tabularnewline
23 & 0.336794 & 2.3089 & 0.012696 \tabularnewline
24 & -0.32331 & -2.2165 & 0.015767 \tabularnewline
25 & 0.161073 & 1.1043 & 0.137551 \tabularnewline
26 & 0.06323 & 0.4335 & 0.333323 \tabularnewline
27 & -0.153717 & -1.0538 & 0.148674 \tabularnewline
28 & 0.120673 & 0.8273 & 0.206125 \tabularnewline
29 & 0.009093 & 0.0623 & 0.475279 \tabularnewline
30 & -0.13303 & -0.912 & 0.18321 \tabularnewline
31 & 0.186422 & 1.278 & 0.103755 \tabularnewline
32 & -0.158517 & -1.0867 & 0.141347 \tabularnewline
33 & 0.023974 & 0.1644 & 0.435076 \tabularnewline
34 & 0.099449 & 0.6818 & 0.24936 \tabularnewline
35 & -0.141062 & -0.9671 & 0.169229 \tabularnewline
36 & 0.058769 & 0.4029 & 0.344424 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68965&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.528339[/C][C]-3.6221[/C][C]0.000357[/C][/ROW]
[ROW][C]2[/C][C]0.077457[/C][C]0.531[/C][C]0.298953[/C][/ROW]
[ROW][C]3[/C][C]0.35951[/C][C]2.4647[/C][C]0.008712[/C][/ROW]
[ROW][C]4[/C][C]-0.378655[/C][C]-2.5959[/C][C]0.006275[/C][/ROW]
[ROW][C]5[/C][C]0.169358[/C][C]1.1611[/C][C]0.12574[/C][/ROW]
[ROW][C]6[/C][C]0.155644[/C][C]1.067[/C][C]0.145702[/C][/ROW]
[ROW][C]7[/C][C]-0.423139[/C][C]-2.9009[/C][C]0.002822[/C][/ROW]
[ROW][C]8[/C][C]0.317909[/C][C]2.1795[/C][C]0.017171[/C][/ROW]
[ROW][C]9[/C][C]-0.197133[/C][C]-1.3515[/C][C]0.091506[/C][/ROW]
[ROW][C]10[/C][C]-0.123586[/C][C]-0.8473[/C][C]0.200572[/C][/ROW]
[ROW][C]11[/C][C]0.192324[/C][C]1.3185[/C][C]0.096862[/C][/ROW]
[ROW][C]12[/C][C]-0.161153[/C][C]-1.1048[/C][C]0.137433[/C][/ROW]
[ROW][C]13[/C][C]-5.2e-05[/C][C]-4e-04[/C][C]0.49986[/C][/ROW]
[ROW][C]14[/C][C]0.066799[/C][C]0.4579[/C][C]0.32455[/C][/ROW]
[ROW][C]15[/C][C]-0.002186[/C][C]-0.015[/C][C]0.494052[/C][/ROW]
[ROW][C]16[/C][C]-0.08395[/C][C]-0.5755[/C][C]0.283838[/C][/ROW]
[ROW][C]17[/C][C]0.113285[/C][C]0.7766[/C][C]0.220631[/C][/ROW]
[ROW][C]18[/C][C]-0.075001[/C][C]-0.5142[/C][C]0.304768[/C][/ROW]
[ROW][C]19[/C][C]-0.040182[/C][C]-0.2755[/C][C]0.39208[/C][/ROW]
[ROW][C]20[/C][C]0.155239[/C][C]1.0643[/C][C]0.146323[/C][/ROW]
[ROW][C]21[/C][C]-0.106401[/C][C]-0.7294[/C][C]0.234674[/C][/ROW]
[ROW][C]22[/C][C]-0.148848[/C][C]-1.0204[/C][C]0.15637[/C][/ROW]
[ROW][C]23[/C][C]0.336794[/C][C]2.3089[/C][C]0.012696[/C][/ROW]
[ROW][C]24[/C][C]-0.32331[/C][C]-2.2165[/C][C]0.015767[/C][/ROW]
[ROW][C]25[/C][C]0.161073[/C][C]1.1043[/C][C]0.137551[/C][/ROW]
[ROW][C]26[/C][C]0.06323[/C][C]0.4335[/C][C]0.333323[/C][/ROW]
[ROW][C]27[/C][C]-0.153717[/C][C]-1.0538[/C][C]0.148674[/C][/ROW]
[ROW][C]28[/C][C]0.120673[/C][C]0.8273[/C][C]0.206125[/C][/ROW]
[ROW][C]29[/C][C]0.009093[/C][C]0.0623[/C][C]0.475279[/C][/ROW]
[ROW][C]30[/C][C]-0.13303[/C][C]-0.912[/C][C]0.18321[/C][/ROW]
[ROW][C]31[/C][C]0.186422[/C][C]1.278[/C][C]0.103755[/C][/ROW]
[ROW][C]32[/C][C]-0.158517[/C][C]-1.0867[/C][C]0.141347[/C][/ROW]
[ROW][C]33[/C][C]0.023974[/C][C]0.1644[/C][C]0.435076[/C][/ROW]
[ROW][C]34[/C][C]0.099449[/C][C]0.6818[/C][C]0.24936[/C][/ROW]
[ROW][C]35[/C][C]-0.141062[/C][C]-0.9671[/C][C]0.169229[/C][/ROW]
[ROW][C]36[/C][C]0.058769[/C][C]0.4029[/C][C]0.344424[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68965&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68965&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.528339-3.62210.000357
20.0774570.5310.298953
30.359512.46470.008712
4-0.378655-2.59590.006275
50.1693581.16110.12574
60.1556441.0670.145702
7-0.423139-2.90090.002822
80.3179092.17950.017171
9-0.197133-1.35150.091506
10-0.123586-0.84730.200572
110.1923241.31850.096862
12-0.161153-1.10480.137433
13-5.2e-05-4e-040.49986
140.0667990.45790.32455
15-0.002186-0.0150.494052
16-0.08395-0.57550.283838
170.1132850.77660.220631
18-0.075001-0.51420.304768
19-0.040182-0.27550.39208
200.1552391.06430.146323
21-0.106401-0.72940.234674
22-0.148848-1.02040.15637
230.3367942.30890.012696
24-0.32331-2.21650.015767
250.1610731.10430.137551
260.063230.43350.333323
27-0.153717-1.05380.148674
280.1206730.82730.206125
290.0090930.06230.475279
30-0.13303-0.9120.18321
310.1864221.2780.103755
32-0.158517-1.08670.141347
330.0239740.16440.435076
340.0994490.68180.24936
35-0.141062-0.96710.169229
360.0587690.40290.344424







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.528339-3.62210.000357
2-0.279785-1.91810.030592
30.3974272.72460.004506
40.0630730.43240.333711
5-0.090721-0.6220.26849
60.1113340.76330.224558
7-0.246493-1.68990.048838
8-0.126787-0.86920.194575
9-0.210241-1.44130.078059
10-0.114068-0.7820.219066
11-0.054122-0.3710.356137
120.073510.5040.308322
130.0849190.58220.281616
14-0.118892-0.81510.209568
150.1525711.0460.150461
16-0.151024-1.03540.152897
17-0.128591-0.88160.191247
18-0.154986-1.06250.146713
19-0.152868-1.0480.149997
200.1089830.74720.229347
210.111120.76180.224993
22-0.206845-1.41810.081386
230.0488950.33520.36948
240.0143480.09840.46103
250.0334360.22920.409843
26-0.167224-1.14640.12871
270.0701090.48060.316499
28-0.041719-0.2860.388064
29-0.103114-0.70690.241555
30-0.004997-0.03430.486408
31-0.081366-0.55780.289808
32-0.036016-0.24690.403026
33-0.015287-0.10480.45849
340.07570.5190.303107
35-0.040271-0.27610.391846
36-0.047183-0.32350.373886

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.528339 & -3.6221 & 0.000357 \tabularnewline
2 & -0.279785 & -1.9181 & 0.030592 \tabularnewline
3 & 0.397427 & 2.7246 & 0.004506 \tabularnewline
4 & 0.063073 & 0.4324 & 0.333711 \tabularnewline
5 & -0.090721 & -0.622 & 0.26849 \tabularnewline
6 & 0.111334 & 0.7633 & 0.224558 \tabularnewline
7 & -0.246493 & -1.6899 & 0.048838 \tabularnewline
8 & -0.126787 & -0.8692 & 0.194575 \tabularnewline
9 & -0.210241 & -1.4413 & 0.078059 \tabularnewline
10 & -0.114068 & -0.782 & 0.219066 \tabularnewline
11 & -0.054122 & -0.371 & 0.356137 \tabularnewline
12 & 0.07351 & 0.504 & 0.308322 \tabularnewline
13 & 0.084919 & 0.5822 & 0.281616 \tabularnewline
14 & -0.118892 & -0.8151 & 0.209568 \tabularnewline
15 & 0.152571 & 1.046 & 0.150461 \tabularnewline
16 & -0.151024 & -1.0354 & 0.152897 \tabularnewline
17 & -0.128591 & -0.8816 & 0.191247 \tabularnewline
18 & -0.154986 & -1.0625 & 0.146713 \tabularnewline
19 & -0.152868 & -1.048 & 0.149997 \tabularnewline
20 & 0.108983 & 0.7472 & 0.229347 \tabularnewline
21 & 0.11112 & 0.7618 & 0.224993 \tabularnewline
22 & -0.206845 & -1.4181 & 0.081386 \tabularnewline
23 & 0.048895 & 0.3352 & 0.36948 \tabularnewline
24 & 0.014348 & 0.0984 & 0.46103 \tabularnewline
25 & 0.033436 & 0.2292 & 0.409843 \tabularnewline
26 & -0.167224 & -1.1464 & 0.12871 \tabularnewline
27 & 0.070109 & 0.4806 & 0.316499 \tabularnewline
28 & -0.041719 & -0.286 & 0.388064 \tabularnewline
29 & -0.103114 & -0.7069 & 0.241555 \tabularnewline
30 & -0.004997 & -0.0343 & 0.486408 \tabularnewline
31 & -0.081366 & -0.5578 & 0.289808 \tabularnewline
32 & -0.036016 & -0.2469 & 0.403026 \tabularnewline
33 & -0.015287 & -0.1048 & 0.45849 \tabularnewline
34 & 0.0757 & 0.519 & 0.303107 \tabularnewline
35 & -0.040271 & -0.2761 & 0.391846 \tabularnewline
36 & -0.047183 & -0.3235 & 0.373886 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68965&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.528339[/C][C]-3.6221[/C][C]0.000357[/C][/ROW]
[ROW][C]2[/C][C]-0.279785[/C][C]-1.9181[/C][C]0.030592[/C][/ROW]
[ROW][C]3[/C][C]0.397427[/C][C]2.7246[/C][C]0.004506[/C][/ROW]
[ROW][C]4[/C][C]0.063073[/C][C]0.4324[/C][C]0.333711[/C][/ROW]
[ROW][C]5[/C][C]-0.090721[/C][C]-0.622[/C][C]0.26849[/C][/ROW]
[ROW][C]6[/C][C]0.111334[/C][C]0.7633[/C][C]0.224558[/C][/ROW]
[ROW][C]7[/C][C]-0.246493[/C][C]-1.6899[/C][C]0.048838[/C][/ROW]
[ROW][C]8[/C][C]-0.126787[/C][C]-0.8692[/C][C]0.194575[/C][/ROW]
[ROW][C]9[/C][C]-0.210241[/C][C]-1.4413[/C][C]0.078059[/C][/ROW]
[ROW][C]10[/C][C]-0.114068[/C][C]-0.782[/C][C]0.219066[/C][/ROW]
[ROW][C]11[/C][C]-0.054122[/C][C]-0.371[/C][C]0.356137[/C][/ROW]
[ROW][C]12[/C][C]0.07351[/C][C]0.504[/C][C]0.308322[/C][/ROW]
[ROW][C]13[/C][C]0.084919[/C][C]0.5822[/C][C]0.281616[/C][/ROW]
[ROW][C]14[/C][C]-0.118892[/C][C]-0.8151[/C][C]0.209568[/C][/ROW]
[ROW][C]15[/C][C]0.152571[/C][C]1.046[/C][C]0.150461[/C][/ROW]
[ROW][C]16[/C][C]-0.151024[/C][C]-1.0354[/C][C]0.152897[/C][/ROW]
[ROW][C]17[/C][C]-0.128591[/C][C]-0.8816[/C][C]0.191247[/C][/ROW]
[ROW][C]18[/C][C]-0.154986[/C][C]-1.0625[/C][C]0.146713[/C][/ROW]
[ROW][C]19[/C][C]-0.152868[/C][C]-1.048[/C][C]0.149997[/C][/ROW]
[ROW][C]20[/C][C]0.108983[/C][C]0.7472[/C][C]0.229347[/C][/ROW]
[ROW][C]21[/C][C]0.11112[/C][C]0.7618[/C][C]0.224993[/C][/ROW]
[ROW][C]22[/C][C]-0.206845[/C][C]-1.4181[/C][C]0.081386[/C][/ROW]
[ROW][C]23[/C][C]0.048895[/C][C]0.3352[/C][C]0.36948[/C][/ROW]
[ROW][C]24[/C][C]0.014348[/C][C]0.0984[/C][C]0.46103[/C][/ROW]
[ROW][C]25[/C][C]0.033436[/C][C]0.2292[/C][C]0.409843[/C][/ROW]
[ROW][C]26[/C][C]-0.167224[/C][C]-1.1464[/C][C]0.12871[/C][/ROW]
[ROW][C]27[/C][C]0.070109[/C][C]0.4806[/C][C]0.316499[/C][/ROW]
[ROW][C]28[/C][C]-0.041719[/C][C]-0.286[/C][C]0.388064[/C][/ROW]
[ROW][C]29[/C][C]-0.103114[/C][C]-0.7069[/C][C]0.241555[/C][/ROW]
[ROW][C]30[/C][C]-0.004997[/C][C]-0.0343[/C][C]0.486408[/C][/ROW]
[ROW][C]31[/C][C]-0.081366[/C][C]-0.5578[/C][C]0.289808[/C][/ROW]
[ROW][C]32[/C][C]-0.036016[/C][C]-0.2469[/C][C]0.403026[/C][/ROW]
[ROW][C]33[/C][C]-0.015287[/C][C]-0.1048[/C][C]0.45849[/C][/ROW]
[ROW][C]34[/C][C]0.0757[/C][C]0.519[/C][C]0.303107[/C][/ROW]
[ROW][C]35[/C][C]-0.040271[/C][C]-0.2761[/C][C]0.391846[/C][/ROW]
[ROW][C]36[/C][C]-0.047183[/C][C]-0.3235[/C][C]0.373886[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68965&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68965&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.528339-3.62210.000357
2-0.279785-1.91810.030592
30.3974272.72460.004506
40.0630730.43240.333711
5-0.090721-0.6220.26849
60.1113340.76330.224558
7-0.246493-1.68990.048838
8-0.126787-0.86920.194575
9-0.210241-1.44130.078059
10-0.114068-0.7820.219066
11-0.054122-0.3710.356137
120.073510.5040.308322
130.0849190.58220.281616
14-0.118892-0.81510.209568
150.1525711.0460.150461
16-0.151024-1.03540.152897
17-0.128591-0.88160.191247
18-0.154986-1.06250.146713
19-0.152868-1.0480.149997
200.1089830.74720.229347
210.111120.76180.224993
22-0.206845-1.41810.081386
230.0488950.33520.36948
240.0143480.09840.46103
250.0334360.22920.409843
26-0.167224-1.14640.12871
270.0701090.48060.316499
28-0.041719-0.2860.388064
29-0.103114-0.70690.241555
30-0.004997-0.03430.486408
31-0.081366-0.55780.289808
32-0.036016-0.24690.403026
33-0.015287-0.10480.45849
340.07570.5190.303107
35-0.040271-0.27610.391846
36-0.047183-0.32350.373886



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