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, 01 Dec 2009 04:07:40 -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/01/t1259665942lplnilz3t78slg5.htm/, Retrieved Wed, 24 Apr 2024 00:02:13 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61980, Retrieved Wed, 24 Apr 2024 00:02:13 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact139
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:16:10] [b98453cac15ba1066b407e146608df68]
-    D          [(Partial) Autocorrelation Function] [] [2009-12-01 11:07:40] [54f12ba6dfaf5b88c7c2745223d9c32f] [Current]
Feedback Forum

Post a new message
Dataseries X:
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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61980&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.3214532.51060.007359
20.1356371.05940.146807
3-0.044166-0.34490.365661
4-0.213575-1.66810.050213
5-0.274227-2.14180.018107
6-0.521246-4.07116.8e-05
7-0.27636-2.15840.017419
8-0.147762-1.15410.126489
9-0.055135-0.43060.334131
100.0625740.48870.313397
110.2284091.78390.039704
120.7527465.87910
130.2313761.80710.037839
140.0738210.57660.28318
15-0.075086-0.58640.279871
16-0.209904-1.63940.053138
17-0.242257-1.89210.031614
18-0.421634-3.29310.000826
19-0.208761-1.63050.054078
20-0.104414-0.81550.208979
21-0.044258-0.34570.365391
220.0301170.23520.407412
230.1588021.24030.10981
240.5488064.28633.3e-05
250.2039511.59290.058175
260.0790020.6170.269757
27-0.007465-0.05830.47685
28-0.141752-1.10710.136295
29-0.138529-1.08190.141768
30-0.279893-2.1860.01633
31-0.137267-1.07210.143952
32-0.062645-0.48930.313202
33-0.03704-0.28930.38667
340.020890.16320.435467
350.0931510.72750.234843
360.3316682.59040.005987

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.321453 & 2.5106 & 0.007359 \tabularnewline
2 & 0.135637 & 1.0594 & 0.146807 \tabularnewline
3 & -0.044166 & -0.3449 & 0.365661 \tabularnewline
4 & -0.213575 & -1.6681 & 0.050213 \tabularnewline
5 & -0.274227 & -2.1418 & 0.018107 \tabularnewline
6 & -0.521246 & -4.0711 & 6.8e-05 \tabularnewline
7 & -0.27636 & -2.1584 & 0.017419 \tabularnewline
8 & -0.147762 & -1.1541 & 0.126489 \tabularnewline
9 & -0.055135 & -0.4306 & 0.334131 \tabularnewline
10 & 0.062574 & 0.4887 & 0.313397 \tabularnewline
11 & 0.228409 & 1.7839 & 0.039704 \tabularnewline
12 & 0.752746 & 5.8791 & 0 \tabularnewline
13 & 0.231376 & 1.8071 & 0.037839 \tabularnewline
14 & 0.073821 & 0.5766 & 0.28318 \tabularnewline
15 & -0.075086 & -0.5864 & 0.279871 \tabularnewline
16 & -0.209904 & -1.6394 & 0.053138 \tabularnewline
17 & -0.242257 & -1.8921 & 0.031614 \tabularnewline
18 & -0.421634 & -3.2931 & 0.000826 \tabularnewline
19 & -0.208761 & -1.6305 & 0.054078 \tabularnewline
20 & -0.104414 & -0.8155 & 0.208979 \tabularnewline
21 & -0.044258 & -0.3457 & 0.365391 \tabularnewline
22 & 0.030117 & 0.2352 & 0.407412 \tabularnewline
23 & 0.158802 & 1.2403 & 0.10981 \tabularnewline
24 & 0.548806 & 4.2863 & 3.3e-05 \tabularnewline
25 & 0.203951 & 1.5929 & 0.058175 \tabularnewline
26 & 0.079002 & 0.617 & 0.269757 \tabularnewline
27 & -0.007465 & -0.0583 & 0.47685 \tabularnewline
28 & -0.141752 & -1.1071 & 0.136295 \tabularnewline
29 & -0.138529 & -1.0819 & 0.141768 \tabularnewline
30 & -0.279893 & -2.186 & 0.01633 \tabularnewline
31 & -0.137267 & -1.0721 & 0.143952 \tabularnewline
32 & -0.062645 & -0.4893 & 0.313202 \tabularnewline
33 & -0.03704 & -0.2893 & 0.38667 \tabularnewline
34 & 0.02089 & 0.1632 & 0.435467 \tabularnewline
35 & 0.093151 & 0.7275 & 0.234843 \tabularnewline
36 & 0.331668 & 2.5904 & 0.005987 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61980&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.321453[/C][C]2.5106[/C][C]0.007359[/C][/ROW]
[ROW][C]2[/C][C]0.135637[/C][C]1.0594[/C][C]0.146807[/C][/ROW]
[ROW][C]3[/C][C]-0.044166[/C][C]-0.3449[/C][C]0.365661[/C][/ROW]
[ROW][C]4[/C][C]-0.213575[/C][C]-1.6681[/C][C]0.050213[/C][/ROW]
[ROW][C]5[/C][C]-0.274227[/C][C]-2.1418[/C][C]0.018107[/C][/ROW]
[ROW][C]6[/C][C]-0.521246[/C][C]-4.0711[/C][C]6.8e-05[/C][/ROW]
[ROW][C]7[/C][C]-0.27636[/C][C]-2.1584[/C][C]0.017419[/C][/ROW]
[ROW][C]8[/C][C]-0.147762[/C][C]-1.1541[/C][C]0.126489[/C][/ROW]
[ROW][C]9[/C][C]-0.055135[/C][C]-0.4306[/C][C]0.334131[/C][/ROW]
[ROW][C]10[/C][C]0.062574[/C][C]0.4887[/C][C]0.313397[/C][/ROW]
[ROW][C]11[/C][C]0.228409[/C][C]1.7839[/C][C]0.039704[/C][/ROW]
[ROW][C]12[/C][C]0.752746[/C][C]5.8791[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.231376[/C][C]1.8071[/C][C]0.037839[/C][/ROW]
[ROW][C]14[/C][C]0.073821[/C][C]0.5766[/C][C]0.28318[/C][/ROW]
[ROW][C]15[/C][C]-0.075086[/C][C]-0.5864[/C][C]0.279871[/C][/ROW]
[ROW][C]16[/C][C]-0.209904[/C][C]-1.6394[/C][C]0.053138[/C][/ROW]
[ROW][C]17[/C][C]-0.242257[/C][C]-1.8921[/C][C]0.031614[/C][/ROW]
[ROW][C]18[/C][C]-0.421634[/C][C]-3.2931[/C][C]0.000826[/C][/ROW]
[ROW][C]19[/C][C]-0.208761[/C][C]-1.6305[/C][C]0.054078[/C][/ROW]
[ROW][C]20[/C][C]-0.104414[/C][C]-0.8155[/C][C]0.208979[/C][/ROW]
[ROW][C]21[/C][C]-0.044258[/C][C]-0.3457[/C][C]0.365391[/C][/ROW]
[ROW][C]22[/C][C]0.030117[/C][C]0.2352[/C][C]0.407412[/C][/ROW]
[ROW][C]23[/C][C]0.158802[/C][C]1.2403[/C][C]0.10981[/C][/ROW]
[ROW][C]24[/C][C]0.548806[/C][C]4.2863[/C][C]3.3e-05[/C][/ROW]
[ROW][C]25[/C][C]0.203951[/C][C]1.5929[/C][C]0.058175[/C][/ROW]
[ROW][C]26[/C][C]0.079002[/C][C]0.617[/C][C]0.269757[/C][/ROW]
[ROW][C]27[/C][C]-0.007465[/C][C]-0.0583[/C][C]0.47685[/C][/ROW]
[ROW][C]28[/C][C]-0.141752[/C][C]-1.1071[/C][C]0.136295[/C][/ROW]
[ROW][C]29[/C][C]-0.138529[/C][C]-1.0819[/C][C]0.141768[/C][/ROW]
[ROW][C]30[/C][C]-0.279893[/C][C]-2.186[/C][C]0.01633[/C][/ROW]
[ROW][C]31[/C][C]-0.137267[/C][C]-1.0721[/C][C]0.143952[/C][/ROW]
[ROW][C]32[/C][C]-0.062645[/C][C]-0.4893[/C][C]0.313202[/C][/ROW]
[ROW][C]33[/C][C]-0.03704[/C][C]-0.2893[/C][C]0.38667[/C][/ROW]
[ROW][C]34[/C][C]0.02089[/C][C]0.1632[/C][C]0.435467[/C][/ROW]
[ROW][C]35[/C][C]0.093151[/C][C]0.7275[/C][C]0.234843[/C][/ROW]
[ROW][C]36[/C][C]0.331668[/C][C]2.5904[/C][C]0.005987[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61980&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61980&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.3214532.51060.007359
20.1356371.05940.146807
3-0.044166-0.34490.365661
4-0.213575-1.66810.050213
5-0.274227-2.14180.018107
6-0.521246-4.07116.8e-05
7-0.27636-2.15840.017419
8-0.147762-1.15410.126489
9-0.055135-0.43060.334131
100.0625740.48870.313397
110.2284091.78390.039704
120.7527465.87910
130.2313761.80710.037839
140.0738210.57660.28318
15-0.075086-0.58640.279871
16-0.209904-1.63940.053138
17-0.242257-1.89210.031614
18-0.421634-3.29310.000826
19-0.208761-1.63050.054078
20-0.104414-0.81550.208979
21-0.044258-0.34570.365391
220.0301170.23520.407412
230.1588021.24030.10981
240.5488064.28633.3e-05
250.2039511.59290.058175
260.0790020.6170.269757
27-0.007465-0.05830.47685
28-0.141752-1.10710.136295
29-0.138529-1.08190.141768
30-0.279893-2.1860.01633
31-0.137267-1.07210.143952
32-0.062645-0.48930.313202
33-0.03704-0.28930.38667
340.020890.16320.435467
350.0931510.72750.234843
360.3316682.59040.005987







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3214532.51060.007359
20.0360270.28140.389684
3-0.109187-0.85280.19856
4-0.196754-1.53670.06477
5-0.162736-1.2710.104276
6-0.437902-3.42010.000561
7-0.064344-0.50250.308546
8-0.095953-0.74940.228243
9-0.153962-1.20250.116912
10-0.153559-1.19930.117518
110.0327570.25580.399467
120.6461175.04632e-06
13-0.334561-2.6130.005643
14-0.188021-1.46850.073554
15-0.039198-0.30610.380268
160.042390.33110.370861
17-0.085878-0.67070.252463
180.095930.74920.228297
19-0.046354-0.3620.359288
20-0.226145-1.76620.041179
21-0.038712-0.30240.381706
220.0398220.3110.378423
23-0.116681-0.91130.18286
24-0.160176-1.2510.107853
250.133871.04560.149945
26-0.035961-0.28090.389883
270.0004810.00380.498507
28-0.012889-0.10070.460072
290.1056340.8250.206286
30-0.067716-0.52890.299405
31-0.017878-0.13960.444707
320.0579590.45270.326195
330.0047460.03710.485277
340.0125760.09820.46104
35-0.013833-0.1080.457159
36-0.1513-1.18170.120958

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.321453 & 2.5106 & 0.007359 \tabularnewline
2 & 0.036027 & 0.2814 & 0.389684 \tabularnewline
3 & -0.109187 & -0.8528 & 0.19856 \tabularnewline
4 & -0.196754 & -1.5367 & 0.06477 \tabularnewline
5 & -0.162736 & -1.271 & 0.104276 \tabularnewline
6 & -0.437902 & -3.4201 & 0.000561 \tabularnewline
7 & -0.064344 & -0.5025 & 0.308546 \tabularnewline
8 & -0.095953 & -0.7494 & 0.228243 \tabularnewline
9 & -0.153962 & -1.2025 & 0.116912 \tabularnewline
10 & -0.153559 & -1.1993 & 0.117518 \tabularnewline
11 & 0.032757 & 0.2558 & 0.399467 \tabularnewline
12 & 0.646117 & 5.0463 & 2e-06 \tabularnewline
13 & -0.334561 & -2.613 & 0.005643 \tabularnewline
14 & -0.188021 & -1.4685 & 0.073554 \tabularnewline
15 & -0.039198 & -0.3061 & 0.380268 \tabularnewline
16 & 0.04239 & 0.3311 & 0.370861 \tabularnewline
17 & -0.085878 & -0.6707 & 0.252463 \tabularnewline
18 & 0.09593 & 0.7492 & 0.228297 \tabularnewline
19 & -0.046354 & -0.362 & 0.359288 \tabularnewline
20 & -0.226145 & -1.7662 & 0.041179 \tabularnewline
21 & -0.038712 & -0.3024 & 0.381706 \tabularnewline
22 & 0.039822 & 0.311 & 0.378423 \tabularnewline
23 & -0.116681 & -0.9113 & 0.18286 \tabularnewline
24 & -0.160176 & -1.251 & 0.107853 \tabularnewline
25 & 0.13387 & 1.0456 & 0.149945 \tabularnewline
26 & -0.035961 & -0.2809 & 0.389883 \tabularnewline
27 & 0.000481 & 0.0038 & 0.498507 \tabularnewline
28 & -0.012889 & -0.1007 & 0.460072 \tabularnewline
29 & 0.105634 & 0.825 & 0.206286 \tabularnewline
30 & -0.067716 & -0.5289 & 0.299405 \tabularnewline
31 & -0.017878 & -0.1396 & 0.444707 \tabularnewline
32 & 0.057959 & 0.4527 & 0.326195 \tabularnewline
33 & 0.004746 & 0.0371 & 0.485277 \tabularnewline
34 & 0.012576 & 0.0982 & 0.46104 \tabularnewline
35 & -0.013833 & -0.108 & 0.457159 \tabularnewline
36 & -0.1513 & -1.1817 & 0.120958 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61980&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.321453[/C][C]2.5106[/C][C]0.007359[/C][/ROW]
[ROW][C]2[/C][C]0.036027[/C][C]0.2814[/C][C]0.389684[/C][/ROW]
[ROW][C]3[/C][C]-0.109187[/C][C]-0.8528[/C][C]0.19856[/C][/ROW]
[ROW][C]4[/C][C]-0.196754[/C][C]-1.5367[/C][C]0.06477[/C][/ROW]
[ROW][C]5[/C][C]-0.162736[/C][C]-1.271[/C][C]0.104276[/C][/ROW]
[ROW][C]6[/C][C]-0.437902[/C][C]-3.4201[/C][C]0.000561[/C][/ROW]
[ROW][C]7[/C][C]-0.064344[/C][C]-0.5025[/C][C]0.308546[/C][/ROW]
[ROW][C]8[/C][C]-0.095953[/C][C]-0.7494[/C][C]0.228243[/C][/ROW]
[ROW][C]9[/C][C]-0.153962[/C][C]-1.2025[/C][C]0.116912[/C][/ROW]
[ROW][C]10[/C][C]-0.153559[/C][C]-1.1993[/C][C]0.117518[/C][/ROW]
[ROW][C]11[/C][C]0.032757[/C][C]0.2558[/C][C]0.399467[/C][/ROW]
[ROW][C]12[/C][C]0.646117[/C][C]5.0463[/C][C]2e-06[/C][/ROW]
[ROW][C]13[/C][C]-0.334561[/C][C]-2.613[/C][C]0.005643[/C][/ROW]
[ROW][C]14[/C][C]-0.188021[/C][C]-1.4685[/C][C]0.073554[/C][/ROW]
[ROW][C]15[/C][C]-0.039198[/C][C]-0.3061[/C][C]0.380268[/C][/ROW]
[ROW][C]16[/C][C]0.04239[/C][C]0.3311[/C][C]0.370861[/C][/ROW]
[ROW][C]17[/C][C]-0.085878[/C][C]-0.6707[/C][C]0.252463[/C][/ROW]
[ROW][C]18[/C][C]0.09593[/C][C]0.7492[/C][C]0.228297[/C][/ROW]
[ROW][C]19[/C][C]-0.046354[/C][C]-0.362[/C][C]0.359288[/C][/ROW]
[ROW][C]20[/C][C]-0.226145[/C][C]-1.7662[/C][C]0.041179[/C][/ROW]
[ROW][C]21[/C][C]-0.038712[/C][C]-0.3024[/C][C]0.381706[/C][/ROW]
[ROW][C]22[/C][C]0.039822[/C][C]0.311[/C][C]0.378423[/C][/ROW]
[ROW][C]23[/C][C]-0.116681[/C][C]-0.9113[/C][C]0.18286[/C][/ROW]
[ROW][C]24[/C][C]-0.160176[/C][C]-1.251[/C][C]0.107853[/C][/ROW]
[ROW][C]25[/C][C]0.13387[/C][C]1.0456[/C][C]0.149945[/C][/ROW]
[ROW][C]26[/C][C]-0.035961[/C][C]-0.2809[/C][C]0.389883[/C][/ROW]
[ROW][C]27[/C][C]0.000481[/C][C]0.0038[/C][C]0.498507[/C][/ROW]
[ROW][C]28[/C][C]-0.012889[/C][C]-0.1007[/C][C]0.460072[/C][/ROW]
[ROW][C]29[/C][C]0.105634[/C][C]0.825[/C][C]0.206286[/C][/ROW]
[ROW][C]30[/C][C]-0.067716[/C][C]-0.5289[/C][C]0.299405[/C][/ROW]
[ROW][C]31[/C][C]-0.017878[/C][C]-0.1396[/C][C]0.444707[/C][/ROW]
[ROW][C]32[/C][C]0.057959[/C][C]0.4527[/C][C]0.326195[/C][/ROW]
[ROW][C]33[/C][C]0.004746[/C][C]0.0371[/C][C]0.485277[/C][/ROW]
[ROW][C]34[/C][C]0.012576[/C][C]0.0982[/C][C]0.46104[/C][/ROW]
[ROW][C]35[/C][C]-0.013833[/C][C]-0.108[/C][C]0.457159[/C][/ROW]
[ROW][C]36[/C][C]-0.1513[/C][C]-1.1817[/C][C]0.120958[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61980&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61980&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.3214532.51060.007359
20.0360270.28140.389684
3-0.109187-0.85280.19856
4-0.196754-1.53670.06477
5-0.162736-1.2710.104276
6-0.437902-3.42010.000561
7-0.064344-0.50250.308546
8-0.095953-0.74940.228243
9-0.153962-1.20250.116912
10-0.153559-1.19930.117518
110.0327570.25580.399467
120.6461175.04632e-06
13-0.334561-2.6130.005643
14-0.188021-1.46850.073554
15-0.039198-0.30610.380268
160.042390.33110.370861
17-0.085878-0.67070.252463
180.095930.74920.228297
19-0.046354-0.3620.359288
20-0.226145-1.76620.041179
21-0.038712-0.30240.381706
220.0398220.3110.378423
23-0.116681-0.91130.18286
24-0.160176-1.2510.107853
250.133871.04560.149945
26-0.035961-0.28090.389883
270.0004810.00380.498507
28-0.012889-0.10070.460072
290.1056340.8250.206286
30-0.067716-0.52890.299405
31-0.017878-0.13960.444707
320.0579590.45270.326195
330.0047460.03710.485277
340.0125760.09820.46104
35-0.013833-0.1080.457159
36-0.1513-1.18170.120958



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