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 12:30:54 -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/t1259695923wv4q9p7qj9y6t40.htm/, Retrieved Fri, 19 Apr 2024 08:43:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=62208, Retrieved Fri, 19 Apr 2024 08:43:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact154
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,4] [2009-12-01 19:30:54] [2210215221105fab636491031ce54076] [Current]
Feedback Forum

Post a new message
Dataseries X:
564
581
597
587
536
524
537
536
533
528
516
502
506
518
534
528
478
469
490
493
508
517
514
510
527
542
565
555
499
511
526
532
549
561
557
566
588
620
626
620
573
573
574
580
590
593
597
595
612
628
629
621
569
567
573
584
589
591
595
594
611




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 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 & 0 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62208&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]0 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=62208&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62208&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 time0 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8851656.91340
20.7278015.68430
30.620714.84794e-06
40.5782744.51651.5e-05
50.5763434.50141.5e-05
60.5586724.36342.5e-05
70.5012913.91520.000115
80.4299843.35830.000678
90.4023483.14240.001293
100.4039513.1550.001246
110.4472713.49330.000447
120.4426023.45680.000501
130.2983842.33050.011553
140.1345661.0510.148703
150.0186840.14590.442231
16-0.038542-0.3010.38221
17-0.056971-0.4450.328961
18-0.081265-0.63470.263998
19-0.134196-1.04810.149363
20-0.197553-1.54290.064009
21-0.217648-1.69990.047123
22-0.213426-1.66690.05033
23-0.178906-1.39730.083693
24-0.182653-1.42660.079402
25-0.274975-2.14760.017863
26-0.37059-2.89440.002632
27-0.41718-3.25830.000917
28-0.425996-3.32710.000745
29-0.406114-3.17190.001186
30-0.387367-3.02540.001816
31-0.386942-3.02210.001833
32-0.387066-3.02310.001828
33-0.345498-2.69840.004499
34-0.300677-2.34840.011057
35-0.249625-1.94960.02791
36-0.218703-1.70810.046349

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.885165 & 6.9134 & 0 \tabularnewline
2 & 0.727801 & 5.6843 & 0 \tabularnewline
3 & 0.62071 & 4.8479 & 4e-06 \tabularnewline
4 & 0.578274 & 4.5165 & 1.5e-05 \tabularnewline
5 & 0.576343 & 4.5014 & 1.5e-05 \tabularnewline
6 & 0.558672 & 4.3634 & 2.5e-05 \tabularnewline
7 & 0.501291 & 3.9152 & 0.000115 \tabularnewline
8 & 0.429984 & 3.3583 & 0.000678 \tabularnewline
9 & 0.402348 & 3.1424 & 0.001293 \tabularnewline
10 & 0.403951 & 3.155 & 0.001246 \tabularnewline
11 & 0.447271 & 3.4933 & 0.000447 \tabularnewline
12 & 0.442602 & 3.4568 & 0.000501 \tabularnewline
13 & 0.298384 & 2.3305 & 0.011553 \tabularnewline
14 & 0.134566 & 1.051 & 0.148703 \tabularnewline
15 & 0.018684 & 0.1459 & 0.442231 \tabularnewline
16 & -0.038542 & -0.301 & 0.38221 \tabularnewline
17 & -0.056971 & -0.445 & 0.328961 \tabularnewline
18 & -0.081265 & -0.6347 & 0.263998 \tabularnewline
19 & -0.134196 & -1.0481 & 0.149363 \tabularnewline
20 & -0.197553 & -1.5429 & 0.064009 \tabularnewline
21 & -0.217648 & -1.6999 & 0.047123 \tabularnewline
22 & -0.213426 & -1.6669 & 0.05033 \tabularnewline
23 & -0.178906 & -1.3973 & 0.083693 \tabularnewline
24 & -0.182653 & -1.4266 & 0.079402 \tabularnewline
25 & -0.274975 & -2.1476 & 0.017863 \tabularnewline
26 & -0.37059 & -2.8944 & 0.002632 \tabularnewline
27 & -0.41718 & -3.2583 & 0.000917 \tabularnewline
28 & -0.425996 & -3.3271 & 0.000745 \tabularnewline
29 & -0.406114 & -3.1719 & 0.001186 \tabularnewline
30 & -0.387367 & -3.0254 & 0.001816 \tabularnewline
31 & -0.386942 & -3.0221 & 0.001833 \tabularnewline
32 & -0.387066 & -3.0231 & 0.001828 \tabularnewline
33 & -0.345498 & -2.6984 & 0.004499 \tabularnewline
34 & -0.300677 & -2.3484 & 0.011057 \tabularnewline
35 & -0.249625 & -1.9496 & 0.02791 \tabularnewline
36 & -0.218703 & -1.7081 & 0.046349 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62208&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.885165[/C][C]6.9134[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.727801[/C][C]5.6843[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.62071[/C][C]4.8479[/C][C]4e-06[/C][/ROW]
[ROW][C]4[/C][C]0.578274[/C][C]4.5165[/C][C]1.5e-05[/C][/ROW]
[ROW][C]5[/C][C]0.576343[/C][C]4.5014[/C][C]1.5e-05[/C][/ROW]
[ROW][C]6[/C][C]0.558672[/C][C]4.3634[/C][C]2.5e-05[/C][/ROW]
[ROW][C]7[/C][C]0.501291[/C][C]3.9152[/C][C]0.000115[/C][/ROW]
[ROW][C]8[/C][C]0.429984[/C][C]3.3583[/C][C]0.000678[/C][/ROW]
[ROW][C]9[/C][C]0.402348[/C][C]3.1424[/C][C]0.001293[/C][/ROW]
[ROW][C]10[/C][C]0.403951[/C][C]3.155[/C][C]0.001246[/C][/ROW]
[ROW][C]11[/C][C]0.447271[/C][C]3.4933[/C][C]0.000447[/C][/ROW]
[ROW][C]12[/C][C]0.442602[/C][C]3.4568[/C][C]0.000501[/C][/ROW]
[ROW][C]13[/C][C]0.298384[/C][C]2.3305[/C][C]0.011553[/C][/ROW]
[ROW][C]14[/C][C]0.134566[/C][C]1.051[/C][C]0.148703[/C][/ROW]
[ROW][C]15[/C][C]0.018684[/C][C]0.1459[/C][C]0.442231[/C][/ROW]
[ROW][C]16[/C][C]-0.038542[/C][C]-0.301[/C][C]0.38221[/C][/ROW]
[ROW][C]17[/C][C]-0.056971[/C][C]-0.445[/C][C]0.328961[/C][/ROW]
[ROW][C]18[/C][C]-0.081265[/C][C]-0.6347[/C][C]0.263998[/C][/ROW]
[ROW][C]19[/C][C]-0.134196[/C][C]-1.0481[/C][C]0.149363[/C][/ROW]
[ROW][C]20[/C][C]-0.197553[/C][C]-1.5429[/C][C]0.064009[/C][/ROW]
[ROW][C]21[/C][C]-0.217648[/C][C]-1.6999[/C][C]0.047123[/C][/ROW]
[ROW][C]22[/C][C]-0.213426[/C][C]-1.6669[/C][C]0.05033[/C][/ROW]
[ROW][C]23[/C][C]-0.178906[/C][C]-1.3973[/C][C]0.083693[/C][/ROW]
[ROW][C]24[/C][C]-0.182653[/C][C]-1.4266[/C][C]0.079402[/C][/ROW]
[ROW][C]25[/C][C]-0.274975[/C][C]-2.1476[/C][C]0.017863[/C][/ROW]
[ROW][C]26[/C][C]-0.37059[/C][C]-2.8944[/C][C]0.002632[/C][/ROW]
[ROW][C]27[/C][C]-0.41718[/C][C]-3.2583[/C][C]0.000917[/C][/ROW]
[ROW][C]28[/C][C]-0.425996[/C][C]-3.3271[/C][C]0.000745[/C][/ROW]
[ROW][C]29[/C][C]-0.406114[/C][C]-3.1719[/C][C]0.001186[/C][/ROW]
[ROW][C]30[/C][C]-0.387367[/C][C]-3.0254[/C][C]0.001816[/C][/ROW]
[ROW][C]31[/C][C]-0.386942[/C][C]-3.0221[/C][C]0.001833[/C][/ROW]
[ROW][C]32[/C][C]-0.387066[/C][C]-3.0231[/C][C]0.001828[/C][/ROW]
[ROW][C]33[/C][C]-0.345498[/C][C]-2.6984[/C][C]0.004499[/C][/ROW]
[ROW][C]34[/C][C]-0.300677[/C][C]-2.3484[/C][C]0.011057[/C][/ROW]
[ROW][C]35[/C][C]-0.249625[/C][C]-1.9496[/C][C]0.02791[/C][/ROW]
[ROW][C]36[/C][C]-0.218703[/C][C]-1.7081[/C][C]0.046349[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62208&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62208&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.8851656.91340
20.7278015.68430
30.620714.84794e-06
40.5782744.51651.5e-05
50.5763434.50141.5e-05
60.5586724.36342.5e-05
70.5012913.91520.000115
80.4299843.35830.000678
90.4023483.14240.001293
100.4039513.1550.001246
110.4472713.49330.000447
120.4426023.45680.000501
130.2983842.33050.011553
140.1345661.0510.148703
150.0186840.14590.442231
16-0.038542-0.3010.38221
17-0.056971-0.4450.328961
18-0.081265-0.63470.263998
19-0.134196-1.04810.149363
20-0.197553-1.54290.064009
21-0.217648-1.69990.047123
22-0.213426-1.66690.05033
23-0.178906-1.39730.083693
24-0.182653-1.42660.079402
25-0.274975-2.14760.017863
26-0.37059-2.89440.002632
27-0.41718-3.25830.000917
28-0.425996-3.32710.000745
29-0.406114-3.17190.001186
30-0.387367-3.02540.001816
31-0.386942-3.02210.001833
32-0.387066-3.02310.001828
33-0.345498-2.69840.004499
34-0.300677-2.34840.011057
35-0.249625-1.94960.02791
36-0.218703-1.70810.046349







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8851656.91340
2-0.257366-2.01010.024425
30.1904361.48740.071037
40.154091.20350.11672
50.1214840.94880.173228
6-0.05067-0.39570.346837
7-0.074447-0.58140.281541
8-0.007519-0.05870.476682
90.1574461.22970.111767
10-0.007798-0.06090.475817
110.2309611.80390.038095
12-0.232506-1.81590.037148
13-0.537314-4.19664.5e-05
140.0247310.19320.423739
15-0.105876-0.82690.205754
16-0.128319-1.00220.160102
170.020840.16280.435621
18-0.032494-0.25380.400257
190.0403090.31480.376985
20-0.085918-0.6710.252364
210.0915250.71480.23872
220.0145580.11370.454923
23-0.024384-0.19040.424797
240.045040.35180.36311
25-0.030614-0.23910.405914
260.0150490.11750.453411
270.0609290.47590.317932
28-0.152273-1.18930.119468
290.0687260.53680.296691
30-0.04972-0.38830.349563
310.0355840.27790.391007
320.0377270.29470.384627
330.0669830.52320.301381
34-0.076655-0.59870.275796
35-0.026467-0.20670.41846
360.1015340.7930.215424

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.885165 & 6.9134 & 0 \tabularnewline
2 & -0.257366 & -2.0101 & 0.024425 \tabularnewline
3 & 0.190436 & 1.4874 & 0.071037 \tabularnewline
4 & 0.15409 & 1.2035 & 0.11672 \tabularnewline
5 & 0.121484 & 0.9488 & 0.173228 \tabularnewline
6 & -0.05067 & -0.3957 & 0.346837 \tabularnewline
7 & -0.074447 & -0.5814 & 0.281541 \tabularnewline
8 & -0.007519 & -0.0587 & 0.476682 \tabularnewline
9 & 0.157446 & 1.2297 & 0.111767 \tabularnewline
10 & -0.007798 & -0.0609 & 0.475817 \tabularnewline
11 & 0.230961 & 1.8039 & 0.038095 \tabularnewline
12 & -0.232506 & -1.8159 & 0.037148 \tabularnewline
13 & -0.537314 & -4.1966 & 4.5e-05 \tabularnewline
14 & 0.024731 & 0.1932 & 0.423739 \tabularnewline
15 & -0.105876 & -0.8269 & 0.205754 \tabularnewline
16 & -0.128319 & -1.0022 & 0.160102 \tabularnewline
17 & 0.02084 & 0.1628 & 0.435621 \tabularnewline
18 & -0.032494 & -0.2538 & 0.400257 \tabularnewline
19 & 0.040309 & 0.3148 & 0.376985 \tabularnewline
20 & -0.085918 & -0.671 & 0.252364 \tabularnewline
21 & 0.091525 & 0.7148 & 0.23872 \tabularnewline
22 & 0.014558 & 0.1137 & 0.454923 \tabularnewline
23 & -0.024384 & -0.1904 & 0.424797 \tabularnewline
24 & 0.04504 & 0.3518 & 0.36311 \tabularnewline
25 & -0.030614 & -0.2391 & 0.405914 \tabularnewline
26 & 0.015049 & 0.1175 & 0.453411 \tabularnewline
27 & 0.060929 & 0.4759 & 0.317932 \tabularnewline
28 & -0.152273 & -1.1893 & 0.119468 \tabularnewline
29 & 0.068726 & 0.5368 & 0.296691 \tabularnewline
30 & -0.04972 & -0.3883 & 0.349563 \tabularnewline
31 & 0.035584 & 0.2779 & 0.391007 \tabularnewline
32 & 0.037727 & 0.2947 & 0.384627 \tabularnewline
33 & 0.066983 & 0.5232 & 0.301381 \tabularnewline
34 & -0.076655 & -0.5987 & 0.275796 \tabularnewline
35 & -0.026467 & -0.2067 & 0.41846 \tabularnewline
36 & 0.101534 & 0.793 & 0.215424 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62208&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.885165[/C][C]6.9134[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.257366[/C][C]-2.0101[/C][C]0.024425[/C][/ROW]
[ROW][C]3[/C][C]0.190436[/C][C]1.4874[/C][C]0.071037[/C][/ROW]
[ROW][C]4[/C][C]0.15409[/C][C]1.2035[/C][C]0.11672[/C][/ROW]
[ROW][C]5[/C][C]0.121484[/C][C]0.9488[/C][C]0.173228[/C][/ROW]
[ROW][C]6[/C][C]-0.05067[/C][C]-0.3957[/C][C]0.346837[/C][/ROW]
[ROW][C]7[/C][C]-0.074447[/C][C]-0.5814[/C][C]0.281541[/C][/ROW]
[ROW][C]8[/C][C]-0.007519[/C][C]-0.0587[/C][C]0.476682[/C][/ROW]
[ROW][C]9[/C][C]0.157446[/C][C]1.2297[/C][C]0.111767[/C][/ROW]
[ROW][C]10[/C][C]-0.007798[/C][C]-0.0609[/C][C]0.475817[/C][/ROW]
[ROW][C]11[/C][C]0.230961[/C][C]1.8039[/C][C]0.038095[/C][/ROW]
[ROW][C]12[/C][C]-0.232506[/C][C]-1.8159[/C][C]0.037148[/C][/ROW]
[ROW][C]13[/C][C]-0.537314[/C][C]-4.1966[/C][C]4.5e-05[/C][/ROW]
[ROW][C]14[/C][C]0.024731[/C][C]0.1932[/C][C]0.423739[/C][/ROW]
[ROW][C]15[/C][C]-0.105876[/C][C]-0.8269[/C][C]0.205754[/C][/ROW]
[ROW][C]16[/C][C]-0.128319[/C][C]-1.0022[/C][C]0.160102[/C][/ROW]
[ROW][C]17[/C][C]0.02084[/C][C]0.1628[/C][C]0.435621[/C][/ROW]
[ROW][C]18[/C][C]-0.032494[/C][C]-0.2538[/C][C]0.400257[/C][/ROW]
[ROW][C]19[/C][C]0.040309[/C][C]0.3148[/C][C]0.376985[/C][/ROW]
[ROW][C]20[/C][C]-0.085918[/C][C]-0.671[/C][C]0.252364[/C][/ROW]
[ROW][C]21[/C][C]0.091525[/C][C]0.7148[/C][C]0.23872[/C][/ROW]
[ROW][C]22[/C][C]0.014558[/C][C]0.1137[/C][C]0.454923[/C][/ROW]
[ROW][C]23[/C][C]-0.024384[/C][C]-0.1904[/C][C]0.424797[/C][/ROW]
[ROW][C]24[/C][C]0.04504[/C][C]0.3518[/C][C]0.36311[/C][/ROW]
[ROW][C]25[/C][C]-0.030614[/C][C]-0.2391[/C][C]0.405914[/C][/ROW]
[ROW][C]26[/C][C]0.015049[/C][C]0.1175[/C][C]0.453411[/C][/ROW]
[ROW][C]27[/C][C]0.060929[/C][C]0.4759[/C][C]0.317932[/C][/ROW]
[ROW][C]28[/C][C]-0.152273[/C][C]-1.1893[/C][C]0.119468[/C][/ROW]
[ROW][C]29[/C][C]0.068726[/C][C]0.5368[/C][C]0.296691[/C][/ROW]
[ROW][C]30[/C][C]-0.04972[/C][C]-0.3883[/C][C]0.349563[/C][/ROW]
[ROW][C]31[/C][C]0.035584[/C][C]0.2779[/C][C]0.391007[/C][/ROW]
[ROW][C]32[/C][C]0.037727[/C][C]0.2947[/C][C]0.384627[/C][/ROW]
[ROW][C]33[/C][C]0.066983[/C][C]0.5232[/C][C]0.301381[/C][/ROW]
[ROW][C]34[/C][C]-0.076655[/C][C]-0.5987[/C][C]0.275796[/C][/ROW]
[ROW][C]35[/C][C]-0.026467[/C][C]-0.2067[/C][C]0.41846[/C][/ROW]
[ROW][C]36[/C][C]0.101534[/C][C]0.793[/C][C]0.215424[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62208&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62208&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.8851656.91340
2-0.257366-2.01010.024425
30.1904361.48740.071037
40.154091.20350.11672
50.1214840.94880.173228
6-0.05067-0.39570.346837
7-0.074447-0.58140.281541
8-0.007519-0.05870.476682
90.1574461.22970.111767
10-0.007798-0.06090.475817
110.2309611.80390.038095
12-0.232506-1.81590.037148
13-0.537314-4.19664.5e-05
140.0247310.19320.423739
15-0.105876-0.82690.205754
16-0.128319-1.00220.160102
170.020840.16280.435621
18-0.032494-0.25380.400257
190.0403090.31480.376985
20-0.085918-0.6710.252364
210.0915250.71480.23872
220.0145580.11370.454923
23-0.024384-0.19040.424797
240.045040.35180.36311
25-0.030614-0.23910.405914
260.0150490.11750.453411
270.0609290.47590.317932
28-0.152273-1.18930.119468
290.0687260.53680.296691
30-0.04972-0.38830.349563
310.0355840.27790.391007
320.0377270.29470.384627
330.0669830.52320.301381
34-0.076655-0.59870.275796
35-0.026467-0.20670.41846
360.1015340.7930.215424



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