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 computationMon, 30 Nov 2009 11:47:20 -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/30/t1259606902gdhe8vknc0uapha.htm/, Retrieved Wed, 01 May 2024 14:49:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61854, Retrieved Wed, 01 May 2024 14:49:34 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact109
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [Autocorrelatie fu...] [2009-11-28 10:01:54] [1d635fe1113b56bab3f378c464a289bc]
-   P     [(Partial) Autocorrelation Function] [verbetering 3] [2009-11-30 18:47:20] [37de18e38c1490dd77c2b362ed87f3bb] [Current]
Feedback Forum

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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61854&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.9083886.29350
20.8096235.60920
30.7071544.89936e-06
40.5939144.11487.6e-05
50.4701083.2570.001035
60.3640112.52190.007521
70.2661051.84360.035708
80.1813481.25640.107523
90.0966480.66960.253161
100.0234840.16270.435718
11-0.041148-0.28510.388404
12-0.113498-0.78630.217768
13-0.185492-1.28510.102458
14-0.261458-1.81140.038167
15-0.30784-2.13280.019042
16-0.362694-2.51280.007695
17-0.405188-2.80720.003601
18-0.456508-3.16280.001355
19-0.490297-3.39690.000689
20-0.524434-3.63340.00034
21-0.536629-3.71790.000263
22-0.520298-3.60470.000371
23-0.468917-3.24880.00106
24-0.439742-3.04660.001877
25-0.393985-2.72960.004419
26-0.316724-2.19430.016542
27-0.256322-1.77590.041048
28-0.2041-1.4140.081901
29-0.15125-1.04790.149968
30-0.098017-0.67910.250174
31-0.05328-0.36910.356824
320.0031370.02170.491375
330.0516240.35770.361083
340.0975160.67560.251264
350.1078370.74710.229319
360.1164740.8070.211837

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.908388 & 6.2935 & 0 \tabularnewline
2 & 0.809623 & 5.6092 & 0 \tabularnewline
3 & 0.707154 & 4.8993 & 6e-06 \tabularnewline
4 & 0.593914 & 4.1148 & 7.6e-05 \tabularnewline
5 & 0.470108 & 3.257 & 0.001035 \tabularnewline
6 & 0.364011 & 2.5219 & 0.007521 \tabularnewline
7 & 0.266105 & 1.8436 & 0.035708 \tabularnewline
8 & 0.181348 & 1.2564 & 0.107523 \tabularnewline
9 & 0.096648 & 0.6696 & 0.253161 \tabularnewline
10 & 0.023484 & 0.1627 & 0.435718 \tabularnewline
11 & -0.041148 & -0.2851 & 0.388404 \tabularnewline
12 & -0.113498 & -0.7863 & 0.217768 \tabularnewline
13 & -0.185492 & -1.2851 & 0.102458 \tabularnewline
14 & -0.261458 & -1.8114 & 0.038167 \tabularnewline
15 & -0.30784 & -2.1328 & 0.019042 \tabularnewline
16 & -0.362694 & -2.5128 & 0.007695 \tabularnewline
17 & -0.405188 & -2.8072 & 0.003601 \tabularnewline
18 & -0.456508 & -3.1628 & 0.001355 \tabularnewline
19 & -0.490297 & -3.3969 & 0.000689 \tabularnewline
20 & -0.524434 & -3.6334 & 0.00034 \tabularnewline
21 & -0.536629 & -3.7179 & 0.000263 \tabularnewline
22 & -0.520298 & -3.6047 & 0.000371 \tabularnewline
23 & -0.468917 & -3.2488 & 0.00106 \tabularnewline
24 & -0.439742 & -3.0466 & 0.001877 \tabularnewline
25 & -0.393985 & -2.7296 & 0.004419 \tabularnewline
26 & -0.316724 & -2.1943 & 0.016542 \tabularnewline
27 & -0.256322 & -1.7759 & 0.041048 \tabularnewline
28 & -0.2041 & -1.414 & 0.081901 \tabularnewline
29 & -0.15125 & -1.0479 & 0.149968 \tabularnewline
30 & -0.098017 & -0.6791 & 0.250174 \tabularnewline
31 & -0.05328 & -0.3691 & 0.356824 \tabularnewline
32 & 0.003137 & 0.0217 & 0.491375 \tabularnewline
33 & 0.051624 & 0.3577 & 0.361083 \tabularnewline
34 & 0.097516 & 0.6756 & 0.251264 \tabularnewline
35 & 0.107837 & 0.7471 & 0.229319 \tabularnewline
36 & 0.116474 & 0.807 & 0.211837 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61854&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.908388[/C][C]6.2935[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.809623[/C][C]5.6092[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.707154[/C][C]4.8993[/C][C]6e-06[/C][/ROW]
[ROW][C]4[/C][C]0.593914[/C][C]4.1148[/C][C]7.6e-05[/C][/ROW]
[ROW][C]5[/C][C]0.470108[/C][C]3.257[/C][C]0.001035[/C][/ROW]
[ROW][C]6[/C][C]0.364011[/C][C]2.5219[/C][C]0.007521[/C][/ROW]
[ROW][C]7[/C][C]0.266105[/C][C]1.8436[/C][C]0.035708[/C][/ROW]
[ROW][C]8[/C][C]0.181348[/C][C]1.2564[/C][C]0.107523[/C][/ROW]
[ROW][C]9[/C][C]0.096648[/C][C]0.6696[/C][C]0.253161[/C][/ROW]
[ROW][C]10[/C][C]0.023484[/C][C]0.1627[/C][C]0.435718[/C][/ROW]
[ROW][C]11[/C][C]-0.041148[/C][C]-0.2851[/C][C]0.388404[/C][/ROW]
[ROW][C]12[/C][C]-0.113498[/C][C]-0.7863[/C][C]0.217768[/C][/ROW]
[ROW][C]13[/C][C]-0.185492[/C][C]-1.2851[/C][C]0.102458[/C][/ROW]
[ROW][C]14[/C][C]-0.261458[/C][C]-1.8114[/C][C]0.038167[/C][/ROW]
[ROW][C]15[/C][C]-0.30784[/C][C]-2.1328[/C][C]0.019042[/C][/ROW]
[ROW][C]16[/C][C]-0.362694[/C][C]-2.5128[/C][C]0.007695[/C][/ROW]
[ROW][C]17[/C][C]-0.405188[/C][C]-2.8072[/C][C]0.003601[/C][/ROW]
[ROW][C]18[/C][C]-0.456508[/C][C]-3.1628[/C][C]0.001355[/C][/ROW]
[ROW][C]19[/C][C]-0.490297[/C][C]-3.3969[/C][C]0.000689[/C][/ROW]
[ROW][C]20[/C][C]-0.524434[/C][C]-3.6334[/C][C]0.00034[/C][/ROW]
[ROW][C]21[/C][C]-0.536629[/C][C]-3.7179[/C][C]0.000263[/C][/ROW]
[ROW][C]22[/C][C]-0.520298[/C][C]-3.6047[/C][C]0.000371[/C][/ROW]
[ROW][C]23[/C][C]-0.468917[/C][C]-3.2488[/C][C]0.00106[/C][/ROW]
[ROW][C]24[/C][C]-0.439742[/C][C]-3.0466[/C][C]0.001877[/C][/ROW]
[ROW][C]25[/C][C]-0.393985[/C][C]-2.7296[/C][C]0.004419[/C][/ROW]
[ROW][C]26[/C][C]-0.316724[/C][C]-2.1943[/C][C]0.016542[/C][/ROW]
[ROW][C]27[/C][C]-0.256322[/C][C]-1.7759[/C][C]0.041048[/C][/ROW]
[ROW][C]28[/C][C]-0.2041[/C][C]-1.414[/C][C]0.081901[/C][/ROW]
[ROW][C]29[/C][C]-0.15125[/C][C]-1.0479[/C][C]0.149968[/C][/ROW]
[ROW][C]30[/C][C]-0.098017[/C][C]-0.6791[/C][C]0.250174[/C][/ROW]
[ROW][C]31[/C][C]-0.05328[/C][C]-0.3691[/C][C]0.356824[/C][/ROW]
[ROW][C]32[/C][C]0.003137[/C][C]0.0217[/C][C]0.491375[/C][/ROW]
[ROW][C]33[/C][C]0.051624[/C][C]0.3577[/C][C]0.361083[/C][/ROW]
[ROW][C]34[/C][C]0.097516[/C][C]0.6756[/C][C]0.251264[/C][/ROW]
[ROW][C]35[/C][C]0.107837[/C][C]0.7471[/C][C]0.229319[/C][/ROW]
[ROW][C]36[/C][C]0.116474[/C][C]0.807[/C][C]0.211837[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61854&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61854&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.9083886.29350
20.8096235.60920
30.7071544.89936e-06
40.5939144.11487.6e-05
50.4701083.2570.001035
60.3640112.52190.007521
70.2661051.84360.035708
80.1813481.25640.107523
90.0966480.66960.253161
100.0234840.16270.435718
11-0.041148-0.28510.388404
12-0.113498-0.78630.217768
13-0.185492-1.28510.102458
14-0.261458-1.81140.038167
15-0.30784-2.13280.019042
16-0.362694-2.51280.007695
17-0.405188-2.80720.003601
18-0.456508-3.16280.001355
19-0.490297-3.39690.000689
20-0.524434-3.63340.00034
21-0.536629-3.71790.000263
22-0.520298-3.60470.000371
23-0.468917-3.24880.00106
24-0.439742-3.04660.001877
25-0.393985-2.72960.004419
26-0.316724-2.19430.016542
27-0.256322-1.77590.041048
28-0.2041-1.4140.081901
29-0.15125-1.04790.149968
30-0.098017-0.67910.250174
31-0.05328-0.36910.356824
320.0031370.02170.491375
330.0516240.35770.361083
340.0975160.67560.251264
350.1078370.74710.229319
360.1164740.8070.211837







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9083886.29350
2-0.088925-0.61610.270373
3-0.074486-0.51610.304094
4-0.121109-0.83910.202795
5-0.129532-0.89740.186986
60.0249310.17270.431796
7-0.030029-0.2080.418037
80.0022530.01560.493804
9-0.086328-0.59810.276294
10-0.029361-0.20340.419833
11-0.033369-0.23120.409077
12-0.1269-0.87920.19184
13-0.075819-0.52530.3009
14-0.12892-0.89320.188108
150.0905340.62720.266738
16-0.135265-0.93710.176688
17-0.020014-0.13870.445149
18-0.180469-1.25030.10862
19-0.031282-0.21670.414669
20-0.094229-0.65280.258488
210.0112050.07760.469223
220.0970810.67260.252215
230.1046150.72480.236048
24-0.18417-1.2760.104053
250.0118210.08190.467533
260.1225770.84920.199983
27-0.108646-0.75270.227646
28-0.02982-0.20660.418597
290.0030340.0210.491659
30-0.013467-0.09330.463027
310.001610.01120.495574
320.0594340.41180.341169
33-0.033109-0.22940.409772
34-0.087387-0.60540.273871
35-0.182801-1.26650.105726
36-0.012669-0.08780.46521

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.908388 & 6.2935 & 0 \tabularnewline
2 & -0.088925 & -0.6161 & 0.270373 \tabularnewline
3 & -0.074486 & -0.5161 & 0.304094 \tabularnewline
4 & -0.121109 & -0.8391 & 0.202795 \tabularnewline
5 & -0.129532 & -0.8974 & 0.186986 \tabularnewline
6 & 0.024931 & 0.1727 & 0.431796 \tabularnewline
7 & -0.030029 & -0.208 & 0.418037 \tabularnewline
8 & 0.002253 & 0.0156 & 0.493804 \tabularnewline
9 & -0.086328 & -0.5981 & 0.276294 \tabularnewline
10 & -0.029361 & -0.2034 & 0.419833 \tabularnewline
11 & -0.033369 & -0.2312 & 0.409077 \tabularnewline
12 & -0.1269 & -0.8792 & 0.19184 \tabularnewline
13 & -0.075819 & -0.5253 & 0.3009 \tabularnewline
14 & -0.12892 & -0.8932 & 0.188108 \tabularnewline
15 & 0.090534 & 0.6272 & 0.266738 \tabularnewline
16 & -0.135265 & -0.9371 & 0.176688 \tabularnewline
17 & -0.020014 & -0.1387 & 0.445149 \tabularnewline
18 & -0.180469 & -1.2503 & 0.10862 \tabularnewline
19 & -0.031282 & -0.2167 & 0.414669 \tabularnewline
20 & -0.094229 & -0.6528 & 0.258488 \tabularnewline
21 & 0.011205 & 0.0776 & 0.469223 \tabularnewline
22 & 0.097081 & 0.6726 & 0.252215 \tabularnewline
23 & 0.104615 & 0.7248 & 0.236048 \tabularnewline
24 & -0.18417 & -1.276 & 0.104053 \tabularnewline
25 & 0.011821 & 0.0819 & 0.467533 \tabularnewline
26 & 0.122577 & 0.8492 & 0.199983 \tabularnewline
27 & -0.108646 & -0.7527 & 0.227646 \tabularnewline
28 & -0.02982 & -0.2066 & 0.418597 \tabularnewline
29 & 0.003034 & 0.021 & 0.491659 \tabularnewline
30 & -0.013467 & -0.0933 & 0.463027 \tabularnewline
31 & 0.00161 & 0.0112 & 0.495574 \tabularnewline
32 & 0.059434 & 0.4118 & 0.341169 \tabularnewline
33 & -0.033109 & -0.2294 & 0.409772 \tabularnewline
34 & -0.087387 & -0.6054 & 0.273871 \tabularnewline
35 & -0.182801 & -1.2665 & 0.105726 \tabularnewline
36 & -0.012669 & -0.0878 & 0.46521 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61854&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.908388[/C][C]6.2935[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.088925[/C][C]-0.6161[/C][C]0.270373[/C][/ROW]
[ROW][C]3[/C][C]-0.074486[/C][C]-0.5161[/C][C]0.304094[/C][/ROW]
[ROW][C]4[/C][C]-0.121109[/C][C]-0.8391[/C][C]0.202795[/C][/ROW]
[ROW][C]5[/C][C]-0.129532[/C][C]-0.8974[/C][C]0.186986[/C][/ROW]
[ROW][C]6[/C][C]0.024931[/C][C]0.1727[/C][C]0.431796[/C][/ROW]
[ROW][C]7[/C][C]-0.030029[/C][C]-0.208[/C][C]0.418037[/C][/ROW]
[ROW][C]8[/C][C]0.002253[/C][C]0.0156[/C][C]0.493804[/C][/ROW]
[ROW][C]9[/C][C]-0.086328[/C][C]-0.5981[/C][C]0.276294[/C][/ROW]
[ROW][C]10[/C][C]-0.029361[/C][C]-0.2034[/C][C]0.419833[/C][/ROW]
[ROW][C]11[/C][C]-0.033369[/C][C]-0.2312[/C][C]0.409077[/C][/ROW]
[ROW][C]12[/C][C]-0.1269[/C][C]-0.8792[/C][C]0.19184[/C][/ROW]
[ROW][C]13[/C][C]-0.075819[/C][C]-0.5253[/C][C]0.3009[/C][/ROW]
[ROW][C]14[/C][C]-0.12892[/C][C]-0.8932[/C][C]0.188108[/C][/ROW]
[ROW][C]15[/C][C]0.090534[/C][C]0.6272[/C][C]0.266738[/C][/ROW]
[ROW][C]16[/C][C]-0.135265[/C][C]-0.9371[/C][C]0.176688[/C][/ROW]
[ROW][C]17[/C][C]-0.020014[/C][C]-0.1387[/C][C]0.445149[/C][/ROW]
[ROW][C]18[/C][C]-0.180469[/C][C]-1.2503[/C][C]0.10862[/C][/ROW]
[ROW][C]19[/C][C]-0.031282[/C][C]-0.2167[/C][C]0.414669[/C][/ROW]
[ROW][C]20[/C][C]-0.094229[/C][C]-0.6528[/C][C]0.258488[/C][/ROW]
[ROW][C]21[/C][C]0.011205[/C][C]0.0776[/C][C]0.469223[/C][/ROW]
[ROW][C]22[/C][C]0.097081[/C][C]0.6726[/C][C]0.252215[/C][/ROW]
[ROW][C]23[/C][C]0.104615[/C][C]0.7248[/C][C]0.236048[/C][/ROW]
[ROW][C]24[/C][C]-0.18417[/C][C]-1.276[/C][C]0.104053[/C][/ROW]
[ROW][C]25[/C][C]0.011821[/C][C]0.0819[/C][C]0.467533[/C][/ROW]
[ROW][C]26[/C][C]0.122577[/C][C]0.8492[/C][C]0.199983[/C][/ROW]
[ROW][C]27[/C][C]-0.108646[/C][C]-0.7527[/C][C]0.227646[/C][/ROW]
[ROW][C]28[/C][C]-0.02982[/C][C]-0.2066[/C][C]0.418597[/C][/ROW]
[ROW][C]29[/C][C]0.003034[/C][C]0.021[/C][C]0.491659[/C][/ROW]
[ROW][C]30[/C][C]-0.013467[/C][C]-0.0933[/C][C]0.463027[/C][/ROW]
[ROW][C]31[/C][C]0.00161[/C][C]0.0112[/C][C]0.495574[/C][/ROW]
[ROW][C]32[/C][C]0.059434[/C][C]0.4118[/C][C]0.341169[/C][/ROW]
[ROW][C]33[/C][C]-0.033109[/C][C]-0.2294[/C][C]0.409772[/C][/ROW]
[ROW][C]34[/C][C]-0.087387[/C][C]-0.6054[/C][C]0.273871[/C][/ROW]
[ROW][C]35[/C][C]-0.182801[/C][C]-1.2665[/C][C]0.105726[/C][/ROW]
[ROW][C]36[/C][C]-0.012669[/C][C]-0.0878[/C][C]0.46521[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61854&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61854&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.9083886.29350
2-0.088925-0.61610.270373
3-0.074486-0.51610.304094
4-0.121109-0.83910.202795
5-0.129532-0.89740.186986
60.0249310.17270.431796
7-0.030029-0.2080.418037
80.0022530.01560.493804
9-0.086328-0.59810.276294
10-0.029361-0.20340.419833
11-0.033369-0.23120.409077
12-0.1269-0.87920.19184
13-0.075819-0.52530.3009
14-0.12892-0.89320.188108
150.0905340.62720.266738
16-0.135265-0.93710.176688
17-0.020014-0.13870.445149
18-0.180469-1.25030.10862
19-0.031282-0.21670.414669
20-0.094229-0.65280.258488
210.0112050.07760.469223
220.0970810.67260.252215
230.1046150.72480.236048
24-0.18417-1.2760.104053
250.0118210.08190.467533
260.1225770.84920.199983
27-0.108646-0.75270.227646
28-0.02982-0.20660.418597
290.0030340.0210.491659
30-0.013467-0.09330.463027
310.001610.01120.495574
320.0594340.41180.341169
33-0.033109-0.22940.409772
34-0.087387-0.60540.273871
35-0.182801-1.26650.105726
36-0.012669-0.08780.46521



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