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, 16 Dec 2009 15:44:49 -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/16/t126100352305qfcd1mx22fnci.htm/, Retrieved Tue, 30 Apr 2024 19:55:21 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68621, Retrieved Tue, 30 Apr 2024 19:55:21 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact153
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]
-   P   [(Partial) Autocorrelation Function] [Identifying integ...] [2009-11-23 18:56:25] [d46757a0a8c9b00540ab7e7e0c34bfc4]
-    D    [(Partial) Autocorrelation Function] [ACF met: d=1, D=1...] [2009-12-03 22:54:01] [34d27ebe78dc2d31581e8710befe8733]
-    D        [(Partial) Autocorrelation Function] [ACF met: d=1, D=1...] [2009-12-16 22:44:49] [371dc2189c569d90e2c1567f632c3ec0] [Current]
-   P           [(Partial) Autocorrelation Function] [ACF met: d=1, D=1...] [2009-12-19 11:32:39] [34d27ebe78dc2d31581e8710befe8733]
Feedback Forum

Post a new message
Dataseries X:
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
406
398
397
385
390
413
413
401
397
397
409
419
424
428
430
424
433
456




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 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 & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68621&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]3 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=68621&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68621&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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.227221.57420.061002
20.2466551.70890.046967
30.3763082.60710.006065
40.1937961.34270.092849
50.148511.02890.154341
60.1599151.10790.136708
70.0100060.06930.47251
80.2216551.53570.065593
9-0.053923-0.37360.355176
10-0.078163-0.54150.295324
110.2651161.83680.03622
120.0227490.15760.437712
13-0.033485-0.2320.408765
140.1872871.29760.10032
150.0923660.63990.26263
160.0541360.37510.354631
170.0662710.45910.324103
18-0.045803-0.31730.376184
190.1254560.86920.194535
20-0.061557-0.42650.335832
21-0.190298-1.31840.096809
22-0.090328-0.62580.267201
23-0.072354-0.50130.309232
24-0.279562-1.93690.02933
25-0.132512-0.91810.181586
26-0.212348-1.47120.073883
27-0.200456-1.38880.085652
28-0.178345-1.23560.111308
29-0.12059-0.83550.203796
30-0.091423-0.63340.26474
31-0.031235-0.21640.414796
32-0.160219-1.110.136258
33-0.015967-0.11060.456188
34-0.015024-0.10410.458765
35-0.021989-0.15230.439777
36-0.025669-0.17780.429798

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.22722 & 1.5742 & 0.061002 \tabularnewline
2 & 0.246655 & 1.7089 & 0.046967 \tabularnewline
3 & 0.376308 & 2.6071 & 0.006065 \tabularnewline
4 & 0.193796 & 1.3427 & 0.092849 \tabularnewline
5 & 0.14851 & 1.0289 & 0.154341 \tabularnewline
6 & 0.159915 & 1.1079 & 0.136708 \tabularnewline
7 & 0.010006 & 0.0693 & 0.47251 \tabularnewline
8 & 0.221655 & 1.5357 & 0.065593 \tabularnewline
9 & -0.053923 & -0.3736 & 0.355176 \tabularnewline
10 & -0.078163 & -0.5415 & 0.295324 \tabularnewline
11 & 0.265116 & 1.8368 & 0.03622 \tabularnewline
12 & 0.022749 & 0.1576 & 0.437712 \tabularnewline
13 & -0.033485 & -0.232 & 0.408765 \tabularnewline
14 & 0.187287 & 1.2976 & 0.10032 \tabularnewline
15 & 0.092366 & 0.6399 & 0.26263 \tabularnewline
16 & 0.054136 & 0.3751 & 0.354631 \tabularnewline
17 & 0.066271 & 0.4591 & 0.324103 \tabularnewline
18 & -0.045803 & -0.3173 & 0.376184 \tabularnewline
19 & 0.125456 & 0.8692 & 0.194535 \tabularnewline
20 & -0.061557 & -0.4265 & 0.335832 \tabularnewline
21 & -0.190298 & -1.3184 & 0.096809 \tabularnewline
22 & -0.090328 & -0.6258 & 0.267201 \tabularnewline
23 & -0.072354 & -0.5013 & 0.309232 \tabularnewline
24 & -0.279562 & -1.9369 & 0.02933 \tabularnewline
25 & -0.132512 & -0.9181 & 0.181586 \tabularnewline
26 & -0.212348 & -1.4712 & 0.073883 \tabularnewline
27 & -0.200456 & -1.3888 & 0.085652 \tabularnewline
28 & -0.178345 & -1.2356 & 0.111308 \tabularnewline
29 & -0.12059 & -0.8355 & 0.203796 \tabularnewline
30 & -0.091423 & -0.6334 & 0.26474 \tabularnewline
31 & -0.031235 & -0.2164 & 0.414796 \tabularnewline
32 & -0.160219 & -1.11 & 0.136258 \tabularnewline
33 & -0.015967 & -0.1106 & 0.456188 \tabularnewline
34 & -0.015024 & -0.1041 & 0.458765 \tabularnewline
35 & -0.021989 & -0.1523 & 0.439777 \tabularnewline
36 & -0.025669 & -0.1778 & 0.429798 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68621&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.22722[/C][C]1.5742[/C][C]0.061002[/C][/ROW]
[ROW][C]2[/C][C]0.246655[/C][C]1.7089[/C][C]0.046967[/C][/ROW]
[ROW][C]3[/C][C]0.376308[/C][C]2.6071[/C][C]0.006065[/C][/ROW]
[ROW][C]4[/C][C]0.193796[/C][C]1.3427[/C][C]0.092849[/C][/ROW]
[ROW][C]5[/C][C]0.14851[/C][C]1.0289[/C][C]0.154341[/C][/ROW]
[ROW][C]6[/C][C]0.159915[/C][C]1.1079[/C][C]0.136708[/C][/ROW]
[ROW][C]7[/C][C]0.010006[/C][C]0.0693[/C][C]0.47251[/C][/ROW]
[ROW][C]8[/C][C]0.221655[/C][C]1.5357[/C][C]0.065593[/C][/ROW]
[ROW][C]9[/C][C]-0.053923[/C][C]-0.3736[/C][C]0.355176[/C][/ROW]
[ROW][C]10[/C][C]-0.078163[/C][C]-0.5415[/C][C]0.295324[/C][/ROW]
[ROW][C]11[/C][C]0.265116[/C][C]1.8368[/C][C]0.03622[/C][/ROW]
[ROW][C]12[/C][C]0.022749[/C][C]0.1576[/C][C]0.437712[/C][/ROW]
[ROW][C]13[/C][C]-0.033485[/C][C]-0.232[/C][C]0.408765[/C][/ROW]
[ROW][C]14[/C][C]0.187287[/C][C]1.2976[/C][C]0.10032[/C][/ROW]
[ROW][C]15[/C][C]0.092366[/C][C]0.6399[/C][C]0.26263[/C][/ROW]
[ROW][C]16[/C][C]0.054136[/C][C]0.3751[/C][C]0.354631[/C][/ROW]
[ROW][C]17[/C][C]0.066271[/C][C]0.4591[/C][C]0.324103[/C][/ROW]
[ROW][C]18[/C][C]-0.045803[/C][C]-0.3173[/C][C]0.376184[/C][/ROW]
[ROW][C]19[/C][C]0.125456[/C][C]0.8692[/C][C]0.194535[/C][/ROW]
[ROW][C]20[/C][C]-0.061557[/C][C]-0.4265[/C][C]0.335832[/C][/ROW]
[ROW][C]21[/C][C]-0.190298[/C][C]-1.3184[/C][C]0.096809[/C][/ROW]
[ROW][C]22[/C][C]-0.090328[/C][C]-0.6258[/C][C]0.267201[/C][/ROW]
[ROW][C]23[/C][C]-0.072354[/C][C]-0.5013[/C][C]0.309232[/C][/ROW]
[ROW][C]24[/C][C]-0.279562[/C][C]-1.9369[/C][C]0.02933[/C][/ROW]
[ROW][C]25[/C][C]-0.132512[/C][C]-0.9181[/C][C]0.181586[/C][/ROW]
[ROW][C]26[/C][C]-0.212348[/C][C]-1.4712[/C][C]0.073883[/C][/ROW]
[ROW][C]27[/C][C]-0.200456[/C][C]-1.3888[/C][C]0.085652[/C][/ROW]
[ROW][C]28[/C][C]-0.178345[/C][C]-1.2356[/C][C]0.111308[/C][/ROW]
[ROW][C]29[/C][C]-0.12059[/C][C]-0.8355[/C][C]0.203796[/C][/ROW]
[ROW][C]30[/C][C]-0.091423[/C][C]-0.6334[/C][C]0.26474[/C][/ROW]
[ROW][C]31[/C][C]-0.031235[/C][C]-0.2164[/C][C]0.414796[/C][/ROW]
[ROW][C]32[/C][C]-0.160219[/C][C]-1.11[/C][C]0.136258[/C][/ROW]
[ROW][C]33[/C][C]-0.015967[/C][C]-0.1106[/C][C]0.456188[/C][/ROW]
[ROW][C]34[/C][C]-0.015024[/C][C]-0.1041[/C][C]0.458765[/C][/ROW]
[ROW][C]35[/C][C]-0.021989[/C][C]-0.1523[/C][C]0.439777[/C][/ROW]
[ROW][C]36[/C][C]-0.025669[/C][C]-0.1778[/C][C]0.429798[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68621&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68621&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.227221.57420.061002
20.2466551.70890.046967
30.3763082.60710.006065
40.1937961.34270.092849
50.148511.02890.154341
60.1599151.10790.136708
70.0100060.06930.47251
80.2216551.53570.065593
9-0.053923-0.37360.355176
10-0.078163-0.54150.295324
110.2651161.83680.03622
120.0227490.15760.437712
13-0.033485-0.2320.408765
140.1872871.29760.10032
150.0923660.63990.26263
160.0541360.37510.354631
170.0662710.45910.324103
18-0.045803-0.31730.376184
190.1254560.86920.194535
20-0.061557-0.42650.335832
21-0.190298-1.31840.096809
22-0.090328-0.62580.267201
23-0.072354-0.50130.309232
24-0.279562-1.93690.02933
25-0.132512-0.91810.181586
26-0.212348-1.47120.073883
27-0.200456-1.38880.085652
28-0.178345-1.23560.111308
29-0.12059-0.83550.203796
30-0.091423-0.63340.26474
31-0.031235-0.21640.414796
32-0.160219-1.110.136258
33-0.015967-0.11060.456188
34-0.015024-0.10410.458765
35-0.021989-0.15230.439777
36-0.025669-0.17780.429798







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.227221.57420.061002
20.2056431.42470.080352
30.3138532.17440.017316
40.0514140.35620.361622
5-0.014259-0.09880.460859
6-0.011845-0.08210.467467
7-0.126377-0.87560.192813
80.1968641.36390.089478
9-0.171326-1.1870.120538
10-0.103718-0.71860.237942
110.2847351.97270.027152
120.0141310.09790.461208
13-0.050961-0.35310.362793
140.0747060.51760.303566
150.0756930.52440.301202
16-0.057824-0.40060.345239
17-0.042201-0.29240.385629
18-0.087685-0.60750.273192
190.0094650.06560.473993
20-0.057601-0.39910.345804
21-0.121133-0.83920.20275
22-0.2118-1.46740.074395
230.067820.46990.320287
24-0.070418-0.48790.313933
25-0.065216-0.45180.326713
26-0.115095-0.79740.214573
27-0.059753-0.4140.340367
280.0035720.02470.49018
290.1244320.86210.196462
30-0.019541-0.13540.446438
31-0.011133-0.07710.469418
320.0058990.04090.483786
330.0739760.51250.305318
34-0.049541-0.34320.366462
350.1309130.9070.184472
360.0359690.24920.402133

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.22722 & 1.5742 & 0.061002 \tabularnewline
2 & 0.205643 & 1.4247 & 0.080352 \tabularnewline
3 & 0.313853 & 2.1744 & 0.017316 \tabularnewline
4 & 0.051414 & 0.3562 & 0.361622 \tabularnewline
5 & -0.014259 & -0.0988 & 0.460859 \tabularnewline
6 & -0.011845 & -0.0821 & 0.467467 \tabularnewline
7 & -0.126377 & -0.8756 & 0.192813 \tabularnewline
8 & 0.196864 & 1.3639 & 0.089478 \tabularnewline
9 & -0.171326 & -1.187 & 0.120538 \tabularnewline
10 & -0.103718 & -0.7186 & 0.237942 \tabularnewline
11 & 0.284735 & 1.9727 & 0.027152 \tabularnewline
12 & 0.014131 & 0.0979 & 0.461208 \tabularnewline
13 & -0.050961 & -0.3531 & 0.362793 \tabularnewline
14 & 0.074706 & 0.5176 & 0.303566 \tabularnewline
15 & 0.075693 & 0.5244 & 0.301202 \tabularnewline
16 & -0.057824 & -0.4006 & 0.345239 \tabularnewline
17 & -0.042201 & -0.2924 & 0.385629 \tabularnewline
18 & -0.087685 & -0.6075 & 0.273192 \tabularnewline
19 & 0.009465 & 0.0656 & 0.473993 \tabularnewline
20 & -0.057601 & -0.3991 & 0.345804 \tabularnewline
21 & -0.121133 & -0.8392 & 0.20275 \tabularnewline
22 & -0.2118 & -1.4674 & 0.074395 \tabularnewline
23 & 0.06782 & 0.4699 & 0.320287 \tabularnewline
24 & -0.070418 & -0.4879 & 0.313933 \tabularnewline
25 & -0.065216 & -0.4518 & 0.326713 \tabularnewline
26 & -0.115095 & -0.7974 & 0.214573 \tabularnewline
27 & -0.059753 & -0.414 & 0.340367 \tabularnewline
28 & 0.003572 & 0.0247 & 0.49018 \tabularnewline
29 & 0.124432 & 0.8621 & 0.196462 \tabularnewline
30 & -0.019541 & -0.1354 & 0.446438 \tabularnewline
31 & -0.011133 & -0.0771 & 0.469418 \tabularnewline
32 & 0.005899 & 0.0409 & 0.483786 \tabularnewline
33 & 0.073976 & 0.5125 & 0.305318 \tabularnewline
34 & -0.049541 & -0.3432 & 0.366462 \tabularnewline
35 & 0.130913 & 0.907 & 0.184472 \tabularnewline
36 & 0.035969 & 0.2492 & 0.402133 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68621&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.22722[/C][C]1.5742[/C][C]0.061002[/C][/ROW]
[ROW][C]2[/C][C]0.205643[/C][C]1.4247[/C][C]0.080352[/C][/ROW]
[ROW][C]3[/C][C]0.313853[/C][C]2.1744[/C][C]0.017316[/C][/ROW]
[ROW][C]4[/C][C]0.051414[/C][C]0.3562[/C][C]0.361622[/C][/ROW]
[ROW][C]5[/C][C]-0.014259[/C][C]-0.0988[/C][C]0.460859[/C][/ROW]
[ROW][C]6[/C][C]-0.011845[/C][C]-0.0821[/C][C]0.467467[/C][/ROW]
[ROW][C]7[/C][C]-0.126377[/C][C]-0.8756[/C][C]0.192813[/C][/ROW]
[ROW][C]8[/C][C]0.196864[/C][C]1.3639[/C][C]0.089478[/C][/ROW]
[ROW][C]9[/C][C]-0.171326[/C][C]-1.187[/C][C]0.120538[/C][/ROW]
[ROW][C]10[/C][C]-0.103718[/C][C]-0.7186[/C][C]0.237942[/C][/ROW]
[ROW][C]11[/C][C]0.284735[/C][C]1.9727[/C][C]0.027152[/C][/ROW]
[ROW][C]12[/C][C]0.014131[/C][C]0.0979[/C][C]0.461208[/C][/ROW]
[ROW][C]13[/C][C]-0.050961[/C][C]-0.3531[/C][C]0.362793[/C][/ROW]
[ROW][C]14[/C][C]0.074706[/C][C]0.5176[/C][C]0.303566[/C][/ROW]
[ROW][C]15[/C][C]0.075693[/C][C]0.5244[/C][C]0.301202[/C][/ROW]
[ROW][C]16[/C][C]-0.057824[/C][C]-0.4006[/C][C]0.345239[/C][/ROW]
[ROW][C]17[/C][C]-0.042201[/C][C]-0.2924[/C][C]0.385629[/C][/ROW]
[ROW][C]18[/C][C]-0.087685[/C][C]-0.6075[/C][C]0.273192[/C][/ROW]
[ROW][C]19[/C][C]0.009465[/C][C]0.0656[/C][C]0.473993[/C][/ROW]
[ROW][C]20[/C][C]-0.057601[/C][C]-0.3991[/C][C]0.345804[/C][/ROW]
[ROW][C]21[/C][C]-0.121133[/C][C]-0.8392[/C][C]0.20275[/C][/ROW]
[ROW][C]22[/C][C]-0.2118[/C][C]-1.4674[/C][C]0.074395[/C][/ROW]
[ROW][C]23[/C][C]0.06782[/C][C]0.4699[/C][C]0.320287[/C][/ROW]
[ROW][C]24[/C][C]-0.070418[/C][C]-0.4879[/C][C]0.313933[/C][/ROW]
[ROW][C]25[/C][C]-0.065216[/C][C]-0.4518[/C][C]0.326713[/C][/ROW]
[ROW][C]26[/C][C]-0.115095[/C][C]-0.7974[/C][C]0.214573[/C][/ROW]
[ROW][C]27[/C][C]-0.059753[/C][C]-0.414[/C][C]0.340367[/C][/ROW]
[ROW][C]28[/C][C]0.003572[/C][C]0.0247[/C][C]0.49018[/C][/ROW]
[ROW][C]29[/C][C]0.124432[/C][C]0.8621[/C][C]0.196462[/C][/ROW]
[ROW][C]30[/C][C]-0.019541[/C][C]-0.1354[/C][C]0.446438[/C][/ROW]
[ROW][C]31[/C][C]-0.011133[/C][C]-0.0771[/C][C]0.469418[/C][/ROW]
[ROW][C]32[/C][C]0.005899[/C][C]0.0409[/C][C]0.483786[/C][/ROW]
[ROW][C]33[/C][C]0.073976[/C][C]0.5125[/C][C]0.305318[/C][/ROW]
[ROW][C]34[/C][C]-0.049541[/C][C]-0.3432[/C][C]0.366462[/C][/ROW]
[ROW][C]35[/C][C]0.130913[/C][C]0.907[/C][C]0.184472[/C][/ROW]
[ROW][C]36[/C][C]0.035969[/C][C]0.2492[/C][C]0.402133[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68621&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68621&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.227221.57420.061002
20.2056431.42470.080352
30.3138532.17440.017316
40.0514140.35620.361622
5-0.014259-0.09880.460859
6-0.011845-0.08210.467467
7-0.126377-0.87560.192813
80.1968641.36390.089478
9-0.171326-1.1870.120538
10-0.103718-0.71860.237942
110.2847351.97270.027152
120.0141310.09790.461208
13-0.050961-0.35310.362793
140.0747060.51760.303566
150.0756930.52440.301202
16-0.057824-0.40060.345239
17-0.042201-0.29240.385629
18-0.087685-0.60750.273192
190.0094650.06560.473993
20-0.057601-0.39910.345804
21-0.121133-0.83920.20275
22-0.2118-1.46740.074395
230.067820.46990.320287
24-0.070418-0.48790.313933
25-0.065216-0.45180.326713
26-0.115095-0.79740.214573
27-0.059753-0.4140.340367
280.0035720.02470.49018
290.1244320.86210.196462
30-0.019541-0.13540.446438
31-0.011133-0.07710.469418
320.0058990.04090.483786
330.0739760.51250.305318
34-0.049541-0.34320.366462
350.1309130.9070.184472
360.0359690.24920.402133



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