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, 27 Nov 2009 05:57:08 -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/Nov/27/t1259326676bztyt4b2jdickno.htm/, Retrieved Mon, 29 Apr 2024 18:09:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60686, Retrieved Mon, 29 Apr 2024 18:09:12 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact120
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:19:56] [b98453cac15ba1066b407e146608df68]
-    D          [(Partial) Autocorrelation Function] [WS8] [2009-11-27 12:57:08] [40cfc51151e9382b81a5fb0c269b074d] [Current]
Feedback Forum

Post a new message
Dataseries X:
286602
283042
276687
277915
277128
277103
275037
270150
267140
264993
287259
291186
292300
288186
281477
282656
280190
280408
276836
275216
274352
271311
289802
290726
292300
278506
269826
265861
269034
264176
255198
253353
246057
235372
258556
260993
254663
250643
243422
247105
248541
245039
237080
237085
225554
226839
247934
248333
246969
245098
246263
255765
264319
268347
273046
273963
267430
271993
292710
295881
293299




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60686&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.9284596.49920
20.8483875.93870
30.7572215.30051e-06
40.6483724.53861.8e-05
50.5339443.73760.000243
60.4237362.96620.002325
70.3061672.14320.018546
80.2080421.45630.075845
90.115950.81170.210458
100.0327260.22910.40988
11-0.033952-0.23770.406567
12-0.100212-0.70150.243159
13-0.154197-1.07940.142852
14-0.196658-1.37660.087446
15-0.245845-1.72090.045788
16-0.300871-2.10610.020171
17-0.330956-2.31670.012372
18-0.373238-2.61270.005948
19-0.40357-2.8250.003411
20-0.431085-3.01760.002017
21-0.448779-3.14150.001425
22-0.457342-3.20140.001201
23-0.449958-3.14970.001392
24-0.430328-3.01230.002047
25-0.382417-2.67690.00504
26-0.345978-2.42180.009594
27-0.303967-2.12780.019206
28-0.244755-1.71330.04649
29-0.195146-1.3660.089085
30-0.150712-1.0550.148303
31-0.104082-0.72860.234866
32-0.065805-0.46060.323548
33-0.03205-0.22430.41171
340.0086760.06070.47591
350.0412250.28860.387061
360.0699140.48940.313373

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.928459 & 6.4992 & 0 \tabularnewline
2 & 0.848387 & 5.9387 & 0 \tabularnewline
3 & 0.757221 & 5.3005 & 1e-06 \tabularnewline
4 & 0.648372 & 4.5386 & 1.8e-05 \tabularnewline
5 & 0.533944 & 3.7376 & 0.000243 \tabularnewline
6 & 0.423736 & 2.9662 & 0.002325 \tabularnewline
7 & 0.306167 & 2.1432 & 0.018546 \tabularnewline
8 & 0.208042 & 1.4563 & 0.075845 \tabularnewline
9 & 0.11595 & 0.8117 & 0.210458 \tabularnewline
10 & 0.032726 & 0.2291 & 0.40988 \tabularnewline
11 & -0.033952 & -0.2377 & 0.406567 \tabularnewline
12 & -0.100212 & -0.7015 & 0.243159 \tabularnewline
13 & -0.154197 & -1.0794 & 0.142852 \tabularnewline
14 & -0.196658 & -1.3766 & 0.087446 \tabularnewline
15 & -0.245845 & -1.7209 & 0.045788 \tabularnewline
16 & -0.300871 & -2.1061 & 0.020171 \tabularnewline
17 & -0.330956 & -2.3167 & 0.012372 \tabularnewline
18 & -0.373238 & -2.6127 & 0.005948 \tabularnewline
19 & -0.40357 & -2.825 & 0.003411 \tabularnewline
20 & -0.431085 & -3.0176 & 0.002017 \tabularnewline
21 & -0.448779 & -3.1415 & 0.001425 \tabularnewline
22 & -0.457342 & -3.2014 & 0.001201 \tabularnewline
23 & -0.449958 & -3.1497 & 0.001392 \tabularnewline
24 & -0.430328 & -3.0123 & 0.002047 \tabularnewline
25 & -0.382417 & -2.6769 & 0.00504 \tabularnewline
26 & -0.345978 & -2.4218 & 0.009594 \tabularnewline
27 & -0.303967 & -2.1278 & 0.019206 \tabularnewline
28 & -0.244755 & -1.7133 & 0.04649 \tabularnewline
29 & -0.195146 & -1.366 & 0.089085 \tabularnewline
30 & -0.150712 & -1.055 & 0.148303 \tabularnewline
31 & -0.104082 & -0.7286 & 0.234866 \tabularnewline
32 & -0.065805 & -0.4606 & 0.323548 \tabularnewline
33 & -0.03205 & -0.2243 & 0.41171 \tabularnewline
34 & 0.008676 & 0.0607 & 0.47591 \tabularnewline
35 & 0.041225 & 0.2886 & 0.387061 \tabularnewline
36 & 0.069914 & 0.4894 & 0.313373 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60686&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.928459[/C][C]6.4992[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.848387[/C][C]5.9387[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.757221[/C][C]5.3005[/C][C]1e-06[/C][/ROW]
[ROW][C]4[/C][C]0.648372[/C][C]4.5386[/C][C]1.8e-05[/C][/ROW]
[ROW][C]5[/C][C]0.533944[/C][C]3.7376[/C][C]0.000243[/C][/ROW]
[ROW][C]6[/C][C]0.423736[/C][C]2.9662[/C][C]0.002325[/C][/ROW]
[ROW][C]7[/C][C]0.306167[/C][C]2.1432[/C][C]0.018546[/C][/ROW]
[ROW][C]8[/C][C]0.208042[/C][C]1.4563[/C][C]0.075845[/C][/ROW]
[ROW][C]9[/C][C]0.11595[/C][C]0.8117[/C][C]0.210458[/C][/ROW]
[ROW][C]10[/C][C]0.032726[/C][C]0.2291[/C][C]0.40988[/C][/ROW]
[ROW][C]11[/C][C]-0.033952[/C][C]-0.2377[/C][C]0.406567[/C][/ROW]
[ROW][C]12[/C][C]-0.100212[/C][C]-0.7015[/C][C]0.243159[/C][/ROW]
[ROW][C]13[/C][C]-0.154197[/C][C]-1.0794[/C][C]0.142852[/C][/ROW]
[ROW][C]14[/C][C]-0.196658[/C][C]-1.3766[/C][C]0.087446[/C][/ROW]
[ROW][C]15[/C][C]-0.245845[/C][C]-1.7209[/C][C]0.045788[/C][/ROW]
[ROW][C]16[/C][C]-0.300871[/C][C]-2.1061[/C][C]0.020171[/C][/ROW]
[ROW][C]17[/C][C]-0.330956[/C][C]-2.3167[/C][C]0.012372[/C][/ROW]
[ROW][C]18[/C][C]-0.373238[/C][C]-2.6127[/C][C]0.005948[/C][/ROW]
[ROW][C]19[/C][C]-0.40357[/C][C]-2.825[/C][C]0.003411[/C][/ROW]
[ROW][C]20[/C][C]-0.431085[/C][C]-3.0176[/C][C]0.002017[/C][/ROW]
[ROW][C]21[/C][C]-0.448779[/C][C]-3.1415[/C][C]0.001425[/C][/ROW]
[ROW][C]22[/C][C]-0.457342[/C][C]-3.2014[/C][C]0.001201[/C][/ROW]
[ROW][C]23[/C][C]-0.449958[/C][C]-3.1497[/C][C]0.001392[/C][/ROW]
[ROW][C]24[/C][C]-0.430328[/C][C]-3.0123[/C][C]0.002047[/C][/ROW]
[ROW][C]25[/C][C]-0.382417[/C][C]-2.6769[/C][C]0.00504[/C][/ROW]
[ROW][C]26[/C][C]-0.345978[/C][C]-2.4218[/C][C]0.009594[/C][/ROW]
[ROW][C]27[/C][C]-0.303967[/C][C]-2.1278[/C][C]0.019206[/C][/ROW]
[ROW][C]28[/C][C]-0.244755[/C][C]-1.7133[/C][C]0.04649[/C][/ROW]
[ROW][C]29[/C][C]-0.195146[/C][C]-1.366[/C][C]0.089085[/C][/ROW]
[ROW][C]30[/C][C]-0.150712[/C][C]-1.055[/C][C]0.148303[/C][/ROW]
[ROW][C]31[/C][C]-0.104082[/C][C]-0.7286[/C][C]0.234866[/C][/ROW]
[ROW][C]32[/C][C]-0.065805[/C][C]-0.4606[/C][C]0.323548[/C][/ROW]
[ROW][C]33[/C][C]-0.03205[/C][C]-0.2243[/C][C]0.41171[/C][/ROW]
[ROW][C]34[/C][C]0.008676[/C][C]0.0607[/C][C]0.47591[/C][/ROW]
[ROW][C]35[/C][C]0.041225[/C][C]0.2886[/C][C]0.387061[/C][/ROW]
[ROW][C]36[/C][C]0.069914[/C][C]0.4894[/C][C]0.313373[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60686&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60686&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.9284596.49920
20.8483875.93870
30.7572215.30051e-06
40.6483724.53861.8e-05
50.5339443.73760.000243
60.4237362.96620.002325
70.3061672.14320.018546
80.2080421.45630.075845
90.115950.81170.210458
100.0327260.22910.40988
11-0.033952-0.23770.406567
12-0.100212-0.70150.243159
13-0.154197-1.07940.142852
14-0.196658-1.37660.087446
15-0.245845-1.72090.045788
16-0.300871-2.10610.020171
17-0.330956-2.31670.012372
18-0.373238-2.61270.005948
19-0.40357-2.8250.003411
20-0.431085-3.01760.002017
21-0.448779-3.14150.001425
22-0.457342-3.20140.001201
23-0.449958-3.14970.001392
24-0.430328-3.01230.002047
25-0.382417-2.67690.00504
26-0.345978-2.42180.009594
27-0.303967-2.12780.019206
28-0.244755-1.71330.04649
29-0.195146-1.3660.089085
30-0.150712-1.0550.148303
31-0.104082-0.72860.234866
32-0.065805-0.46060.323548
33-0.03205-0.22430.41171
340.0086760.06070.47591
350.0412250.28860.387061
360.0699140.48940.313373







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9284596.49920
2-0.098924-0.69250.245956
3-0.121117-0.84780.20033
4-0.17543-1.2280.112654
5-0.095267-0.66690.253992
6-0.026564-0.18590.426626
7-0.119914-0.83940.202662
80.0652560.45680.324921
9-0.04593-0.32150.374596
10-0.02312-0.16180.436048
110.0125530.08790.465169
12-0.107544-0.75280.227584
130.0036860.02580.48976
14-0.030654-0.21460.415492
15-0.1257-0.87990.191604
16-0.14245-0.99710.161796
170.0931740.65220.258655
18-0.145314-1.01720.157028
190.003370.02360.490638
20-0.082561-0.57790.282981
210.0089110.06240.475259
22-0.021098-0.14770.441599
230.0024720.01730.493133
240.0573870.40170.344822
250.106570.7460.229619
26-0.146626-1.02640.154875
27-0.01521-0.10650.457823
280.0572550.40080.345161
29-0.063155-0.44210.330187
30-0.030843-0.21590.414981
31-0.018292-0.1280.449318
32-0.013452-0.09420.462682
330.0096060.06720.473331
340.0346550.24260.40467
350.0207380.14520.442587
36-0.05955-0.41680.339306

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.928459 & 6.4992 & 0 \tabularnewline
2 & -0.098924 & -0.6925 & 0.245956 \tabularnewline
3 & -0.121117 & -0.8478 & 0.20033 \tabularnewline
4 & -0.17543 & -1.228 & 0.112654 \tabularnewline
5 & -0.095267 & -0.6669 & 0.253992 \tabularnewline
6 & -0.026564 & -0.1859 & 0.426626 \tabularnewline
7 & -0.119914 & -0.8394 & 0.202662 \tabularnewline
8 & 0.065256 & 0.4568 & 0.324921 \tabularnewline
9 & -0.04593 & -0.3215 & 0.374596 \tabularnewline
10 & -0.02312 & -0.1618 & 0.436048 \tabularnewline
11 & 0.012553 & 0.0879 & 0.465169 \tabularnewline
12 & -0.107544 & -0.7528 & 0.227584 \tabularnewline
13 & 0.003686 & 0.0258 & 0.48976 \tabularnewline
14 & -0.030654 & -0.2146 & 0.415492 \tabularnewline
15 & -0.1257 & -0.8799 & 0.191604 \tabularnewline
16 & -0.14245 & -0.9971 & 0.161796 \tabularnewline
17 & 0.093174 & 0.6522 & 0.258655 \tabularnewline
18 & -0.145314 & -1.0172 & 0.157028 \tabularnewline
19 & 0.00337 & 0.0236 & 0.490638 \tabularnewline
20 & -0.082561 & -0.5779 & 0.282981 \tabularnewline
21 & 0.008911 & 0.0624 & 0.475259 \tabularnewline
22 & -0.021098 & -0.1477 & 0.441599 \tabularnewline
23 & 0.002472 & 0.0173 & 0.493133 \tabularnewline
24 & 0.057387 & 0.4017 & 0.344822 \tabularnewline
25 & 0.10657 & 0.746 & 0.229619 \tabularnewline
26 & -0.146626 & -1.0264 & 0.154875 \tabularnewline
27 & -0.01521 & -0.1065 & 0.457823 \tabularnewline
28 & 0.057255 & 0.4008 & 0.345161 \tabularnewline
29 & -0.063155 & -0.4421 & 0.330187 \tabularnewline
30 & -0.030843 & -0.2159 & 0.414981 \tabularnewline
31 & -0.018292 & -0.128 & 0.449318 \tabularnewline
32 & -0.013452 & -0.0942 & 0.462682 \tabularnewline
33 & 0.009606 & 0.0672 & 0.473331 \tabularnewline
34 & 0.034655 & 0.2426 & 0.40467 \tabularnewline
35 & 0.020738 & 0.1452 & 0.442587 \tabularnewline
36 & -0.05955 & -0.4168 & 0.339306 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60686&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.928459[/C][C]6.4992[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.098924[/C][C]-0.6925[/C][C]0.245956[/C][/ROW]
[ROW][C]3[/C][C]-0.121117[/C][C]-0.8478[/C][C]0.20033[/C][/ROW]
[ROW][C]4[/C][C]-0.17543[/C][C]-1.228[/C][C]0.112654[/C][/ROW]
[ROW][C]5[/C][C]-0.095267[/C][C]-0.6669[/C][C]0.253992[/C][/ROW]
[ROW][C]6[/C][C]-0.026564[/C][C]-0.1859[/C][C]0.426626[/C][/ROW]
[ROW][C]7[/C][C]-0.119914[/C][C]-0.8394[/C][C]0.202662[/C][/ROW]
[ROW][C]8[/C][C]0.065256[/C][C]0.4568[/C][C]0.324921[/C][/ROW]
[ROW][C]9[/C][C]-0.04593[/C][C]-0.3215[/C][C]0.374596[/C][/ROW]
[ROW][C]10[/C][C]-0.02312[/C][C]-0.1618[/C][C]0.436048[/C][/ROW]
[ROW][C]11[/C][C]0.012553[/C][C]0.0879[/C][C]0.465169[/C][/ROW]
[ROW][C]12[/C][C]-0.107544[/C][C]-0.7528[/C][C]0.227584[/C][/ROW]
[ROW][C]13[/C][C]0.003686[/C][C]0.0258[/C][C]0.48976[/C][/ROW]
[ROW][C]14[/C][C]-0.030654[/C][C]-0.2146[/C][C]0.415492[/C][/ROW]
[ROW][C]15[/C][C]-0.1257[/C][C]-0.8799[/C][C]0.191604[/C][/ROW]
[ROW][C]16[/C][C]-0.14245[/C][C]-0.9971[/C][C]0.161796[/C][/ROW]
[ROW][C]17[/C][C]0.093174[/C][C]0.6522[/C][C]0.258655[/C][/ROW]
[ROW][C]18[/C][C]-0.145314[/C][C]-1.0172[/C][C]0.157028[/C][/ROW]
[ROW][C]19[/C][C]0.00337[/C][C]0.0236[/C][C]0.490638[/C][/ROW]
[ROW][C]20[/C][C]-0.082561[/C][C]-0.5779[/C][C]0.282981[/C][/ROW]
[ROW][C]21[/C][C]0.008911[/C][C]0.0624[/C][C]0.475259[/C][/ROW]
[ROW][C]22[/C][C]-0.021098[/C][C]-0.1477[/C][C]0.441599[/C][/ROW]
[ROW][C]23[/C][C]0.002472[/C][C]0.0173[/C][C]0.493133[/C][/ROW]
[ROW][C]24[/C][C]0.057387[/C][C]0.4017[/C][C]0.344822[/C][/ROW]
[ROW][C]25[/C][C]0.10657[/C][C]0.746[/C][C]0.229619[/C][/ROW]
[ROW][C]26[/C][C]-0.146626[/C][C]-1.0264[/C][C]0.154875[/C][/ROW]
[ROW][C]27[/C][C]-0.01521[/C][C]-0.1065[/C][C]0.457823[/C][/ROW]
[ROW][C]28[/C][C]0.057255[/C][C]0.4008[/C][C]0.345161[/C][/ROW]
[ROW][C]29[/C][C]-0.063155[/C][C]-0.4421[/C][C]0.330187[/C][/ROW]
[ROW][C]30[/C][C]-0.030843[/C][C]-0.2159[/C][C]0.414981[/C][/ROW]
[ROW][C]31[/C][C]-0.018292[/C][C]-0.128[/C][C]0.449318[/C][/ROW]
[ROW][C]32[/C][C]-0.013452[/C][C]-0.0942[/C][C]0.462682[/C][/ROW]
[ROW][C]33[/C][C]0.009606[/C][C]0.0672[/C][C]0.473331[/C][/ROW]
[ROW][C]34[/C][C]0.034655[/C][C]0.2426[/C][C]0.40467[/C][/ROW]
[ROW][C]35[/C][C]0.020738[/C][C]0.1452[/C][C]0.442587[/C][/ROW]
[ROW][C]36[/C][C]-0.05955[/C][C]-0.4168[/C][C]0.339306[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60686&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60686&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.9284596.49920
2-0.098924-0.69250.245956
3-0.121117-0.84780.20033
4-0.17543-1.2280.112654
5-0.095267-0.66690.253992
6-0.026564-0.18590.426626
7-0.119914-0.83940.202662
80.0652560.45680.324921
9-0.04593-0.32150.374596
10-0.02312-0.16180.436048
110.0125530.08790.465169
12-0.107544-0.75280.227584
130.0036860.02580.48976
14-0.030654-0.21460.415492
15-0.1257-0.87990.191604
16-0.14245-0.99710.161796
170.0931740.65220.258655
18-0.145314-1.01720.157028
190.003370.02360.490638
20-0.082561-0.57790.282981
210.0089110.06240.475259
22-0.021098-0.14770.441599
230.0024720.01730.493133
240.0573870.40170.344822
250.106570.7460.229619
26-0.146626-1.02640.154875
27-0.01521-0.10650.457823
280.0572550.40080.345161
29-0.063155-0.44210.330187
30-0.030843-0.21590.414981
31-0.018292-0.1280.449318
32-0.013452-0.09420.462682
330.0096060.06720.473331
340.0346550.24260.40467
350.0207380.14520.442587
36-0.05955-0.41680.339306



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