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, 18 Dec 2009 03:21:26 -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/18/t1261132775rsbtfhkap04b0yj.htm/, Retrieved Sat, 27 Apr 2024 08:50:58 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69215, Retrieved Sat, 27 Apr 2024 08:50:58 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordslambda=1 d=0 D=0
Estimated Impact110
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [] [2009-11-26 10:54:06] [f57b281e621ed7dff28b90886f5aa97c]
-    D    [(Partial) Autocorrelation Function] [ACF] [2009-12-18 10:21:26] [98a394f1ba36b7d222077a0ff8e761bd] [Current]
Feedback Forum

Post a new message
Dataseries X:
18004
17537
20366
22782
19169
13807
29743
25591
29096
26482
22405
27044
17970
18730
19684
19785
18479
10698
31956
29506
34506
27165
26736
23691
18157
17328
18205
20995
17382
9367
31124
26551
30651
25859
25100
25778
20418
18688
20424
24776
19814
12738
31566
30111
30019
31934
25826
26835
20205
17789
20520
22518
15572
11509
25447
24090
27786
26195
20516
22759
19028
16971
20036
22485
18730




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69215&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.3298832.65960.004921
20.1427271.15070.127036
3-0.021626-0.17440.431066
4-0.167601-1.35120.090652
5-0.261042-2.10460.019599
6-0.522299-4.21094e-05
7-0.296137-2.38750.009939
8-0.176362-1.42190.079922
9-0.064169-0.51730.303335
100.045930.37030.356183
110.2458261.98190.02586
120.765196.16920
130.2433771.96220.027014
140.0928510.74860.228402
15-0.042744-0.34460.365748
16-0.155181-1.25110.10769
17-0.235091-1.89540.031246
18-0.450121-3.6290.00028
19-0.264028-2.12870.018538
20-0.153709-1.23920.109856
21-0.079618-0.64190.261597
22-0.000693-0.00560.497778
230.1801951.45280.075548
240.5596834.51231.4e-05
250.2165851.74620.042754
260.0953940.76910.222313
270.0182550.14720.441724
28-0.086419-0.69670.244226
29-0.130017-1.04820.149207
30-0.303698-2.44850.008526
31-0.168521-1.35870.089475
32-0.103207-0.83210.204205
33-0.059457-0.47940.316647
34-0.010519-0.08480.466337
350.1124420.90650.184001
360.345432.78490.003503

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.329883 & 2.6596 & 0.004921 \tabularnewline
2 & 0.142727 & 1.1507 & 0.127036 \tabularnewline
3 & -0.021626 & -0.1744 & 0.431066 \tabularnewline
4 & -0.167601 & -1.3512 & 0.090652 \tabularnewline
5 & -0.261042 & -2.1046 & 0.019599 \tabularnewline
6 & -0.522299 & -4.2109 & 4e-05 \tabularnewline
7 & -0.296137 & -2.3875 & 0.009939 \tabularnewline
8 & -0.176362 & -1.4219 & 0.079922 \tabularnewline
9 & -0.064169 & -0.5173 & 0.303335 \tabularnewline
10 & 0.04593 & 0.3703 & 0.356183 \tabularnewline
11 & 0.245826 & 1.9819 & 0.02586 \tabularnewline
12 & 0.76519 & 6.1692 & 0 \tabularnewline
13 & 0.243377 & 1.9622 & 0.027014 \tabularnewline
14 & 0.092851 & 0.7486 & 0.228402 \tabularnewline
15 & -0.042744 & -0.3446 & 0.365748 \tabularnewline
16 & -0.155181 & -1.2511 & 0.10769 \tabularnewline
17 & -0.235091 & -1.8954 & 0.031246 \tabularnewline
18 & -0.450121 & -3.629 & 0.00028 \tabularnewline
19 & -0.264028 & -2.1287 & 0.018538 \tabularnewline
20 & -0.153709 & -1.2392 & 0.109856 \tabularnewline
21 & -0.079618 & -0.6419 & 0.261597 \tabularnewline
22 & -0.000693 & -0.0056 & 0.497778 \tabularnewline
23 & 0.180195 & 1.4528 & 0.075548 \tabularnewline
24 & 0.559683 & 4.5123 & 1.4e-05 \tabularnewline
25 & 0.216585 & 1.7462 & 0.042754 \tabularnewline
26 & 0.095394 & 0.7691 & 0.222313 \tabularnewline
27 & 0.018255 & 0.1472 & 0.441724 \tabularnewline
28 & -0.086419 & -0.6967 & 0.244226 \tabularnewline
29 & -0.130017 & -1.0482 & 0.149207 \tabularnewline
30 & -0.303698 & -2.4485 & 0.008526 \tabularnewline
31 & -0.168521 & -1.3587 & 0.089475 \tabularnewline
32 & -0.103207 & -0.8321 & 0.204205 \tabularnewline
33 & -0.059457 & -0.4794 & 0.316647 \tabularnewline
34 & -0.010519 & -0.0848 & 0.466337 \tabularnewline
35 & 0.112442 & 0.9065 & 0.184001 \tabularnewline
36 & 0.34543 & 2.7849 & 0.003503 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69215&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.329883[/C][C]2.6596[/C][C]0.004921[/C][/ROW]
[ROW][C]2[/C][C]0.142727[/C][C]1.1507[/C][C]0.127036[/C][/ROW]
[ROW][C]3[/C][C]-0.021626[/C][C]-0.1744[/C][C]0.431066[/C][/ROW]
[ROW][C]4[/C][C]-0.167601[/C][C]-1.3512[/C][C]0.090652[/C][/ROW]
[ROW][C]5[/C][C]-0.261042[/C][C]-2.1046[/C][C]0.019599[/C][/ROW]
[ROW][C]6[/C][C]-0.522299[/C][C]-4.2109[/C][C]4e-05[/C][/ROW]
[ROW][C]7[/C][C]-0.296137[/C][C]-2.3875[/C][C]0.009939[/C][/ROW]
[ROW][C]8[/C][C]-0.176362[/C][C]-1.4219[/C][C]0.079922[/C][/ROW]
[ROW][C]9[/C][C]-0.064169[/C][C]-0.5173[/C][C]0.303335[/C][/ROW]
[ROW][C]10[/C][C]0.04593[/C][C]0.3703[/C][C]0.356183[/C][/ROW]
[ROW][C]11[/C][C]0.245826[/C][C]1.9819[/C][C]0.02586[/C][/ROW]
[ROW][C]12[/C][C]0.76519[/C][C]6.1692[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.243377[/C][C]1.9622[/C][C]0.027014[/C][/ROW]
[ROW][C]14[/C][C]0.092851[/C][C]0.7486[/C][C]0.228402[/C][/ROW]
[ROW][C]15[/C][C]-0.042744[/C][C]-0.3446[/C][C]0.365748[/C][/ROW]
[ROW][C]16[/C][C]-0.155181[/C][C]-1.2511[/C][C]0.10769[/C][/ROW]
[ROW][C]17[/C][C]-0.235091[/C][C]-1.8954[/C][C]0.031246[/C][/ROW]
[ROW][C]18[/C][C]-0.450121[/C][C]-3.629[/C][C]0.00028[/C][/ROW]
[ROW][C]19[/C][C]-0.264028[/C][C]-2.1287[/C][C]0.018538[/C][/ROW]
[ROW][C]20[/C][C]-0.153709[/C][C]-1.2392[/C][C]0.109856[/C][/ROW]
[ROW][C]21[/C][C]-0.079618[/C][C]-0.6419[/C][C]0.261597[/C][/ROW]
[ROW][C]22[/C][C]-0.000693[/C][C]-0.0056[/C][C]0.497778[/C][/ROW]
[ROW][C]23[/C][C]0.180195[/C][C]1.4528[/C][C]0.075548[/C][/ROW]
[ROW][C]24[/C][C]0.559683[/C][C]4.5123[/C][C]1.4e-05[/C][/ROW]
[ROW][C]25[/C][C]0.216585[/C][C]1.7462[/C][C]0.042754[/C][/ROW]
[ROW][C]26[/C][C]0.095394[/C][C]0.7691[/C][C]0.222313[/C][/ROW]
[ROW][C]27[/C][C]0.018255[/C][C]0.1472[/C][C]0.441724[/C][/ROW]
[ROW][C]28[/C][C]-0.086419[/C][C]-0.6967[/C][C]0.244226[/C][/ROW]
[ROW][C]29[/C][C]-0.130017[/C][C]-1.0482[/C][C]0.149207[/C][/ROW]
[ROW][C]30[/C][C]-0.303698[/C][C]-2.4485[/C][C]0.008526[/C][/ROW]
[ROW][C]31[/C][C]-0.168521[/C][C]-1.3587[/C][C]0.089475[/C][/ROW]
[ROW][C]32[/C][C]-0.103207[/C][C]-0.8321[/C][C]0.204205[/C][/ROW]
[ROW][C]33[/C][C]-0.059457[/C][C]-0.4794[/C][C]0.316647[/C][/ROW]
[ROW][C]34[/C][C]-0.010519[/C][C]-0.0848[/C][C]0.466337[/C][/ROW]
[ROW][C]35[/C][C]0.112442[/C][C]0.9065[/C][C]0.184001[/C][/ROW]
[ROW][C]36[/C][C]0.34543[/C][C]2.7849[/C][C]0.003503[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69215&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69215&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.3298832.65960.004921
20.1427271.15070.127036
3-0.021626-0.17440.431066
4-0.167601-1.35120.090652
5-0.261042-2.10460.019599
6-0.522299-4.21094e-05
7-0.296137-2.38750.009939
8-0.176362-1.42190.079922
9-0.064169-0.51730.303335
100.045930.37030.356183
110.2458261.98190.02586
120.765196.16920
130.2433771.96220.027014
140.0928510.74860.228402
15-0.042744-0.34460.365748
16-0.155181-1.25110.10769
17-0.235091-1.89540.031246
18-0.450121-3.6290.00028
19-0.264028-2.12870.018538
20-0.153709-1.23920.109856
21-0.079618-0.64190.261597
22-0.000693-0.00560.497778
230.1801951.45280.075548
240.5596834.51231.4e-05
250.2165851.74620.042754
260.0953940.76910.222313
270.0182550.14720.441724
28-0.086419-0.69670.244226
29-0.130017-1.04820.149207
30-0.303698-2.44850.008526
31-0.168521-1.35870.089475
32-0.103207-0.83210.204205
33-0.059457-0.47940.316647
34-0.010519-0.08480.466337
350.1124420.90650.184001
360.345432.78490.003503







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3298832.65960.004921
20.0380440.30670.380019
3-0.089301-0.720.237064
4-0.159359-1.28480.101713
5-0.174329-1.40550.08232
6-0.438332-3.53390.00038
7-0.059049-0.47610.31781
8-0.085497-0.68930.246544
9-0.101157-0.81560.208868
10-0.099784-0.80450.212024
110.1008040.81270.209676
120.6592365.31491e-06
13-0.33318-2.68620.004582
14-0.197727-1.59410.05788
15-0.020941-0.16880.433228
169.3e-057e-040.499703
17-0.081687-0.65860.256245
180.0868050.69980.24326
19-0.023683-0.19090.424583
20-0.120818-0.97410.166818
21-0.080922-0.65240.258219
22-0.003058-0.02470.490202
23-0.103381-0.83350.203811
24-0.147238-1.18710.11976
250.131.04810.149238
260.0174240.14050.444358
270.0099420.08020.468181
28-0.036076-0.29090.386045
290.1070880.86340.195554
300.0037580.03030.487962
310.0154920.12490.450493
32-0.017104-0.13790.445375
330.0600780.48440.314877
34-0.007248-0.05840.476792
35-0.046028-0.37110.355889
36-0.136776-1.10270.137107

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.329883 & 2.6596 & 0.004921 \tabularnewline
2 & 0.038044 & 0.3067 & 0.380019 \tabularnewline
3 & -0.089301 & -0.72 & 0.237064 \tabularnewline
4 & -0.159359 & -1.2848 & 0.101713 \tabularnewline
5 & -0.174329 & -1.4055 & 0.08232 \tabularnewline
6 & -0.438332 & -3.5339 & 0.00038 \tabularnewline
7 & -0.059049 & -0.4761 & 0.31781 \tabularnewline
8 & -0.085497 & -0.6893 & 0.246544 \tabularnewline
9 & -0.101157 & -0.8156 & 0.208868 \tabularnewline
10 & -0.099784 & -0.8045 & 0.212024 \tabularnewline
11 & 0.100804 & 0.8127 & 0.209676 \tabularnewline
12 & 0.659236 & 5.3149 & 1e-06 \tabularnewline
13 & -0.33318 & -2.6862 & 0.004582 \tabularnewline
14 & -0.197727 & -1.5941 & 0.05788 \tabularnewline
15 & -0.020941 & -0.1688 & 0.433228 \tabularnewline
16 & 9.3e-05 & 7e-04 & 0.499703 \tabularnewline
17 & -0.081687 & -0.6586 & 0.256245 \tabularnewline
18 & 0.086805 & 0.6998 & 0.24326 \tabularnewline
19 & -0.023683 & -0.1909 & 0.424583 \tabularnewline
20 & -0.120818 & -0.9741 & 0.166818 \tabularnewline
21 & -0.080922 & -0.6524 & 0.258219 \tabularnewline
22 & -0.003058 & -0.0247 & 0.490202 \tabularnewline
23 & -0.103381 & -0.8335 & 0.203811 \tabularnewline
24 & -0.147238 & -1.1871 & 0.11976 \tabularnewline
25 & 0.13 & 1.0481 & 0.149238 \tabularnewline
26 & 0.017424 & 0.1405 & 0.444358 \tabularnewline
27 & 0.009942 & 0.0802 & 0.468181 \tabularnewline
28 & -0.036076 & -0.2909 & 0.386045 \tabularnewline
29 & 0.107088 & 0.8634 & 0.195554 \tabularnewline
30 & 0.003758 & 0.0303 & 0.487962 \tabularnewline
31 & 0.015492 & 0.1249 & 0.450493 \tabularnewline
32 & -0.017104 & -0.1379 & 0.445375 \tabularnewline
33 & 0.060078 & 0.4844 & 0.314877 \tabularnewline
34 & -0.007248 & -0.0584 & 0.476792 \tabularnewline
35 & -0.046028 & -0.3711 & 0.355889 \tabularnewline
36 & -0.136776 & -1.1027 & 0.137107 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69215&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.329883[/C][C]2.6596[/C][C]0.004921[/C][/ROW]
[ROW][C]2[/C][C]0.038044[/C][C]0.3067[/C][C]0.380019[/C][/ROW]
[ROW][C]3[/C][C]-0.089301[/C][C]-0.72[/C][C]0.237064[/C][/ROW]
[ROW][C]4[/C][C]-0.159359[/C][C]-1.2848[/C][C]0.101713[/C][/ROW]
[ROW][C]5[/C][C]-0.174329[/C][C]-1.4055[/C][C]0.08232[/C][/ROW]
[ROW][C]6[/C][C]-0.438332[/C][C]-3.5339[/C][C]0.00038[/C][/ROW]
[ROW][C]7[/C][C]-0.059049[/C][C]-0.4761[/C][C]0.31781[/C][/ROW]
[ROW][C]8[/C][C]-0.085497[/C][C]-0.6893[/C][C]0.246544[/C][/ROW]
[ROW][C]9[/C][C]-0.101157[/C][C]-0.8156[/C][C]0.208868[/C][/ROW]
[ROW][C]10[/C][C]-0.099784[/C][C]-0.8045[/C][C]0.212024[/C][/ROW]
[ROW][C]11[/C][C]0.100804[/C][C]0.8127[/C][C]0.209676[/C][/ROW]
[ROW][C]12[/C][C]0.659236[/C][C]5.3149[/C][C]1e-06[/C][/ROW]
[ROW][C]13[/C][C]-0.33318[/C][C]-2.6862[/C][C]0.004582[/C][/ROW]
[ROW][C]14[/C][C]-0.197727[/C][C]-1.5941[/C][C]0.05788[/C][/ROW]
[ROW][C]15[/C][C]-0.020941[/C][C]-0.1688[/C][C]0.433228[/C][/ROW]
[ROW][C]16[/C][C]9.3e-05[/C][C]7e-04[/C][C]0.499703[/C][/ROW]
[ROW][C]17[/C][C]-0.081687[/C][C]-0.6586[/C][C]0.256245[/C][/ROW]
[ROW][C]18[/C][C]0.086805[/C][C]0.6998[/C][C]0.24326[/C][/ROW]
[ROW][C]19[/C][C]-0.023683[/C][C]-0.1909[/C][C]0.424583[/C][/ROW]
[ROW][C]20[/C][C]-0.120818[/C][C]-0.9741[/C][C]0.166818[/C][/ROW]
[ROW][C]21[/C][C]-0.080922[/C][C]-0.6524[/C][C]0.258219[/C][/ROW]
[ROW][C]22[/C][C]-0.003058[/C][C]-0.0247[/C][C]0.490202[/C][/ROW]
[ROW][C]23[/C][C]-0.103381[/C][C]-0.8335[/C][C]0.203811[/C][/ROW]
[ROW][C]24[/C][C]-0.147238[/C][C]-1.1871[/C][C]0.11976[/C][/ROW]
[ROW][C]25[/C][C]0.13[/C][C]1.0481[/C][C]0.149238[/C][/ROW]
[ROW][C]26[/C][C]0.017424[/C][C]0.1405[/C][C]0.444358[/C][/ROW]
[ROW][C]27[/C][C]0.009942[/C][C]0.0802[/C][C]0.468181[/C][/ROW]
[ROW][C]28[/C][C]-0.036076[/C][C]-0.2909[/C][C]0.386045[/C][/ROW]
[ROW][C]29[/C][C]0.107088[/C][C]0.8634[/C][C]0.195554[/C][/ROW]
[ROW][C]30[/C][C]0.003758[/C][C]0.0303[/C][C]0.487962[/C][/ROW]
[ROW][C]31[/C][C]0.015492[/C][C]0.1249[/C][C]0.450493[/C][/ROW]
[ROW][C]32[/C][C]-0.017104[/C][C]-0.1379[/C][C]0.445375[/C][/ROW]
[ROW][C]33[/C][C]0.060078[/C][C]0.4844[/C][C]0.314877[/C][/ROW]
[ROW][C]34[/C][C]-0.007248[/C][C]-0.0584[/C][C]0.476792[/C][/ROW]
[ROW][C]35[/C][C]-0.046028[/C][C]-0.3711[/C][C]0.355889[/C][/ROW]
[ROW][C]36[/C][C]-0.136776[/C][C]-1.1027[/C][C]0.137107[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69215&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69215&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.3298832.65960.004921
20.0380440.30670.380019
3-0.089301-0.720.237064
4-0.159359-1.28480.101713
5-0.174329-1.40550.08232
6-0.438332-3.53390.00038
7-0.059049-0.47610.31781
8-0.085497-0.68930.246544
9-0.101157-0.81560.208868
10-0.099784-0.80450.212024
110.1008040.81270.209676
120.6592365.31491e-06
13-0.33318-2.68620.004582
14-0.197727-1.59410.05788
15-0.020941-0.16880.433228
169.3e-057e-040.499703
17-0.081687-0.65860.256245
180.0868050.69980.24326
19-0.023683-0.19090.424583
20-0.120818-0.97410.166818
21-0.080922-0.65240.258219
22-0.003058-0.02470.490202
23-0.103381-0.83350.203811
24-0.147238-1.18710.11976
250.131.04810.149238
260.0174240.14050.444358
270.0099420.08020.468181
28-0.036076-0.29090.386045
290.1070880.86340.195554
300.0037580.03030.487962
310.0154920.12490.450493
32-0.017104-0.13790.445375
330.0600780.48440.314877
34-0.007248-0.05840.476792
35-0.046028-0.37110.355889
36-0.136776-1.10270.137107



Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; 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')