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, 26 Nov 2009 02:57:23 -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/26/t1259229591xc668awknhs1dg5.htm/, Retrieved Sun, 28 Apr 2024 22:06:58 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59753, Retrieved Sun, 28 Apr 2024 22:06:58 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact125
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] [] [2009-11-26 09:57:23] [a1151e037da67acc5ce4bbcb8804d7f1] [Current]
Feedback Forum

Post a new message
Dataseries X:
392
394
392
396
392
396
419
421
420
418
410
418
426
428
430
424
423
427
441
449
452
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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59753&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
10.9554086.68790
20.9076376.35350
30.8479525.93570
40.7885395.51981e-06
50.7157895.01054e-06
60.6509024.55631.7e-05
70.5886494.12057.3e-05
80.5126683.58870.000383
90.4393013.07510.001718
100.362522.53760.007196
110.2916172.04130.023312
120.2258791.58120.060139
130.1748521.2240.113409
140.1255430.87880.1919
150.0804460.56310.287959
160.033040.23130.409031
17-0.006788-0.04750.481148
18-0.041547-0.29080.386204
19-0.084727-0.59310.277924
20-0.127149-0.890.188897
21-0.170395-1.19280.119353
22-0.206155-1.44310.07768
23-0.244606-1.71220.046587
24-0.284745-1.99320.02591
25-0.31861-2.23030.015171
26-0.350111-2.45080.008935
27-0.374099-2.61870.005856
28-0.402819-2.81970.003459
29-0.418038-2.92630.002594
30-0.429553-3.00690.002078
31-0.433751-3.03630.001915
32-0.434185-3.03930.001899
33-0.430645-3.01450.002034
34-0.416621-2.91630.002665
35-0.401704-2.81190.003532
36-0.38027-2.66190.00524

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.955408 & 6.6879 & 0 \tabularnewline
2 & 0.907637 & 6.3535 & 0 \tabularnewline
3 & 0.847952 & 5.9357 & 0 \tabularnewline
4 & 0.788539 & 5.5198 & 1e-06 \tabularnewline
5 & 0.715789 & 5.0105 & 4e-06 \tabularnewline
6 & 0.650902 & 4.5563 & 1.7e-05 \tabularnewline
7 & 0.588649 & 4.1205 & 7.3e-05 \tabularnewline
8 & 0.512668 & 3.5887 & 0.000383 \tabularnewline
9 & 0.439301 & 3.0751 & 0.001718 \tabularnewline
10 & 0.36252 & 2.5376 & 0.007196 \tabularnewline
11 & 0.291617 & 2.0413 & 0.023312 \tabularnewline
12 & 0.225879 & 1.5812 & 0.060139 \tabularnewline
13 & 0.174852 & 1.224 & 0.113409 \tabularnewline
14 & 0.125543 & 0.8788 & 0.1919 \tabularnewline
15 & 0.080446 & 0.5631 & 0.287959 \tabularnewline
16 & 0.03304 & 0.2313 & 0.409031 \tabularnewline
17 & -0.006788 & -0.0475 & 0.481148 \tabularnewline
18 & -0.041547 & -0.2908 & 0.386204 \tabularnewline
19 & -0.084727 & -0.5931 & 0.277924 \tabularnewline
20 & -0.127149 & -0.89 & 0.188897 \tabularnewline
21 & -0.170395 & -1.1928 & 0.119353 \tabularnewline
22 & -0.206155 & -1.4431 & 0.07768 \tabularnewline
23 & -0.244606 & -1.7122 & 0.046587 \tabularnewline
24 & -0.284745 & -1.9932 & 0.02591 \tabularnewline
25 & -0.31861 & -2.2303 & 0.015171 \tabularnewline
26 & -0.350111 & -2.4508 & 0.008935 \tabularnewline
27 & -0.374099 & -2.6187 & 0.005856 \tabularnewline
28 & -0.402819 & -2.8197 & 0.003459 \tabularnewline
29 & -0.418038 & -2.9263 & 0.002594 \tabularnewline
30 & -0.429553 & -3.0069 & 0.002078 \tabularnewline
31 & -0.433751 & -3.0363 & 0.001915 \tabularnewline
32 & -0.434185 & -3.0393 & 0.001899 \tabularnewline
33 & -0.430645 & -3.0145 & 0.002034 \tabularnewline
34 & -0.416621 & -2.9163 & 0.002665 \tabularnewline
35 & -0.401704 & -2.8119 & 0.003532 \tabularnewline
36 & -0.38027 & -2.6619 & 0.00524 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59753&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.955408[/C][C]6.6879[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.907637[/C][C]6.3535[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.847952[/C][C]5.9357[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.788539[/C][C]5.5198[/C][C]1e-06[/C][/ROW]
[ROW][C]5[/C][C]0.715789[/C][C]5.0105[/C][C]4e-06[/C][/ROW]
[ROW][C]6[/C][C]0.650902[/C][C]4.5563[/C][C]1.7e-05[/C][/ROW]
[ROW][C]7[/C][C]0.588649[/C][C]4.1205[/C][C]7.3e-05[/C][/ROW]
[ROW][C]8[/C][C]0.512668[/C][C]3.5887[/C][C]0.000383[/C][/ROW]
[ROW][C]9[/C][C]0.439301[/C][C]3.0751[/C][C]0.001718[/C][/ROW]
[ROW][C]10[/C][C]0.36252[/C][C]2.5376[/C][C]0.007196[/C][/ROW]
[ROW][C]11[/C][C]0.291617[/C][C]2.0413[/C][C]0.023312[/C][/ROW]
[ROW][C]12[/C][C]0.225879[/C][C]1.5812[/C][C]0.060139[/C][/ROW]
[ROW][C]13[/C][C]0.174852[/C][C]1.224[/C][C]0.113409[/C][/ROW]
[ROW][C]14[/C][C]0.125543[/C][C]0.8788[/C][C]0.1919[/C][/ROW]
[ROW][C]15[/C][C]0.080446[/C][C]0.5631[/C][C]0.287959[/C][/ROW]
[ROW][C]16[/C][C]0.03304[/C][C]0.2313[/C][C]0.409031[/C][/ROW]
[ROW][C]17[/C][C]-0.006788[/C][C]-0.0475[/C][C]0.481148[/C][/ROW]
[ROW][C]18[/C][C]-0.041547[/C][C]-0.2908[/C][C]0.386204[/C][/ROW]
[ROW][C]19[/C][C]-0.084727[/C][C]-0.5931[/C][C]0.277924[/C][/ROW]
[ROW][C]20[/C][C]-0.127149[/C][C]-0.89[/C][C]0.188897[/C][/ROW]
[ROW][C]21[/C][C]-0.170395[/C][C]-1.1928[/C][C]0.119353[/C][/ROW]
[ROW][C]22[/C][C]-0.206155[/C][C]-1.4431[/C][C]0.07768[/C][/ROW]
[ROW][C]23[/C][C]-0.244606[/C][C]-1.7122[/C][C]0.046587[/C][/ROW]
[ROW][C]24[/C][C]-0.284745[/C][C]-1.9932[/C][C]0.02591[/C][/ROW]
[ROW][C]25[/C][C]-0.31861[/C][C]-2.2303[/C][C]0.015171[/C][/ROW]
[ROW][C]26[/C][C]-0.350111[/C][C]-2.4508[/C][C]0.008935[/C][/ROW]
[ROW][C]27[/C][C]-0.374099[/C][C]-2.6187[/C][C]0.005856[/C][/ROW]
[ROW][C]28[/C][C]-0.402819[/C][C]-2.8197[/C][C]0.003459[/C][/ROW]
[ROW][C]29[/C][C]-0.418038[/C][C]-2.9263[/C][C]0.002594[/C][/ROW]
[ROW][C]30[/C][C]-0.429553[/C][C]-3.0069[/C][C]0.002078[/C][/ROW]
[ROW][C]31[/C][C]-0.433751[/C][C]-3.0363[/C][C]0.001915[/C][/ROW]
[ROW][C]32[/C][C]-0.434185[/C][C]-3.0393[/C][C]0.001899[/C][/ROW]
[ROW][C]33[/C][C]-0.430645[/C][C]-3.0145[/C][C]0.002034[/C][/ROW]
[ROW][C]34[/C][C]-0.416621[/C][C]-2.9163[/C][C]0.002665[/C][/ROW]
[ROW][C]35[/C][C]-0.401704[/C][C]-2.8119[/C][C]0.003532[/C][/ROW]
[ROW][C]36[/C][C]-0.38027[/C][C]-2.6619[/C][C]0.00524[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59753&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59753&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.9554086.68790
20.9076376.35350
30.8479525.93570
40.7885395.51981e-06
50.7157895.01054e-06
60.6509024.55631.7e-05
70.5886494.12057.3e-05
80.5126683.58870.000383
90.4393013.07510.001718
100.362522.53760.007196
110.2916172.04130.023312
120.2258791.58120.060139
130.1748521.2240.113409
140.1255430.87880.1919
150.0804460.56310.287959
160.033040.23130.409031
17-0.006788-0.04750.481148
18-0.041547-0.29080.386204
19-0.084727-0.59310.277924
20-0.127149-0.890.188897
21-0.170395-1.19280.119353
22-0.206155-1.44310.07768
23-0.244606-1.71220.046587
24-0.284745-1.99320.02591
25-0.31861-2.23030.015171
26-0.350111-2.45080.008935
27-0.374099-2.61870.005856
28-0.402819-2.81970.003459
29-0.418038-2.92630.002594
30-0.429553-3.00690.002078
31-0.433751-3.03630.001915
32-0.434185-3.03930.001899
33-0.430645-3.01450.002034
34-0.416621-2.91630.002665
35-0.401704-2.81190.003532
36-0.38027-2.66190.00524







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9554086.68790
2-0.059262-0.41480.340036
3-0.160917-1.12640.132738
4-0.021344-0.14940.440922
5-0.173704-1.21590.114919
60.0568670.39810.346155
70.0223740.15660.438094
8-0.235537-1.64880.052797
90.0075930.05310.478915
10-0.083395-0.58380.281028
11-0.003721-0.0260.489663
120.0851410.5960.276964
130.0579760.40580.343316
14-0.051671-0.36170.359566
15-0.013245-0.09270.463255
16-0.111643-0.78150.219133
170.0426770.29870.383202
180.0474170.33190.370682
19-0.212294-1.48610.071835
20-0.069366-0.48560.314721
21-0.066218-0.46350.322519
220.0050740.03550.485906
230.0299240.20950.417476
24-0.144883-1.01420.157739
250.0152250.10660.457782
260.0026780.01870.492559
270.0173040.12110.452042
28-0.067507-0.47250.319317
290.0693430.48540.314778
30-0.015241-0.10670.457735
31-0.020786-0.14550.442455
32-0.002178-0.01520.493949
33-0.063439-0.44410.329472
340.1298720.90910.183873
35-0.042729-0.29910.383064
36-0.061439-0.43010.334514

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.955408 & 6.6879 & 0 \tabularnewline
2 & -0.059262 & -0.4148 & 0.340036 \tabularnewline
3 & -0.160917 & -1.1264 & 0.132738 \tabularnewline
4 & -0.021344 & -0.1494 & 0.440922 \tabularnewline
5 & -0.173704 & -1.2159 & 0.114919 \tabularnewline
6 & 0.056867 & 0.3981 & 0.346155 \tabularnewline
7 & 0.022374 & 0.1566 & 0.438094 \tabularnewline
8 & -0.235537 & -1.6488 & 0.052797 \tabularnewline
9 & 0.007593 & 0.0531 & 0.478915 \tabularnewline
10 & -0.083395 & -0.5838 & 0.281028 \tabularnewline
11 & -0.003721 & -0.026 & 0.489663 \tabularnewline
12 & 0.085141 & 0.596 & 0.276964 \tabularnewline
13 & 0.057976 & 0.4058 & 0.343316 \tabularnewline
14 & -0.051671 & -0.3617 & 0.359566 \tabularnewline
15 & -0.013245 & -0.0927 & 0.463255 \tabularnewline
16 & -0.111643 & -0.7815 & 0.219133 \tabularnewline
17 & 0.042677 & 0.2987 & 0.383202 \tabularnewline
18 & 0.047417 & 0.3319 & 0.370682 \tabularnewline
19 & -0.212294 & -1.4861 & 0.071835 \tabularnewline
20 & -0.069366 & -0.4856 & 0.314721 \tabularnewline
21 & -0.066218 & -0.4635 & 0.322519 \tabularnewline
22 & 0.005074 & 0.0355 & 0.485906 \tabularnewline
23 & 0.029924 & 0.2095 & 0.417476 \tabularnewline
24 & -0.144883 & -1.0142 & 0.157739 \tabularnewline
25 & 0.015225 & 0.1066 & 0.457782 \tabularnewline
26 & 0.002678 & 0.0187 & 0.492559 \tabularnewline
27 & 0.017304 & 0.1211 & 0.452042 \tabularnewline
28 & -0.067507 & -0.4725 & 0.319317 \tabularnewline
29 & 0.069343 & 0.4854 & 0.314778 \tabularnewline
30 & -0.015241 & -0.1067 & 0.457735 \tabularnewline
31 & -0.020786 & -0.1455 & 0.442455 \tabularnewline
32 & -0.002178 & -0.0152 & 0.493949 \tabularnewline
33 & -0.063439 & -0.4441 & 0.329472 \tabularnewline
34 & 0.129872 & 0.9091 & 0.183873 \tabularnewline
35 & -0.042729 & -0.2991 & 0.383064 \tabularnewline
36 & -0.061439 & -0.4301 & 0.334514 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59753&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.955408[/C][C]6.6879[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.059262[/C][C]-0.4148[/C][C]0.340036[/C][/ROW]
[ROW][C]3[/C][C]-0.160917[/C][C]-1.1264[/C][C]0.132738[/C][/ROW]
[ROW][C]4[/C][C]-0.021344[/C][C]-0.1494[/C][C]0.440922[/C][/ROW]
[ROW][C]5[/C][C]-0.173704[/C][C]-1.2159[/C][C]0.114919[/C][/ROW]
[ROW][C]6[/C][C]0.056867[/C][C]0.3981[/C][C]0.346155[/C][/ROW]
[ROW][C]7[/C][C]0.022374[/C][C]0.1566[/C][C]0.438094[/C][/ROW]
[ROW][C]8[/C][C]-0.235537[/C][C]-1.6488[/C][C]0.052797[/C][/ROW]
[ROW][C]9[/C][C]0.007593[/C][C]0.0531[/C][C]0.478915[/C][/ROW]
[ROW][C]10[/C][C]-0.083395[/C][C]-0.5838[/C][C]0.281028[/C][/ROW]
[ROW][C]11[/C][C]-0.003721[/C][C]-0.026[/C][C]0.489663[/C][/ROW]
[ROW][C]12[/C][C]0.085141[/C][C]0.596[/C][C]0.276964[/C][/ROW]
[ROW][C]13[/C][C]0.057976[/C][C]0.4058[/C][C]0.343316[/C][/ROW]
[ROW][C]14[/C][C]-0.051671[/C][C]-0.3617[/C][C]0.359566[/C][/ROW]
[ROW][C]15[/C][C]-0.013245[/C][C]-0.0927[/C][C]0.463255[/C][/ROW]
[ROW][C]16[/C][C]-0.111643[/C][C]-0.7815[/C][C]0.219133[/C][/ROW]
[ROW][C]17[/C][C]0.042677[/C][C]0.2987[/C][C]0.383202[/C][/ROW]
[ROW][C]18[/C][C]0.047417[/C][C]0.3319[/C][C]0.370682[/C][/ROW]
[ROW][C]19[/C][C]-0.212294[/C][C]-1.4861[/C][C]0.071835[/C][/ROW]
[ROW][C]20[/C][C]-0.069366[/C][C]-0.4856[/C][C]0.314721[/C][/ROW]
[ROW][C]21[/C][C]-0.066218[/C][C]-0.4635[/C][C]0.322519[/C][/ROW]
[ROW][C]22[/C][C]0.005074[/C][C]0.0355[/C][C]0.485906[/C][/ROW]
[ROW][C]23[/C][C]0.029924[/C][C]0.2095[/C][C]0.417476[/C][/ROW]
[ROW][C]24[/C][C]-0.144883[/C][C]-1.0142[/C][C]0.157739[/C][/ROW]
[ROW][C]25[/C][C]0.015225[/C][C]0.1066[/C][C]0.457782[/C][/ROW]
[ROW][C]26[/C][C]0.002678[/C][C]0.0187[/C][C]0.492559[/C][/ROW]
[ROW][C]27[/C][C]0.017304[/C][C]0.1211[/C][C]0.452042[/C][/ROW]
[ROW][C]28[/C][C]-0.067507[/C][C]-0.4725[/C][C]0.319317[/C][/ROW]
[ROW][C]29[/C][C]0.069343[/C][C]0.4854[/C][C]0.314778[/C][/ROW]
[ROW][C]30[/C][C]-0.015241[/C][C]-0.1067[/C][C]0.457735[/C][/ROW]
[ROW][C]31[/C][C]-0.020786[/C][C]-0.1455[/C][C]0.442455[/C][/ROW]
[ROW][C]32[/C][C]-0.002178[/C][C]-0.0152[/C][C]0.493949[/C][/ROW]
[ROW][C]33[/C][C]-0.063439[/C][C]-0.4441[/C][C]0.329472[/C][/ROW]
[ROW][C]34[/C][C]0.129872[/C][C]0.9091[/C][C]0.183873[/C][/ROW]
[ROW][C]35[/C][C]-0.042729[/C][C]-0.2991[/C][C]0.383064[/C][/ROW]
[ROW][C]36[/C][C]-0.061439[/C][C]-0.4301[/C][C]0.334514[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59753&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59753&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.9554086.68790
2-0.059262-0.41480.340036
3-0.160917-1.12640.132738
4-0.021344-0.14940.440922
5-0.173704-1.21590.114919
60.0568670.39810.346155
70.0223740.15660.438094
8-0.235537-1.64880.052797
90.0075930.05310.478915
10-0.083395-0.58380.281028
11-0.003721-0.0260.489663
120.0851410.5960.276964
130.0579760.40580.343316
14-0.051671-0.36170.359566
15-0.013245-0.09270.463255
16-0.111643-0.78150.219133
170.0426770.29870.383202
180.0474170.33190.370682
19-0.212294-1.48610.071835
20-0.069366-0.48560.314721
21-0.066218-0.46350.322519
220.0050740.03550.485906
230.0299240.20950.417476
24-0.144883-1.01420.157739
250.0152250.10660.457782
260.0026780.01870.492559
270.0173040.12110.452042
28-0.067507-0.47250.319317
290.0693430.48540.314778
30-0.015241-0.10670.457735
31-0.020786-0.14550.442455
32-0.002178-0.01520.493949
33-0.063439-0.44410.329472
340.1298720.90910.183873
35-0.042729-0.29910.383064
36-0.061439-0.43010.334514



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