Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_autocorrelation.wasp
Title produced by software(Partial) Autocorrelation Function
Date of computationWed, 25 Nov 2009 03:38:28 -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/25/t12591455652jwb93orb24plhy.htm/, Retrieved Tue, 07 May 2024 13:14:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59310, Retrieved Tue, 07 May 2024 13:14:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact180
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2009-11-25 10:38:28] [bcd1d1f32b8895c4dcae2fb4eb5db30a] [Current]
- R  D    [(Partial) Autocorrelation Function] [] [2009-12-17 07:47:23] [1eac2882020791f6c49a90a91c34285a]
Feedback Forum

Post a new message
Dataseries X:
99.9
98.6
107.2
95.7
93.7
106.7
86.7
95.3
99.3
101.8
96
91.7
95.3
96.6
107.2
108
98.4
103.1
81.1
96.6
103.7
106.6
97.6
87.6
99.4
98.5
105.2
104.6
97.5
108.9
86.8
88.9
110.3
114.8
94.6
92
93.8
93.8
107.6
101
95.4
96.5
89.2
87.1
110.5
110.8
104.2
88.9
89.8
90
93.9
91.3
87.8
99.7
73.5
79.2
96.9
95.2
95.6
89.7




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

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.424701-2.91160.002742
2-0.021552-0.14780.441586
3-0.06177-0.42350.336941
40.0348650.2390.406064
5-0.011522-0.0790.468688
60.0183740.1260.450148
70.0627550.43020.334498
8-0.162278-1.11250.135786
90.1547561.0610.147067
10-0.056244-0.38560.35077
110.0887350.60830.272947
12-0.36406-2.49590.008066
130.2592131.77710.041014
140.122580.84040.202479
15-0.138654-0.95060.173344
16-0.026434-0.18120.428486
170.0492110.33740.368669
180.0764580.52420.301313
19-0.129399-0.88710.189768
200.1293790.8870.189804
21-0.079425-0.54450.294333
22-0.097885-0.67110.252731
230.1461921.00220.160679
24-0.036503-0.25030.401742
25-0.03594-0.24640.403225
26-0.062904-0.43120.334131
270.1174540.80520.212373
28-0.083338-0.57130.285246
290.0392590.26910.394498
30-0.077153-0.52890.299671
310.1355540.92930.178738
32-0.050687-0.34750.364887
330.017810.12210.451671
340.0323010.22140.412853
35-0.091733-0.62890.266234
36-0.027932-0.19150.424482

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.424701 & -2.9116 & 0.002742 \tabularnewline
2 & -0.021552 & -0.1478 & 0.441586 \tabularnewline
3 & -0.06177 & -0.4235 & 0.336941 \tabularnewline
4 & 0.034865 & 0.239 & 0.406064 \tabularnewline
5 & -0.011522 & -0.079 & 0.468688 \tabularnewline
6 & 0.018374 & 0.126 & 0.450148 \tabularnewline
7 & 0.062755 & 0.4302 & 0.334498 \tabularnewline
8 & -0.162278 & -1.1125 & 0.135786 \tabularnewline
9 & 0.154756 & 1.061 & 0.147067 \tabularnewline
10 & -0.056244 & -0.3856 & 0.35077 \tabularnewline
11 & 0.088735 & 0.6083 & 0.272947 \tabularnewline
12 & -0.36406 & -2.4959 & 0.008066 \tabularnewline
13 & 0.259213 & 1.7771 & 0.041014 \tabularnewline
14 & 0.12258 & 0.8404 & 0.202479 \tabularnewline
15 & -0.138654 & -0.9506 & 0.173344 \tabularnewline
16 & -0.026434 & -0.1812 & 0.428486 \tabularnewline
17 & 0.049211 & 0.3374 & 0.368669 \tabularnewline
18 & 0.076458 & 0.5242 & 0.301313 \tabularnewline
19 & -0.129399 & -0.8871 & 0.189768 \tabularnewline
20 & 0.129379 & 0.887 & 0.189804 \tabularnewline
21 & -0.079425 & -0.5445 & 0.294333 \tabularnewline
22 & -0.097885 & -0.6711 & 0.252731 \tabularnewline
23 & 0.146192 & 1.0022 & 0.160679 \tabularnewline
24 & -0.036503 & -0.2503 & 0.401742 \tabularnewline
25 & -0.03594 & -0.2464 & 0.403225 \tabularnewline
26 & -0.062904 & -0.4312 & 0.334131 \tabularnewline
27 & 0.117454 & 0.8052 & 0.212373 \tabularnewline
28 & -0.083338 & -0.5713 & 0.285246 \tabularnewline
29 & 0.039259 & 0.2691 & 0.394498 \tabularnewline
30 & -0.077153 & -0.5289 & 0.299671 \tabularnewline
31 & 0.135554 & 0.9293 & 0.178738 \tabularnewline
32 & -0.050687 & -0.3475 & 0.364887 \tabularnewline
33 & 0.01781 & 0.1221 & 0.451671 \tabularnewline
34 & 0.032301 & 0.2214 & 0.412853 \tabularnewline
35 & -0.091733 & -0.6289 & 0.266234 \tabularnewline
36 & -0.027932 & -0.1915 & 0.424482 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59310&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.424701[/C][C]-2.9116[/C][C]0.002742[/C][/ROW]
[ROW][C]2[/C][C]-0.021552[/C][C]-0.1478[/C][C]0.441586[/C][/ROW]
[ROW][C]3[/C][C]-0.06177[/C][C]-0.4235[/C][C]0.336941[/C][/ROW]
[ROW][C]4[/C][C]0.034865[/C][C]0.239[/C][C]0.406064[/C][/ROW]
[ROW][C]5[/C][C]-0.011522[/C][C]-0.079[/C][C]0.468688[/C][/ROW]
[ROW][C]6[/C][C]0.018374[/C][C]0.126[/C][C]0.450148[/C][/ROW]
[ROW][C]7[/C][C]0.062755[/C][C]0.4302[/C][C]0.334498[/C][/ROW]
[ROW][C]8[/C][C]-0.162278[/C][C]-1.1125[/C][C]0.135786[/C][/ROW]
[ROW][C]9[/C][C]0.154756[/C][C]1.061[/C][C]0.147067[/C][/ROW]
[ROW][C]10[/C][C]-0.056244[/C][C]-0.3856[/C][C]0.35077[/C][/ROW]
[ROW][C]11[/C][C]0.088735[/C][C]0.6083[/C][C]0.272947[/C][/ROW]
[ROW][C]12[/C][C]-0.36406[/C][C]-2.4959[/C][C]0.008066[/C][/ROW]
[ROW][C]13[/C][C]0.259213[/C][C]1.7771[/C][C]0.041014[/C][/ROW]
[ROW][C]14[/C][C]0.12258[/C][C]0.8404[/C][C]0.202479[/C][/ROW]
[ROW][C]15[/C][C]-0.138654[/C][C]-0.9506[/C][C]0.173344[/C][/ROW]
[ROW][C]16[/C][C]-0.026434[/C][C]-0.1812[/C][C]0.428486[/C][/ROW]
[ROW][C]17[/C][C]0.049211[/C][C]0.3374[/C][C]0.368669[/C][/ROW]
[ROW][C]18[/C][C]0.076458[/C][C]0.5242[/C][C]0.301313[/C][/ROW]
[ROW][C]19[/C][C]-0.129399[/C][C]-0.8871[/C][C]0.189768[/C][/ROW]
[ROW][C]20[/C][C]0.129379[/C][C]0.887[/C][C]0.189804[/C][/ROW]
[ROW][C]21[/C][C]-0.079425[/C][C]-0.5445[/C][C]0.294333[/C][/ROW]
[ROW][C]22[/C][C]-0.097885[/C][C]-0.6711[/C][C]0.252731[/C][/ROW]
[ROW][C]23[/C][C]0.146192[/C][C]1.0022[/C][C]0.160679[/C][/ROW]
[ROW][C]24[/C][C]-0.036503[/C][C]-0.2503[/C][C]0.401742[/C][/ROW]
[ROW][C]25[/C][C]-0.03594[/C][C]-0.2464[/C][C]0.403225[/C][/ROW]
[ROW][C]26[/C][C]-0.062904[/C][C]-0.4312[/C][C]0.334131[/C][/ROW]
[ROW][C]27[/C][C]0.117454[/C][C]0.8052[/C][C]0.212373[/C][/ROW]
[ROW][C]28[/C][C]-0.083338[/C][C]-0.5713[/C][C]0.285246[/C][/ROW]
[ROW][C]29[/C][C]0.039259[/C][C]0.2691[/C][C]0.394498[/C][/ROW]
[ROW][C]30[/C][C]-0.077153[/C][C]-0.5289[/C][C]0.299671[/C][/ROW]
[ROW][C]31[/C][C]0.135554[/C][C]0.9293[/C][C]0.178738[/C][/ROW]
[ROW][C]32[/C][C]-0.050687[/C][C]-0.3475[/C][C]0.364887[/C][/ROW]
[ROW][C]33[/C][C]0.01781[/C][C]0.1221[/C][C]0.451671[/C][/ROW]
[ROW][C]34[/C][C]0.032301[/C][C]0.2214[/C][C]0.412853[/C][/ROW]
[ROW][C]35[/C][C]-0.091733[/C][C]-0.6289[/C][C]0.266234[/C][/ROW]
[ROW][C]36[/C][C]-0.027932[/C][C]-0.1915[/C][C]0.424482[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59310&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59310&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.424701-2.91160.002742
2-0.021552-0.14780.441586
3-0.06177-0.42350.336941
40.0348650.2390.406064
5-0.011522-0.0790.468688
60.0183740.1260.450148
70.0627550.43020.334498
8-0.162278-1.11250.135786
90.1547561.0610.147067
10-0.056244-0.38560.35077
110.0887350.60830.272947
12-0.36406-2.49590.008066
130.2592131.77710.041014
140.122580.84040.202479
15-0.138654-0.95060.173344
16-0.026434-0.18120.428486
170.0492110.33740.368669
180.0764580.52420.301313
19-0.129399-0.88710.189768
200.1293790.8870.189804
21-0.079425-0.54450.294333
22-0.097885-0.67110.252731
230.1461921.00220.160679
24-0.036503-0.25030.401742
25-0.03594-0.24640.403225
26-0.062904-0.43120.334131
270.1174540.80520.212373
28-0.083338-0.57130.285246
290.0392590.26910.394498
30-0.077153-0.52890.299671
310.1355540.92930.178738
32-0.050687-0.34750.364887
330.017810.12210.451671
340.0323010.22140.412853
35-0.091733-0.62890.266234
36-0.027932-0.19150.424482







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.424701-2.91160.002742
2-0.246359-1.6890.048927
3-0.230953-1.58330.060026
4-0.147329-1.010.158824
5-0.119818-0.82140.207775
6-0.072997-0.50040.309549
70.0465640.31920.375485
8-0.142642-0.97790.166565
90.0353780.24250.404707
100.0093090.06380.474693
110.1157160.79330.215793
12-0.364585-2.49950.007994
13-0.130544-0.8950.187683
140.1479151.01410.157874
15-0.023184-0.15890.437198
16-0.127526-0.87430.193207
170.0248620.17040.432696
180.1936241.32740.095391
190.0028560.01960.49223
20-0.037055-0.2540.400287
210.1156140.79260.215995
22-0.09648-0.66140.255781
23-0.014985-0.10270.459305
24-0.178828-1.2260.113157
250.0047970.03290.486951
260.025880.17740.429969
27-0.103488-0.70950.240766
28-0.156698-1.07430.144093
290.0833990.57180.285107
30-0.024907-0.17080.432576
31-0.036014-0.24690.403029
32-0.009274-0.06360.474786
330.1732951.18810.120391
34-0.02487-0.17050.432673
35-0.038901-0.26670.395436
36-0.15538-1.06520.146106

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.424701 & -2.9116 & 0.002742 \tabularnewline
2 & -0.246359 & -1.689 & 0.048927 \tabularnewline
3 & -0.230953 & -1.5833 & 0.060026 \tabularnewline
4 & -0.147329 & -1.01 & 0.158824 \tabularnewline
5 & -0.119818 & -0.8214 & 0.207775 \tabularnewline
6 & -0.072997 & -0.5004 & 0.309549 \tabularnewline
7 & 0.046564 & 0.3192 & 0.375485 \tabularnewline
8 & -0.142642 & -0.9779 & 0.166565 \tabularnewline
9 & 0.035378 & 0.2425 & 0.404707 \tabularnewline
10 & 0.009309 & 0.0638 & 0.474693 \tabularnewline
11 & 0.115716 & 0.7933 & 0.215793 \tabularnewline
12 & -0.364585 & -2.4995 & 0.007994 \tabularnewline
13 & -0.130544 & -0.895 & 0.187683 \tabularnewline
14 & 0.147915 & 1.0141 & 0.157874 \tabularnewline
15 & -0.023184 & -0.1589 & 0.437198 \tabularnewline
16 & -0.127526 & -0.8743 & 0.193207 \tabularnewline
17 & 0.024862 & 0.1704 & 0.432696 \tabularnewline
18 & 0.193624 & 1.3274 & 0.095391 \tabularnewline
19 & 0.002856 & 0.0196 & 0.49223 \tabularnewline
20 & -0.037055 & -0.254 & 0.400287 \tabularnewline
21 & 0.115614 & 0.7926 & 0.215995 \tabularnewline
22 & -0.09648 & -0.6614 & 0.255781 \tabularnewline
23 & -0.014985 & -0.1027 & 0.459305 \tabularnewline
24 & -0.178828 & -1.226 & 0.113157 \tabularnewline
25 & 0.004797 & 0.0329 & 0.486951 \tabularnewline
26 & 0.02588 & 0.1774 & 0.429969 \tabularnewline
27 & -0.103488 & -0.7095 & 0.240766 \tabularnewline
28 & -0.156698 & -1.0743 & 0.144093 \tabularnewline
29 & 0.083399 & 0.5718 & 0.285107 \tabularnewline
30 & -0.024907 & -0.1708 & 0.432576 \tabularnewline
31 & -0.036014 & -0.2469 & 0.403029 \tabularnewline
32 & -0.009274 & -0.0636 & 0.474786 \tabularnewline
33 & 0.173295 & 1.1881 & 0.120391 \tabularnewline
34 & -0.02487 & -0.1705 & 0.432673 \tabularnewline
35 & -0.038901 & -0.2667 & 0.395436 \tabularnewline
36 & -0.15538 & -1.0652 & 0.146106 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59310&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.424701[/C][C]-2.9116[/C][C]0.002742[/C][/ROW]
[ROW][C]2[/C][C]-0.246359[/C][C]-1.689[/C][C]0.048927[/C][/ROW]
[ROW][C]3[/C][C]-0.230953[/C][C]-1.5833[/C][C]0.060026[/C][/ROW]
[ROW][C]4[/C][C]-0.147329[/C][C]-1.01[/C][C]0.158824[/C][/ROW]
[ROW][C]5[/C][C]-0.119818[/C][C]-0.8214[/C][C]0.207775[/C][/ROW]
[ROW][C]6[/C][C]-0.072997[/C][C]-0.5004[/C][C]0.309549[/C][/ROW]
[ROW][C]7[/C][C]0.046564[/C][C]0.3192[/C][C]0.375485[/C][/ROW]
[ROW][C]8[/C][C]-0.142642[/C][C]-0.9779[/C][C]0.166565[/C][/ROW]
[ROW][C]9[/C][C]0.035378[/C][C]0.2425[/C][C]0.404707[/C][/ROW]
[ROW][C]10[/C][C]0.009309[/C][C]0.0638[/C][C]0.474693[/C][/ROW]
[ROW][C]11[/C][C]0.115716[/C][C]0.7933[/C][C]0.215793[/C][/ROW]
[ROW][C]12[/C][C]-0.364585[/C][C]-2.4995[/C][C]0.007994[/C][/ROW]
[ROW][C]13[/C][C]-0.130544[/C][C]-0.895[/C][C]0.187683[/C][/ROW]
[ROW][C]14[/C][C]0.147915[/C][C]1.0141[/C][C]0.157874[/C][/ROW]
[ROW][C]15[/C][C]-0.023184[/C][C]-0.1589[/C][C]0.437198[/C][/ROW]
[ROW][C]16[/C][C]-0.127526[/C][C]-0.8743[/C][C]0.193207[/C][/ROW]
[ROW][C]17[/C][C]0.024862[/C][C]0.1704[/C][C]0.432696[/C][/ROW]
[ROW][C]18[/C][C]0.193624[/C][C]1.3274[/C][C]0.095391[/C][/ROW]
[ROW][C]19[/C][C]0.002856[/C][C]0.0196[/C][C]0.49223[/C][/ROW]
[ROW][C]20[/C][C]-0.037055[/C][C]-0.254[/C][C]0.400287[/C][/ROW]
[ROW][C]21[/C][C]0.115614[/C][C]0.7926[/C][C]0.215995[/C][/ROW]
[ROW][C]22[/C][C]-0.09648[/C][C]-0.6614[/C][C]0.255781[/C][/ROW]
[ROW][C]23[/C][C]-0.014985[/C][C]-0.1027[/C][C]0.459305[/C][/ROW]
[ROW][C]24[/C][C]-0.178828[/C][C]-1.226[/C][C]0.113157[/C][/ROW]
[ROW][C]25[/C][C]0.004797[/C][C]0.0329[/C][C]0.486951[/C][/ROW]
[ROW][C]26[/C][C]0.02588[/C][C]0.1774[/C][C]0.429969[/C][/ROW]
[ROW][C]27[/C][C]-0.103488[/C][C]-0.7095[/C][C]0.240766[/C][/ROW]
[ROW][C]28[/C][C]-0.156698[/C][C]-1.0743[/C][C]0.144093[/C][/ROW]
[ROW][C]29[/C][C]0.083399[/C][C]0.5718[/C][C]0.285107[/C][/ROW]
[ROW][C]30[/C][C]-0.024907[/C][C]-0.1708[/C][C]0.432576[/C][/ROW]
[ROW][C]31[/C][C]-0.036014[/C][C]-0.2469[/C][C]0.403029[/C][/ROW]
[ROW][C]32[/C][C]-0.009274[/C][C]-0.0636[/C][C]0.474786[/C][/ROW]
[ROW][C]33[/C][C]0.173295[/C][C]1.1881[/C][C]0.120391[/C][/ROW]
[ROW][C]34[/C][C]-0.02487[/C][C]-0.1705[/C][C]0.432673[/C][/ROW]
[ROW][C]35[/C][C]-0.038901[/C][C]-0.2667[/C][C]0.395436[/C][/ROW]
[ROW][C]36[/C][C]-0.15538[/C][C]-1.0652[/C][C]0.146106[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59310&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59310&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.424701-2.91160.002742
2-0.246359-1.6890.048927
3-0.230953-1.58330.060026
4-0.147329-1.010.158824
5-0.119818-0.82140.207775
6-0.072997-0.50040.309549
70.0465640.31920.375485
8-0.142642-0.97790.166565
90.0353780.24250.404707
100.0093090.06380.474693
110.1157160.79330.215793
12-0.364585-2.49950.007994
13-0.130544-0.8950.187683
140.1479151.01410.157874
15-0.023184-0.15890.437198
16-0.127526-0.87430.193207
170.0248620.17040.432696
180.1936241.32740.095391
190.0028560.01960.49223
20-0.037055-0.2540.400287
210.1156140.79260.215995
22-0.09648-0.66140.255781
23-0.014985-0.10270.459305
24-0.178828-1.2260.113157
250.0047970.03290.486951
260.025880.17740.429969
27-0.103488-0.70950.240766
28-0.156698-1.07430.144093
290.0833990.57180.285107
30-0.024907-0.17080.432576
31-0.036014-0.24690.403029
32-0.009274-0.06360.474786
330.1732951.18810.120391
34-0.02487-0.17050.432673
35-0.038901-0.26670.395436
36-0.15538-1.06520.146106



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