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 09:00:12 -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/t1259337662ev9q1z347snztju.htm/, Retrieved Mon, 29 Apr 2024 07:26:32 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60930, Retrieved Mon, 29 Apr 2024 07:26:32 +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:19:56] [b98453cac15ba1066b407e146608df68]
- R  D          [(Partial) Autocorrelation Function] [ACF d=0,D=1] [2009-11-27 16:00:12] [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=60930&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=60930&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60930&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.8823936.11340
20.6921144.79518e-06
30.4413983.05810.001818
40.283791.96620.027539
50.1807471.25230.108273
60.1312670.90940.18383
70.065020.45050.3272
8-0.029151-0.2020.420398
9-0.163522-1.13290.131439
10-0.319137-2.2110.015915
11-0.445069-3.08350.001693
12-0.51712-3.58270.000396
13-0.485822-3.36590.000754
14-0.393309-2.72490.004474
15-0.260426-1.80430.038732
16-0.14468-1.00240.160595
17-0.044025-0.3050.380837
180.0222380.15410.439101
190.0860350.59610.276965
200.1157870.80220.213196
210.1505341.04290.151102
220.1562281.08240.142245
230.1818761.26010.106867
240.1860651.28910.101771
250.1887671.30780.098583
260.1472151.01990.156437
270.0827950.57360.284451
28-1e-05-1e-040.499972
29-0.078247-0.54210.295125
30-0.138259-0.95790.17146
31-0.180266-1.24890.108875
32-0.188059-1.30290.099411
33-0.183326-1.27010.105082
34-0.15674-1.08590.141468
35-0.148459-1.02860.154422
36-0.14694-1.0180.156883

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.882393 & 6.1134 & 0 \tabularnewline
2 & 0.692114 & 4.7951 & 8e-06 \tabularnewline
3 & 0.441398 & 3.0581 & 0.001818 \tabularnewline
4 & 0.28379 & 1.9662 & 0.027539 \tabularnewline
5 & 0.180747 & 1.2523 & 0.108273 \tabularnewline
6 & 0.131267 & 0.9094 & 0.18383 \tabularnewline
7 & 0.06502 & 0.4505 & 0.3272 \tabularnewline
8 & -0.029151 & -0.202 & 0.420398 \tabularnewline
9 & -0.163522 & -1.1329 & 0.131439 \tabularnewline
10 & -0.319137 & -2.211 & 0.015915 \tabularnewline
11 & -0.445069 & -3.0835 & 0.001693 \tabularnewline
12 & -0.51712 & -3.5827 & 0.000396 \tabularnewline
13 & -0.485822 & -3.3659 & 0.000754 \tabularnewline
14 & -0.393309 & -2.7249 & 0.004474 \tabularnewline
15 & -0.260426 & -1.8043 & 0.038732 \tabularnewline
16 & -0.14468 & -1.0024 & 0.160595 \tabularnewline
17 & -0.044025 & -0.305 & 0.380837 \tabularnewline
18 & 0.022238 & 0.1541 & 0.439101 \tabularnewline
19 & 0.086035 & 0.5961 & 0.276965 \tabularnewline
20 & 0.115787 & 0.8022 & 0.213196 \tabularnewline
21 & 0.150534 & 1.0429 & 0.151102 \tabularnewline
22 & 0.156228 & 1.0824 & 0.142245 \tabularnewline
23 & 0.181876 & 1.2601 & 0.106867 \tabularnewline
24 & 0.186065 & 1.2891 & 0.101771 \tabularnewline
25 & 0.188767 & 1.3078 & 0.098583 \tabularnewline
26 & 0.147215 & 1.0199 & 0.156437 \tabularnewline
27 & 0.082795 & 0.5736 & 0.284451 \tabularnewline
28 & -1e-05 & -1e-04 & 0.499972 \tabularnewline
29 & -0.078247 & -0.5421 & 0.295125 \tabularnewline
30 & -0.138259 & -0.9579 & 0.17146 \tabularnewline
31 & -0.180266 & -1.2489 & 0.108875 \tabularnewline
32 & -0.188059 & -1.3029 & 0.099411 \tabularnewline
33 & -0.183326 & -1.2701 & 0.105082 \tabularnewline
34 & -0.15674 & -1.0859 & 0.141468 \tabularnewline
35 & -0.148459 & -1.0286 & 0.154422 \tabularnewline
36 & -0.14694 & -1.018 & 0.156883 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60930&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.882393[/C][C]6.1134[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.692114[/C][C]4.7951[/C][C]8e-06[/C][/ROW]
[ROW][C]3[/C][C]0.441398[/C][C]3.0581[/C][C]0.001818[/C][/ROW]
[ROW][C]4[/C][C]0.28379[/C][C]1.9662[/C][C]0.027539[/C][/ROW]
[ROW][C]5[/C][C]0.180747[/C][C]1.2523[/C][C]0.108273[/C][/ROW]
[ROW][C]6[/C][C]0.131267[/C][C]0.9094[/C][C]0.18383[/C][/ROW]
[ROW][C]7[/C][C]0.06502[/C][C]0.4505[/C][C]0.3272[/C][/ROW]
[ROW][C]8[/C][C]-0.029151[/C][C]-0.202[/C][C]0.420398[/C][/ROW]
[ROW][C]9[/C][C]-0.163522[/C][C]-1.1329[/C][C]0.131439[/C][/ROW]
[ROW][C]10[/C][C]-0.319137[/C][C]-2.211[/C][C]0.015915[/C][/ROW]
[ROW][C]11[/C][C]-0.445069[/C][C]-3.0835[/C][C]0.001693[/C][/ROW]
[ROW][C]12[/C][C]-0.51712[/C][C]-3.5827[/C][C]0.000396[/C][/ROW]
[ROW][C]13[/C][C]-0.485822[/C][C]-3.3659[/C][C]0.000754[/C][/ROW]
[ROW][C]14[/C][C]-0.393309[/C][C]-2.7249[/C][C]0.004474[/C][/ROW]
[ROW][C]15[/C][C]-0.260426[/C][C]-1.8043[/C][C]0.038732[/C][/ROW]
[ROW][C]16[/C][C]-0.14468[/C][C]-1.0024[/C][C]0.160595[/C][/ROW]
[ROW][C]17[/C][C]-0.044025[/C][C]-0.305[/C][C]0.380837[/C][/ROW]
[ROW][C]18[/C][C]0.022238[/C][C]0.1541[/C][C]0.439101[/C][/ROW]
[ROW][C]19[/C][C]0.086035[/C][C]0.5961[/C][C]0.276965[/C][/ROW]
[ROW][C]20[/C][C]0.115787[/C][C]0.8022[/C][C]0.213196[/C][/ROW]
[ROW][C]21[/C][C]0.150534[/C][C]1.0429[/C][C]0.151102[/C][/ROW]
[ROW][C]22[/C][C]0.156228[/C][C]1.0824[/C][C]0.142245[/C][/ROW]
[ROW][C]23[/C][C]0.181876[/C][C]1.2601[/C][C]0.106867[/C][/ROW]
[ROW][C]24[/C][C]0.186065[/C][C]1.2891[/C][C]0.101771[/C][/ROW]
[ROW][C]25[/C][C]0.188767[/C][C]1.3078[/C][C]0.098583[/C][/ROW]
[ROW][C]26[/C][C]0.147215[/C][C]1.0199[/C][C]0.156437[/C][/ROW]
[ROW][C]27[/C][C]0.082795[/C][C]0.5736[/C][C]0.284451[/C][/ROW]
[ROW][C]28[/C][C]-1e-05[/C][C]-1e-04[/C][C]0.499972[/C][/ROW]
[ROW][C]29[/C][C]-0.078247[/C][C]-0.5421[/C][C]0.295125[/C][/ROW]
[ROW][C]30[/C][C]-0.138259[/C][C]-0.9579[/C][C]0.17146[/C][/ROW]
[ROW][C]31[/C][C]-0.180266[/C][C]-1.2489[/C][C]0.108875[/C][/ROW]
[ROW][C]32[/C][C]-0.188059[/C][C]-1.3029[/C][C]0.099411[/C][/ROW]
[ROW][C]33[/C][C]-0.183326[/C][C]-1.2701[/C][C]0.105082[/C][/ROW]
[ROW][C]34[/C][C]-0.15674[/C][C]-1.0859[/C][C]0.141468[/C][/ROW]
[ROW][C]35[/C][C]-0.148459[/C][C]-1.0286[/C][C]0.154422[/C][/ROW]
[ROW][C]36[/C][C]-0.14694[/C][C]-1.018[/C][C]0.156883[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60930&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60930&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.8823936.11340
20.6921144.79518e-06
30.4413983.05810.001818
40.283791.96620.027539
50.1807471.25230.108273
60.1312670.90940.18383
70.065020.45050.3272
8-0.029151-0.2020.420398
9-0.163522-1.13290.131439
10-0.319137-2.2110.015915
11-0.445069-3.08350.001693
12-0.51712-3.58270.000396
13-0.485822-3.36590.000754
14-0.393309-2.72490.004474
15-0.260426-1.80430.038732
16-0.14468-1.00240.160595
17-0.044025-0.3050.380837
180.0222380.15410.439101
190.0860350.59610.276965
200.1157870.80220.213196
210.1505341.04290.151102
220.1562281.08240.142245
230.1818761.26010.106867
240.1860651.28910.101771
250.1887671.30780.098583
260.1472151.01990.156437
270.0827950.57360.284451
28-1e-05-1e-040.499972
29-0.078247-0.54210.295125
30-0.138259-0.95790.17146
31-0.180266-1.24890.108875
32-0.188059-1.30290.099411
33-0.183326-1.27010.105082
34-0.15674-1.08590.141468
35-0.148459-1.02860.154422
36-0.14694-1.0180.156883







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8823936.11340
2-0.390739-2.70710.004686
3-0.336725-2.33290.011946
40.4915653.40570.000671
5-0.080464-0.55750.289898
6-0.323928-2.24420.014732
7-0.011186-0.07750.469274
8-0.069624-0.48240.315868
9-0.255056-1.76710.041786
10-0.249474-1.72840.045172
110.1522031.05450.148469
120.0196740.13630.446074
130.091660.6350.264209
140.0649370.44990.327405
150.0023720.01640.493478
160.1596081.10580.137162
170.1554881.07730.143376
18-0.15586-1.07980.142807
190.0130870.09070.464066
20-0.163454-1.13240.131536
21-0.046684-0.32340.373884
22-0.156343-1.08320.142071
230.0763630.52910.299601
24-0.025127-0.17410.431266
25-0.053989-0.3740.355009
260.0470880.32620.372833
270.0047820.03310.486855
280.1151880.7980.214386
29-0.006654-0.04610.48171
30-0.083487-0.57840.282844
310.0583660.40440.343867
320.015190.10520.458312
33-0.1226-0.84940.199939
34-0.072141-0.49980.309747
35-0.02844-0.1970.422316
36-0.124969-0.86580.19545

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.882393 & 6.1134 & 0 \tabularnewline
2 & -0.390739 & -2.7071 & 0.004686 \tabularnewline
3 & -0.336725 & -2.3329 & 0.011946 \tabularnewline
4 & 0.491565 & 3.4057 & 0.000671 \tabularnewline
5 & -0.080464 & -0.5575 & 0.289898 \tabularnewline
6 & -0.323928 & -2.2442 & 0.014732 \tabularnewline
7 & -0.011186 & -0.0775 & 0.469274 \tabularnewline
8 & -0.069624 & -0.4824 & 0.315868 \tabularnewline
9 & -0.255056 & -1.7671 & 0.041786 \tabularnewline
10 & -0.249474 & -1.7284 & 0.045172 \tabularnewline
11 & 0.152203 & 1.0545 & 0.148469 \tabularnewline
12 & 0.019674 & 0.1363 & 0.446074 \tabularnewline
13 & 0.09166 & 0.635 & 0.264209 \tabularnewline
14 & 0.064937 & 0.4499 & 0.327405 \tabularnewline
15 & 0.002372 & 0.0164 & 0.493478 \tabularnewline
16 & 0.159608 & 1.1058 & 0.137162 \tabularnewline
17 & 0.155488 & 1.0773 & 0.143376 \tabularnewline
18 & -0.15586 & -1.0798 & 0.142807 \tabularnewline
19 & 0.013087 & 0.0907 & 0.464066 \tabularnewline
20 & -0.163454 & -1.1324 & 0.131536 \tabularnewline
21 & -0.046684 & -0.3234 & 0.373884 \tabularnewline
22 & -0.156343 & -1.0832 & 0.142071 \tabularnewline
23 & 0.076363 & 0.5291 & 0.299601 \tabularnewline
24 & -0.025127 & -0.1741 & 0.431266 \tabularnewline
25 & -0.053989 & -0.374 & 0.355009 \tabularnewline
26 & 0.047088 & 0.3262 & 0.372833 \tabularnewline
27 & 0.004782 & 0.0331 & 0.486855 \tabularnewline
28 & 0.115188 & 0.798 & 0.214386 \tabularnewline
29 & -0.006654 & -0.0461 & 0.48171 \tabularnewline
30 & -0.083487 & -0.5784 & 0.282844 \tabularnewline
31 & 0.058366 & 0.4044 & 0.343867 \tabularnewline
32 & 0.01519 & 0.1052 & 0.458312 \tabularnewline
33 & -0.1226 & -0.8494 & 0.199939 \tabularnewline
34 & -0.072141 & -0.4998 & 0.309747 \tabularnewline
35 & -0.02844 & -0.197 & 0.422316 \tabularnewline
36 & -0.124969 & -0.8658 & 0.19545 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60930&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.882393[/C][C]6.1134[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.390739[/C][C]-2.7071[/C][C]0.004686[/C][/ROW]
[ROW][C]3[/C][C]-0.336725[/C][C]-2.3329[/C][C]0.011946[/C][/ROW]
[ROW][C]4[/C][C]0.491565[/C][C]3.4057[/C][C]0.000671[/C][/ROW]
[ROW][C]5[/C][C]-0.080464[/C][C]-0.5575[/C][C]0.289898[/C][/ROW]
[ROW][C]6[/C][C]-0.323928[/C][C]-2.2442[/C][C]0.014732[/C][/ROW]
[ROW][C]7[/C][C]-0.011186[/C][C]-0.0775[/C][C]0.469274[/C][/ROW]
[ROW][C]8[/C][C]-0.069624[/C][C]-0.4824[/C][C]0.315868[/C][/ROW]
[ROW][C]9[/C][C]-0.255056[/C][C]-1.7671[/C][C]0.041786[/C][/ROW]
[ROW][C]10[/C][C]-0.249474[/C][C]-1.7284[/C][C]0.045172[/C][/ROW]
[ROW][C]11[/C][C]0.152203[/C][C]1.0545[/C][C]0.148469[/C][/ROW]
[ROW][C]12[/C][C]0.019674[/C][C]0.1363[/C][C]0.446074[/C][/ROW]
[ROW][C]13[/C][C]0.09166[/C][C]0.635[/C][C]0.264209[/C][/ROW]
[ROW][C]14[/C][C]0.064937[/C][C]0.4499[/C][C]0.327405[/C][/ROW]
[ROW][C]15[/C][C]0.002372[/C][C]0.0164[/C][C]0.493478[/C][/ROW]
[ROW][C]16[/C][C]0.159608[/C][C]1.1058[/C][C]0.137162[/C][/ROW]
[ROW][C]17[/C][C]0.155488[/C][C]1.0773[/C][C]0.143376[/C][/ROW]
[ROW][C]18[/C][C]-0.15586[/C][C]-1.0798[/C][C]0.142807[/C][/ROW]
[ROW][C]19[/C][C]0.013087[/C][C]0.0907[/C][C]0.464066[/C][/ROW]
[ROW][C]20[/C][C]-0.163454[/C][C]-1.1324[/C][C]0.131536[/C][/ROW]
[ROW][C]21[/C][C]-0.046684[/C][C]-0.3234[/C][C]0.373884[/C][/ROW]
[ROW][C]22[/C][C]-0.156343[/C][C]-1.0832[/C][C]0.142071[/C][/ROW]
[ROW][C]23[/C][C]0.076363[/C][C]0.5291[/C][C]0.299601[/C][/ROW]
[ROW][C]24[/C][C]-0.025127[/C][C]-0.1741[/C][C]0.431266[/C][/ROW]
[ROW][C]25[/C][C]-0.053989[/C][C]-0.374[/C][C]0.355009[/C][/ROW]
[ROW][C]26[/C][C]0.047088[/C][C]0.3262[/C][C]0.372833[/C][/ROW]
[ROW][C]27[/C][C]0.004782[/C][C]0.0331[/C][C]0.486855[/C][/ROW]
[ROW][C]28[/C][C]0.115188[/C][C]0.798[/C][C]0.214386[/C][/ROW]
[ROW][C]29[/C][C]-0.006654[/C][C]-0.0461[/C][C]0.48171[/C][/ROW]
[ROW][C]30[/C][C]-0.083487[/C][C]-0.5784[/C][C]0.282844[/C][/ROW]
[ROW][C]31[/C][C]0.058366[/C][C]0.4044[/C][C]0.343867[/C][/ROW]
[ROW][C]32[/C][C]0.01519[/C][C]0.1052[/C][C]0.458312[/C][/ROW]
[ROW][C]33[/C][C]-0.1226[/C][C]-0.8494[/C][C]0.199939[/C][/ROW]
[ROW][C]34[/C][C]-0.072141[/C][C]-0.4998[/C][C]0.309747[/C][/ROW]
[ROW][C]35[/C][C]-0.02844[/C][C]-0.197[/C][C]0.422316[/C][/ROW]
[ROW][C]36[/C][C]-0.124969[/C][C]-0.8658[/C][C]0.19545[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60930&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60930&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.8823936.11340
2-0.390739-2.70710.004686
3-0.336725-2.33290.011946
40.4915653.40570.000671
5-0.080464-0.55750.289898
6-0.323928-2.24420.014732
7-0.011186-0.07750.469274
8-0.069624-0.48240.315868
9-0.255056-1.76710.041786
10-0.249474-1.72840.045172
110.1522031.05450.148469
120.0196740.13630.446074
130.091660.6350.264209
140.0649370.44990.327405
150.0023720.01640.493478
160.1596081.10580.137162
170.1554881.07730.143376
18-0.15586-1.07980.142807
190.0130870.09070.464066
20-0.163454-1.13240.131536
21-0.046684-0.32340.373884
22-0.156343-1.08320.142071
230.0763630.52910.299601
24-0.025127-0.17410.431266
25-0.053989-0.3740.355009
260.0470880.32620.372833
270.0047820.03310.486855
280.1151880.7980.214386
29-0.006654-0.04610.48171
30-0.083487-0.57840.282844
310.0583660.40440.343867
320.015190.10520.458312
33-0.1226-0.84940.199939
34-0.072141-0.49980.309747
35-0.02844-0.1970.422316
36-0.124969-0.86580.19545



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