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, 02 Dec 2009 09:11: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/02/t1259770384c57l9nh4lmri7qi.htm/, Retrieved Sun, 28 Apr 2024 03:58:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=62412, Retrieved Sun, 28 Apr 2024 03:58:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact93
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2009-12-02 16:11:58] [c4328af89eba9af53ee195d6fed304d9] [Current]
Feedback Forum

Post a new message
Dataseries X:
1111.92
1131.13
1144.94
1113.89
1107.30
1120.68
1140.84
1101.72
1104.24
1114.58
1130.20
1173.78
1211.92
1181.27
1203.60
1180.59
1156.85
1191.50
1191.33
1234.18
1220.33
1228.81
1207.01
1249.48
1248.29
1280.08
1280.66
1302.88
1310.61
1270.05
1270.06
1278.53
1303.80
1335.83
1377.76
1400.63
1418.03
1437.90
1406.80
1420.83
1482.37
1530.63
1504.66
1455.18
1473.96
1527.29
1545.79
1479.63
1467.97
1378.60
1330.45
1326.41
1385.97
1399.62
1276.69
1269.42
1287.83
1164.17
968.67
888.61




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62412&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.2233721.53140.066192
2-0.0183-0.12550.450349
3-0.042209-0.28940.386784
40.1831491.25560.107733
50.1000240.68570.248126
60.019910.13650.446007
70.1069270.73310.233582
80.1060190.72680.235468
90.1705221.1690.124141
100.0317920.2180.414204
110.1850961.2690.105353
12-0.103027-0.70630.24174
13-0.06082-0.4170.339303
140.0561290.38480.351059
150.0808190.55410.291079
16-0.064785-0.44410.329489
17-0.219307-1.50350.069701
18-0.061142-0.41920.338501
19-0.011204-0.07680.469549
200.0122420.08390.466736
21-0.049639-0.34030.36757
22-0.043844-0.30060.382532
23-0.051996-0.35650.361544
24-0.19647-1.34690.092231
25-0.030981-0.21240.416359
26-0.080455-0.55160.291928
270.0048050.03290.486931
28-0.014975-0.10270.459334
29-0.014633-0.10030.46026
30-0.146887-1.0070.159545
31-0.07355-0.50420.308226
32-0.104011-0.71310.239665
33-0.090682-0.62170.268577
340.0086720.05950.476422
35-0.052827-0.36220.359427
360.0709540.48640.314459

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.223372 & 1.5314 & 0.066192 \tabularnewline
2 & -0.0183 & -0.1255 & 0.450349 \tabularnewline
3 & -0.042209 & -0.2894 & 0.386784 \tabularnewline
4 & 0.183149 & 1.2556 & 0.107733 \tabularnewline
5 & 0.100024 & 0.6857 & 0.248126 \tabularnewline
6 & 0.01991 & 0.1365 & 0.446007 \tabularnewline
7 & 0.106927 & 0.7331 & 0.233582 \tabularnewline
8 & 0.106019 & 0.7268 & 0.235468 \tabularnewline
9 & 0.170522 & 1.169 & 0.124141 \tabularnewline
10 & 0.031792 & 0.218 & 0.414204 \tabularnewline
11 & 0.185096 & 1.269 & 0.105353 \tabularnewline
12 & -0.103027 & -0.7063 & 0.24174 \tabularnewline
13 & -0.06082 & -0.417 & 0.339303 \tabularnewline
14 & 0.056129 & 0.3848 & 0.351059 \tabularnewline
15 & 0.080819 & 0.5541 & 0.291079 \tabularnewline
16 & -0.064785 & -0.4441 & 0.329489 \tabularnewline
17 & -0.219307 & -1.5035 & 0.069701 \tabularnewline
18 & -0.061142 & -0.4192 & 0.338501 \tabularnewline
19 & -0.011204 & -0.0768 & 0.469549 \tabularnewline
20 & 0.012242 & 0.0839 & 0.466736 \tabularnewline
21 & -0.049639 & -0.3403 & 0.36757 \tabularnewline
22 & -0.043844 & -0.3006 & 0.382532 \tabularnewline
23 & -0.051996 & -0.3565 & 0.361544 \tabularnewline
24 & -0.19647 & -1.3469 & 0.092231 \tabularnewline
25 & -0.030981 & -0.2124 & 0.416359 \tabularnewline
26 & -0.080455 & -0.5516 & 0.291928 \tabularnewline
27 & 0.004805 & 0.0329 & 0.486931 \tabularnewline
28 & -0.014975 & -0.1027 & 0.459334 \tabularnewline
29 & -0.014633 & -0.1003 & 0.46026 \tabularnewline
30 & -0.146887 & -1.007 & 0.159545 \tabularnewline
31 & -0.07355 & -0.5042 & 0.308226 \tabularnewline
32 & -0.104011 & -0.7131 & 0.239665 \tabularnewline
33 & -0.090682 & -0.6217 & 0.268577 \tabularnewline
34 & 0.008672 & 0.0595 & 0.476422 \tabularnewline
35 & -0.052827 & -0.3622 & 0.359427 \tabularnewline
36 & 0.070954 & 0.4864 & 0.314459 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62412&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.223372[/C][C]1.5314[/C][C]0.066192[/C][/ROW]
[ROW][C]2[/C][C]-0.0183[/C][C]-0.1255[/C][C]0.450349[/C][/ROW]
[ROW][C]3[/C][C]-0.042209[/C][C]-0.2894[/C][C]0.386784[/C][/ROW]
[ROW][C]4[/C][C]0.183149[/C][C]1.2556[/C][C]0.107733[/C][/ROW]
[ROW][C]5[/C][C]0.100024[/C][C]0.6857[/C][C]0.248126[/C][/ROW]
[ROW][C]6[/C][C]0.01991[/C][C]0.1365[/C][C]0.446007[/C][/ROW]
[ROW][C]7[/C][C]0.106927[/C][C]0.7331[/C][C]0.233582[/C][/ROW]
[ROW][C]8[/C][C]0.106019[/C][C]0.7268[/C][C]0.235468[/C][/ROW]
[ROW][C]9[/C][C]0.170522[/C][C]1.169[/C][C]0.124141[/C][/ROW]
[ROW][C]10[/C][C]0.031792[/C][C]0.218[/C][C]0.414204[/C][/ROW]
[ROW][C]11[/C][C]0.185096[/C][C]1.269[/C][C]0.105353[/C][/ROW]
[ROW][C]12[/C][C]-0.103027[/C][C]-0.7063[/C][C]0.24174[/C][/ROW]
[ROW][C]13[/C][C]-0.06082[/C][C]-0.417[/C][C]0.339303[/C][/ROW]
[ROW][C]14[/C][C]0.056129[/C][C]0.3848[/C][C]0.351059[/C][/ROW]
[ROW][C]15[/C][C]0.080819[/C][C]0.5541[/C][C]0.291079[/C][/ROW]
[ROW][C]16[/C][C]-0.064785[/C][C]-0.4441[/C][C]0.329489[/C][/ROW]
[ROW][C]17[/C][C]-0.219307[/C][C]-1.5035[/C][C]0.069701[/C][/ROW]
[ROW][C]18[/C][C]-0.061142[/C][C]-0.4192[/C][C]0.338501[/C][/ROW]
[ROW][C]19[/C][C]-0.011204[/C][C]-0.0768[/C][C]0.469549[/C][/ROW]
[ROW][C]20[/C][C]0.012242[/C][C]0.0839[/C][C]0.466736[/C][/ROW]
[ROW][C]21[/C][C]-0.049639[/C][C]-0.3403[/C][C]0.36757[/C][/ROW]
[ROW][C]22[/C][C]-0.043844[/C][C]-0.3006[/C][C]0.382532[/C][/ROW]
[ROW][C]23[/C][C]-0.051996[/C][C]-0.3565[/C][C]0.361544[/C][/ROW]
[ROW][C]24[/C][C]-0.19647[/C][C]-1.3469[/C][C]0.092231[/C][/ROW]
[ROW][C]25[/C][C]-0.030981[/C][C]-0.2124[/C][C]0.416359[/C][/ROW]
[ROW][C]26[/C][C]-0.080455[/C][C]-0.5516[/C][C]0.291928[/C][/ROW]
[ROW][C]27[/C][C]0.004805[/C][C]0.0329[/C][C]0.486931[/C][/ROW]
[ROW][C]28[/C][C]-0.014975[/C][C]-0.1027[/C][C]0.459334[/C][/ROW]
[ROW][C]29[/C][C]-0.014633[/C][C]-0.1003[/C][C]0.46026[/C][/ROW]
[ROW][C]30[/C][C]-0.146887[/C][C]-1.007[/C][C]0.159545[/C][/ROW]
[ROW][C]31[/C][C]-0.07355[/C][C]-0.5042[/C][C]0.308226[/C][/ROW]
[ROW][C]32[/C][C]-0.104011[/C][C]-0.7131[/C][C]0.239665[/C][/ROW]
[ROW][C]33[/C][C]-0.090682[/C][C]-0.6217[/C][C]0.268577[/C][/ROW]
[ROW][C]34[/C][C]0.008672[/C][C]0.0595[/C][C]0.476422[/C][/ROW]
[ROW][C]35[/C][C]-0.052827[/C][C]-0.3622[/C][C]0.359427[/C][/ROW]
[ROW][C]36[/C][C]0.070954[/C][C]0.4864[/C][C]0.314459[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62412&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62412&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.2233721.53140.066192
2-0.0183-0.12550.450349
3-0.042209-0.28940.386784
40.1831491.25560.107733
50.1000240.68570.248126
60.019910.13650.446007
70.1069270.73310.233582
80.1060190.72680.235468
90.1705221.1690.124141
100.0317920.2180.414204
110.1850961.2690.105353
12-0.103027-0.70630.24174
13-0.06082-0.4170.339303
140.0561290.38480.351059
150.0808190.55410.291079
16-0.064785-0.44410.329489
17-0.219307-1.50350.069701
18-0.061142-0.41920.338501
19-0.011204-0.07680.469549
200.0122420.08390.466736
21-0.049639-0.34030.36757
22-0.043844-0.30060.382532
23-0.051996-0.35650.361544
24-0.19647-1.34690.092231
25-0.030981-0.21240.416359
26-0.080455-0.55160.291928
270.0048050.03290.486931
28-0.014975-0.10270.459334
29-0.014633-0.10030.46026
30-0.146887-1.0070.159545
31-0.07355-0.50420.308226
32-0.104011-0.71310.239665
33-0.090682-0.62170.268577
340.0086720.05950.476422
35-0.052827-0.36220.359427
360.0709540.48640.314459







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2233721.53140.066192
2-0.071776-0.49210.31248
3-0.023059-0.15810.437534
40.2086591.43050.079595
50.0060290.04130.483603
60.0051870.03560.485891
70.1420.97350.167643
80.0224950.15420.43905
90.1417220.97160.168112
10-0.018401-0.12620.450075
110.1834371.25760.107378
12-0.230481-1.58010.060396
13-0.025764-0.17660.430279
140.0843060.5780.28302
15-0.080427-0.55140.291992
16-0.086431-0.59250.278165
17-0.185025-1.26850.105439
18-0.061488-0.42150.33764
19-0.031781-0.21790.414232
20-0.027458-0.18820.425748
210.0888060.60880.272786
22-0.086317-0.59180.278423
230.0523590.3590.360618
24-0.190204-1.3040.099297
250.1054720.72310.236608
26-0.032394-0.22210.412606
270.0885020.60670.273472
280.1279990.87750.192335
29-0.120226-0.82420.206987
30-0.122632-0.84070.202379
310.0611820.41940.338401
32-0.159505-1.09350.139871
330.0402990.27630.391774
34-0.033306-0.22830.410188
350.004170.02860.488658
36-0.000484-0.00330.498683

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.223372 & 1.5314 & 0.066192 \tabularnewline
2 & -0.071776 & -0.4921 & 0.31248 \tabularnewline
3 & -0.023059 & -0.1581 & 0.437534 \tabularnewline
4 & 0.208659 & 1.4305 & 0.079595 \tabularnewline
5 & 0.006029 & 0.0413 & 0.483603 \tabularnewline
6 & 0.005187 & 0.0356 & 0.485891 \tabularnewline
7 & 0.142 & 0.9735 & 0.167643 \tabularnewline
8 & 0.022495 & 0.1542 & 0.43905 \tabularnewline
9 & 0.141722 & 0.9716 & 0.168112 \tabularnewline
10 & -0.018401 & -0.1262 & 0.450075 \tabularnewline
11 & 0.183437 & 1.2576 & 0.107378 \tabularnewline
12 & -0.230481 & -1.5801 & 0.060396 \tabularnewline
13 & -0.025764 & -0.1766 & 0.430279 \tabularnewline
14 & 0.084306 & 0.578 & 0.28302 \tabularnewline
15 & -0.080427 & -0.5514 & 0.291992 \tabularnewline
16 & -0.086431 & -0.5925 & 0.278165 \tabularnewline
17 & -0.185025 & -1.2685 & 0.105439 \tabularnewline
18 & -0.061488 & -0.4215 & 0.33764 \tabularnewline
19 & -0.031781 & -0.2179 & 0.414232 \tabularnewline
20 & -0.027458 & -0.1882 & 0.425748 \tabularnewline
21 & 0.088806 & 0.6088 & 0.272786 \tabularnewline
22 & -0.086317 & -0.5918 & 0.278423 \tabularnewline
23 & 0.052359 & 0.359 & 0.360618 \tabularnewline
24 & -0.190204 & -1.304 & 0.099297 \tabularnewline
25 & 0.105472 & 0.7231 & 0.236608 \tabularnewline
26 & -0.032394 & -0.2221 & 0.412606 \tabularnewline
27 & 0.088502 & 0.6067 & 0.273472 \tabularnewline
28 & 0.127999 & 0.8775 & 0.192335 \tabularnewline
29 & -0.120226 & -0.8242 & 0.206987 \tabularnewline
30 & -0.122632 & -0.8407 & 0.202379 \tabularnewline
31 & 0.061182 & 0.4194 & 0.338401 \tabularnewline
32 & -0.159505 & -1.0935 & 0.139871 \tabularnewline
33 & 0.040299 & 0.2763 & 0.391774 \tabularnewline
34 & -0.033306 & -0.2283 & 0.410188 \tabularnewline
35 & 0.00417 & 0.0286 & 0.488658 \tabularnewline
36 & -0.000484 & -0.0033 & 0.498683 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62412&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.223372[/C][C]1.5314[/C][C]0.066192[/C][/ROW]
[ROW][C]2[/C][C]-0.071776[/C][C]-0.4921[/C][C]0.31248[/C][/ROW]
[ROW][C]3[/C][C]-0.023059[/C][C]-0.1581[/C][C]0.437534[/C][/ROW]
[ROW][C]4[/C][C]0.208659[/C][C]1.4305[/C][C]0.079595[/C][/ROW]
[ROW][C]5[/C][C]0.006029[/C][C]0.0413[/C][C]0.483603[/C][/ROW]
[ROW][C]6[/C][C]0.005187[/C][C]0.0356[/C][C]0.485891[/C][/ROW]
[ROW][C]7[/C][C]0.142[/C][C]0.9735[/C][C]0.167643[/C][/ROW]
[ROW][C]8[/C][C]0.022495[/C][C]0.1542[/C][C]0.43905[/C][/ROW]
[ROW][C]9[/C][C]0.141722[/C][C]0.9716[/C][C]0.168112[/C][/ROW]
[ROW][C]10[/C][C]-0.018401[/C][C]-0.1262[/C][C]0.450075[/C][/ROW]
[ROW][C]11[/C][C]0.183437[/C][C]1.2576[/C][C]0.107378[/C][/ROW]
[ROW][C]12[/C][C]-0.230481[/C][C]-1.5801[/C][C]0.060396[/C][/ROW]
[ROW][C]13[/C][C]-0.025764[/C][C]-0.1766[/C][C]0.430279[/C][/ROW]
[ROW][C]14[/C][C]0.084306[/C][C]0.578[/C][C]0.28302[/C][/ROW]
[ROW][C]15[/C][C]-0.080427[/C][C]-0.5514[/C][C]0.291992[/C][/ROW]
[ROW][C]16[/C][C]-0.086431[/C][C]-0.5925[/C][C]0.278165[/C][/ROW]
[ROW][C]17[/C][C]-0.185025[/C][C]-1.2685[/C][C]0.105439[/C][/ROW]
[ROW][C]18[/C][C]-0.061488[/C][C]-0.4215[/C][C]0.33764[/C][/ROW]
[ROW][C]19[/C][C]-0.031781[/C][C]-0.2179[/C][C]0.414232[/C][/ROW]
[ROW][C]20[/C][C]-0.027458[/C][C]-0.1882[/C][C]0.425748[/C][/ROW]
[ROW][C]21[/C][C]0.088806[/C][C]0.6088[/C][C]0.272786[/C][/ROW]
[ROW][C]22[/C][C]-0.086317[/C][C]-0.5918[/C][C]0.278423[/C][/ROW]
[ROW][C]23[/C][C]0.052359[/C][C]0.359[/C][C]0.360618[/C][/ROW]
[ROW][C]24[/C][C]-0.190204[/C][C]-1.304[/C][C]0.099297[/C][/ROW]
[ROW][C]25[/C][C]0.105472[/C][C]0.7231[/C][C]0.236608[/C][/ROW]
[ROW][C]26[/C][C]-0.032394[/C][C]-0.2221[/C][C]0.412606[/C][/ROW]
[ROW][C]27[/C][C]0.088502[/C][C]0.6067[/C][C]0.273472[/C][/ROW]
[ROW][C]28[/C][C]0.127999[/C][C]0.8775[/C][C]0.192335[/C][/ROW]
[ROW][C]29[/C][C]-0.120226[/C][C]-0.8242[/C][C]0.206987[/C][/ROW]
[ROW][C]30[/C][C]-0.122632[/C][C]-0.8407[/C][C]0.202379[/C][/ROW]
[ROW][C]31[/C][C]0.061182[/C][C]0.4194[/C][C]0.338401[/C][/ROW]
[ROW][C]32[/C][C]-0.159505[/C][C]-1.0935[/C][C]0.139871[/C][/ROW]
[ROW][C]33[/C][C]0.040299[/C][C]0.2763[/C][C]0.391774[/C][/ROW]
[ROW][C]34[/C][C]-0.033306[/C][C]-0.2283[/C][C]0.410188[/C][/ROW]
[ROW][C]35[/C][C]0.00417[/C][C]0.0286[/C][C]0.488658[/C][/ROW]
[ROW][C]36[/C][C]-0.000484[/C][C]-0.0033[/C][C]0.498683[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62412&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62412&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.2233721.53140.066192
2-0.071776-0.49210.31248
3-0.023059-0.15810.437534
40.2086591.43050.079595
50.0060290.04130.483603
60.0051870.03560.485891
70.1420.97350.167643
80.0224950.15420.43905
90.1417220.97160.168112
10-0.018401-0.12620.450075
110.1834371.25760.107378
12-0.230481-1.58010.060396
13-0.025764-0.17660.430279
140.0843060.5780.28302
15-0.080427-0.55140.291992
16-0.086431-0.59250.278165
17-0.185025-1.26850.105439
18-0.061488-0.42150.33764
19-0.031781-0.21790.414232
20-0.027458-0.18820.425748
210.0888060.60880.272786
22-0.086317-0.59180.278423
230.0523590.3590.360618
24-0.190204-1.3040.099297
250.1054720.72310.236608
26-0.032394-0.22210.412606
270.0885020.60670.273472
280.1279990.87750.192335
29-0.120226-0.82420.206987
30-0.122632-0.84070.202379
310.0611820.41940.338401
32-0.159505-1.09350.139871
330.0402990.27630.391774
34-0.033306-0.22830.410188
350.004170.02860.488658
36-0.000484-0.00330.498683



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