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, 03 Dec 2009 14:08: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/03/t1259874604evctyw1fpart4tf.htm/, Retrieved Sat, 20 Apr 2024 12:48:33 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63121, Retrieved Sat, 20 Apr 2024 12:48:33 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact119
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [data set] [2008-12-01 19:54:57] [b98453cac15ba1066b407e146608df68]
- RMP   [(Partial) Autocorrelation Function] [] [2009-11-27 14:46:03] [b98453cac15ba1066b407e146608df68]
-    D      [(Partial) Autocorrelation Function] [workshop 9] [2009-12-03 21:08:26] [6c94b261890ba36343a04d1029691995] [Current]
Feedback Forum

Post a new message
Dataseries X:
283.042
276.687
277.915
277.128
277.103
275.037
270.150
267.140
264.993
287.259
291.186
292.300
288.186
281.477
282.656
280.190
280.408
276.836
275.216
274.352
271.311
289.802
290.726
292.300
278.506
269.826
265.861
269.034
264.176
255.198
253.353
246.057
235.372
258.556
260.993
254.663
250.643
243.422
247.105
248.541
245.039
237.080
237.085
225.554
226.839
247.934
248.333
246.969
245.098
246.263
255.765
264.319
268.347
273.046
273.963
267.430
271.993
292.710
295.881
293.299




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63121&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.8803176.81890
20.7397085.72980
30.6329054.90254e-06
40.5813524.50311.6e-05
50.5605014.34162.8e-05
60.5076333.93210.00011
70.4150393.21490.001051
80.3073042.38040.010244
90.2414961.87060.033139
100.2010461.55730.06233
110.2107261.63230.053929
120.1962591.52020.066855
130.0605970.46940.32025
14-0.066969-0.51870.302924
15-0.161447-1.25060.107974
16-0.192354-1.490.070736
17-0.190626-1.47660.072509
18-0.216021-1.67330.049739
19-0.265469-2.05630.022055
20-0.332843-2.57820.006202
21-0.357947-2.77260.003698
22-0.356843-2.76410.003785
23-0.315414-2.44320.008759
24-0.30261-2.3440.011204
25-0.364663-2.82470.003208
26-0.413815-3.20540.001081
27-0.424644-3.28930.000842
28-0.383556-2.9710.002132
29-0.334496-2.5910.005999
30-0.298198-2.30980.012177
31-0.28065-2.17390.016834
32-0.275432-2.13350.018492
33-0.231801-1.79550.038804
34-0.178464-1.38240.08599
35-0.117538-0.91040.183116
36-0.080531-0.62380.267565

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.880317 & 6.8189 & 0 \tabularnewline
2 & 0.739708 & 5.7298 & 0 \tabularnewline
3 & 0.632905 & 4.9025 & 4e-06 \tabularnewline
4 & 0.581352 & 4.5031 & 1.6e-05 \tabularnewline
5 & 0.560501 & 4.3416 & 2.8e-05 \tabularnewline
6 & 0.507633 & 3.9321 & 0.00011 \tabularnewline
7 & 0.415039 & 3.2149 & 0.001051 \tabularnewline
8 & 0.307304 & 2.3804 & 0.010244 \tabularnewline
9 & 0.241496 & 1.8706 & 0.033139 \tabularnewline
10 & 0.201046 & 1.5573 & 0.06233 \tabularnewline
11 & 0.210726 & 1.6323 & 0.053929 \tabularnewline
12 & 0.196259 & 1.5202 & 0.066855 \tabularnewline
13 & 0.060597 & 0.4694 & 0.32025 \tabularnewline
14 & -0.066969 & -0.5187 & 0.302924 \tabularnewline
15 & -0.161447 & -1.2506 & 0.107974 \tabularnewline
16 & -0.192354 & -1.49 & 0.070736 \tabularnewline
17 & -0.190626 & -1.4766 & 0.072509 \tabularnewline
18 & -0.216021 & -1.6733 & 0.049739 \tabularnewline
19 & -0.265469 & -2.0563 & 0.022055 \tabularnewline
20 & -0.332843 & -2.5782 & 0.006202 \tabularnewline
21 & -0.357947 & -2.7726 & 0.003698 \tabularnewline
22 & -0.356843 & -2.7641 & 0.003785 \tabularnewline
23 & -0.315414 & -2.4432 & 0.008759 \tabularnewline
24 & -0.30261 & -2.344 & 0.011204 \tabularnewline
25 & -0.364663 & -2.8247 & 0.003208 \tabularnewline
26 & -0.413815 & -3.2054 & 0.001081 \tabularnewline
27 & -0.424644 & -3.2893 & 0.000842 \tabularnewline
28 & -0.383556 & -2.971 & 0.002132 \tabularnewline
29 & -0.334496 & -2.591 & 0.005999 \tabularnewline
30 & -0.298198 & -2.3098 & 0.012177 \tabularnewline
31 & -0.28065 & -2.1739 & 0.016834 \tabularnewline
32 & -0.275432 & -2.1335 & 0.018492 \tabularnewline
33 & -0.231801 & -1.7955 & 0.038804 \tabularnewline
34 & -0.178464 & -1.3824 & 0.08599 \tabularnewline
35 & -0.117538 & -0.9104 & 0.183116 \tabularnewline
36 & -0.080531 & -0.6238 & 0.267565 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63121&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.880317[/C][C]6.8189[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.739708[/C][C]5.7298[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.632905[/C][C]4.9025[/C][C]4e-06[/C][/ROW]
[ROW][C]4[/C][C]0.581352[/C][C]4.5031[/C][C]1.6e-05[/C][/ROW]
[ROW][C]5[/C][C]0.560501[/C][C]4.3416[/C][C]2.8e-05[/C][/ROW]
[ROW][C]6[/C][C]0.507633[/C][C]3.9321[/C][C]0.00011[/C][/ROW]
[ROW][C]7[/C][C]0.415039[/C][C]3.2149[/C][C]0.001051[/C][/ROW]
[ROW][C]8[/C][C]0.307304[/C][C]2.3804[/C][C]0.010244[/C][/ROW]
[ROW][C]9[/C][C]0.241496[/C][C]1.8706[/C][C]0.033139[/C][/ROW]
[ROW][C]10[/C][C]0.201046[/C][C]1.5573[/C][C]0.06233[/C][/ROW]
[ROW][C]11[/C][C]0.210726[/C][C]1.6323[/C][C]0.053929[/C][/ROW]
[ROW][C]12[/C][C]0.196259[/C][C]1.5202[/C][C]0.066855[/C][/ROW]
[ROW][C]13[/C][C]0.060597[/C][C]0.4694[/C][C]0.32025[/C][/ROW]
[ROW][C]14[/C][C]-0.066969[/C][C]-0.5187[/C][C]0.302924[/C][/ROW]
[ROW][C]15[/C][C]-0.161447[/C][C]-1.2506[/C][C]0.107974[/C][/ROW]
[ROW][C]16[/C][C]-0.192354[/C][C]-1.49[/C][C]0.070736[/C][/ROW]
[ROW][C]17[/C][C]-0.190626[/C][C]-1.4766[/C][C]0.072509[/C][/ROW]
[ROW][C]18[/C][C]-0.216021[/C][C]-1.6733[/C][C]0.049739[/C][/ROW]
[ROW][C]19[/C][C]-0.265469[/C][C]-2.0563[/C][C]0.022055[/C][/ROW]
[ROW][C]20[/C][C]-0.332843[/C][C]-2.5782[/C][C]0.006202[/C][/ROW]
[ROW][C]21[/C][C]-0.357947[/C][C]-2.7726[/C][C]0.003698[/C][/ROW]
[ROW][C]22[/C][C]-0.356843[/C][C]-2.7641[/C][C]0.003785[/C][/ROW]
[ROW][C]23[/C][C]-0.315414[/C][C]-2.4432[/C][C]0.008759[/C][/ROW]
[ROW][C]24[/C][C]-0.30261[/C][C]-2.344[/C][C]0.011204[/C][/ROW]
[ROW][C]25[/C][C]-0.364663[/C][C]-2.8247[/C][C]0.003208[/C][/ROW]
[ROW][C]26[/C][C]-0.413815[/C][C]-3.2054[/C][C]0.001081[/C][/ROW]
[ROW][C]27[/C][C]-0.424644[/C][C]-3.2893[/C][C]0.000842[/C][/ROW]
[ROW][C]28[/C][C]-0.383556[/C][C]-2.971[/C][C]0.002132[/C][/ROW]
[ROW][C]29[/C][C]-0.334496[/C][C]-2.591[/C][C]0.005999[/C][/ROW]
[ROW][C]30[/C][C]-0.298198[/C][C]-2.3098[/C][C]0.012177[/C][/ROW]
[ROW][C]31[/C][C]-0.28065[/C][C]-2.1739[/C][C]0.016834[/C][/ROW]
[ROW][C]32[/C][C]-0.275432[/C][C]-2.1335[/C][C]0.018492[/C][/ROW]
[ROW][C]33[/C][C]-0.231801[/C][C]-1.7955[/C][C]0.038804[/C][/ROW]
[ROW][C]34[/C][C]-0.178464[/C][C]-1.3824[/C][C]0.08599[/C][/ROW]
[ROW][C]35[/C][C]-0.117538[/C][C]-0.9104[/C][C]0.183116[/C][/ROW]
[ROW][C]36[/C][C]-0.080531[/C][C]-0.6238[/C][C]0.267565[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63121&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63121&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.8803176.81890
20.7397085.72980
30.6329054.90254e-06
40.5813524.50311.6e-05
50.5605014.34162.8e-05
60.5076333.93210.00011
70.4150393.21490.001051
80.3073042.38040.010244
90.2414961.87060.033139
100.2010461.55730.06233
110.2107261.63230.053929
120.1962591.52020.066855
130.0605970.46940.32025
14-0.066969-0.51870.302924
15-0.161447-1.25060.107974
16-0.192354-1.490.070736
17-0.190626-1.47660.072509
18-0.216021-1.67330.049739
19-0.265469-2.05630.022055
20-0.332843-2.57820.006202
21-0.357947-2.77260.003698
22-0.356843-2.76410.003785
23-0.315414-2.44320.008759
24-0.30261-2.3440.011204
25-0.364663-2.82470.003208
26-0.413815-3.20540.001081
27-0.424644-3.28930.000842
28-0.383556-2.9710.002132
29-0.334496-2.5910.005999
30-0.298198-2.30980.012177
31-0.28065-2.17390.016834
32-0.275432-2.13350.018492
33-0.231801-1.79550.038804
34-0.178464-1.38240.08599
35-0.117538-0.91040.183116
36-0.080531-0.62380.267565







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8803176.81890
2-0.156634-1.21330.114889
30.0802570.62170.268258
40.1587691.22980.111782
50.0822730.63730.263181
6-0.135662-1.05080.148775
7-0.129815-1.00550.159338
8-0.089229-0.69120.246063
90.0775850.6010.275063
10-0.042903-0.33230.370402
110.1902331.47350.072916
12-0.086686-0.67150.252249
13-0.503969-3.90370.000121
140.0789240.61130.271641
15-0.031709-0.24560.403407
16-0.013527-0.10480.45845
170.0461120.35720.361104
18-0.042318-0.32780.372104
190.0534160.41380.340262
20-0.157758-1.2220.113246
210.0391170.3030.38147
220.0238440.18470.427044
23-0.085442-0.66180.255306
24-0.005491-0.04250.483109
25-0.092093-0.71330.239199
260.0079830.06180.47545
270.0710560.55040.292045
28-0.087627-0.67880.249952
29-0.004573-0.03540.485931
300.0694240.53780.296367
310.0101680.07880.468742
320.006350.04920.480468
330.0460690.35680.361228
34-0.013623-0.10550.458157
35-0.130146-1.00810.158725
360.0462740.35840.360637

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.880317 & 6.8189 & 0 \tabularnewline
2 & -0.156634 & -1.2133 & 0.114889 \tabularnewline
3 & 0.080257 & 0.6217 & 0.268258 \tabularnewline
4 & 0.158769 & 1.2298 & 0.111782 \tabularnewline
5 & 0.082273 & 0.6373 & 0.263181 \tabularnewline
6 & -0.135662 & -1.0508 & 0.148775 \tabularnewline
7 & -0.129815 & -1.0055 & 0.159338 \tabularnewline
8 & -0.089229 & -0.6912 & 0.246063 \tabularnewline
9 & 0.077585 & 0.601 & 0.275063 \tabularnewline
10 & -0.042903 & -0.3323 & 0.370402 \tabularnewline
11 & 0.190233 & 1.4735 & 0.072916 \tabularnewline
12 & -0.086686 & -0.6715 & 0.252249 \tabularnewline
13 & -0.503969 & -3.9037 & 0.000121 \tabularnewline
14 & 0.078924 & 0.6113 & 0.271641 \tabularnewline
15 & -0.031709 & -0.2456 & 0.403407 \tabularnewline
16 & -0.013527 & -0.1048 & 0.45845 \tabularnewline
17 & 0.046112 & 0.3572 & 0.361104 \tabularnewline
18 & -0.042318 & -0.3278 & 0.372104 \tabularnewline
19 & 0.053416 & 0.4138 & 0.340262 \tabularnewline
20 & -0.157758 & -1.222 & 0.113246 \tabularnewline
21 & 0.039117 & 0.303 & 0.38147 \tabularnewline
22 & 0.023844 & 0.1847 & 0.427044 \tabularnewline
23 & -0.085442 & -0.6618 & 0.255306 \tabularnewline
24 & -0.005491 & -0.0425 & 0.483109 \tabularnewline
25 & -0.092093 & -0.7133 & 0.239199 \tabularnewline
26 & 0.007983 & 0.0618 & 0.47545 \tabularnewline
27 & 0.071056 & 0.5504 & 0.292045 \tabularnewline
28 & -0.087627 & -0.6788 & 0.249952 \tabularnewline
29 & -0.004573 & -0.0354 & 0.485931 \tabularnewline
30 & 0.069424 & 0.5378 & 0.296367 \tabularnewline
31 & 0.010168 & 0.0788 & 0.468742 \tabularnewline
32 & 0.00635 & 0.0492 & 0.480468 \tabularnewline
33 & 0.046069 & 0.3568 & 0.361228 \tabularnewline
34 & -0.013623 & -0.1055 & 0.458157 \tabularnewline
35 & -0.130146 & -1.0081 & 0.158725 \tabularnewline
36 & 0.046274 & 0.3584 & 0.360637 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63121&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.880317[/C][C]6.8189[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.156634[/C][C]-1.2133[/C][C]0.114889[/C][/ROW]
[ROW][C]3[/C][C]0.080257[/C][C]0.6217[/C][C]0.268258[/C][/ROW]
[ROW][C]4[/C][C]0.158769[/C][C]1.2298[/C][C]0.111782[/C][/ROW]
[ROW][C]5[/C][C]0.082273[/C][C]0.6373[/C][C]0.263181[/C][/ROW]
[ROW][C]6[/C][C]-0.135662[/C][C]-1.0508[/C][C]0.148775[/C][/ROW]
[ROW][C]7[/C][C]-0.129815[/C][C]-1.0055[/C][C]0.159338[/C][/ROW]
[ROW][C]8[/C][C]-0.089229[/C][C]-0.6912[/C][C]0.246063[/C][/ROW]
[ROW][C]9[/C][C]0.077585[/C][C]0.601[/C][C]0.275063[/C][/ROW]
[ROW][C]10[/C][C]-0.042903[/C][C]-0.3323[/C][C]0.370402[/C][/ROW]
[ROW][C]11[/C][C]0.190233[/C][C]1.4735[/C][C]0.072916[/C][/ROW]
[ROW][C]12[/C][C]-0.086686[/C][C]-0.6715[/C][C]0.252249[/C][/ROW]
[ROW][C]13[/C][C]-0.503969[/C][C]-3.9037[/C][C]0.000121[/C][/ROW]
[ROW][C]14[/C][C]0.078924[/C][C]0.6113[/C][C]0.271641[/C][/ROW]
[ROW][C]15[/C][C]-0.031709[/C][C]-0.2456[/C][C]0.403407[/C][/ROW]
[ROW][C]16[/C][C]-0.013527[/C][C]-0.1048[/C][C]0.45845[/C][/ROW]
[ROW][C]17[/C][C]0.046112[/C][C]0.3572[/C][C]0.361104[/C][/ROW]
[ROW][C]18[/C][C]-0.042318[/C][C]-0.3278[/C][C]0.372104[/C][/ROW]
[ROW][C]19[/C][C]0.053416[/C][C]0.4138[/C][C]0.340262[/C][/ROW]
[ROW][C]20[/C][C]-0.157758[/C][C]-1.222[/C][C]0.113246[/C][/ROW]
[ROW][C]21[/C][C]0.039117[/C][C]0.303[/C][C]0.38147[/C][/ROW]
[ROW][C]22[/C][C]0.023844[/C][C]0.1847[/C][C]0.427044[/C][/ROW]
[ROW][C]23[/C][C]-0.085442[/C][C]-0.6618[/C][C]0.255306[/C][/ROW]
[ROW][C]24[/C][C]-0.005491[/C][C]-0.0425[/C][C]0.483109[/C][/ROW]
[ROW][C]25[/C][C]-0.092093[/C][C]-0.7133[/C][C]0.239199[/C][/ROW]
[ROW][C]26[/C][C]0.007983[/C][C]0.0618[/C][C]0.47545[/C][/ROW]
[ROW][C]27[/C][C]0.071056[/C][C]0.5504[/C][C]0.292045[/C][/ROW]
[ROW][C]28[/C][C]-0.087627[/C][C]-0.6788[/C][C]0.249952[/C][/ROW]
[ROW][C]29[/C][C]-0.004573[/C][C]-0.0354[/C][C]0.485931[/C][/ROW]
[ROW][C]30[/C][C]0.069424[/C][C]0.5378[/C][C]0.296367[/C][/ROW]
[ROW][C]31[/C][C]0.010168[/C][C]0.0788[/C][C]0.468742[/C][/ROW]
[ROW][C]32[/C][C]0.00635[/C][C]0.0492[/C][C]0.480468[/C][/ROW]
[ROW][C]33[/C][C]0.046069[/C][C]0.3568[/C][C]0.361228[/C][/ROW]
[ROW][C]34[/C][C]-0.013623[/C][C]-0.1055[/C][C]0.458157[/C][/ROW]
[ROW][C]35[/C][C]-0.130146[/C][C]-1.0081[/C][C]0.158725[/C][/ROW]
[ROW][C]36[/C][C]0.046274[/C][C]0.3584[/C][C]0.360637[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63121&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63121&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.8803176.81890
2-0.156634-1.21330.114889
30.0802570.62170.268258
40.1587691.22980.111782
50.0822730.63730.263181
6-0.135662-1.05080.148775
7-0.129815-1.00550.159338
8-0.089229-0.69120.246063
90.0775850.6010.275063
10-0.042903-0.33230.370402
110.1902331.47350.072916
12-0.086686-0.67150.252249
13-0.503969-3.90370.000121
140.0789240.61130.271641
15-0.031709-0.24560.403407
16-0.013527-0.10480.45845
170.0461120.35720.361104
18-0.042318-0.32780.372104
190.0534160.41380.340262
20-0.157758-1.2220.113246
210.0391170.3030.38147
220.0238440.18470.427044
23-0.085442-0.66180.255306
24-0.005491-0.04250.483109
25-0.092093-0.71330.239199
260.0079830.06180.47545
270.0710560.55040.292045
28-0.087627-0.67880.249952
29-0.004573-0.03540.485931
300.0694240.53780.296367
310.0101680.07880.468742
320.006350.04920.480468
330.0460690.35680.361228
34-0.013623-0.10550.458157
35-0.130146-1.00810.158725
360.0462740.35840.360637



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