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 computationThu, 26 Nov 2009 08:50:36 -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/26/t12592507425w3ahznykgos5rq.htm/, Retrieved Mon, 29 Apr 2024 02:40:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60128, Retrieved Mon, 29 Apr 2024 02:40:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact133
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:26:39] [b98453cac15ba1066b407e146608df68]
-    D          [(Partial) Autocorrelation Function] [] [2009-11-26 15:50:36] [27b6e36591879260e4dc6bb7e89a38fd] [Current]
Feedback Forum

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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60128&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.1317370.91270.182982
20.2346221.62550.055302
30.3238982.2440.014739
40.2253671.56140.062501
50.0963530.66760.253808
60.1638541.13520.130961
70.0304840.21120.416812
80.1682091.16540.124811
90.0500820.3470.365063
10-0.054709-0.3790.353167
110.3165492.19310.016588
12-0.075939-0.52610.300613
13-0.035656-0.2470.402969
140.1298310.89950.186439
150.0307570.21310.41608
16-0.021502-0.1490.441099
170.0930870.64490.261024
18-0.138269-0.9580.171443
190.0413720.28660.387814
20-0.083832-0.58080.282044
21-0.231083-1.6010.05797
22-0.070495-0.48840.313743
23-0.105607-0.73170.233965
24-0.229178-1.58780.05945
25-0.132825-0.92020.181025
26-0.152695-1.05790.147698
27-0.207676-1.43880.078346
28-0.133097-0.92210.180537
29-0.150517-1.04280.151129
30-0.092814-0.6430.26163
31-0.032934-0.22820.41024
32-0.156777-1.08620.141411
330.0016330.01130.49551
340.002450.0170.493265
35-0.040555-0.2810.389969
36-0.040011-0.27720.391407

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.131737 & 0.9127 & 0.182982 \tabularnewline
2 & 0.234622 & 1.6255 & 0.055302 \tabularnewline
3 & 0.323898 & 2.244 & 0.014739 \tabularnewline
4 & 0.225367 & 1.5614 & 0.062501 \tabularnewline
5 & 0.096353 & 0.6676 & 0.253808 \tabularnewline
6 & 0.163854 & 1.1352 & 0.130961 \tabularnewline
7 & 0.030484 & 0.2112 & 0.416812 \tabularnewline
8 & 0.168209 & 1.1654 & 0.124811 \tabularnewline
9 & 0.050082 & 0.347 & 0.365063 \tabularnewline
10 & -0.054709 & -0.379 & 0.353167 \tabularnewline
11 & 0.316549 & 2.1931 & 0.016588 \tabularnewline
12 & -0.075939 & -0.5261 & 0.300613 \tabularnewline
13 & -0.035656 & -0.247 & 0.402969 \tabularnewline
14 & 0.129831 & 0.8995 & 0.186439 \tabularnewline
15 & 0.030757 & 0.2131 & 0.41608 \tabularnewline
16 & -0.021502 & -0.149 & 0.441099 \tabularnewline
17 & 0.093087 & 0.6449 & 0.261024 \tabularnewline
18 & -0.138269 & -0.958 & 0.171443 \tabularnewline
19 & 0.041372 & 0.2866 & 0.387814 \tabularnewline
20 & -0.083832 & -0.5808 & 0.282044 \tabularnewline
21 & -0.231083 & -1.601 & 0.05797 \tabularnewline
22 & -0.070495 & -0.4884 & 0.313743 \tabularnewline
23 & -0.105607 & -0.7317 & 0.233965 \tabularnewline
24 & -0.229178 & -1.5878 & 0.05945 \tabularnewline
25 & -0.132825 & -0.9202 & 0.181025 \tabularnewline
26 & -0.152695 & -1.0579 & 0.147698 \tabularnewline
27 & -0.207676 & -1.4388 & 0.078346 \tabularnewline
28 & -0.133097 & -0.9221 & 0.180537 \tabularnewline
29 & -0.150517 & -1.0428 & 0.151129 \tabularnewline
30 & -0.092814 & -0.643 & 0.26163 \tabularnewline
31 & -0.032934 & -0.2282 & 0.41024 \tabularnewline
32 & -0.156777 & -1.0862 & 0.141411 \tabularnewline
33 & 0.001633 & 0.0113 & 0.49551 \tabularnewline
34 & 0.00245 & 0.017 & 0.493265 \tabularnewline
35 & -0.040555 & -0.281 & 0.389969 \tabularnewline
36 & -0.040011 & -0.2772 & 0.391407 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60128&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.131737[/C][C]0.9127[/C][C]0.182982[/C][/ROW]
[ROW][C]2[/C][C]0.234622[/C][C]1.6255[/C][C]0.055302[/C][/ROW]
[ROW][C]3[/C][C]0.323898[/C][C]2.244[/C][C]0.014739[/C][/ROW]
[ROW][C]4[/C][C]0.225367[/C][C]1.5614[/C][C]0.062501[/C][/ROW]
[ROW][C]5[/C][C]0.096353[/C][C]0.6676[/C][C]0.253808[/C][/ROW]
[ROW][C]6[/C][C]0.163854[/C][C]1.1352[/C][C]0.130961[/C][/ROW]
[ROW][C]7[/C][C]0.030484[/C][C]0.2112[/C][C]0.416812[/C][/ROW]
[ROW][C]8[/C][C]0.168209[/C][C]1.1654[/C][C]0.124811[/C][/ROW]
[ROW][C]9[/C][C]0.050082[/C][C]0.347[/C][C]0.365063[/C][/ROW]
[ROW][C]10[/C][C]-0.054709[/C][C]-0.379[/C][C]0.353167[/C][/ROW]
[ROW][C]11[/C][C]0.316549[/C][C]2.1931[/C][C]0.016588[/C][/ROW]
[ROW][C]12[/C][C]-0.075939[/C][C]-0.5261[/C][C]0.300613[/C][/ROW]
[ROW][C]13[/C][C]-0.035656[/C][C]-0.247[/C][C]0.402969[/C][/ROW]
[ROW][C]14[/C][C]0.129831[/C][C]0.8995[/C][C]0.186439[/C][/ROW]
[ROW][C]15[/C][C]0.030757[/C][C]0.2131[/C][C]0.41608[/C][/ROW]
[ROW][C]16[/C][C]-0.021502[/C][C]-0.149[/C][C]0.441099[/C][/ROW]
[ROW][C]17[/C][C]0.093087[/C][C]0.6449[/C][C]0.261024[/C][/ROW]
[ROW][C]18[/C][C]-0.138269[/C][C]-0.958[/C][C]0.171443[/C][/ROW]
[ROW][C]19[/C][C]0.041372[/C][C]0.2866[/C][C]0.387814[/C][/ROW]
[ROW][C]20[/C][C]-0.083832[/C][C]-0.5808[/C][C]0.282044[/C][/ROW]
[ROW][C]21[/C][C]-0.231083[/C][C]-1.601[/C][C]0.05797[/C][/ROW]
[ROW][C]22[/C][C]-0.070495[/C][C]-0.4884[/C][C]0.313743[/C][/ROW]
[ROW][C]23[/C][C]-0.105607[/C][C]-0.7317[/C][C]0.233965[/C][/ROW]
[ROW][C]24[/C][C]-0.229178[/C][C]-1.5878[/C][C]0.05945[/C][/ROW]
[ROW][C]25[/C][C]-0.132825[/C][C]-0.9202[/C][C]0.181025[/C][/ROW]
[ROW][C]26[/C][C]-0.152695[/C][C]-1.0579[/C][C]0.147698[/C][/ROW]
[ROW][C]27[/C][C]-0.207676[/C][C]-1.4388[/C][C]0.078346[/C][/ROW]
[ROW][C]28[/C][C]-0.133097[/C][C]-0.9221[/C][C]0.180537[/C][/ROW]
[ROW][C]29[/C][C]-0.150517[/C][C]-1.0428[/C][C]0.151129[/C][/ROW]
[ROW][C]30[/C][C]-0.092814[/C][C]-0.643[/C][C]0.26163[/C][/ROW]
[ROW][C]31[/C][C]-0.032934[/C][C]-0.2282[/C][C]0.41024[/C][/ROW]
[ROW][C]32[/C][C]-0.156777[/C][C]-1.0862[/C][C]0.141411[/C][/ROW]
[ROW][C]33[/C][C]0.001633[/C][C]0.0113[/C][C]0.49551[/C][/ROW]
[ROW][C]34[/C][C]0.00245[/C][C]0.017[/C][C]0.493265[/C][/ROW]
[ROW][C]35[/C][C]-0.040555[/C][C]-0.281[/C][C]0.389969[/C][/ROW]
[ROW][C]36[/C][C]-0.040011[/C][C]-0.2772[/C][C]0.391407[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60128&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60128&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.1317370.91270.182982
20.2346221.62550.055302
30.3238982.2440.014739
40.2253671.56140.062501
50.0963530.66760.253808
60.1638541.13520.130961
70.0304840.21120.416812
80.1682091.16540.124811
90.0500820.3470.365063
10-0.054709-0.3790.353167
110.3165492.19310.016588
12-0.075939-0.52610.300613
13-0.035656-0.2470.402969
140.1298310.89950.186439
150.0307570.21310.41608
16-0.021502-0.1490.441099
170.0930870.64490.261024
18-0.138269-0.9580.171443
190.0413720.28660.387814
20-0.083832-0.58080.282044
21-0.231083-1.6010.05797
22-0.070495-0.48840.313743
23-0.105607-0.73170.233965
24-0.229178-1.58780.05945
25-0.132825-0.92020.181025
26-0.152695-1.05790.147698
27-0.207676-1.43880.078346
28-0.133097-0.92210.180537
29-0.150517-1.04280.151129
30-0.092814-0.6430.26163
31-0.032934-0.22820.41024
32-0.156777-1.08620.141411
330.0016330.01130.49551
340.002450.0170.493265
35-0.040555-0.2810.389969
36-0.040011-0.27720.391407







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1317370.91270.182982
20.2211041.53190.066061
30.2896362.00670.025219
40.1516181.05040.149387
5-0.049717-0.34450.366005
60.0004510.00310.498759
7-0.107871-0.74740.229247
80.113050.78320.218669
90.0086680.06010.476181
10-0.12446-0.86230.19641
110.314252.17720.017207
12-0.1673-1.15910.126076
13-0.092528-0.64110.262269
140.0483730.33510.369491
15-0.003712-0.02570.489796
160.0529370.36680.357706
170.0179170.12410.450865
18-0.163109-1.130.132035
19-0.023981-0.16610.43437
20-0.099403-0.68870.24717
21-0.147137-1.01940.156563
22-0.119277-0.82640.20634
230.0762970.52860.299759
24-0.013321-0.09230.463427
25-0.131755-0.91280.182949
26-0.025427-0.17620.430453
27-0.10076-0.69810.244245
28-0.08076-0.55950.289204
290.1553851.07650.143533
30-0.011966-0.08290.467138
310.1042320.72210.236857
320.0106180.07360.470831
330.0161640.1120.455651
34-0.020591-0.14270.44358
350.0966890.66990.253073
360.0284290.1970.422345

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.131737 & 0.9127 & 0.182982 \tabularnewline
2 & 0.221104 & 1.5319 & 0.066061 \tabularnewline
3 & 0.289636 & 2.0067 & 0.025219 \tabularnewline
4 & 0.151618 & 1.0504 & 0.149387 \tabularnewline
5 & -0.049717 & -0.3445 & 0.366005 \tabularnewline
6 & 0.000451 & 0.0031 & 0.498759 \tabularnewline
7 & -0.107871 & -0.7474 & 0.229247 \tabularnewline
8 & 0.11305 & 0.7832 & 0.218669 \tabularnewline
9 & 0.008668 & 0.0601 & 0.476181 \tabularnewline
10 & -0.12446 & -0.8623 & 0.19641 \tabularnewline
11 & 0.31425 & 2.1772 & 0.017207 \tabularnewline
12 & -0.1673 & -1.1591 & 0.126076 \tabularnewline
13 & -0.092528 & -0.6411 & 0.262269 \tabularnewline
14 & 0.048373 & 0.3351 & 0.369491 \tabularnewline
15 & -0.003712 & -0.0257 & 0.489796 \tabularnewline
16 & 0.052937 & 0.3668 & 0.357706 \tabularnewline
17 & 0.017917 & 0.1241 & 0.450865 \tabularnewline
18 & -0.163109 & -1.13 & 0.132035 \tabularnewline
19 & -0.023981 & -0.1661 & 0.43437 \tabularnewline
20 & -0.099403 & -0.6887 & 0.24717 \tabularnewline
21 & -0.147137 & -1.0194 & 0.156563 \tabularnewline
22 & -0.119277 & -0.8264 & 0.20634 \tabularnewline
23 & 0.076297 & 0.5286 & 0.299759 \tabularnewline
24 & -0.013321 & -0.0923 & 0.463427 \tabularnewline
25 & -0.131755 & -0.9128 & 0.182949 \tabularnewline
26 & -0.025427 & -0.1762 & 0.430453 \tabularnewline
27 & -0.10076 & -0.6981 & 0.244245 \tabularnewline
28 & -0.08076 & -0.5595 & 0.289204 \tabularnewline
29 & 0.155385 & 1.0765 & 0.143533 \tabularnewline
30 & -0.011966 & -0.0829 & 0.467138 \tabularnewline
31 & 0.104232 & 0.7221 & 0.236857 \tabularnewline
32 & 0.010618 & 0.0736 & 0.470831 \tabularnewline
33 & 0.016164 & 0.112 & 0.455651 \tabularnewline
34 & -0.020591 & -0.1427 & 0.44358 \tabularnewline
35 & 0.096689 & 0.6699 & 0.253073 \tabularnewline
36 & 0.028429 & 0.197 & 0.422345 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60128&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.131737[/C][C]0.9127[/C][C]0.182982[/C][/ROW]
[ROW][C]2[/C][C]0.221104[/C][C]1.5319[/C][C]0.066061[/C][/ROW]
[ROW][C]3[/C][C]0.289636[/C][C]2.0067[/C][C]0.025219[/C][/ROW]
[ROW][C]4[/C][C]0.151618[/C][C]1.0504[/C][C]0.149387[/C][/ROW]
[ROW][C]5[/C][C]-0.049717[/C][C]-0.3445[/C][C]0.366005[/C][/ROW]
[ROW][C]6[/C][C]0.000451[/C][C]0.0031[/C][C]0.498759[/C][/ROW]
[ROW][C]7[/C][C]-0.107871[/C][C]-0.7474[/C][C]0.229247[/C][/ROW]
[ROW][C]8[/C][C]0.11305[/C][C]0.7832[/C][C]0.218669[/C][/ROW]
[ROW][C]9[/C][C]0.008668[/C][C]0.0601[/C][C]0.476181[/C][/ROW]
[ROW][C]10[/C][C]-0.12446[/C][C]-0.8623[/C][C]0.19641[/C][/ROW]
[ROW][C]11[/C][C]0.31425[/C][C]2.1772[/C][C]0.017207[/C][/ROW]
[ROW][C]12[/C][C]-0.1673[/C][C]-1.1591[/C][C]0.126076[/C][/ROW]
[ROW][C]13[/C][C]-0.092528[/C][C]-0.6411[/C][C]0.262269[/C][/ROW]
[ROW][C]14[/C][C]0.048373[/C][C]0.3351[/C][C]0.369491[/C][/ROW]
[ROW][C]15[/C][C]-0.003712[/C][C]-0.0257[/C][C]0.489796[/C][/ROW]
[ROW][C]16[/C][C]0.052937[/C][C]0.3668[/C][C]0.357706[/C][/ROW]
[ROW][C]17[/C][C]0.017917[/C][C]0.1241[/C][C]0.450865[/C][/ROW]
[ROW][C]18[/C][C]-0.163109[/C][C]-1.13[/C][C]0.132035[/C][/ROW]
[ROW][C]19[/C][C]-0.023981[/C][C]-0.1661[/C][C]0.43437[/C][/ROW]
[ROW][C]20[/C][C]-0.099403[/C][C]-0.6887[/C][C]0.24717[/C][/ROW]
[ROW][C]21[/C][C]-0.147137[/C][C]-1.0194[/C][C]0.156563[/C][/ROW]
[ROW][C]22[/C][C]-0.119277[/C][C]-0.8264[/C][C]0.20634[/C][/ROW]
[ROW][C]23[/C][C]0.076297[/C][C]0.5286[/C][C]0.299759[/C][/ROW]
[ROW][C]24[/C][C]-0.013321[/C][C]-0.0923[/C][C]0.463427[/C][/ROW]
[ROW][C]25[/C][C]-0.131755[/C][C]-0.9128[/C][C]0.182949[/C][/ROW]
[ROW][C]26[/C][C]-0.025427[/C][C]-0.1762[/C][C]0.430453[/C][/ROW]
[ROW][C]27[/C][C]-0.10076[/C][C]-0.6981[/C][C]0.244245[/C][/ROW]
[ROW][C]28[/C][C]-0.08076[/C][C]-0.5595[/C][C]0.289204[/C][/ROW]
[ROW][C]29[/C][C]0.155385[/C][C]1.0765[/C][C]0.143533[/C][/ROW]
[ROW][C]30[/C][C]-0.011966[/C][C]-0.0829[/C][C]0.467138[/C][/ROW]
[ROW][C]31[/C][C]0.104232[/C][C]0.7221[/C][C]0.236857[/C][/ROW]
[ROW][C]32[/C][C]0.010618[/C][C]0.0736[/C][C]0.470831[/C][/ROW]
[ROW][C]33[/C][C]0.016164[/C][C]0.112[/C][C]0.455651[/C][/ROW]
[ROW][C]34[/C][C]-0.020591[/C][C]-0.1427[/C][C]0.44358[/C][/ROW]
[ROW][C]35[/C][C]0.096689[/C][C]0.6699[/C][C]0.253073[/C][/ROW]
[ROW][C]36[/C][C]0.028429[/C][C]0.197[/C][C]0.422345[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60128&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60128&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.1317370.91270.182982
20.2211041.53190.066061
30.2896362.00670.025219
40.1516181.05040.149387
5-0.049717-0.34450.366005
60.0004510.00310.498759
7-0.107871-0.74740.229247
80.113050.78320.218669
90.0086680.06010.476181
10-0.12446-0.86230.19641
110.314252.17720.017207
12-0.1673-1.15910.126076
13-0.092528-0.64110.262269
140.0483730.33510.369491
15-0.003712-0.02570.489796
160.0529370.36680.357706
170.0179170.12410.450865
18-0.163109-1.130.132035
19-0.023981-0.16610.43437
20-0.099403-0.68870.24717
21-0.147137-1.01940.156563
22-0.119277-0.82640.20634
230.0762970.52860.299759
24-0.013321-0.09230.463427
25-0.131755-0.91280.182949
26-0.025427-0.17620.430453
27-0.10076-0.69810.244245
28-0.08076-0.55950.289204
290.1553851.07650.143533
30-0.011966-0.08290.467138
310.1042320.72210.236857
320.0106180.07360.470831
330.0161640.1120.455651
34-0.020591-0.14270.44358
350.0966890.66990.253073
360.0284290.1970.422345



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