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 computationWed, 25 Nov 2009 09:17:01 -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/25/t125916592933v88e8g2b0md5u.htm/, Retrieved Tue, 07 May 2024 10:59:29 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59431, Retrieved Tue, 07 May 2024 10:59:29 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact135
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]
-   PD          [(Partial) Autocorrelation Function] [WS8 D=1] [2009-11-25 16:17:01] [82f421ff86a0429b20e3ed68bd89f1bd] [Current]
Feedback Forum

Post a new message
Dataseries X:
7.55
7.55
7.59
7.59
7.59
7.57
7.57
7.59
7.6
7.64
7.64
7.76
7.76
7.76
7.77
7.83
7.94
7.94
7.94
8.09
8.18
8.26
8.28
8.28
8.28
8.29
8.3
8.3
8.31
8.33
8.33
8.34
8.48
8.59
8.67
8.67
8.67
8.71
8.72
8.72
8.72
8.74
8.74
8.74
8.74
8.79
8.85
8.86
8.87
8.92
8.96
8.97
8.99
8.98
8.98
9.01
9.01
9.03
9.05
9.05




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59431&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.8864466.14150
20.7322515.07323e-06
30.5843814.04879.3e-05
40.4364953.02410.001998
50.2896672.00690.025207
60.1236090.85640.19802
7-0.00799-0.05540.478042
8-0.066322-0.45950.323977
9-0.10147-0.7030.242724
10-0.110989-0.7690.222844
11-0.097828-0.67780.250585
12-0.058994-0.40870.34228
130.0190180.13180.447863
140.0508610.35240.36305
150.0583670.40440.343865
160.0703970.48770.313983
170.0764620.52970.299367
180.0480160.33270.370418
19-0.005975-0.04140.483576
20-0.080534-0.5580.289735
21-0.137363-0.95170.173013
22-0.207016-1.43420.078992
23-0.275571-1.90920.031111
24-0.338487-2.34510.011602
25-0.363884-2.52110.007538
26-0.348483-2.41440.009812
27-0.338172-2.34290.011663
28-0.325549-2.25550.01435
29-0.30298-2.09910.020546
30-0.235762-1.63340.054463
31-0.185308-1.28390.102678
32-0.154363-1.06950.145106
33-0.129161-0.89490.187665
34-0.105556-0.73130.234071
35-0.091675-0.63510.264176
36-0.090832-0.62930.266067

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.886446 & 6.1415 & 0 \tabularnewline
2 & 0.732251 & 5.0732 & 3e-06 \tabularnewline
3 & 0.584381 & 4.0487 & 9.3e-05 \tabularnewline
4 & 0.436495 & 3.0241 & 0.001998 \tabularnewline
5 & 0.289667 & 2.0069 & 0.025207 \tabularnewline
6 & 0.123609 & 0.8564 & 0.19802 \tabularnewline
7 & -0.00799 & -0.0554 & 0.478042 \tabularnewline
8 & -0.066322 & -0.4595 & 0.323977 \tabularnewline
9 & -0.10147 & -0.703 & 0.242724 \tabularnewline
10 & -0.110989 & -0.769 & 0.222844 \tabularnewline
11 & -0.097828 & -0.6778 & 0.250585 \tabularnewline
12 & -0.058994 & -0.4087 & 0.34228 \tabularnewline
13 & 0.019018 & 0.1318 & 0.447863 \tabularnewline
14 & 0.050861 & 0.3524 & 0.36305 \tabularnewline
15 & 0.058367 & 0.4044 & 0.343865 \tabularnewline
16 & 0.070397 & 0.4877 & 0.313983 \tabularnewline
17 & 0.076462 & 0.5297 & 0.299367 \tabularnewline
18 & 0.048016 & 0.3327 & 0.370418 \tabularnewline
19 & -0.005975 & -0.0414 & 0.483576 \tabularnewline
20 & -0.080534 & -0.558 & 0.289735 \tabularnewline
21 & -0.137363 & -0.9517 & 0.173013 \tabularnewline
22 & -0.207016 & -1.4342 & 0.078992 \tabularnewline
23 & -0.275571 & -1.9092 & 0.031111 \tabularnewline
24 & -0.338487 & -2.3451 & 0.011602 \tabularnewline
25 & -0.363884 & -2.5211 & 0.007538 \tabularnewline
26 & -0.348483 & -2.4144 & 0.009812 \tabularnewline
27 & -0.338172 & -2.3429 & 0.011663 \tabularnewline
28 & -0.325549 & -2.2555 & 0.01435 \tabularnewline
29 & -0.30298 & -2.0991 & 0.020546 \tabularnewline
30 & -0.235762 & -1.6334 & 0.054463 \tabularnewline
31 & -0.185308 & -1.2839 & 0.102678 \tabularnewline
32 & -0.154363 & -1.0695 & 0.145106 \tabularnewline
33 & -0.129161 & -0.8949 & 0.187665 \tabularnewline
34 & -0.105556 & -0.7313 & 0.234071 \tabularnewline
35 & -0.091675 & -0.6351 & 0.264176 \tabularnewline
36 & -0.090832 & -0.6293 & 0.266067 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59431&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.886446[/C][C]6.1415[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.732251[/C][C]5.0732[/C][C]3e-06[/C][/ROW]
[ROW][C]3[/C][C]0.584381[/C][C]4.0487[/C][C]9.3e-05[/C][/ROW]
[ROW][C]4[/C][C]0.436495[/C][C]3.0241[/C][C]0.001998[/C][/ROW]
[ROW][C]5[/C][C]0.289667[/C][C]2.0069[/C][C]0.025207[/C][/ROW]
[ROW][C]6[/C][C]0.123609[/C][C]0.8564[/C][C]0.19802[/C][/ROW]
[ROW][C]7[/C][C]-0.00799[/C][C]-0.0554[/C][C]0.478042[/C][/ROW]
[ROW][C]8[/C][C]-0.066322[/C][C]-0.4595[/C][C]0.323977[/C][/ROW]
[ROW][C]9[/C][C]-0.10147[/C][C]-0.703[/C][C]0.242724[/C][/ROW]
[ROW][C]10[/C][C]-0.110989[/C][C]-0.769[/C][C]0.222844[/C][/ROW]
[ROW][C]11[/C][C]-0.097828[/C][C]-0.6778[/C][C]0.250585[/C][/ROW]
[ROW][C]12[/C][C]-0.058994[/C][C]-0.4087[/C][C]0.34228[/C][/ROW]
[ROW][C]13[/C][C]0.019018[/C][C]0.1318[/C][C]0.447863[/C][/ROW]
[ROW][C]14[/C][C]0.050861[/C][C]0.3524[/C][C]0.36305[/C][/ROW]
[ROW][C]15[/C][C]0.058367[/C][C]0.4044[/C][C]0.343865[/C][/ROW]
[ROW][C]16[/C][C]0.070397[/C][C]0.4877[/C][C]0.313983[/C][/ROW]
[ROW][C]17[/C][C]0.076462[/C][C]0.5297[/C][C]0.299367[/C][/ROW]
[ROW][C]18[/C][C]0.048016[/C][C]0.3327[/C][C]0.370418[/C][/ROW]
[ROW][C]19[/C][C]-0.005975[/C][C]-0.0414[/C][C]0.483576[/C][/ROW]
[ROW][C]20[/C][C]-0.080534[/C][C]-0.558[/C][C]0.289735[/C][/ROW]
[ROW][C]21[/C][C]-0.137363[/C][C]-0.9517[/C][C]0.173013[/C][/ROW]
[ROW][C]22[/C][C]-0.207016[/C][C]-1.4342[/C][C]0.078992[/C][/ROW]
[ROW][C]23[/C][C]-0.275571[/C][C]-1.9092[/C][C]0.031111[/C][/ROW]
[ROW][C]24[/C][C]-0.338487[/C][C]-2.3451[/C][C]0.011602[/C][/ROW]
[ROW][C]25[/C][C]-0.363884[/C][C]-2.5211[/C][C]0.007538[/C][/ROW]
[ROW][C]26[/C][C]-0.348483[/C][C]-2.4144[/C][C]0.009812[/C][/ROW]
[ROW][C]27[/C][C]-0.338172[/C][C]-2.3429[/C][C]0.011663[/C][/ROW]
[ROW][C]28[/C][C]-0.325549[/C][C]-2.2555[/C][C]0.01435[/C][/ROW]
[ROW][C]29[/C][C]-0.30298[/C][C]-2.0991[/C][C]0.020546[/C][/ROW]
[ROW][C]30[/C][C]-0.235762[/C][C]-1.6334[/C][C]0.054463[/C][/ROW]
[ROW][C]31[/C][C]-0.185308[/C][C]-1.2839[/C][C]0.102678[/C][/ROW]
[ROW][C]32[/C][C]-0.154363[/C][C]-1.0695[/C][C]0.145106[/C][/ROW]
[ROW][C]33[/C][C]-0.129161[/C][C]-0.8949[/C][C]0.187665[/C][/ROW]
[ROW][C]34[/C][C]-0.105556[/C][C]-0.7313[/C][C]0.234071[/C][/ROW]
[ROW][C]35[/C][C]-0.091675[/C][C]-0.6351[/C][C]0.264176[/C][/ROW]
[ROW][C]36[/C][C]-0.090832[/C][C]-0.6293[/C][C]0.266067[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59431&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59431&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.8864466.14150
20.7322515.07323e-06
30.5843814.04879.3e-05
40.4364953.02410.001998
50.2896672.00690.025207
60.1236090.85640.19802
7-0.00799-0.05540.478042
8-0.066322-0.45950.323977
9-0.10147-0.7030.242724
10-0.110989-0.7690.222844
11-0.097828-0.67780.250585
12-0.058994-0.40870.34228
130.0190180.13180.447863
140.0508610.35240.36305
150.0583670.40440.343865
160.0703970.48770.313983
170.0764620.52970.299367
180.0480160.33270.370418
19-0.005975-0.04140.483576
20-0.080534-0.5580.289735
21-0.137363-0.95170.173013
22-0.207016-1.43420.078992
23-0.275571-1.90920.031111
24-0.338487-2.34510.011602
25-0.363884-2.52110.007538
26-0.348483-2.41440.009812
27-0.338172-2.34290.011663
28-0.325549-2.25550.01435
29-0.30298-2.09910.020546
30-0.235762-1.63340.054463
31-0.185308-1.28390.102678
32-0.154363-1.06950.145106
33-0.129161-0.89490.187665
34-0.105556-0.73130.234071
35-0.091675-0.63510.264176
36-0.090832-0.62930.266067







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8864466.14150
2-0.249919-1.73150.044894
3-0.026902-0.18640.426465
4-0.109812-0.76080.225249
5-0.093284-0.64630.260584
6-0.215336-1.49190.071136
70.0664010.460.323783
80.1800061.24710.109202
9-0.05578-0.38650.350433
100.0592190.41030.341713
110.0363460.25180.40113
120.0438620.30390.381264
130.1082680.75010.228427
14-0.226463-1.5690.061611
150.0141520.0980.461153
160.0293120.20310.419966
17-0.000721-0.0050.498018
18-0.175095-1.21310.115516
190.0333210.23090.409205
20-0.075863-0.52560.300794
21-0.03922-0.27170.3935
22-0.15277-1.05840.14758
230.0198170.13730.445684
24-0.100927-0.69920.243888
250.0852170.59040.278846
26-0.032373-0.22430.411742
27-0.09249-0.64080.262353
28-0.008477-0.05870.476705
29-0.084148-0.5830.281313
300.1321780.91580.182187
31-0.180278-1.2490.108861
320.0421320.29190.385812
33-5e-05-3e-040.499862
34-0.065721-0.45530.325464
35-0.021947-0.15210.439892
36-0.037885-0.26250.39704

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.886446 & 6.1415 & 0 \tabularnewline
2 & -0.249919 & -1.7315 & 0.044894 \tabularnewline
3 & -0.026902 & -0.1864 & 0.426465 \tabularnewline
4 & -0.109812 & -0.7608 & 0.225249 \tabularnewline
5 & -0.093284 & -0.6463 & 0.260584 \tabularnewline
6 & -0.215336 & -1.4919 & 0.071136 \tabularnewline
7 & 0.066401 & 0.46 & 0.323783 \tabularnewline
8 & 0.180006 & 1.2471 & 0.109202 \tabularnewline
9 & -0.05578 & -0.3865 & 0.350433 \tabularnewline
10 & 0.059219 & 0.4103 & 0.341713 \tabularnewline
11 & 0.036346 & 0.2518 & 0.40113 \tabularnewline
12 & 0.043862 & 0.3039 & 0.381264 \tabularnewline
13 & 0.108268 & 0.7501 & 0.228427 \tabularnewline
14 & -0.226463 & -1.569 & 0.061611 \tabularnewline
15 & 0.014152 & 0.098 & 0.461153 \tabularnewline
16 & 0.029312 & 0.2031 & 0.419966 \tabularnewline
17 & -0.000721 & -0.005 & 0.498018 \tabularnewline
18 & -0.175095 & -1.2131 & 0.115516 \tabularnewline
19 & 0.033321 & 0.2309 & 0.409205 \tabularnewline
20 & -0.075863 & -0.5256 & 0.300794 \tabularnewline
21 & -0.03922 & -0.2717 & 0.3935 \tabularnewline
22 & -0.15277 & -1.0584 & 0.14758 \tabularnewline
23 & 0.019817 & 0.1373 & 0.445684 \tabularnewline
24 & -0.100927 & -0.6992 & 0.243888 \tabularnewline
25 & 0.085217 & 0.5904 & 0.278846 \tabularnewline
26 & -0.032373 & -0.2243 & 0.411742 \tabularnewline
27 & -0.09249 & -0.6408 & 0.262353 \tabularnewline
28 & -0.008477 & -0.0587 & 0.476705 \tabularnewline
29 & -0.084148 & -0.583 & 0.281313 \tabularnewline
30 & 0.132178 & 0.9158 & 0.182187 \tabularnewline
31 & -0.180278 & -1.249 & 0.108861 \tabularnewline
32 & 0.042132 & 0.2919 & 0.385812 \tabularnewline
33 & -5e-05 & -3e-04 & 0.499862 \tabularnewline
34 & -0.065721 & -0.4553 & 0.325464 \tabularnewline
35 & -0.021947 & -0.1521 & 0.439892 \tabularnewline
36 & -0.037885 & -0.2625 & 0.39704 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59431&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.886446[/C][C]6.1415[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.249919[/C][C]-1.7315[/C][C]0.044894[/C][/ROW]
[ROW][C]3[/C][C]-0.026902[/C][C]-0.1864[/C][C]0.426465[/C][/ROW]
[ROW][C]4[/C][C]-0.109812[/C][C]-0.7608[/C][C]0.225249[/C][/ROW]
[ROW][C]5[/C][C]-0.093284[/C][C]-0.6463[/C][C]0.260584[/C][/ROW]
[ROW][C]6[/C][C]-0.215336[/C][C]-1.4919[/C][C]0.071136[/C][/ROW]
[ROW][C]7[/C][C]0.066401[/C][C]0.46[/C][C]0.323783[/C][/ROW]
[ROW][C]8[/C][C]0.180006[/C][C]1.2471[/C][C]0.109202[/C][/ROW]
[ROW][C]9[/C][C]-0.05578[/C][C]-0.3865[/C][C]0.350433[/C][/ROW]
[ROW][C]10[/C][C]0.059219[/C][C]0.4103[/C][C]0.341713[/C][/ROW]
[ROW][C]11[/C][C]0.036346[/C][C]0.2518[/C][C]0.40113[/C][/ROW]
[ROW][C]12[/C][C]0.043862[/C][C]0.3039[/C][C]0.381264[/C][/ROW]
[ROW][C]13[/C][C]0.108268[/C][C]0.7501[/C][C]0.228427[/C][/ROW]
[ROW][C]14[/C][C]-0.226463[/C][C]-1.569[/C][C]0.061611[/C][/ROW]
[ROW][C]15[/C][C]0.014152[/C][C]0.098[/C][C]0.461153[/C][/ROW]
[ROW][C]16[/C][C]0.029312[/C][C]0.2031[/C][C]0.419966[/C][/ROW]
[ROW][C]17[/C][C]-0.000721[/C][C]-0.005[/C][C]0.498018[/C][/ROW]
[ROW][C]18[/C][C]-0.175095[/C][C]-1.2131[/C][C]0.115516[/C][/ROW]
[ROW][C]19[/C][C]0.033321[/C][C]0.2309[/C][C]0.409205[/C][/ROW]
[ROW][C]20[/C][C]-0.075863[/C][C]-0.5256[/C][C]0.300794[/C][/ROW]
[ROW][C]21[/C][C]-0.03922[/C][C]-0.2717[/C][C]0.3935[/C][/ROW]
[ROW][C]22[/C][C]-0.15277[/C][C]-1.0584[/C][C]0.14758[/C][/ROW]
[ROW][C]23[/C][C]0.019817[/C][C]0.1373[/C][C]0.445684[/C][/ROW]
[ROW][C]24[/C][C]-0.100927[/C][C]-0.6992[/C][C]0.243888[/C][/ROW]
[ROW][C]25[/C][C]0.085217[/C][C]0.5904[/C][C]0.278846[/C][/ROW]
[ROW][C]26[/C][C]-0.032373[/C][C]-0.2243[/C][C]0.411742[/C][/ROW]
[ROW][C]27[/C][C]-0.09249[/C][C]-0.6408[/C][C]0.262353[/C][/ROW]
[ROW][C]28[/C][C]-0.008477[/C][C]-0.0587[/C][C]0.476705[/C][/ROW]
[ROW][C]29[/C][C]-0.084148[/C][C]-0.583[/C][C]0.281313[/C][/ROW]
[ROW][C]30[/C][C]0.132178[/C][C]0.9158[/C][C]0.182187[/C][/ROW]
[ROW][C]31[/C][C]-0.180278[/C][C]-1.249[/C][C]0.108861[/C][/ROW]
[ROW][C]32[/C][C]0.042132[/C][C]0.2919[/C][C]0.385812[/C][/ROW]
[ROW][C]33[/C][C]-5e-05[/C][C]-3e-04[/C][C]0.499862[/C][/ROW]
[ROW][C]34[/C][C]-0.065721[/C][C]-0.4553[/C][C]0.325464[/C][/ROW]
[ROW][C]35[/C][C]-0.021947[/C][C]-0.1521[/C][C]0.439892[/C][/ROW]
[ROW][C]36[/C][C]-0.037885[/C][C]-0.2625[/C][C]0.39704[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59431&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59431&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.8864466.14150
2-0.249919-1.73150.044894
3-0.026902-0.18640.426465
4-0.109812-0.76080.225249
5-0.093284-0.64630.260584
6-0.215336-1.49190.071136
70.0664010.460.323783
80.1800061.24710.109202
9-0.05578-0.38650.350433
100.0592190.41030.341713
110.0363460.25180.40113
120.0438620.30390.381264
130.1082680.75010.228427
14-0.226463-1.5690.061611
150.0141520.0980.461153
160.0293120.20310.419966
17-0.000721-0.0050.498018
18-0.175095-1.21310.115516
190.0333210.23090.409205
20-0.075863-0.52560.300794
21-0.03922-0.27170.3935
22-0.15277-1.05840.14758
230.0198170.13730.445684
24-0.100927-0.69920.243888
250.0852170.59040.278846
26-0.032373-0.22430.411742
27-0.09249-0.64080.262353
28-0.008477-0.05870.476705
29-0.084148-0.5830.281313
300.1321780.91580.182187
31-0.180278-1.2490.108861
320.0421320.29190.385812
33-5e-05-3e-040.499862
34-0.065721-0.45530.325464
35-0.021947-0.15210.439892
36-0.037885-0.26250.39704



Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; 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')