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:25:47 -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/t1259342798gqu2cezydnhej70.htm/, Retrieved Mon, 29 Apr 2024 18:30:54 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61030, Retrieved Mon, 29 Apr 2024 18:30:54 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact113
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]
- R  D          [(Partial) Autocorrelation Function] [ACF d=1,D=1] [2009-11-27 17:25:47] [18c0746232b29e9668aa6bedcb8dd698] [Current]
Feedback Forum

Post a new message
Dataseries X:
12,6
15,7
13,2
20,3
12,8
8
0,9
3,6
14,1
21,7
24,5
18,9
13,9
11
5,8
15,5
22,4
31,7
30,3
31,4
20,2
19,7
10,8
13,2
15,1
15,6
15,5
12,7
10,9
10
9,1
10,3
16,9
22
27,6
28,9
31
32,9
38,1
28,8
29
21,8
28,8
25,6
28,2
20,2
17,9
16,3
13,2
8,1
4,5
-0,1
0
2,3
2,8
2,9
0,1
3,5
8,6
13,8




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61030&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.3159842.16630.017697
20.2600151.78260.040558
3-0.401788-2.75450.004167
4-0.248872-1.70620.047288
5-0.245446-1.68270.049534
60.0647070.44360.329681
70.1186750.81360.209989
80.1942451.33170.094694
90.0982530.67360.251936
10-0.113532-0.77830.220136
11-0.238379-1.63420.054445
12-0.448522-3.07490.001751
13-0.265099-1.81740.037765
14-0.177478-1.21670.114892
150.0881610.60440.274241
160.0748260.5130.305183
170.1592371.09170.14027
180.0100870.06920.47258
190.1466851.00560.159874
20-0.040364-0.27670.391603
210.118950.81550.209455
22-0.101386-0.69510.245217
230.0926190.6350.264266
240.0060640.04160.483507
250.1873941.28470.102595
260.0900470.61730.269999
270.0845070.57940.282559
28-0.024234-0.16610.434381
29-0.071841-0.49250.312322
30-0.086553-0.59340.277887
31-0.141114-0.96740.169141
32-0.048789-0.33450.369752
33-0.077761-0.53310.298237
340.086550.59340.277893
350.0319890.21930.41368
360.0497920.34140.367178

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.315984 & 2.1663 & 0.017697 \tabularnewline
2 & 0.260015 & 1.7826 & 0.040558 \tabularnewline
3 & -0.401788 & -2.7545 & 0.004167 \tabularnewline
4 & -0.248872 & -1.7062 & 0.047288 \tabularnewline
5 & -0.245446 & -1.6827 & 0.049534 \tabularnewline
6 & 0.064707 & 0.4436 & 0.329681 \tabularnewline
7 & 0.118675 & 0.8136 & 0.209989 \tabularnewline
8 & 0.194245 & 1.3317 & 0.094694 \tabularnewline
9 & 0.098253 & 0.6736 & 0.251936 \tabularnewline
10 & -0.113532 & -0.7783 & 0.220136 \tabularnewline
11 & -0.238379 & -1.6342 & 0.054445 \tabularnewline
12 & -0.448522 & -3.0749 & 0.001751 \tabularnewline
13 & -0.265099 & -1.8174 & 0.037765 \tabularnewline
14 & -0.177478 & -1.2167 & 0.114892 \tabularnewline
15 & 0.088161 & 0.6044 & 0.274241 \tabularnewline
16 & 0.074826 & 0.513 & 0.305183 \tabularnewline
17 & 0.159237 & 1.0917 & 0.14027 \tabularnewline
18 & 0.010087 & 0.0692 & 0.47258 \tabularnewline
19 & 0.146685 & 1.0056 & 0.159874 \tabularnewline
20 & -0.040364 & -0.2767 & 0.391603 \tabularnewline
21 & 0.11895 & 0.8155 & 0.209455 \tabularnewline
22 & -0.101386 & -0.6951 & 0.245217 \tabularnewline
23 & 0.092619 & 0.635 & 0.264266 \tabularnewline
24 & 0.006064 & 0.0416 & 0.483507 \tabularnewline
25 & 0.187394 & 1.2847 & 0.102595 \tabularnewline
26 & 0.090047 & 0.6173 & 0.269999 \tabularnewline
27 & 0.084507 & 0.5794 & 0.282559 \tabularnewline
28 & -0.024234 & -0.1661 & 0.434381 \tabularnewline
29 & -0.071841 & -0.4925 & 0.312322 \tabularnewline
30 & -0.086553 & -0.5934 & 0.277887 \tabularnewline
31 & -0.141114 & -0.9674 & 0.169141 \tabularnewline
32 & -0.048789 & -0.3345 & 0.369752 \tabularnewline
33 & -0.077761 & -0.5331 & 0.298237 \tabularnewline
34 & 0.08655 & 0.5934 & 0.277893 \tabularnewline
35 & 0.031989 & 0.2193 & 0.41368 \tabularnewline
36 & 0.049792 & 0.3414 & 0.367178 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61030&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.315984[/C][C]2.1663[/C][C]0.017697[/C][/ROW]
[ROW][C]2[/C][C]0.260015[/C][C]1.7826[/C][C]0.040558[/C][/ROW]
[ROW][C]3[/C][C]-0.401788[/C][C]-2.7545[/C][C]0.004167[/C][/ROW]
[ROW][C]4[/C][C]-0.248872[/C][C]-1.7062[/C][C]0.047288[/C][/ROW]
[ROW][C]5[/C][C]-0.245446[/C][C]-1.6827[/C][C]0.049534[/C][/ROW]
[ROW][C]6[/C][C]0.064707[/C][C]0.4436[/C][C]0.329681[/C][/ROW]
[ROW][C]7[/C][C]0.118675[/C][C]0.8136[/C][C]0.209989[/C][/ROW]
[ROW][C]8[/C][C]0.194245[/C][C]1.3317[/C][C]0.094694[/C][/ROW]
[ROW][C]9[/C][C]0.098253[/C][C]0.6736[/C][C]0.251936[/C][/ROW]
[ROW][C]10[/C][C]-0.113532[/C][C]-0.7783[/C][C]0.220136[/C][/ROW]
[ROW][C]11[/C][C]-0.238379[/C][C]-1.6342[/C][C]0.054445[/C][/ROW]
[ROW][C]12[/C][C]-0.448522[/C][C]-3.0749[/C][C]0.001751[/C][/ROW]
[ROW][C]13[/C][C]-0.265099[/C][C]-1.8174[/C][C]0.037765[/C][/ROW]
[ROW][C]14[/C][C]-0.177478[/C][C]-1.2167[/C][C]0.114892[/C][/ROW]
[ROW][C]15[/C][C]0.088161[/C][C]0.6044[/C][C]0.274241[/C][/ROW]
[ROW][C]16[/C][C]0.074826[/C][C]0.513[/C][C]0.305183[/C][/ROW]
[ROW][C]17[/C][C]0.159237[/C][C]1.0917[/C][C]0.14027[/C][/ROW]
[ROW][C]18[/C][C]0.010087[/C][C]0.0692[/C][C]0.47258[/C][/ROW]
[ROW][C]19[/C][C]0.146685[/C][C]1.0056[/C][C]0.159874[/C][/ROW]
[ROW][C]20[/C][C]-0.040364[/C][C]-0.2767[/C][C]0.391603[/C][/ROW]
[ROW][C]21[/C][C]0.11895[/C][C]0.8155[/C][C]0.209455[/C][/ROW]
[ROW][C]22[/C][C]-0.101386[/C][C]-0.6951[/C][C]0.245217[/C][/ROW]
[ROW][C]23[/C][C]0.092619[/C][C]0.635[/C][C]0.264266[/C][/ROW]
[ROW][C]24[/C][C]0.006064[/C][C]0.0416[/C][C]0.483507[/C][/ROW]
[ROW][C]25[/C][C]0.187394[/C][C]1.2847[/C][C]0.102595[/C][/ROW]
[ROW][C]26[/C][C]0.090047[/C][C]0.6173[/C][C]0.269999[/C][/ROW]
[ROW][C]27[/C][C]0.084507[/C][C]0.5794[/C][C]0.282559[/C][/ROW]
[ROW][C]28[/C][C]-0.024234[/C][C]-0.1661[/C][C]0.434381[/C][/ROW]
[ROW][C]29[/C][C]-0.071841[/C][C]-0.4925[/C][C]0.312322[/C][/ROW]
[ROW][C]30[/C][C]-0.086553[/C][C]-0.5934[/C][C]0.277887[/C][/ROW]
[ROW][C]31[/C][C]-0.141114[/C][C]-0.9674[/C][C]0.169141[/C][/ROW]
[ROW][C]32[/C][C]-0.048789[/C][C]-0.3345[/C][C]0.369752[/C][/ROW]
[ROW][C]33[/C][C]-0.077761[/C][C]-0.5331[/C][C]0.298237[/C][/ROW]
[ROW][C]34[/C][C]0.08655[/C][C]0.5934[/C][C]0.277893[/C][/ROW]
[ROW][C]35[/C][C]0.031989[/C][C]0.2193[/C][C]0.41368[/C][/ROW]
[ROW][C]36[/C][C]0.049792[/C][C]0.3414[/C][C]0.367178[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61030&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61030&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.3159842.16630.017697
20.2600151.78260.040558
3-0.401788-2.75450.004167
4-0.248872-1.70620.047288
5-0.245446-1.68270.049534
60.0647070.44360.329681
70.1186750.81360.209989
80.1942451.33170.094694
90.0982530.67360.251936
10-0.113532-0.77830.220136
11-0.238379-1.63420.054445
12-0.448522-3.07490.001751
13-0.265099-1.81740.037765
14-0.177478-1.21670.114892
150.0881610.60440.274241
160.0748260.5130.305183
170.1592371.09170.14027
180.0100870.06920.47258
190.1466851.00560.159874
20-0.040364-0.27670.391603
210.118950.81550.209455
22-0.101386-0.69510.245217
230.0926190.6350.264266
240.0060640.04160.483507
250.1873941.28470.102595
260.0900470.61730.269999
270.0845070.57940.282559
28-0.024234-0.16610.434381
29-0.071841-0.49250.312322
30-0.086553-0.59340.277887
31-0.141114-0.96740.169141
32-0.048789-0.33450.369752
33-0.077761-0.53310.298237
340.086550.59340.277893
350.0319890.21930.41368
360.0497920.34140.367178







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3159842.16630.017697
20.1779351.21990.114302
3-0.602939-4.13357.3e-05
40.0038430.02630.489545
50.2457011.68440.049364
6-0.106914-0.7330.23361
7-0.06697-0.45910.324131
80.1506821.0330.15344
90.0517340.35470.362212
10-0.363601-2.49270.008129
11-0.132661-0.90950.18387
12-0.176339-1.20890.11637
13-0.144441-0.99020.163564
14-0.092556-0.63450.264404
15-0.200137-1.37210.088278
16-0.18999-1.30250.099545
170.1006840.69030.246715
18-0.048876-0.33510.369529
190.1289510.8840.190587
20-0.04281-0.29350.385219
210.0833040.57110.285326
22-0.136662-0.93690.176798
23-0.047074-0.32270.374167
24-0.009207-0.06310.474968
25-0.110491-0.75750.226269
26-0.080974-0.55510.29072
27-0.121936-0.8360.203706
28-0.031918-0.21880.41387
29-0.009024-0.06190.475467
30-0.084858-0.58180.281755
31-0.014849-0.10180.459674
320.0537580.36850.357059
330.0021260.01460.494215
34-0.014995-0.10280.45928
350.0675870.46340.322625
36-0.091515-0.62740.266719

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.315984 & 2.1663 & 0.017697 \tabularnewline
2 & 0.177935 & 1.2199 & 0.114302 \tabularnewline
3 & -0.602939 & -4.1335 & 7.3e-05 \tabularnewline
4 & 0.003843 & 0.0263 & 0.489545 \tabularnewline
5 & 0.245701 & 1.6844 & 0.049364 \tabularnewline
6 & -0.106914 & -0.733 & 0.23361 \tabularnewline
7 & -0.06697 & -0.4591 & 0.324131 \tabularnewline
8 & 0.150682 & 1.033 & 0.15344 \tabularnewline
9 & 0.051734 & 0.3547 & 0.362212 \tabularnewline
10 & -0.363601 & -2.4927 & 0.008129 \tabularnewline
11 & -0.132661 & -0.9095 & 0.18387 \tabularnewline
12 & -0.176339 & -1.2089 & 0.11637 \tabularnewline
13 & -0.144441 & -0.9902 & 0.163564 \tabularnewline
14 & -0.092556 & -0.6345 & 0.264404 \tabularnewline
15 & -0.200137 & -1.3721 & 0.088278 \tabularnewline
16 & -0.18999 & -1.3025 & 0.099545 \tabularnewline
17 & 0.100684 & 0.6903 & 0.246715 \tabularnewline
18 & -0.048876 & -0.3351 & 0.369529 \tabularnewline
19 & 0.128951 & 0.884 & 0.190587 \tabularnewline
20 & -0.04281 & -0.2935 & 0.385219 \tabularnewline
21 & 0.083304 & 0.5711 & 0.285326 \tabularnewline
22 & -0.136662 & -0.9369 & 0.176798 \tabularnewline
23 & -0.047074 & -0.3227 & 0.374167 \tabularnewline
24 & -0.009207 & -0.0631 & 0.474968 \tabularnewline
25 & -0.110491 & -0.7575 & 0.226269 \tabularnewline
26 & -0.080974 & -0.5551 & 0.29072 \tabularnewline
27 & -0.121936 & -0.836 & 0.203706 \tabularnewline
28 & -0.031918 & -0.2188 & 0.41387 \tabularnewline
29 & -0.009024 & -0.0619 & 0.475467 \tabularnewline
30 & -0.084858 & -0.5818 & 0.281755 \tabularnewline
31 & -0.014849 & -0.1018 & 0.459674 \tabularnewline
32 & 0.053758 & 0.3685 & 0.357059 \tabularnewline
33 & 0.002126 & 0.0146 & 0.494215 \tabularnewline
34 & -0.014995 & -0.1028 & 0.45928 \tabularnewline
35 & 0.067587 & 0.4634 & 0.322625 \tabularnewline
36 & -0.091515 & -0.6274 & 0.266719 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61030&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.315984[/C][C]2.1663[/C][C]0.017697[/C][/ROW]
[ROW][C]2[/C][C]0.177935[/C][C]1.2199[/C][C]0.114302[/C][/ROW]
[ROW][C]3[/C][C]-0.602939[/C][C]-4.1335[/C][C]7.3e-05[/C][/ROW]
[ROW][C]4[/C][C]0.003843[/C][C]0.0263[/C][C]0.489545[/C][/ROW]
[ROW][C]5[/C][C]0.245701[/C][C]1.6844[/C][C]0.049364[/C][/ROW]
[ROW][C]6[/C][C]-0.106914[/C][C]-0.733[/C][C]0.23361[/C][/ROW]
[ROW][C]7[/C][C]-0.06697[/C][C]-0.4591[/C][C]0.324131[/C][/ROW]
[ROW][C]8[/C][C]0.150682[/C][C]1.033[/C][C]0.15344[/C][/ROW]
[ROW][C]9[/C][C]0.051734[/C][C]0.3547[/C][C]0.362212[/C][/ROW]
[ROW][C]10[/C][C]-0.363601[/C][C]-2.4927[/C][C]0.008129[/C][/ROW]
[ROW][C]11[/C][C]-0.132661[/C][C]-0.9095[/C][C]0.18387[/C][/ROW]
[ROW][C]12[/C][C]-0.176339[/C][C]-1.2089[/C][C]0.11637[/C][/ROW]
[ROW][C]13[/C][C]-0.144441[/C][C]-0.9902[/C][C]0.163564[/C][/ROW]
[ROW][C]14[/C][C]-0.092556[/C][C]-0.6345[/C][C]0.264404[/C][/ROW]
[ROW][C]15[/C][C]-0.200137[/C][C]-1.3721[/C][C]0.088278[/C][/ROW]
[ROW][C]16[/C][C]-0.18999[/C][C]-1.3025[/C][C]0.099545[/C][/ROW]
[ROW][C]17[/C][C]0.100684[/C][C]0.6903[/C][C]0.246715[/C][/ROW]
[ROW][C]18[/C][C]-0.048876[/C][C]-0.3351[/C][C]0.369529[/C][/ROW]
[ROW][C]19[/C][C]0.128951[/C][C]0.884[/C][C]0.190587[/C][/ROW]
[ROW][C]20[/C][C]-0.04281[/C][C]-0.2935[/C][C]0.385219[/C][/ROW]
[ROW][C]21[/C][C]0.083304[/C][C]0.5711[/C][C]0.285326[/C][/ROW]
[ROW][C]22[/C][C]-0.136662[/C][C]-0.9369[/C][C]0.176798[/C][/ROW]
[ROW][C]23[/C][C]-0.047074[/C][C]-0.3227[/C][C]0.374167[/C][/ROW]
[ROW][C]24[/C][C]-0.009207[/C][C]-0.0631[/C][C]0.474968[/C][/ROW]
[ROW][C]25[/C][C]-0.110491[/C][C]-0.7575[/C][C]0.226269[/C][/ROW]
[ROW][C]26[/C][C]-0.080974[/C][C]-0.5551[/C][C]0.29072[/C][/ROW]
[ROW][C]27[/C][C]-0.121936[/C][C]-0.836[/C][C]0.203706[/C][/ROW]
[ROW][C]28[/C][C]-0.031918[/C][C]-0.2188[/C][C]0.41387[/C][/ROW]
[ROW][C]29[/C][C]-0.009024[/C][C]-0.0619[/C][C]0.475467[/C][/ROW]
[ROW][C]30[/C][C]-0.084858[/C][C]-0.5818[/C][C]0.281755[/C][/ROW]
[ROW][C]31[/C][C]-0.014849[/C][C]-0.1018[/C][C]0.459674[/C][/ROW]
[ROW][C]32[/C][C]0.053758[/C][C]0.3685[/C][C]0.357059[/C][/ROW]
[ROW][C]33[/C][C]0.002126[/C][C]0.0146[/C][C]0.494215[/C][/ROW]
[ROW][C]34[/C][C]-0.014995[/C][C]-0.1028[/C][C]0.45928[/C][/ROW]
[ROW][C]35[/C][C]0.067587[/C][C]0.4634[/C][C]0.322625[/C][/ROW]
[ROW][C]36[/C][C]-0.091515[/C][C]-0.6274[/C][C]0.266719[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61030&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61030&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.3159842.16630.017697
20.1779351.21990.114302
3-0.602939-4.13357.3e-05
40.0038430.02630.489545
50.2457011.68440.049364
6-0.106914-0.7330.23361
7-0.06697-0.45910.324131
80.1506821.0330.15344
90.0517340.35470.362212
10-0.363601-2.49270.008129
11-0.132661-0.90950.18387
12-0.176339-1.20890.11637
13-0.144441-0.99020.163564
14-0.092556-0.63450.264404
15-0.200137-1.37210.088278
16-0.18999-1.30250.099545
170.1006840.69030.246715
18-0.048876-0.33510.369529
190.1289510.8840.190587
20-0.04281-0.29350.385219
210.0833040.57110.285326
22-0.136662-0.93690.176798
23-0.047074-0.32270.374167
24-0.009207-0.06310.474968
25-0.110491-0.75750.226269
26-0.080974-0.55510.29072
27-0.121936-0.8360.203706
28-0.031918-0.21880.41387
29-0.009024-0.06190.475467
30-0.084858-0.58180.281755
31-0.014849-0.10180.459674
320.0537580.36850.357059
330.0021260.01460.494215
34-0.014995-0.10280.45928
350.0675870.46340.322625
36-0.091515-0.62740.266719



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