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 computationWed, 16 Dec 2009 10:36:11 -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/16/t1260985022c6lqdljz8kmy7hp.htm/, Retrieved Tue, 30 Apr 2024 16:37:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68501, Retrieved Tue, 30 Apr 2024 16:37:39 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact108
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:48:46] [b98453cac15ba1066b407e146608df68]
-    D    [(Partial) Autocorrelation Function] [] [2009-12-04 15:41:11] [897115520fe7b6114489bc0eeed64548]
-    D        [(Partial) Autocorrelation Function] [] [2009-12-16 17:36:11] [8cd69d0f4298074aa572ca2f9b39b6ae] [Current]
Feedback Forum

Post a new message
Dataseries X:
16,2
16,7
18,4
16
16,5
18,2
16,8
17,3
18
19,6
23,3
23,7
20,3
22,8
24,3
21,5
23,5
22,2
20,9
22,2
19,5
21,1
22
19,2
17,8
19,2
19,9
19,6
18,1
20,4
18,1
18,6
17,6
19,4
19,3
18,6
16,9
16,4
19
18,7
17,1
21,5
17,8
18,1
19
18,9
16,8
18,1
15,7
15,1
18,3
16,5
16,9
18,4
16,4
15,7
16,9
16,6
16,7
16,6




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68501&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
1-0.47187-3.2350.001115
20.0588850.40370.344133
30.4008862.74830.004235
4-0.371729-2.54840.007074
50.0987150.67680.250938
60.2542921.74330.043907
7-0.435935-2.98860.002223
80.2386381.6360.054258
90.0054870.03760.485077
10-0.320089-2.19440.016591
110.2916781.99960.025669
12-0.163573-1.12140.133907
13-0.163515-1.1210.133991
140.2516441.72520.045533
15-0.152247-1.04380.150969
16-0.052443-0.35950.360405
170.1633391.11980.134246
18-0.179481-1.23050.112324
19-0.028987-0.19870.421669
200.1937331.32820.095268
21-0.244308-1.67490.050299
220.0381690.26170.397358
230.2328961.59670.058523
24-0.318484-2.18340.017016
250.266281.82550.03714
26-0.049199-0.33730.368698
27-0.100116-0.68640.247928
280.1339810.91850.181516
290.0029370.02010.492011
30-0.115911-0.79460.215407
310.1729471.18570.120858
32-0.133675-0.91640.18206
330.0301170.20650.418658
340.0460960.3160.376693
35-0.104402-0.71570.238846
360.0524590.35960.360363

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.47187 & -3.235 & 0.001115 \tabularnewline
2 & 0.058885 & 0.4037 & 0.344133 \tabularnewline
3 & 0.400886 & 2.7483 & 0.004235 \tabularnewline
4 & -0.371729 & -2.5484 & 0.007074 \tabularnewline
5 & 0.098715 & 0.6768 & 0.250938 \tabularnewline
6 & 0.254292 & 1.7433 & 0.043907 \tabularnewline
7 & -0.435935 & -2.9886 & 0.002223 \tabularnewline
8 & 0.238638 & 1.636 & 0.054258 \tabularnewline
9 & 0.005487 & 0.0376 & 0.485077 \tabularnewline
10 & -0.320089 & -2.1944 & 0.016591 \tabularnewline
11 & 0.291678 & 1.9996 & 0.025669 \tabularnewline
12 & -0.163573 & -1.1214 & 0.133907 \tabularnewline
13 & -0.163515 & -1.121 & 0.133991 \tabularnewline
14 & 0.251644 & 1.7252 & 0.045533 \tabularnewline
15 & -0.152247 & -1.0438 & 0.150969 \tabularnewline
16 & -0.052443 & -0.3595 & 0.360405 \tabularnewline
17 & 0.163339 & 1.1198 & 0.134246 \tabularnewline
18 & -0.179481 & -1.2305 & 0.112324 \tabularnewline
19 & -0.028987 & -0.1987 & 0.421669 \tabularnewline
20 & 0.193733 & 1.3282 & 0.095268 \tabularnewline
21 & -0.244308 & -1.6749 & 0.050299 \tabularnewline
22 & 0.038169 & 0.2617 & 0.397358 \tabularnewline
23 & 0.232896 & 1.5967 & 0.058523 \tabularnewline
24 & -0.318484 & -2.1834 & 0.017016 \tabularnewline
25 & 0.26628 & 1.8255 & 0.03714 \tabularnewline
26 & -0.049199 & -0.3373 & 0.368698 \tabularnewline
27 & -0.100116 & -0.6864 & 0.247928 \tabularnewline
28 & 0.133981 & 0.9185 & 0.181516 \tabularnewline
29 & 0.002937 & 0.0201 & 0.492011 \tabularnewline
30 & -0.115911 & -0.7946 & 0.215407 \tabularnewline
31 & 0.172947 & 1.1857 & 0.120858 \tabularnewline
32 & -0.133675 & -0.9164 & 0.18206 \tabularnewline
33 & 0.030117 & 0.2065 & 0.418658 \tabularnewline
34 & 0.046096 & 0.316 & 0.376693 \tabularnewline
35 & -0.104402 & -0.7157 & 0.238846 \tabularnewline
36 & 0.052459 & 0.3596 & 0.360363 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68501&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.47187[/C][C]-3.235[/C][C]0.001115[/C][/ROW]
[ROW][C]2[/C][C]0.058885[/C][C]0.4037[/C][C]0.344133[/C][/ROW]
[ROW][C]3[/C][C]0.400886[/C][C]2.7483[/C][C]0.004235[/C][/ROW]
[ROW][C]4[/C][C]-0.371729[/C][C]-2.5484[/C][C]0.007074[/C][/ROW]
[ROW][C]5[/C][C]0.098715[/C][C]0.6768[/C][C]0.250938[/C][/ROW]
[ROW][C]6[/C][C]0.254292[/C][C]1.7433[/C][C]0.043907[/C][/ROW]
[ROW][C]7[/C][C]-0.435935[/C][C]-2.9886[/C][C]0.002223[/C][/ROW]
[ROW][C]8[/C][C]0.238638[/C][C]1.636[/C][C]0.054258[/C][/ROW]
[ROW][C]9[/C][C]0.005487[/C][C]0.0376[/C][C]0.485077[/C][/ROW]
[ROW][C]10[/C][C]-0.320089[/C][C]-2.1944[/C][C]0.016591[/C][/ROW]
[ROW][C]11[/C][C]0.291678[/C][C]1.9996[/C][C]0.025669[/C][/ROW]
[ROW][C]12[/C][C]-0.163573[/C][C]-1.1214[/C][C]0.133907[/C][/ROW]
[ROW][C]13[/C][C]-0.163515[/C][C]-1.121[/C][C]0.133991[/C][/ROW]
[ROW][C]14[/C][C]0.251644[/C][C]1.7252[/C][C]0.045533[/C][/ROW]
[ROW][C]15[/C][C]-0.152247[/C][C]-1.0438[/C][C]0.150969[/C][/ROW]
[ROW][C]16[/C][C]-0.052443[/C][C]-0.3595[/C][C]0.360405[/C][/ROW]
[ROW][C]17[/C][C]0.163339[/C][C]1.1198[/C][C]0.134246[/C][/ROW]
[ROW][C]18[/C][C]-0.179481[/C][C]-1.2305[/C][C]0.112324[/C][/ROW]
[ROW][C]19[/C][C]-0.028987[/C][C]-0.1987[/C][C]0.421669[/C][/ROW]
[ROW][C]20[/C][C]0.193733[/C][C]1.3282[/C][C]0.095268[/C][/ROW]
[ROW][C]21[/C][C]-0.244308[/C][C]-1.6749[/C][C]0.050299[/C][/ROW]
[ROW][C]22[/C][C]0.038169[/C][C]0.2617[/C][C]0.397358[/C][/ROW]
[ROW][C]23[/C][C]0.232896[/C][C]1.5967[/C][C]0.058523[/C][/ROW]
[ROW][C]24[/C][C]-0.318484[/C][C]-2.1834[/C][C]0.017016[/C][/ROW]
[ROW][C]25[/C][C]0.26628[/C][C]1.8255[/C][C]0.03714[/C][/ROW]
[ROW][C]26[/C][C]-0.049199[/C][C]-0.3373[/C][C]0.368698[/C][/ROW]
[ROW][C]27[/C][C]-0.100116[/C][C]-0.6864[/C][C]0.247928[/C][/ROW]
[ROW][C]28[/C][C]0.133981[/C][C]0.9185[/C][C]0.181516[/C][/ROW]
[ROW][C]29[/C][C]0.002937[/C][C]0.0201[/C][C]0.492011[/C][/ROW]
[ROW][C]30[/C][C]-0.115911[/C][C]-0.7946[/C][C]0.215407[/C][/ROW]
[ROW][C]31[/C][C]0.172947[/C][C]1.1857[/C][C]0.120858[/C][/ROW]
[ROW][C]32[/C][C]-0.133675[/C][C]-0.9164[/C][C]0.18206[/C][/ROW]
[ROW][C]33[/C][C]0.030117[/C][C]0.2065[/C][C]0.418658[/C][/ROW]
[ROW][C]34[/C][C]0.046096[/C][C]0.316[/C][C]0.376693[/C][/ROW]
[ROW][C]35[/C][C]-0.104402[/C][C]-0.7157[/C][C]0.238846[/C][/ROW]
[ROW][C]36[/C][C]0.052459[/C][C]0.3596[/C][C]0.360363[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68501&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68501&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
1-0.47187-3.2350.001115
20.0588850.40370.344133
30.4008862.74830.004235
4-0.371729-2.54840.007074
50.0987150.67680.250938
60.2542921.74330.043907
7-0.435935-2.98860.002223
80.2386381.6360.054258
90.0054870.03760.485077
10-0.320089-2.19440.016591
110.2916781.99960.025669
12-0.163573-1.12140.133907
13-0.163515-1.1210.133991
140.2516441.72520.045533
15-0.152247-1.04380.150969
16-0.052443-0.35950.360405
170.1633391.11980.134246
18-0.179481-1.23050.112324
19-0.028987-0.19870.421669
200.1937331.32820.095268
21-0.244308-1.67490.050299
220.0381690.26170.397358
230.2328961.59670.058523
24-0.318484-2.18340.017016
250.266281.82550.03714
26-0.049199-0.33730.368698
27-0.100116-0.68640.247928
280.1339810.91850.181516
290.0029370.02010.492011
30-0.115911-0.79460.215407
310.1729471.18570.120858
32-0.133675-0.91640.18206
330.0301170.20650.418658
340.0460960.3160.376693
35-0.104402-0.71570.238846
360.0524590.35960.360363







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.47187-3.2350.001115
2-0.210688-1.44440.07763
30.4511233.09270.001666
40.0495070.33940.367909
5-0.184905-1.26760.105584
60.1289410.8840.190606
7-0.147722-1.01270.158187
8-0.107415-0.73640.232575
9-0.038688-0.26520.395995
10-0.121608-0.83370.204334
110.0034780.02380.49054
12-0.054528-0.37380.355108
13-0.092524-0.63430.264477
14-0.038852-0.26640.395564
150.1031640.70730.241449
160.0221860.15210.439881
17-0.127433-0.87360.193379
18-0.079819-0.54720.293412
19-0.17086-1.17140.12368
200.0383250.26270.39695
21-0.024131-0.16540.434657
22-0.178185-1.22160.11398
230.1867921.28060.103312
240.0083550.05730.477282
250.0993020.68080.249674
26-0.17899-1.22710.11295
270.0507120.34770.364822
28-0.05445-0.37330.355305
29-0.036749-0.25190.401092
300.0240950.16520.434752
31-0.102604-0.70340.242634
320.0051730.03550.48593
330.0767640.52630.300588
34-0.081264-0.55710.290045
35-0.043915-0.30110.382347
36-0.008329-0.05710.477354

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.47187 & -3.235 & 0.001115 \tabularnewline
2 & -0.210688 & -1.4444 & 0.07763 \tabularnewline
3 & 0.451123 & 3.0927 & 0.001666 \tabularnewline
4 & 0.049507 & 0.3394 & 0.367909 \tabularnewline
5 & -0.184905 & -1.2676 & 0.105584 \tabularnewline
6 & 0.128941 & 0.884 & 0.190606 \tabularnewline
7 & -0.147722 & -1.0127 & 0.158187 \tabularnewline
8 & -0.107415 & -0.7364 & 0.232575 \tabularnewline
9 & -0.038688 & -0.2652 & 0.395995 \tabularnewline
10 & -0.121608 & -0.8337 & 0.204334 \tabularnewline
11 & 0.003478 & 0.0238 & 0.49054 \tabularnewline
12 & -0.054528 & -0.3738 & 0.355108 \tabularnewline
13 & -0.092524 & -0.6343 & 0.264477 \tabularnewline
14 & -0.038852 & -0.2664 & 0.395564 \tabularnewline
15 & 0.103164 & 0.7073 & 0.241449 \tabularnewline
16 & 0.022186 & 0.1521 & 0.439881 \tabularnewline
17 & -0.127433 & -0.8736 & 0.193379 \tabularnewline
18 & -0.079819 & -0.5472 & 0.293412 \tabularnewline
19 & -0.17086 & -1.1714 & 0.12368 \tabularnewline
20 & 0.038325 & 0.2627 & 0.39695 \tabularnewline
21 & -0.024131 & -0.1654 & 0.434657 \tabularnewline
22 & -0.178185 & -1.2216 & 0.11398 \tabularnewline
23 & 0.186792 & 1.2806 & 0.103312 \tabularnewline
24 & 0.008355 & 0.0573 & 0.477282 \tabularnewline
25 & 0.099302 & 0.6808 & 0.249674 \tabularnewline
26 & -0.17899 & -1.2271 & 0.11295 \tabularnewline
27 & 0.050712 & 0.3477 & 0.364822 \tabularnewline
28 & -0.05445 & -0.3733 & 0.355305 \tabularnewline
29 & -0.036749 & -0.2519 & 0.401092 \tabularnewline
30 & 0.024095 & 0.1652 & 0.434752 \tabularnewline
31 & -0.102604 & -0.7034 & 0.242634 \tabularnewline
32 & 0.005173 & 0.0355 & 0.48593 \tabularnewline
33 & 0.076764 & 0.5263 & 0.300588 \tabularnewline
34 & -0.081264 & -0.5571 & 0.290045 \tabularnewline
35 & -0.043915 & -0.3011 & 0.382347 \tabularnewline
36 & -0.008329 & -0.0571 & 0.477354 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68501&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.47187[/C][C]-3.235[/C][C]0.001115[/C][/ROW]
[ROW][C]2[/C][C]-0.210688[/C][C]-1.4444[/C][C]0.07763[/C][/ROW]
[ROW][C]3[/C][C]0.451123[/C][C]3.0927[/C][C]0.001666[/C][/ROW]
[ROW][C]4[/C][C]0.049507[/C][C]0.3394[/C][C]0.367909[/C][/ROW]
[ROW][C]5[/C][C]-0.184905[/C][C]-1.2676[/C][C]0.105584[/C][/ROW]
[ROW][C]6[/C][C]0.128941[/C][C]0.884[/C][C]0.190606[/C][/ROW]
[ROW][C]7[/C][C]-0.147722[/C][C]-1.0127[/C][C]0.158187[/C][/ROW]
[ROW][C]8[/C][C]-0.107415[/C][C]-0.7364[/C][C]0.232575[/C][/ROW]
[ROW][C]9[/C][C]-0.038688[/C][C]-0.2652[/C][C]0.395995[/C][/ROW]
[ROW][C]10[/C][C]-0.121608[/C][C]-0.8337[/C][C]0.204334[/C][/ROW]
[ROW][C]11[/C][C]0.003478[/C][C]0.0238[/C][C]0.49054[/C][/ROW]
[ROW][C]12[/C][C]-0.054528[/C][C]-0.3738[/C][C]0.355108[/C][/ROW]
[ROW][C]13[/C][C]-0.092524[/C][C]-0.6343[/C][C]0.264477[/C][/ROW]
[ROW][C]14[/C][C]-0.038852[/C][C]-0.2664[/C][C]0.395564[/C][/ROW]
[ROW][C]15[/C][C]0.103164[/C][C]0.7073[/C][C]0.241449[/C][/ROW]
[ROW][C]16[/C][C]0.022186[/C][C]0.1521[/C][C]0.439881[/C][/ROW]
[ROW][C]17[/C][C]-0.127433[/C][C]-0.8736[/C][C]0.193379[/C][/ROW]
[ROW][C]18[/C][C]-0.079819[/C][C]-0.5472[/C][C]0.293412[/C][/ROW]
[ROW][C]19[/C][C]-0.17086[/C][C]-1.1714[/C][C]0.12368[/C][/ROW]
[ROW][C]20[/C][C]0.038325[/C][C]0.2627[/C][C]0.39695[/C][/ROW]
[ROW][C]21[/C][C]-0.024131[/C][C]-0.1654[/C][C]0.434657[/C][/ROW]
[ROW][C]22[/C][C]-0.178185[/C][C]-1.2216[/C][C]0.11398[/C][/ROW]
[ROW][C]23[/C][C]0.186792[/C][C]1.2806[/C][C]0.103312[/C][/ROW]
[ROW][C]24[/C][C]0.008355[/C][C]0.0573[/C][C]0.477282[/C][/ROW]
[ROW][C]25[/C][C]0.099302[/C][C]0.6808[/C][C]0.249674[/C][/ROW]
[ROW][C]26[/C][C]-0.17899[/C][C]-1.2271[/C][C]0.11295[/C][/ROW]
[ROW][C]27[/C][C]0.050712[/C][C]0.3477[/C][C]0.364822[/C][/ROW]
[ROW][C]28[/C][C]-0.05445[/C][C]-0.3733[/C][C]0.355305[/C][/ROW]
[ROW][C]29[/C][C]-0.036749[/C][C]-0.2519[/C][C]0.401092[/C][/ROW]
[ROW][C]30[/C][C]0.024095[/C][C]0.1652[/C][C]0.434752[/C][/ROW]
[ROW][C]31[/C][C]-0.102604[/C][C]-0.7034[/C][C]0.242634[/C][/ROW]
[ROW][C]32[/C][C]0.005173[/C][C]0.0355[/C][C]0.48593[/C][/ROW]
[ROW][C]33[/C][C]0.076764[/C][C]0.5263[/C][C]0.300588[/C][/ROW]
[ROW][C]34[/C][C]-0.081264[/C][C]-0.5571[/C][C]0.290045[/C][/ROW]
[ROW][C]35[/C][C]-0.043915[/C][C]-0.3011[/C][C]0.382347[/C][/ROW]
[ROW][C]36[/C][C]-0.008329[/C][C]-0.0571[/C][C]0.477354[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68501&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68501&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
1-0.47187-3.2350.001115
2-0.210688-1.44440.07763
30.4511233.09270.001666
40.0495070.33940.367909
5-0.184905-1.26760.105584
60.1289410.8840.190606
7-0.147722-1.01270.158187
8-0.107415-0.73640.232575
9-0.038688-0.26520.395995
10-0.121608-0.83370.204334
110.0034780.02380.49054
12-0.054528-0.37380.355108
13-0.092524-0.63430.264477
14-0.038852-0.26640.395564
150.1031640.70730.241449
160.0221860.15210.439881
17-0.127433-0.87360.193379
18-0.079819-0.54720.293412
19-0.17086-1.17140.12368
200.0383250.26270.39695
21-0.024131-0.16540.434657
22-0.178185-1.22160.11398
230.1867921.28060.103312
240.0083550.05730.477282
250.0993020.68080.249674
26-0.17899-1.22710.11295
270.0507120.34770.364822
28-0.05445-0.37330.355305
29-0.036749-0.25190.401092
300.0240950.16520.434752
31-0.102604-0.70340.242634
320.0051730.03550.48593
330.0767640.52630.300588
34-0.081264-0.55710.290045
35-0.043915-0.30110.382347
36-0.008329-0.05710.477354



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