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 computationFri, 04 Dec 2009 12:39:49 -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/04/t125995564893o333or7mq4mtw.htm/, Retrieved Sat, 27 Apr 2024 16:20:35 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64086, Retrieved Sat, 27 Apr 2024 16:20:35 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact116
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]
-   PD      [(Partial) Autocorrelation Function] [(Partial) Autocor...] [2009-12-04 19:39:49] [d45d8d97b86162be82506c3c0ea6e4a6] [Current]
Feedback Forum

Post a new message
Dataseries X:
1.4
1
-0.8
-2.9
-0.7
-0.7
1.5
3
3.2
3.1
3.9
1
1.3
0.8
1.2
2.9
3.9
4.5
4.5
3.3
2
1.5
1
2.1
3
4
5.1
4.5
4.2
3.3
2.7
1.8
1.4
0.5
-0.4
0.8
0.7
1.9
2
1.1
0.9
0.4
0.7
2.1
2.8
3.9
3.5
2
2
1.5
2.5
3.1
2.7
2.8
2.5
3
3.2
2.8
2.4
2
1.8
1.1
-1.5
-3.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=64086&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=64086&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64086&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
10.7192065.75360
20.4007783.20620.00105
30.1033860.82710.20563
4-0.13139-1.05110.148578
5-0.192757-1.54210.063995
6-0.151056-1.20840.115661
7-0.065622-0.5250.300706
80.0795640.63650.263357
90.123980.99180.162506
100.0735760.58860.279097
11-0.01729-0.13830.445212
12-0.162625-1.3010.098962
13-0.236087-1.88870.031733
14-0.273689-2.18950.016106
15-0.285341-2.28270.012889
16-0.221913-1.77530.040301
17-0.152494-1.220.11348
18-0.042913-0.34330.366247
190.0517050.41360.340262
200.0607090.48570.314428
21-0.004079-0.03260.487036
22-0.10429-0.83430.203602
23-0.204878-1.6390.053058
24-0.229368-1.83490.035581
25-0.16407-1.31260.097009
26-0.037596-0.30080.382284
270.123420.98740.163593
280.2286411.82910.03602
290.2730672.18450.016296
300.2190841.75270.042224
310.1447551.1580.125576
320.050480.40380.343837
33-0.006368-0.05090.479763
34-0.043655-0.34920.364028
35-0.044869-0.3590.360405
36-0.009211-0.07370.470746

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.719206 & 5.7536 & 0 \tabularnewline
2 & 0.400778 & 3.2062 & 0.00105 \tabularnewline
3 & 0.103386 & 0.8271 & 0.20563 \tabularnewline
4 & -0.13139 & -1.0511 & 0.148578 \tabularnewline
5 & -0.192757 & -1.5421 & 0.063995 \tabularnewline
6 & -0.151056 & -1.2084 & 0.115661 \tabularnewline
7 & -0.065622 & -0.525 & 0.300706 \tabularnewline
8 & 0.079564 & 0.6365 & 0.263357 \tabularnewline
9 & 0.12398 & 0.9918 & 0.162506 \tabularnewline
10 & 0.073576 & 0.5886 & 0.279097 \tabularnewline
11 & -0.01729 & -0.1383 & 0.445212 \tabularnewline
12 & -0.162625 & -1.301 & 0.098962 \tabularnewline
13 & -0.236087 & -1.8887 & 0.031733 \tabularnewline
14 & -0.273689 & -2.1895 & 0.016106 \tabularnewline
15 & -0.285341 & -2.2827 & 0.012889 \tabularnewline
16 & -0.221913 & -1.7753 & 0.040301 \tabularnewline
17 & -0.152494 & -1.22 & 0.11348 \tabularnewline
18 & -0.042913 & -0.3433 & 0.366247 \tabularnewline
19 & 0.051705 & 0.4136 & 0.340262 \tabularnewline
20 & 0.060709 & 0.4857 & 0.314428 \tabularnewline
21 & -0.004079 & -0.0326 & 0.487036 \tabularnewline
22 & -0.10429 & -0.8343 & 0.203602 \tabularnewline
23 & -0.204878 & -1.639 & 0.053058 \tabularnewline
24 & -0.229368 & -1.8349 & 0.035581 \tabularnewline
25 & -0.16407 & -1.3126 & 0.097009 \tabularnewline
26 & -0.037596 & -0.3008 & 0.382284 \tabularnewline
27 & 0.12342 & 0.9874 & 0.163593 \tabularnewline
28 & 0.228641 & 1.8291 & 0.03602 \tabularnewline
29 & 0.273067 & 2.1845 & 0.016296 \tabularnewline
30 & 0.219084 & 1.7527 & 0.042224 \tabularnewline
31 & 0.144755 & 1.158 & 0.125576 \tabularnewline
32 & 0.05048 & 0.4038 & 0.343837 \tabularnewline
33 & -0.006368 & -0.0509 & 0.479763 \tabularnewline
34 & -0.043655 & -0.3492 & 0.364028 \tabularnewline
35 & -0.044869 & -0.359 & 0.360405 \tabularnewline
36 & -0.009211 & -0.0737 & 0.470746 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64086&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.719206[/C][C]5.7536[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.400778[/C][C]3.2062[/C][C]0.00105[/C][/ROW]
[ROW][C]3[/C][C]0.103386[/C][C]0.8271[/C][C]0.20563[/C][/ROW]
[ROW][C]4[/C][C]-0.13139[/C][C]-1.0511[/C][C]0.148578[/C][/ROW]
[ROW][C]5[/C][C]-0.192757[/C][C]-1.5421[/C][C]0.063995[/C][/ROW]
[ROW][C]6[/C][C]-0.151056[/C][C]-1.2084[/C][C]0.115661[/C][/ROW]
[ROW][C]7[/C][C]-0.065622[/C][C]-0.525[/C][C]0.300706[/C][/ROW]
[ROW][C]8[/C][C]0.079564[/C][C]0.6365[/C][C]0.263357[/C][/ROW]
[ROW][C]9[/C][C]0.12398[/C][C]0.9918[/C][C]0.162506[/C][/ROW]
[ROW][C]10[/C][C]0.073576[/C][C]0.5886[/C][C]0.279097[/C][/ROW]
[ROW][C]11[/C][C]-0.01729[/C][C]-0.1383[/C][C]0.445212[/C][/ROW]
[ROW][C]12[/C][C]-0.162625[/C][C]-1.301[/C][C]0.098962[/C][/ROW]
[ROW][C]13[/C][C]-0.236087[/C][C]-1.8887[/C][C]0.031733[/C][/ROW]
[ROW][C]14[/C][C]-0.273689[/C][C]-2.1895[/C][C]0.016106[/C][/ROW]
[ROW][C]15[/C][C]-0.285341[/C][C]-2.2827[/C][C]0.012889[/C][/ROW]
[ROW][C]16[/C][C]-0.221913[/C][C]-1.7753[/C][C]0.040301[/C][/ROW]
[ROW][C]17[/C][C]-0.152494[/C][C]-1.22[/C][C]0.11348[/C][/ROW]
[ROW][C]18[/C][C]-0.042913[/C][C]-0.3433[/C][C]0.366247[/C][/ROW]
[ROW][C]19[/C][C]0.051705[/C][C]0.4136[/C][C]0.340262[/C][/ROW]
[ROW][C]20[/C][C]0.060709[/C][C]0.4857[/C][C]0.314428[/C][/ROW]
[ROW][C]21[/C][C]-0.004079[/C][C]-0.0326[/C][C]0.487036[/C][/ROW]
[ROW][C]22[/C][C]-0.10429[/C][C]-0.8343[/C][C]0.203602[/C][/ROW]
[ROW][C]23[/C][C]-0.204878[/C][C]-1.639[/C][C]0.053058[/C][/ROW]
[ROW][C]24[/C][C]-0.229368[/C][C]-1.8349[/C][C]0.035581[/C][/ROW]
[ROW][C]25[/C][C]-0.16407[/C][C]-1.3126[/C][C]0.097009[/C][/ROW]
[ROW][C]26[/C][C]-0.037596[/C][C]-0.3008[/C][C]0.382284[/C][/ROW]
[ROW][C]27[/C][C]0.12342[/C][C]0.9874[/C][C]0.163593[/C][/ROW]
[ROW][C]28[/C][C]0.228641[/C][C]1.8291[/C][C]0.03602[/C][/ROW]
[ROW][C]29[/C][C]0.273067[/C][C]2.1845[/C][C]0.016296[/C][/ROW]
[ROW][C]30[/C][C]0.219084[/C][C]1.7527[/C][C]0.042224[/C][/ROW]
[ROW][C]31[/C][C]0.144755[/C][C]1.158[/C][C]0.125576[/C][/ROW]
[ROW][C]32[/C][C]0.05048[/C][C]0.4038[/C][C]0.343837[/C][/ROW]
[ROW][C]33[/C][C]-0.006368[/C][C]-0.0509[/C][C]0.479763[/C][/ROW]
[ROW][C]34[/C][C]-0.043655[/C][C]-0.3492[/C][C]0.364028[/C][/ROW]
[ROW][C]35[/C][C]-0.044869[/C][C]-0.359[/C][C]0.360405[/C][/ROW]
[ROW][C]36[/C][C]-0.009211[/C][C]-0.0737[/C][C]0.470746[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64086&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64086&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.7192065.75360
20.4007783.20620.00105
30.1033860.82710.20563
4-0.13139-1.05110.148578
5-0.192757-1.54210.063995
6-0.151056-1.20840.115661
7-0.065622-0.5250.300706
80.0795640.63650.263357
90.123980.99180.162506
100.0735760.58860.279097
11-0.01729-0.13830.445212
12-0.162625-1.3010.098962
13-0.236087-1.88870.031733
14-0.273689-2.18950.016106
15-0.285341-2.28270.012889
16-0.221913-1.77530.040301
17-0.152494-1.220.11348
18-0.042913-0.34330.366247
190.0517050.41360.340262
200.0607090.48570.314428
21-0.004079-0.03260.487036
22-0.10429-0.83430.203602
23-0.204878-1.6390.053058
24-0.229368-1.83490.035581
25-0.16407-1.31260.097009
26-0.037596-0.30080.382284
270.123420.98740.163593
280.2286411.82910.03602
290.2730672.18450.016296
300.2190841.75270.042224
310.1447551.1580.125576
320.050480.40380.343837
33-0.006368-0.05090.479763
34-0.043655-0.34920.364028
35-0.044869-0.3590.360405
36-0.009211-0.07370.470746







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7192065.75360
2-0.241284-1.93030.029003
3-0.17788-1.4230.07979
4-0.132331-1.05860.14687
50.108330.86660.194689
60.0382570.30610.380276
70.0077160.06170.475487
80.1353531.08280.141474
9-0.100384-0.80310.212453
10-0.100932-0.80750.211198
11-0.050929-0.40740.342525
12-0.119561-0.95650.171212
130.0140770.11260.455343
14-0.11177-0.89420.187294
15-0.099177-0.79340.215233
16-0.022238-0.17790.429681
17-0.054817-0.43850.331236
180.0975210.78020.219084
19-0.002879-0.0230.490847
20-0.058742-0.46990.319999
21-0.132999-1.0640.145666
22-0.100989-0.80790.211068
23-0.056723-0.45380.325758
24-0.022565-0.18050.428658
250.0650670.52050.302242
260.0253290.20260.420031
270.0288470.23080.409113
28-0.012149-0.09720.46144
290.0343640.27490.392133
30-0.026763-0.21410.415573
310.088840.71070.239919
32-0.036609-0.29290.385283
330.0104920.08390.466683
34-0.090212-0.72170.236555
35-0.038204-0.30560.38044
360.0136980.10960.456541

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.719206 & 5.7536 & 0 \tabularnewline
2 & -0.241284 & -1.9303 & 0.029003 \tabularnewline
3 & -0.17788 & -1.423 & 0.07979 \tabularnewline
4 & -0.132331 & -1.0586 & 0.14687 \tabularnewline
5 & 0.10833 & 0.8666 & 0.194689 \tabularnewline
6 & 0.038257 & 0.3061 & 0.380276 \tabularnewline
7 & 0.007716 & 0.0617 & 0.475487 \tabularnewline
8 & 0.135353 & 1.0828 & 0.141474 \tabularnewline
9 & -0.100384 & -0.8031 & 0.212453 \tabularnewline
10 & -0.100932 & -0.8075 & 0.211198 \tabularnewline
11 & -0.050929 & -0.4074 & 0.342525 \tabularnewline
12 & -0.119561 & -0.9565 & 0.171212 \tabularnewline
13 & 0.014077 & 0.1126 & 0.455343 \tabularnewline
14 & -0.11177 & -0.8942 & 0.187294 \tabularnewline
15 & -0.099177 & -0.7934 & 0.215233 \tabularnewline
16 & -0.022238 & -0.1779 & 0.429681 \tabularnewline
17 & -0.054817 & -0.4385 & 0.331236 \tabularnewline
18 & 0.097521 & 0.7802 & 0.219084 \tabularnewline
19 & -0.002879 & -0.023 & 0.490847 \tabularnewline
20 & -0.058742 & -0.4699 & 0.319999 \tabularnewline
21 & -0.132999 & -1.064 & 0.145666 \tabularnewline
22 & -0.100989 & -0.8079 & 0.211068 \tabularnewline
23 & -0.056723 & -0.4538 & 0.325758 \tabularnewline
24 & -0.022565 & -0.1805 & 0.428658 \tabularnewline
25 & 0.065067 & 0.5205 & 0.302242 \tabularnewline
26 & 0.025329 & 0.2026 & 0.420031 \tabularnewline
27 & 0.028847 & 0.2308 & 0.409113 \tabularnewline
28 & -0.012149 & -0.0972 & 0.46144 \tabularnewline
29 & 0.034364 & 0.2749 & 0.392133 \tabularnewline
30 & -0.026763 & -0.2141 & 0.415573 \tabularnewline
31 & 0.08884 & 0.7107 & 0.239919 \tabularnewline
32 & -0.036609 & -0.2929 & 0.385283 \tabularnewline
33 & 0.010492 & 0.0839 & 0.466683 \tabularnewline
34 & -0.090212 & -0.7217 & 0.236555 \tabularnewline
35 & -0.038204 & -0.3056 & 0.38044 \tabularnewline
36 & 0.013698 & 0.1096 & 0.456541 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64086&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.719206[/C][C]5.7536[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.241284[/C][C]-1.9303[/C][C]0.029003[/C][/ROW]
[ROW][C]3[/C][C]-0.17788[/C][C]-1.423[/C][C]0.07979[/C][/ROW]
[ROW][C]4[/C][C]-0.132331[/C][C]-1.0586[/C][C]0.14687[/C][/ROW]
[ROW][C]5[/C][C]0.10833[/C][C]0.8666[/C][C]0.194689[/C][/ROW]
[ROW][C]6[/C][C]0.038257[/C][C]0.3061[/C][C]0.380276[/C][/ROW]
[ROW][C]7[/C][C]0.007716[/C][C]0.0617[/C][C]0.475487[/C][/ROW]
[ROW][C]8[/C][C]0.135353[/C][C]1.0828[/C][C]0.141474[/C][/ROW]
[ROW][C]9[/C][C]-0.100384[/C][C]-0.8031[/C][C]0.212453[/C][/ROW]
[ROW][C]10[/C][C]-0.100932[/C][C]-0.8075[/C][C]0.211198[/C][/ROW]
[ROW][C]11[/C][C]-0.050929[/C][C]-0.4074[/C][C]0.342525[/C][/ROW]
[ROW][C]12[/C][C]-0.119561[/C][C]-0.9565[/C][C]0.171212[/C][/ROW]
[ROW][C]13[/C][C]0.014077[/C][C]0.1126[/C][C]0.455343[/C][/ROW]
[ROW][C]14[/C][C]-0.11177[/C][C]-0.8942[/C][C]0.187294[/C][/ROW]
[ROW][C]15[/C][C]-0.099177[/C][C]-0.7934[/C][C]0.215233[/C][/ROW]
[ROW][C]16[/C][C]-0.022238[/C][C]-0.1779[/C][C]0.429681[/C][/ROW]
[ROW][C]17[/C][C]-0.054817[/C][C]-0.4385[/C][C]0.331236[/C][/ROW]
[ROW][C]18[/C][C]0.097521[/C][C]0.7802[/C][C]0.219084[/C][/ROW]
[ROW][C]19[/C][C]-0.002879[/C][C]-0.023[/C][C]0.490847[/C][/ROW]
[ROW][C]20[/C][C]-0.058742[/C][C]-0.4699[/C][C]0.319999[/C][/ROW]
[ROW][C]21[/C][C]-0.132999[/C][C]-1.064[/C][C]0.145666[/C][/ROW]
[ROW][C]22[/C][C]-0.100989[/C][C]-0.8079[/C][C]0.211068[/C][/ROW]
[ROW][C]23[/C][C]-0.056723[/C][C]-0.4538[/C][C]0.325758[/C][/ROW]
[ROW][C]24[/C][C]-0.022565[/C][C]-0.1805[/C][C]0.428658[/C][/ROW]
[ROW][C]25[/C][C]0.065067[/C][C]0.5205[/C][C]0.302242[/C][/ROW]
[ROW][C]26[/C][C]0.025329[/C][C]0.2026[/C][C]0.420031[/C][/ROW]
[ROW][C]27[/C][C]0.028847[/C][C]0.2308[/C][C]0.409113[/C][/ROW]
[ROW][C]28[/C][C]-0.012149[/C][C]-0.0972[/C][C]0.46144[/C][/ROW]
[ROW][C]29[/C][C]0.034364[/C][C]0.2749[/C][C]0.392133[/C][/ROW]
[ROW][C]30[/C][C]-0.026763[/C][C]-0.2141[/C][C]0.415573[/C][/ROW]
[ROW][C]31[/C][C]0.08884[/C][C]0.7107[/C][C]0.239919[/C][/ROW]
[ROW][C]32[/C][C]-0.036609[/C][C]-0.2929[/C][C]0.385283[/C][/ROW]
[ROW][C]33[/C][C]0.010492[/C][C]0.0839[/C][C]0.466683[/C][/ROW]
[ROW][C]34[/C][C]-0.090212[/C][C]-0.7217[/C][C]0.236555[/C][/ROW]
[ROW][C]35[/C][C]-0.038204[/C][C]-0.3056[/C][C]0.38044[/C][/ROW]
[ROW][C]36[/C][C]0.013698[/C][C]0.1096[/C][C]0.456541[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64086&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64086&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.7192065.75360
2-0.241284-1.93030.029003
3-0.17788-1.4230.07979
4-0.132331-1.05860.14687
50.108330.86660.194689
60.0382570.30610.380276
70.0077160.06170.475487
80.1353531.08280.141474
9-0.100384-0.80310.212453
10-0.100932-0.80750.211198
11-0.050929-0.40740.342525
12-0.119561-0.95650.171212
130.0140770.11260.455343
14-0.11177-0.89420.187294
15-0.099177-0.79340.215233
16-0.022238-0.17790.429681
17-0.054817-0.43850.331236
180.0975210.78020.219084
19-0.002879-0.0230.490847
20-0.058742-0.46990.319999
21-0.132999-1.0640.145666
22-0.100989-0.80790.211068
23-0.056723-0.45380.325758
24-0.022565-0.18050.428658
250.0650670.52050.302242
260.0253290.20260.420031
270.0288470.23080.409113
28-0.012149-0.09720.46144
290.0343640.27490.392133
30-0.026763-0.21410.415573
310.088840.71070.239919
32-0.036609-0.29290.385283
330.0104920.08390.466683
34-0.090212-0.72170.236555
35-0.038204-0.30560.38044
360.0136980.10960.456541



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