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 10:52:43 -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/t1259949448lh21sumkbhzlfwz.htm/, Retrieved Sat, 04 May 2024 02:24:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63980, Retrieved Sat, 04 May 2024 02:24:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact92
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:47:30] [b98453cac15ba1066b407e146608df68]
-   PD      [(Partial) Autocorrelation Function] [WS9, ACF] [2009-12-04 17:52:43] [b8ce264f75295a954feffaf60221d1b0] [Current]
Feedback Forum

Post a new message
Dataseries X:
14,3
14,2
15,9
15,3
15,5
15,1
15
12,1
15,8
16,9
15,1
13,7
14,8
14,7
16
15,4
15
15,5
15,1
11,7
16,3
16,7
15
14,9
14,6
15,3
17,9
16,4
15,4
17,9
15,9
13,9
17,8
17,9
17,4
16,7
16
16,6
19,1
17,8
17,2
18,6
16,3
15,1
19,2
17,7
19,1
18
17,5
17,8
21,1
17,2
19,4
19,8
17,6
16,2
19,5
19,9
20
17,3




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63980&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.343995-2.64230.005264
2-0.30335-2.33010.011621
30.1374131.05550.147752
40.0289490.22240.412401
5-0.191771-1.4730.073031
60.3935723.02310.00185
7-0.289002-2.21990.015142
80.1173480.90140.185528
90.1461521.12260.133075
10-0.393342-3.02130.001859
11-0.102041-0.78380.218148
120.673495.17321e-06
13-0.309832-2.37990.010285
14-0.105072-0.80710.211432
150.0590370.45350.325935
16-0.106351-0.81690.208636
170.0164440.12630.449957
180.2337951.79580.038823
19-0.250014-1.92040.029823
200.1547761.18890.119629
210.1043330.80140.213059
22-0.389196-2.98950.002035
230.0523540.40210.344518
240.4222133.24310.000974
25-0.238603-1.83270.035944
26-0.001055-0.00810.496781
27-0.02251-0.17290.431661
28-0.064218-0.49330.311827
290.0433190.33270.370255
300.1206270.92660.178967
31-0.187303-1.43870.077759
320.2112441.62260.055004
33-0.054578-0.41920.338287
34-0.201141-1.5450.063847
350.0400240.30740.3798
360.2351151.8060.038014

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.343995 & -2.6423 & 0.005264 \tabularnewline
2 & -0.30335 & -2.3301 & 0.011621 \tabularnewline
3 & 0.137413 & 1.0555 & 0.147752 \tabularnewline
4 & 0.028949 & 0.2224 & 0.412401 \tabularnewline
5 & -0.191771 & -1.473 & 0.073031 \tabularnewline
6 & 0.393572 & 3.0231 & 0.00185 \tabularnewline
7 & -0.289002 & -2.2199 & 0.015142 \tabularnewline
8 & 0.117348 & 0.9014 & 0.185528 \tabularnewline
9 & 0.146152 & 1.1226 & 0.133075 \tabularnewline
10 & -0.393342 & -3.0213 & 0.001859 \tabularnewline
11 & -0.102041 & -0.7838 & 0.218148 \tabularnewline
12 & 0.67349 & 5.1732 & 1e-06 \tabularnewline
13 & -0.309832 & -2.3799 & 0.010285 \tabularnewline
14 & -0.105072 & -0.8071 & 0.211432 \tabularnewline
15 & 0.059037 & 0.4535 & 0.325935 \tabularnewline
16 & -0.106351 & -0.8169 & 0.208636 \tabularnewline
17 & 0.016444 & 0.1263 & 0.449957 \tabularnewline
18 & 0.233795 & 1.7958 & 0.038823 \tabularnewline
19 & -0.250014 & -1.9204 & 0.029823 \tabularnewline
20 & 0.154776 & 1.1889 & 0.119629 \tabularnewline
21 & 0.104333 & 0.8014 & 0.213059 \tabularnewline
22 & -0.389196 & -2.9895 & 0.002035 \tabularnewline
23 & 0.052354 & 0.4021 & 0.344518 \tabularnewline
24 & 0.422213 & 3.2431 & 0.000974 \tabularnewline
25 & -0.238603 & -1.8327 & 0.035944 \tabularnewline
26 & -0.001055 & -0.0081 & 0.496781 \tabularnewline
27 & -0.02251 & -0.1729 & 0.431661 \tabularnewline
28 & -0.064218 & -0.4933 & 0.311827 \tabularnewline
29 & 0.043319 & 0.3327 & 0.370255 \tabularnewline
30 & 0.120627 & 0.9266 & 0.178967 \tabularnewline
31 & -0.187303 & -1.4387 & 0.077759 \tabularnewline
32 & 0.211244 & 1.6226 & 0.055004 \tabularnewline
33 & -0.054578 & -0.4192 & 0.338287 \tabularnewline
34 & -0.201141 & -1.545 & 0.063847 \tabularnewline
35 & 0.040024 & 0.3074 & 0.3798 \tabularnewline
36 & 0.235115 & 1.806 & 0.038014 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63980&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.343995[/C][C]-2.6423[/C][C]0.005264[/C][/ROW]
[ROW][C]2[/C][C]-0.30335[/C][C]-2.3301[/C][C]0.011621[/C][/ROW]
[ROW][C]3[/C][C]0.137413[/C][C]1.0555[/C][C]0.147752[/C][/ROW]
[ROW][C]4[/C][C]0.028949[/C][C]0.2224[/C][C]0.412401[/C][/ROW]
[ROW][C]5[/C][C]-0.191771[/C][C]-1.473[/C][C]0.073031[/C][/ROW]
[ROW][C]6[/C][C]0.393572[/C][C]3.0231[/C][C]0.00185[/C][/ROW]
[ROW][C]7[/C][C]-0.289002[/C][C]-2.2199[/C][C]0.015142[/C][/ROW]
[ROW][C]8[/C][C]0.117348[/C][C]0.9014[/C][C]0.185528[/C][/ROW]
[ROW][C]9[/C][C]0.146152[/C][C]1.1226[/C][C]0.133075[/C][/ROW]
[ROW][C]10[/C][C]-0.393342[/C][C]-3.0213[/C][C]0.001859[/C][/ROW]
[ROW][C]11[/C][C]-0.102041[/C][C]-0.7838[/C][C]0.218148[/C][/ROW]
[ROW][C]12[/C][C]0.67349[/C][C]5.1732[/C][C]1e-06[/C][/ROW]
[ROW][C]13[/C][C]-0.309832[/C][C]-2.3799[/C][C]0.010285[/C][/ROW]
[ROW][C]14[/C][C]-0.105072[/C][C]-0.8071[/C][C]0.211432[/C][/ROW]
[ROW][C]15[/C][C]0.059037[/C][C]0.4535[/C][C]0.325935[/C][/ROW]
[ROW][C]16[/C][C]-0.106351[/C][C]-0.8169[/C][C]0.208636[/C][/ROW]
[ROW][C]17[/C][C]0.016444[/C][C]0.1263[/C][C]0.449957[/C][/ROW]
[ROW][C]18[/C][C]0.233795[/C][C]1.7958[/C][C]0.038823[/C][/ROW]
[ROW][C]19[/C][C]-0.250014[/C][C]-1.9204[/C][C]0.029823[/C][/ROW]
[ROW][C]20[/C][C]0.154776[/C][C]1.1889[/C][C]0.119629[/C][/ROW]
[ROW][C]21[/C][C]0.104333[/C][C]0.8014[/C][C]0.213059[/C][/ROW]
[ROW][C]22[/C][C]-0.389196[/C][C]-2.9895[/C][C]0.002035[/C][/ROW]
[ROW][C]23[/C][C]0.052354[/C][C]0.4021[/C][C]0.344518[/C][/ROW]
[ROW][C]24[/C][C]0.422213[/C][C]3.2431[/C][C]0.000974[/C][/ROW]
[ROW][C]25[/C][C]-0.238603[/C][C]-1.8327[/C][C]0.035944[/C][/ROW]
[ROW][C]26[/C][C]-0.001055[/C][C]-0.0081[/C][C]0.496781[/C][/ROW]
[ROW][C]27[/C][C]-0.02251[/C][C]-0.1729[/C][C]0.431661[/C][/ROW]
[ROW][C]28[/C][C]-0.064218[/C][C]-0.4933[/C][C]0.311827[/C][/ROW]
[ROW][C]29[/C][C]0.043319[/C][C]0.3327[/C][C]0.370255[/C][/ROW]
[ROW][C]30[/C][C]0.120627[/C][C]0.9266[/C][C]0.178967[/C][/ROW]
[ROW][C]31[/C][C]-0.187303[/C][C]-1.4387[/C][C]0.077759[/C][/ROW]
[ROW][C]32[/C][C]0.211244[/C][C]1.6226[/C][C]0.055004[/C][/ROW]
[ROW][C]33[/C][C]-0.054578[/C][C]-0.4192[/C][C]0.338287[/C][/ROW]
[ROW][C]34[/C][C]-0.201141[/C][C]-1.545[/C][C]0.063847[/C][/ROW]
[ROW][C]35[/C][C]0.040024[/C][C]0.3074[/C][C]0.3798[/C][/ROW]
[ROW][C]36[/C][C]0.235115[/C][C]1.806[/C][C]0.038014[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63980&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63980&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.343995-2.64230.005264
2-0.30335-2.33010.011621
30.1374131.05550.147752
40.0289490.22240.412401
5-0.191771-1.4730.073031
60.3935723.02310.00185
7-0.289002-2.21990.015142
80.1173480.90140.185528
90.1461521.12260.133075
10-0.393342-3.02130.001859
11-0.102041-0.78380.218148
120.673495.17321e-06
13-0.309832-2.37990.010285
14-0.105072-0.80710.211432
150.0590370.45350.325935
16-0.106351-0.81690.208636
170.0164440.12630.449957
180.2337951.79580.038823
19-0.250014-1.92040.029823
200.1547761.18890.119629
210.1043330.80140.213059
22-0.389196-2.98950.002035
230.0523540.40210.344518
240.4222133.24310.000974
25-0.238603-1.83270.035944
26-0.001055-0.00810.496781
27-0.02251-0.17290.431661
28-0.064218-0.49330.311827
290.0433190.33270.370255
300.1206270.92660.178967
31-0.187303-1.43870.077759
320.2112441.62260.055004
33-0.054578-0.41920.338287
34-0.201141-1.5450.063847
350.0400240.30740.3798
360.2351151.8060.038014







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.343995-2.64230.005264
2-0.478279-3.67370.000259
3-0.266729-2.04880.02247
4-0.255901-1.96560.027028
5-0.480733-3.69260.000243
60.0604720.46450.322002
7-0.375722-2.8860.002722
80.191321.46960.073497
90.348592.67760.004795
10-0.19175-1.47290.073051
11-0.34024-2.61340.005678
120.1369391.05180.148579
130.026940.20690.418387
140.1971261.51420.067663
150.0142980.10980.45646
16-0.049572-0.38080.35237
170.0121820.09360.462883
18-0.179443-1.37830.086654
190.0230070.17670.430168
20-0.161014-1.23680.110536
21-0.004568-0.03510.486065
22-0.036592-0.28110.38982
23-0.074525-0.57240.284599
240.1264210.97110.167742
25-0.043267-0.33230.370404
260.0760060.58380.280786
27-0.075572-0.58050.2819
280.1632721.25410.107373
29-0.000124-0.0010.499621
30-0.044543-0.34210.36673
31-0.00895-0.06870.472711
32-0.072189-0.55450.290668
33-0.185719-1.42650.079492
340.0603080.46320.322449
35-0.119682-0.91930.180842
36-0.057583-0.44230.329943

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.343995 & -2.6423 & 0.005264 \tabularnewline
2 & -0.478279 & -3.6737 & 0.000259 \tabularnewline
3 & -0.266729 & -2.0488 & 0.02247 \tabularnewline
4 & -0.255901 & -1.9656 & 0.027028 \tabularnewline
5 & -0.480733 & -3.6926 & 0.000243 \tabularnewline
6 & 0.060472 & 0.4645 & 0.322002 \tabularnewline
7 & -0.375722 & -2.886 & 0.002722 \tabularnewline
8 & 0.19132 & 1.4696 & 0.073497 \tabularnewline
9 & 0.34859 & 2.6776 & 0.004795 \tabularnewline
10 & -0.19175 & -1.4729 & 0.073051 \tabularnewline
11 & -0.34024 & -2.6134 & 0.005678 \tabularnewline
12 & 0.136939 & 1.0518 & 0.148579 \tabularnewline
13 & 0.02694 & 0.2069 & 0.418387 \tabularnewline
14 & 0.197126 & 1.5142 & 0.067663 \tabularnewline
15 & 0.014298 & 0.1098 & 0.45646 \tabularnewline
16 & -0.049572 & -0.3808 & 0.35237 \tabularnewline
17 & 0.012182 & 0.0936 & 0.462883 \tabularnewline
18 & -0.179443 & -1.3783 & 0.086654 \tabularnewline
19 & 0.023007 & 0.1767 & 0.430168 \tabularnewline
20 & -0.161014 & -1.2368 & 0.110536 \tabularnewline
21 & -0.004568 & -0.0351 & 0.486065 \tabularnewline
22 & -0.036592 & -0.2811 & 0.38982 \tabularnewline
23 & -0.074525 & -0.5724 & 0.284599 \tabularnewline
24 & 0.126421 & 0.9711 & 0.167742 \tabularnewline
25 & -0.043267 & -0.3323 & 0.370404 \tabularnewline
26 & 0.076006 & 0.5838 & 0.280786 \tabularnewline
27 & -0.075572 & -0.5805 & 0.2819 \tabularnewline
28 & 0.163272 & 1.2541 & 0.107373 \tabularnewline
29 & -0.000124 & -0.001 & 0.499621 \tabularnewline
30 & -0.044543 & -0.3421 & 0.36673 \tabularnewline
31 & -0.00895 & -0.0687 & 0.472711 \tabularnewline
32 & -0.072189 & -0.5545 & 0.290668 \tabularnewline
33 & -0.185719 & -1.4265 & 0.079492 \tabularnewline
34 & 0.060308 & 0.4632 & 0.322449 \tabularnewline
35 & -0.119682 & -0.9193 & 0.180842 \tabularnewline
36 & -0.057583 & -0.4423 & 0.329943 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63980&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.343995[/C][C]-2.6423[/C][C]0.005264[/C][/ROW]
[ROW][C]2[/C][C]-0.478279[/C][C]-3.6737[/C][C]0.000259[/C][/ROW]
[ROW][C]3[/C][C]-0.266729[/C][C]-2.0488[/C][C]0.02247[/C][/ROW]
[ROW][C]4[/C][C]-0.255901[/C][C]-1.9656[/C][C]0.027028[/C][/ROW]
[ROW][C]5[/C][C]-0.480733[/C][C]-3.6926[/C][C]0.000243[/C][/ROW]
[ROW][C]6[/C][C]0.060472[/C][C]0.4645[/C][C]0.322002[/C][/ROW]
[ROW][C]7[/C][C]-0.375722[/C][C]-2.886[/C][C]0.002722[/C][/ROW]
[ROW][C]8[/C][C]0.19132[/C][C]1.4696[/C][C]0.073497[/C][/ROW]
[ROW][C]9[/C][C]0.34859[/C][C]2.6776[/C][C]0.004795[/C][/ROW]
[ROW][C]10[/C][C]-0.19175[/C][C]-1.4729[/C][C]0.073051[/C][/ROW]
[ROW][C]11[/C][C]-0.34024[/C][C]-2.6134[/C][C]0.005678[/C][/ROW]
[ROW][C]12[/C][C]0.136939[/C][C]1.0518[/C][C]0.148579[/C][/ROW]
[ROW][C]13[/C][C]0.02694[/C][C]0.2069[/C][C]0.418387[/C][/ROW]
[ROW][C]14[/C][C]0.197126[/C][C]1.5142[/C][C]0.067663[/C][/ROW]
[ROW][C]15[/C][C]0.014298[/C][C]0.1098[/C][C]0.45646[/C][/ROW]
[ROW][C]16[/C][C]-0.049572[/C][C]-0.3808[/C][C]0.35237[/C][/ROW]
[ROW][C]17[/C][C]0.012182[/C][C]0.0936[/C][C]0.462883[/C][/ROW]
[ROW][C]18[/C][C]-0.179443[/C][C]-1.3783[/C][C]0.086654[/C][/ROW]
[ROW][C]19[/C][C]0.023007[/C][C]0.1767[/C][C]0.430168[/C][/ROW]
[ROW][C]20[/C][C]-0.161014[/C][C]-1.2368[/C][C]0.110536[/C][/ROW]
[ROW][C]21[/C][C]-0.004568[/C][C]-0.0351[/C][C]0.486065[/C][/ROW]
[ROW][C]22[/C][C]-0.036592[/C][C]-0.2811[/C][C]0.38982[/C][/ROW]
[ROW][C]23[/C][C]-0.074525[/C][C]-0.5724[/C][C]0.284599[/C][/ROW]
[ROW][C]24[/C][C]0.126421[/C][C]0.9711[/C][C]0.167742[/C][/ROW]
[ROW][C]25[/C][C]-0.043267[/C][C]-0.3323[/C][C]0.370404[/C][/ROW]
[ROW][C]26[/C][C]0.076006[/C][C]0.5838[/C][C]0.280786[/C][/ROW]
[ROW][C]27[/C][C]-0.075572[/C][C]-0.5805[/C][C]0.2819[/C][/ROW]
[ROW][C]28[/C][C]0.163272[/C][C]1.2541[/C][C]0.107373[/C][/ROW]
[ROW][C]29[/C][C]-0.000124[/C][C]-0.001[/C][C]0.499621[/C][/ROW]
[ROW][C]30[/C][C]-0.044543[/C][C]-0.3421[/C][C]0.36673[/C][/ROW]
[ROW][C]31[/C][C]-0.00895[/C][C]-0.0687[/C][C]0.472711[/C][/ROW]
[ROW][C]32[/C][C]-0.072189[/C][C]-0.5545[/C][C]0.290668[/C][/ROW]
[ROW][C]33[/C][C]-0.185719[/C][C]-1.4265[/C][C]0.079492[/C][/ROW]
[ROW][C]34[/C][C]0.060308[/C][C]0.4632[/C][C]0.322449[/C][/ROW]
[ROW][C]35[/C][C]-0.119682[/C][C]-0.9193[/C][C]0.180842[/C][/ROW]
[ROW][C]36[/C][C]-0.057583[/C][C]-0.4423[/C][C]0.329943[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63980&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63980&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.343995-2.64230.005264
2-0.478279-3.67370.000259
3-0.266729-2.04880.02247
4-0.255901-1.96560.027028
5-0.480733-3.69260.000243
60.0604720.46450.322002
7-0.375722-2.8860.002722
80.191321.46960.073497
90.348592.67760.004795
10-0.19175-1.47290.073051
11-0.34024-2.61340.005678
120.1369391.05180.148579
130.026940.20690.418387
140.1971261.51420.067663
150.0142980.10980.45646
16-0.049572-0.38080.35237
170.0121820.09360.462883
18-0.179443-1.37830.086654
190.0230070.17670.430168
20-0.161014-1.23680.110536
21-0.004568-0.03510.486065
22-0.036592-0.28110.38982
23-0.074525-0.57240.284599
240.1264210.97110.167742
25-0.043267-0.33230.370404
260.0760060.58380.280786
27-0.075572-0.58050.2819
280.1632721.25410.107373
29-0.000124-0.0010.499621
30-0.044543-0.34210.36673
31-0.00895-0.06870.472711
32-0.072189-0.55450.290668
33-0.185719-1.42650.079492
340.0603080.46320.322449
35-0.119682-0.91930.180842
36-0.057583-0.44230.329943



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