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, 04 Dec 2009 07:13: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/04/t1259936059av1h052uk9cz3z2.htm/, Retrieved Sun, 28 Apr 2024 09:17:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63570, Retrieved Sun, 28 Apr 2024 09:17:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact131
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [Identifying integ...] [2009-11-23 18:42:00] [d46757a0a8c9b00540ab7e7e0c34bfc4]
-    D  [(Partial) Autocorrelation Function] [ACF met: d=1, D=0...] [2009-12-03 22:52:29] [34d27ebe78dc2d31581e8710befe8733]
-   P       [(Partial) Autocorrelation Function] [ACF met: d=0, D=1...] [2009-12-04 14:13:45] [371dc2189c569d90e2c1567f632c3ec0] [Current]
-    D        [(Partial) Autocorrelation Function] [ACF met: d=0, D=1...] [2009-12-16 22:43:21] [34d27ebe78dc2d31581e8710befe8733]
-               [(Partial) Autocorrelation Function] [ACF met: d=1, D=0...] [2009-12-19 11:29:26] [34d27ebe78dc2d31581e8710befe8733]
Feedback Forum

Post a new message
Dataseries X:
462
455
461
461
463
462
456
455
456
472
472
471
465
459
465
468
467
463
460
462
461
476
476
471
453
443
442
444
438
427
424
416
406
431
434
418
412
404
409
412
406
398
397
385
390
413
413
401
397
397
409
419
424
428
430
424
433
456
459
446
441




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63570&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.9405426.58380
20.8691986.08440
30.7860675.50251e-06
40.6838134.78678e-06
50.5727414.00920.000104
60.4600743.22050.001137
70.3452872.4170.009708
80.2323121.62620.055163
90.1241060.86870.194612
100.0338950.23730.406722
11-0.041679-0.29180.385854
12-0.118925-0.83250.204589
13-0.177152-1.24010.110428
14-0.225646-1.57950.060325
15-0.272084-1.90460.031356
16-0.324576-2.2720.013755
17-0.377428-2.6420.005516
18-0.40807-2.85650.003134
19-0.439736-3.07820.001704
20-0.466962-3.26870.000989
21-0.47987-3.35910.00076
22-0.486463-3.40520.000664
23-0.488814-3.42170.000632
24-0.472678-3.30870.000881
25-0.44689-3.12820.001479
26-0.398945-2.79260.003718
27-0.360478-2.52330.007459
28-0.308128-2.15690.017973
29-0.234488-1.64140.053557
30-0.168677-1.18070.121703
31-0.113138-0.7920.216099
32-0.054289-0.380.352785
33-0.006593-0.04620.481689
340.035790.25050.401612
350.0771890.54030.295712
360.1078890.75520.226866

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.940542 & 6.5838 & 0 \tabularnewline
2 & 0.869198 & 6.0844 & 0 \tabularnewline
3 & 0.786067 & 5.5025 & 1e-06 \tabularnewline
4 & 0.683813 & 4.7867 & 8e-06 \tabularnewline
5 & 0.572741 & 4.0092 & 0.000104 \tabularnewline
6 & 0.460074 & 3.2205 & 0.001137 \tabularnewline
7 & 0.345287 & 2.417 & 0.009708 \tabularnewline
8 & 0.232312 & 1.6262 & 0.055163 \tabularnewline
9 & 0.124106 & 0.8687 & 0.194612 \tabularnewline
10 & 0.033895 & 0.2373 & 0.406722 \tabularnewline
11 & -0.041679 & -0.2918 & 0.385854 \tabularnewline
12 & -0.118925 & -0.8325 & 0.204589 \tabularnewline
13 & -0.177152 & -1.2401 & 0.110428 \tabularnewline
14 & -0.225646 & -1.5795 & 0.060325 \tabularnewline
15 & -0.272084 & -1.9046 & 0.031356 \tabularnewline
16 & -0.324576 & -2.272 & 0.013755 \tabularnewline
17 & -0.377428 & -2.642 & 0.005516 \tabularnewline
18 & -0.40807 & -2.8565 & 0.003134 \tabularnewline
19 & -0.439736 & -3.0782 & 0.001704 \tabularnewline
20 & -0.466962 & -3.2687 & 0.000989 \tabularnewline
21 & -0.47987 & -3.3591 & 0.00076 \tabularnewline
22 & -0.486463 & -3.4052 & 0.000664 \tabularnewline
23 & -0.488814 & -3.4217 & 0.000632 \tabularnewline
24 & -0.472678 & -3.3087 & 0.000881 \tabularnewline
25 & -0.44689 & -3.1282 & 0.001479 \tabularnewline
26 & -0.398945 & -2.7926 & 0.003718 \tabularnewline
27 & -0.360478 & -2.5233 & 0.007459 \tabularnewline
28 & -0.308128 & -2.1569 & 0.017973 \tabularnewline
29 & -0.234488 & -1.6414 & 0.053557 \tabularnewline
30 & -0.168677 & -1.1807 & 0.121703 \tabularnewline
31 & -0.113138 & -0.792 & 0.216099 \tabularnewline
32 & -0.054289 & -0.38 & 0.352785 \tabularnewline
33 & -0.006593 & -0.0462 & 0.481689 \tabularnewline
34 & 0.03579 & 0.2505 & 0.401612 \tabularnewline
35 & 0.077189 & 0.5403 & 0.295712 \tabularnewline
36 & 0.107889 & 0.7552 & 0.226866 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63570&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.940542[/C][C]6.5838[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.869198[/C][C]6.0844[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.786067[/C][C]5.5025[/C][C]1e-06[/C][/ROW]
[ROW][C]4[/C][C]0.683813[/C][C]4.7867[/C][C]8e-06[/C][/ROW]
[ROW][C]5[/C][C]0.572741[/C][C]4.0092[/C][C]0.000104[/C][/ROW]
[ROW][C]6[/C][C]0.460074[/C][C]3.2205[/C][C]0.001137[/C][/ROW]
[ROW][C]7[/C][C]0.345287[/C][C]2.417[/C][C]0.009708[/C][/ROW]
[ROW][C]8[/C][C]0.232312[/C][C]1.6262[/C][C]0.055163[/C][/ROW]
[ROW][C]9[/C][C]0.124106[/C][C]0.8687[/C][C]0.194612[/C][/ROW]
[ROW][C]10[/C][C]0.033895[/C][C]0.2373[/C][C]0.406722[/C][/ROW]
[ROW][C]11[/C][C]-0.041679[/C][C]-0.2918[/C][C]0.385854[/C][/ROW]
[ROW][C]12[/C][C]-0.118925[/C][C]-0.8325[/C][C]0.204589[/C][/ROW]
[ROW][C]13[/C][C]-0.177152[/C][C]-1.2401[/C][C]0.110428[/C][/ROW]
[ROW][C]14[/C][C]-0.225646[/C][C]-1.5795[/C][C]0.060325[/C][/ROW]
[ROW][C]15[/C][C]-0.272084[/C][C]-1.9046[/C][C]0.031356[/C][/ROW]
[ROW][C]16[/C][C]-0.324576[/C][C]-2.272[/C][C]0.013755[/C][/ROW]
[ROW][C]17[/C][C]-0.377428[/C][C]-2.642[/C][C]0.005516[/C][/ROW]
[ROW][C]18[/C][C]-0.40807[/C][C]-2.8565[/C][C]0.003134[/C][/ROW]
[ROW][C]19[/C][C]-0.439736[/C][C]-3.0782[/C][C]0.001704[/C][/ROW]
[ROW][C]20[/C][C]-0.466962[/C][C]-3.2687[/C][C]0.000989[/C][/ROW]
[ROW][C]21[/C][C]-0.47987[/C][C]-3.3591[/C][C]0.00076[/C][/ROW]
[ROW][C]22[/C][C]-0.486463[/C][C]-3.4052[/C][C]0.000664[/C][/ROW]
[ROW][C]23[/C][C]-0.488814[/C][C]-3.4217[/C][C]0.000632[/C][/ROW]
[ROW][C]24[/C][C]-0.472678[/C][C]-3.3087[/C][C]0.000881[/C][/ROW]
[ROW][C]25[/C][C]-0.44689[/C][C]-3.1282[/C][C]0.001479[/C][/ROW]
[ROW][C]26[/C][C]-0.398945[/C][C]-2.7926[/C][C]0.003718[/C][/ROW]
[ROW][C]27[/C][C]-0.360478[/C][C]-2.5233[/C][C]0.007459[/C][/ROW]
[ROW][C]28[/C][C]-0.308128[/C][C]-2.1569[/C][C]0.017973[/C][/ROW]
[ROW][C]29[/C][C]-0.234488[/C][C]-1.6414[/C][C]0.053557[/C][/ROW]
[ROW][C]30[/C][C]-0.168677[/C][C]-1.1807[/C][C]0.121703[/C][/ROW]
[ROW][C]31[/C][C]-0.113138[/C][C]-0.792[/C][C]0.216099[/C][/ROW]
[ROW][C]32[/C][C]-0.054289[/C][C]-0.38[/C][C]0.352785[/C][/ROW]
[ROW][C]33[/C][C]-0.006593[/C][C]-0.0462[/C][C]0.481689[/C][/ROW]
[ROW][C]34[/C][C]0.03579[/C][C]0.2505[/C][C]0.401612[/C][/ROW]
[ROW][C]35[/C][C]0.077189[/C][C]0.5403[/C][C]0.295712[/C][/ROW]
[ROW][C]36[/C][C]0.107889[/C][C]0.7552[/C][C]0.226866[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63570&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63570&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.9405426.58380
20.8691986.08440
30.7860675.50251e-06
40.6838134.78678e-06
50.5727414.00920.000104
60.4600743.22050.001137
70.3452872.4170.009708
80.2323121.62620.055163
90.1241060.86870.194612
100.0338950.23730.406722
11-0.041679-0.29180.385854
12-0.118925-0.83250.204589
13-0.177152-1.24010.110428
14-0.225646-1.57950.060325
15-0.272084-1.90460.031356
16-0.324576-2.2720.013755
17-0.377428-2.6420.005516
18-0.40807-2.85650.003134
19-0.439736-3.07820.001704
20-0.466962-3.26870.000989
21-0.47987-3.35910.00076
22-0.486463-3.40520.000664
23-0.488814-3.42170.000632
24-0.472678-3.30870.000881
25-0.44689-3.12820.001479
26-0.398945-2.79260.003718
27-0.360478-2.52330.007459
28-0.308128-2.15690.017973
29-0.234488-1.64140.053557
30-0.168677-1.18070.121703
31-0.113138-0.7920.216099
32-0.054289-0.380.352785
33-0.006593-0.04620.481689
340.035790.25050.401612
350.0771890.54030.295712
360.1078890.75520.226866







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9405426.58380
2-0.133655-0.93560.177038
3-0.132436-0.92710.179222
4-0.201393-1.40980.082464
5-0.114067-0.79850.214226
6-0.057603-0.40320.34427
7-0.069646-0.48750.314032
8-0.054272-0.37990.352829
9-0.048749-0.34120.367189
100.0680550.47640.317959
110.0279310.19550.422898
12-0.139985-0.97990.165976
130.0340680.23850.406253
14-0.045145-0.3160.376666
15-0.084823-0.59380.277702
16-0.191992-1.34390.092578
17-0.135889-0.95120.17308
180.1301590.91110.183348
19-0.075048-0.52530.30086
20-0.040821-0.28570.388137
21-0.00537-0.03760.485084
22-0.020826-0.14580.442345
23-0.023889-0.16720.433943
240.0270780.18950.425224
25-0.029672-0.20770.418161
260.1247570.87330.19338
27-0.162103-1.13470.131006
280.066710.4670.321296
290.1085060.75950.225583
30-0.036092-0.25260.400799
31-0.106132-0.74290.230537
32-0.012828-0.08980.464407
33-0.07273-0.50910.306479
340.0190230.13320.447305
350.0519530.36370.358835
36-0.072351-0.50650.307405

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.940542 & 6.5838 & 0 \tabularnewline
2 & -0.133655 & -0.9356 & 0.177038 \tabularnewline
3 & -0.132436 & -0.9271 & 0.179222 \tabularnewline
4 & -0.201393 & -1.4098 & 0.082464 \tabularnewline
5 & -0.114067 & -0.7985 & 0.214226 \tabularnewline
6 & -0.057603 & -0.4032 & 0.34427 \tabularnewline
7 & -0.069646 & -0.4875 & 0.314032 \tabularnewline
8 & -0.054272 & -0.3799 & 0.352829 \tabularnewline
9 & -0.048749 & -0.3412 & 0.367189 \tabularnewline
10 & 0.068055 & 0.4764 & 0.317959 \tabularnewline
11 & 0.027931 & 0.1955 & 0.422898 \tabularnewline
12 & -0.139985 & -0.9799 & 0.165976 \tabularnewline
13 & 0.034068 & 0.2385 & 0.406253 \tabularnewline
14 & -0.045145 & -0.316 & 0.376666 \tabularnewline
15 & -0.084823 & -0.5938 & 0.277702 \tabularnewline
16 & -0.191992 & -1.3439 & 0.092578 \tabularnewline
17 & -0.135889 & -0.9512 & 0.17308 \tabularnewline
18 & 0.130159 & 0.9111 & 0.183348 \tabularnewline
19 & -0.075048 & -0.5253 & 0.30086 \tabularnewline
20 & -0.040821 & -0.2857 & 0.388137 \tabularnewline
21 & -0.00537 & -0.0376 & 0.485084 \tabularnewline
22 & -0.020826 & -0.1458 & 0.442345 \tabularnewline
23 & -0.023889 & -0.1672 & 0.433943 \tabularnewline
24 & 0.027078 & 0.1895 & 0.425224 \tabularnewline
25 & -0.029672 & -0.2077 & 0.418161 \tabularnewline
26 & 0.124757 & 0.8733 & 0.19338 \tabularnewline
27 & -0.162103 & -1.1347 & 0.131006 \tabularnewline
28 & 0.06671 & 0.467 & 0.321296 \tabularnewline
29 & 0.108506 & 0.7595 & 0.225583 \tabularnewline
30 & -0.036092 & -0.2526 & 0.400799 \tabularnewline
31 & -0.106132 & -0.7429 & 0.230537 \tabularnewline
32 & -0.012828 & -0.0898 & 0.464407 \tabularnewline
33 & -0.07273 & -0.5091 & 0.306479 \tabularnewline
34 & 0.019023 & 0.1332 & 0.447305 \tabularnewline
35 & 0.051953 & 0.3637 & 0.358835 \tabularnewline
36 & -0.072351 & -0.5065 & 0.307405 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63570&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.940542[/C][C]6.5838[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.133655[/C][C]-0.9356[/C][C]0.177038[/C][/ROW]
[ROW][C]3[/C][C]-0.132436[/C][C]-0.9271[/C][C]0.179222[/C][/ROW]
[ROW][C]4[/C][C]-0.201393[/C][C]-1.4098[/C][C]0.082464[/C][/ROW]
[ROW][C]5[/C][C]-0.114067[/C][C]-0.7985[/C][C]0.214226[/C][/ROW]
[ROW][C]6[/C][C]-0.057603[/C][C]-0.4032[/C][C]0.34427[/C][/ROW]
[ROW][C]7[/C][C]-0.069646[/C][C]-0.4875[/C][C]0.314032[/C][/ROW]
[ROW][C]8[/C][C]-0.054272[/C][C]-0.3799[/C][C]0.352829[/C][/ROW]
[ROW][C]9[/C][C]-0.048749[/C][C]-0.3412[/C][C]0.367189[/C][/ROW]
[ROW][C]10[/C][C]0.068055[/C][C]0.4764[/C][C]0.317959[/C][/ROW]
[ROW][C]11[/C][C]0.027931[/C][C]0.1955[/C][C]0.422898[/C][/ROW]
[ROW][C]12[/C][C]-0.139985[/C][C]-0.9799[/C][C]0.165976[/C][/ROW]
[ROW][C]13[/C][C]0.034068[/C][C]0.2385[/C][C]0.406253[/C][/ROW]
[ROW][C]14[/C][C]-0.045145[/C][C]-0.316[/C][C]0.376666[/C][/ROW]
[ROW][C]15[/C][C]-0.084823[/C][C]-0.5938[/C][C]0.277702[/C][/ROW]
[ROW][C]16[/C][C]-0.191992[/C][C]-1.3439[/C][C]0.092578[/C][/ROW]
[ROW][C]17[/C][C]-0.135889[/C][C]-0.9512[/C][C]0.17308[/C][/ROW]
[ROW][C]18[/C][C]0.130159[/C][C]0.9111[/C][C]0.183348[/C][/ROW]
[ROW][C]19[/C][C]-0.075048[/C][C]-0.5253[/C][C]0.30086[/C][/ROW]
[ROW][C]20[/C][C]-0.040821[/C][C]-0.2857[/C][C]0.388137[/C][/ROW]
[ROW][C]21[/C][C]-0.00537[/C][C]-0.0376[/C][C]0.485084[/C][/ROW]
[ROW][C]22[/C][C]-0.020826[/C][C]-0.1458[/C][C]0.442345[/C][/ROW]
[ROW][C]23[/C][C]-0.023889[/C][C]-0.1672[/C][C]0.433943[/C][/ROW]
[ROW][C]24[/C][C]0.027078[/C][C]0.1895[/C][C]0.425224[/C][/ROW]
[ROW][C]25[/C][C]-0.029672[/C][C]-0.2077[/C][C]0.418161[/C][/ROW]
[ROW][C]26[/C][C]0.124757[/C][C]0.8733[/C][C]0.19338[/C][/ROW]
[ROW][C]27[/C][C]-0.162103[/C][C]-1.1347[/C][C]0.131006[/C][/ROW]
[ROW][C]28[/C][C]0.06671[/C][C]0.467[/C][C]0.321296[/C][/ROW]
[ROW][C]29[/C][C]0.108506[/C][C]0.7595[/C][C]0.225583[/C][/ROW]
[ROW][C]30[/C][C]-0.036092[/C][C]-0.2526[/C][C]0.400799[/C][/ROW]
[ROW][C]31[/C][C]-0.106132[/C][C]-0.7429[/C][C]0.230537[/C][/ROW]
[ROW][C]32[/C][C]-0.012828[/C][C]-0.0898[/C][C]0.464407[/C][/ROW]
[ROW][C]33[/C][C]-0.07273[/C][C]-0.5091[/C][C]0.306479[/C][/ROW]
[ROW][C]34[/C][C]0.019023[/C][C]0.1332[/C][C]0.447305[/C][/ROW]
[ROW][C]35[/C][C]0.051953[/C][C]0.3637[/C][C]0.358835[/C][/ROW]
[ROW][C]36[/C][C]-0.072351[/C][C]-0.5065[/C][C]0.307405[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63570&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63570&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.9405426.58380
2-0.133655-0.93560.177038
3-0.132436-0.92710.179222
4-0.201393-1.40980.082464
5-0.114067-0.79850.214226
6-0.057603-0.40320.34427
7-0.069646-0.48750.314032
8-0.054272-0.37990.352829
9-0.048749-0.34120.367189
100.0680550.47640.317959
110.0279310.19550.422898
12-0.139985-0.97990.165976
130.0340680.23850.406253
14-0.045145-0.3160.376666
15-0.084823-0.59380.277702
16-0.191992-1.34390.092578
17-0.135889-0.95120.17308
180.1301590.91110.183348
19-0.075048-0.52530.30086
20-0.040821-0.28570.388137
21-0.00537-0.03760.485084
22-0.020826-0.14580.442345
23-0.023889-0.16720.433943
240.0270780.18950.425224
25-0.029672-0.20770.418161
260.1247570.87330.19338
27-0.162103-1.13470.131006
280.066710.4670.321296
290.1085060.75950.225583
30-0.036092-0.25260.400799
31-0.106132-0.74290.230537
32-0.012828-0.08980.464407
33-0.07273-0.50910.306479
340.0190230.13320.447305
350.0519530.36370.358835
36-0.072351-0.50650.307405



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