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 computationTue, 07 Dec 2010 17:24:02 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/07/t12917425312imroq9rj5xnkv0.htm/, Retrieved Fri, 03 May 2024 23:58:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=106545, Retrieved Fri, 03 May 2024 23:58:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact116
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] [Unemployment] [2010-11-29 09:05:21] [b98453cac15ba1066b407e146608df68]
-    D    [(Partial) Autocorrelation Function] [W9] [2010-12-03 16:45:32] [247f085ab5b7724f755ad01dc754a3e8]
-   PD      [(Partial) Autocorrelation Function] [W9] [2010-12-03 18:18:51] [247f085ab5b7724f755ad01dc754a3e8]
-    D          [(Partial) Autocorrelation Function] [WS9_acf] [2010-12-07 17:24:02] [b47314d83d48c7bf812ec2bcd743b159] [Current]
Feedback Forum

Post a new message
Dataseries X:
167.16
179.84
174.44
180.35
193.17
195.16
202.43
189.91
195.98
212.09
205.81
204.31
196.07
199.98
199.10
198.31
195.72
223.04
238.41
259.73
326.54
335.15
321.81
368.62
369.59
425.00
439.72
362.23
328.76
348.55
328.18
329.34
295.55
237.38
226.85
220.14
239.36
224.69
230.98
233.47
256.70
253.41
224.95
210.37
191.09
198.85
211.04
206.25
201.19
194.37
191.08
192.87
181.61
157.67
196.14
246.35
271.90




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 5 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=106545&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]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=106545&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=106545&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 time5 seconds
R Server'George Udny Yule' @ 72.249.76.132







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9210826.9540
20.8156026.15770
30.720415.4391e-06
40.622314.69838e-06
50.5326994.02188.6e-05
60.4116923.10820.001467
70.2670632.01630.024246
80.1531281.15610.126233
90.0647440.48880.313427
10-0.017236-0.13010.448462
11-0.090664-0.68450.248217
12-0.168583-1.27280.104133
13-0.226519-1.71020.046336
14-0.244314-1.84450.035152
15-0.260664-1.9680.026971
16-0.2977-2.24760.014245
17-0.351818-2.65620.005116
18-0.401774-3.03330.001819
19-0.433457-3.27250.000907
20-0.455535-3.43920.000549
21-0.481236-3.63330.000301
22-0.498193-3.76132e-04
23-0.50291-3.79690.000179
24-0.476748-3.59940.000334
25-0.431784-3.25990.000941
26-0.378397-2.85680.002981
27-0.321499-2.42730.009198
28-0.265345-2.00330.024953
29-0.193273-1.45920.075002
30-0.112816-0.85170.198962
31-0.05459-0.41210.340889
32-0.007605-0.05740.477207
330.033210.25070.401461
340.0641870.48460.314908
350.0910950.68780.247199
360.098480.74350.230113

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.921082 & 6.954 & 0 \tabularnewline
2 & 0.815602 & 6.1577 & 0 \tabularnewline
3 & 0.72041 & 5.439 & 1e-06 \tabularnewline
4 & 0.62231 & 4.6983 & 8e-06 \tabularnewline
5 & 0.532699 & 4.0218 & 8.6e-05 \tabularnewline
6 & 0.411692 & 3.1082 & 0.001467 \tabularnewline
7 & 0.267063 & 2.0163 & 0.024246 \tabularnewline
8 & 0.153128 & 1.1561 & 0.126233 \tabularnewline
9 & 0.064744 & 0.4888 & 0.313427 \tabularnewline
10 & -0.017236 & -0.1301 & 0.448462 \tabularnewline
11 & -0.090664 & -0.6845 & 0.248217 \tabularnewline
12 & -0.168583 & -1.2728 & 0.104133 \tabularnewline
13 & -0.226519 & -1.7102 & 0.046336 \tabularnewline
14 & -0.244314 & -1.8445 & 0.035152 \tabularnewline
15 & -0.260664 & -1.968 & 0.026971 \tabularnewline
16 & -0.2977 & -2.2476 & 0.014245 \tabularnewline
17 & -0.351818 & -2.6562 & 0.005116 \tabularnewline
18 & -0.401774 & -3.0333 & 0.001819 \tabularnewline
19 & -0.433457 & -3.2725 & 0.000907 \tabularnewline
20 & -0.455535 & -3.4392 & 0.000549 \tabularnewline
21 & -0.481236 & -3.6333 & 0.000301 \tabularnewline
22 & -0.498193 & -3.7613 & 2e-04 \tabularnewline
23 & -0.50291 & -3.7969 & 0.000179 \tabularnewline
24 & -0.476748 & -3.5994 & 0.000334 \tabularnewline
25 & -0.431784 & -3.2599 & 0.000941 \tabularnewline
26 & -0.378397 & -2.8568 & 0.002981 \tabularnewline
27 & -0.321499 & -2.4273 & 0.009198 \tabularnewline
28 & -0.265345 & -2.0033 & 0.024953 \tabularnewline
29 & -0.193273 & -1.4592 & 0.075002 \tabularnewline
30 & -0.112816 & -0.8517 & 0.198962 \tabularnewline
31 & -0.05459 & -0.4121 & 0.340889 \tabularnewline
32 & -0.007605 & -0.0574 & 0.477207 \tabularnewline
33 & 0.03321 & 0.2507 & 0.401461 \tabularnewline
34 & 0.064187 & 0.4846 & 0.314908 \tabularnewline
35 & 0.091095 & 0.6878 & 0.247199 \tabularnewline
36 & 0.09848 & 0.7435 & 0.230113 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=106545&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.921082[/C][C]6.954[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.815602[/C][C]6.1577[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.72041[/C][C]5.439[/C][C]1e-06[/C][/ROW]
[ROW][C]4[/C][C]0.62231[/C][C]4.6983[/C][C]8e-06[/C][/ROW]
[ROW][C]5[/C][C]0.532699[/C][C]4.0218[/C][C]8.6e-05[/C][/ROW]
[ROW][C]6[/C][C]0.411692[/C][C]3.1082[/C][C]0.001467[/C][/ROW]
[ROW][C]7[/C][C]0.267063[/C][C]2.0163[/C][C]0.024246[/C][/ROW]
[ROW][C]8[/C][C]0.153128[/C][C]1.1561[/C][C]0.126233[/C][/ROW]
[ROW][C]9[/C][C]0.064744[/C][C]0.4888[/C][C]0.313427[/C][/ROW]
[ROW][C]10[/C][C]-0.017236[/C][C]-0.1301[/C][C]0.448462[/C][/ROW]
[ROW][C]11[/C][C]-0.090664[/C][C]-0.6845[/C][C]0.248217[/C][/ROW]
[ROW][C]12[/C][C]-0.168583[/C][C]-1.2728[/C][C]0.104133[/C][/ROW]
[ROW][C]13[/C][C]-0.226519[/C][C]-1.7102[/C][C]0.046336[/C][/ROW]
[ROW][C]14[/C][C]-0.244314[/C][C]-1.8445[/C][C]0.035152[/C][/ROW]
[ROW][C]15[/C][C]-0.260664[/C][C]-1.968[/C][C]0.026971[/C][/ROW]
[ROW][C]16[/C][C]-0.2977[/C][C]-2.2476[/C][C]0.014245[/C][/ROW]
[ROW][C]17[/C][C]-0.351818[/C][C]-2.6562[/C][C]0.005116[/C][/ROW]
[ROW][C]18[/C][C]-0.401774[/C][C]-3.0333[/C][C]0.001819[/C][/ROW]
[ROW][C]19[/C][C]-0.433457[/C][C]-3.2725[/C][C]0.000907[/C][/ROW]
[ROW][C]20[/C][C]-0.455535[/C][C]-3.4392[/C][C]0.000549[/C][/ROW]
[ROW][C]21[/C][C]-0.481236[/C][C]-3.6333[/C][C]0.000301[/C][/ROW]
[ROW][C]22[/C][C]-0.498193[/C][C]-3.7613[/C][C]2e-04[/C][/ROW]
[ROW][C]23[/C][C]-0.50291[/C][C]-3.7969[/C][C]0.000179[/C][/ROW]
[ROW][C]24[/C][C]-0.476748[/C][C]-3.5994[/C][C]0.000334[/C][/ROW]
[ROW][C]25[/C][C]-0.431784[/C][C]-3.2599[/C][C]0.000941[/C][/ROW]
[ROW][C]26[/C][C]-0.378397[/C][C]-2.8568[/C][C]0.002981[/C][/ROW]
[ROW][C]27[/C][C]-0.321499[/C][C]-2.4273[/C][C]0.009198[/C][/ROW]
[ROW][C]28[/C][C]-0.265345[/C][C]-2.0033[/C][C]0.024953[/C][/ROW]
[ROW][C]29[/C][C]-0.193273[/C][C]-1.4592[/C][C]0.075002[/C][/ROW]
[ROW][C]30[/C][C]-0.112816[/C][C]-0.8517[/C][C]0.198962[/C][/ROW]
[ROW][C]31[/C][C]-0.05459[/C][C]-0.4121[/C][C]0.340889[/C][/ROW]
[ROW][C]32[/C][C]-0.007605[/C][C]-0.0574[/C][C]0.477207[/C][/ROW]
[ROW][C]33[/C][C]0.03321[/C][C]0.2507[/C][C]0.401461[/C][/ROW]
[ROW][C]34[/C][C]0.064187[/C][C]0.4846[/C][C]0.314908[/C][/ROW]
[ROW][C]35[/C][C]0.091095[/C][C]0.6878[/C][C]0.247199[/C][/ROW]
[ROW][C]36[/C][C]0.09848[/C][C]0.7435[/C][C]0.230113[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=106545&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=106545&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.9210826.9540
20.8156026.15770
30.720415.4391e-06
40.622314.69838e-06
50.5326994.02188.6e-05
60.4116923.10820.001467
70.2670632.01630.024246
80.1531281.15610.126233
90.0647440.48880.313427
10-0.017236-0.13010.448462
11-0.090664-0.68450.248217
12-0.168583-1.27280.104133
13-0.226519-1.71020.046336
14-0.244314-1.84450.035152
15-0.260664-1.9680.026971
16-0.2977-2.24760.014245
17-0.351818-2.65620.005116
18-0.401774-3.03330.001819
19-0.433457-3.27250.000907
20-0.455535-3.43920.000549
21-0.481236-3.63330.000301
22-0.498193-3.76132e-04
23-0.50291-3.79690.000179
24-0.476748-3.59940.000334
25-0.431784-3.25990.000941
26-0.378397-2.85680.002981
27-0.321499-2.42730.009198
28-0.265345-2.00330.024953
29-0.193273-1.45920.075002
30-0.112816-0.85170.198962
31-0.05459-0.41210.340889
32-0.007605-0.05740.477207
330.033210.25070.401461
340.0641870.48460.314908
350.0910950.68780.247199
360.098480.74350.230113







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9210826.9540
2-0.216278-1.63290.054005
30.040880.30860.37936
4-0.104196-0.78670.21737
50.0177030.13370.447074
6-0.308922-2.33230.01162
7-0.163861-1.23710.110557
80.1081440.81650.208816
90.0224680.16960.432952
10-0.081557-0.61570.270258
11-0.003933-0.02970.488209
12-0.059869-0.4520.326491
130.0312990.23630.407023
140.0681370.51440.304474
15-0.102592-0.77460.220903
16-0.192432-1.45280.075878
17-0.176468-1.33230.094031
18-0.036211-0.27340.392772
19-0.090939-0.68660.247568
20-0.085772-0.64760.259932
21-0.014042-0.1060.457971
220.0894510.67530.251095
23-0.030743-0.23210.408645
240.0973710.73510.232635
25-0.006942-0.05240.479192
260.0657340.49630.310803
27-0.037749-0.2850.388339
28-0.081875-0.61810.269471
29-0.009868-0.07450.470436
30-0.041686-0.31470.377061
31-0.138582-1.04630.149926
320.0152240.11490.454448
330.0025280.01910.492421
34-0.027459-0.20730.418254
35-0.030633-0.23130.408965
36-0.057801-0.43640.332101

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.921082 & 6.954 & 0 \tabularnewline
2 & -0.216278 & -1.6329 & 0.054005 \tabularnewline
3 & 0.04088 & 0.3086 & 0.37936 \tabularnewline
4 & -0.104196 & -0.7867 & 0.21737 \tabularnewline
5 & 0.017703 & 0.1337 & 0.447074 \tabularnewline
6 & -0.308922 & -2.3323 & 0.01162 \tabularnewline
7 & -0.163861 & -1.2371 & 0.110557 \tabularnewline
8 & 0.108144 & 0.8165 & 0.208816 \tabularnewline
9 & 0.022468 & 0.1696 & 0.432952 \tabularnewline
10 & -0.081557 & -0.6157 & 0.270258 \tabularnewline
11 & -0.003933 & -0.0297 & 0.488209 \tabularnewline
12 & -0.059869 & -0.452 & 0.326491 \tabularnewline
13 & 0.031299 & 0.2363 & 0.407023 \tabularnewline
14 & 0.068137 & 0.5144 & 0.304474 \tabularnewline
15 & -0.102592 & -0.7746 & 0.220903 \tabularnewline
16 & -0.192432 & -1.4528 & 0.075878 \tabularnewline
17 & -0.176468 & -1.3323 & 0.094031 \tabularnewline
18 & -0.036211 & -0.2734 & 0.392772 \tabularnewline
19 & -0.090939 & -0.6866 & 0.247568 \tabularnewline
20 & -0.085772 & -0.6476 & 0.259932 \tabularnewline
21 & -0.014042 & -0.106 & 0.457971 \tabularnewline
22 & 0.089451 & 0.6753 & 0.251095 \tabularnewline
23 & -0.030743 & -0.2321 & 0.408645 \tabularnewline
24 & 0.097371 & 0.7351 & 0.232635 \tabularnewline
25 & -0.006942 & -0.0524 & 0.479192 \tabularnewline
26 & 0.065734 & 0.4963 & 0.310803 \tabularnewline
27 & -0.037749 & -0.285 & 0.388339 \tabularnewline
28 & -0.081875 & -0.6181 & 0.269471 \tabularnewline
29 & -0.009868 & -0.0745 & 0.470436 \tabularnewline
30 & -0.041686 & -0.3147 & 0.377061 \tabularnewline
31 & -0.138582 & -1.0463 & 0.149926 \tabularnewline
32 & 0.015224 & 0.1149 & 0.454448 \tabularnewline
33 & 0.002528 & 0.0191 & 0.492421 \tabularnewline
34 & -0.027459 & -0.2073 & 0.418254 \tabularnewline
35 & -0.030633 & -0.2313 & 0.408965 \tabularnewline
36 & -0.057801 & -0.4364 & 0.332101 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=106545&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.921082[/C][C]6.954[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.216278[/C][C]-1.6329[/C][C]0.054005[/C][/ROW]
[ROW][C]3[/C][C]0.04088[/C][C]0.3086[/C][C]0.37936[/C][/ROW]
[ROW][C]4[/C][C]-0.104196[/C][C]-0.7867[/C][C]0.21737[/C][/ROW]
[ROW][C]5[/C][C]0.017703[/C][C]0.1337[/C][C]0.447074[/C][/ROW]
[ROW][C]6[/C][C]-0.308922[/C][C]-2.3323[/C][C]0.01162[/C][/ROW]
[ROW][C]7[/C][C]-0.163861[/C][C]-1.2371[/C][C]0.110557[/C][/ROW]
[ROW][C]8[/C][C]0.108144[/C][C]0.8165[/C][C]0.208816[/C][/ROW]
[ROW][C]9[/C][C]0.022468[/C][C]0.1696[/C][C]0.432952[/C][/ROW]
[ROW][C]10[/C][C]-0.081557[/C][C]-0.6157[/C][C]0.270258[/C][/ROW]
[ROW][C]11[/C][C]-0.003933[/C][C]-0.0297[/C][C]0.488209[/C][/ROW]
[ROW][C]12[/C][C]-0.059869[/C][C]-0.452[/C][C]0.326491[/C][/ROW]
[ROW][C]13[/C][C]0.031299[/C][C]0.2363[/C][C]0.407023[/C][/ROW]
[ROW][C]14[/C][C]0.068137[/C][C]0.5144[/C][C]0.304474[/C][/ROW]
[ROW][C]15[/C][C]-0.102592[/C][C]-0.7746[/C][C]0.220903[/C][/ROW]
[ROW][C]16[/C][C]-0.192432[/C][C]-1.4528[/C][C]0.075878[/C][/ROW]
[ROW][C]17[/C][C]-0.176468[/C][C]-1.3323[/C][C]0.094031[/C][/ROW]
[ROW][C]18[/C][C]-0.036211[/C][C]-0.2734[/C][C]0.392772[/C][/ROW]
[ROW][C]19[/C][C]-0.090939[/C][C]-0.6866[/C][C]0.247568[/C][/ROW]
[ROW][C]20[/C][C]-0.085772[/C][C]-0.6476[/C][C]0.259932[/C][/ROW]
[ROW][C]21[/C][C]-0.014042[/C][C]-0.106[/C][C]0.457971[/C][/ROW]
[ROW][C]22[/C][C]0.089451[/C][C]0.6753[/C][C]0.251095[/C][/ROW]
[ROW][C]23[/C][C]-0.030743[/C][C]-0.2321[/C][C]0.408645[/C][/ROW]
[ROW][C]24[/C][C]0.097371[/C][C]0.7351[/C][C]0.232635[/C][/ROW]
[ROW][C]25[/C][C]-0.006942[/C][C]-0.0524[/C][C]0.479192[/C][/ROW]
[ROW][C]26[/C][C]0.065734[/C][C]0.4963[/C][C]0.310803[/C][/ROW]
[ROW][C]27[/C][C]-0.037749[/C][C]-0.285[/C][C]0.388339[/C][/ROW]
[ROW][C]28[/C][C]-0.081875[/C][C]-0.6181[/C][C]0.269471[/C][/ROW]
[ROW][C]29[/C][C]-0.009868[/C][C]-0.0745[/C][C]0.470436[/C][/ROW]
[ROW][C]30[/C][C]-0.041686[/C][C]-0.3147[/C][C]0.377061[/C][/ROW]
[ROW][C]31[/C][C]-0.138582[/C][C]-1.0463[/C][C]0.149926[/C][/ROW]
[ROW][C]32[/C][C]0.015224[/C][C]0.1149[/C][C]0.454448[/C][/ROW]
[ROW][C]33[/C][C]0.002528[/C][C]0.0191[/C][C]0.492421[/C][/ROW]
[ROW][C]34[/C][C]-0.027459[/C][C]-0.2073[/C][C]0.418254[/C][/ROW]
[ROW][C]35[/C][C]-0.030633[/C][C]-0.2313[/C][C]0.408965[/C][/ROW]
[ROW][C]36[/C][C]-0.057801[/C][C]-0.4364[/C][C]0.332101[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=106545&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=106545&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.9210826.9540
2-0.216278-1.63290.054005
30.040880.30860.37936
4-0.104196-0.78670.21737
50.0177030.13370.447074
6-0.308922-2.33230.01162
7-0.163861-1.23710.110557
80.1081440.81650.208816
90.0224680.16960.432952
10-0.081557-0.61570.270258
11-0.003933-0.02970.488209
12-0.059869-0.4520.326491
130.0312990.23630.407023
140.0681370.51440.304474
15-0.102592-0.77460.220903
16-0.192432-1.45280.075878
17-0.176468-1.33230.094031
18-0.036211-0.27340.392772
19-0.090939-0.68660.247568
20-0.085772-0.64760.259932
21-0.014042-0.1060.457971
220.0894510.67530.251095
23-0.030743-0.23210.408645
240.0973710.73510.232635
25-0.006942-0.05240.479192
260.0657340.49630.310803
27-0.037749-0.2850.388339
28-0.081875-0.61810.269471
29-0.009868-0.07450.470436
30-0.041686-0.31470.377061
31-0.138582-1.04630.149926
320.0152240.11490.454448
330.0025280.01910.492421
34-0.027459-0.20730.418254
35-0.030633-0.23130.408965
36-0.057801-0.43640.332101



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