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 15:30:31 -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/t1259965869trtc3cztvdtkz73.htm/, Retrieved Sat, 27 Apr 2024 16:06:56 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64191, Retrieved Sat, 27 Apr 2024 16:06:56 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact96
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [autocorrelatie w5b] [2009-12-04 22:30:31] [b42c0aeada8a5fa89825c81e73c10645] [Current]
Feedback Forum

Post a new message
Dataseries X:
12.3
14.6
17.7
15.2
22.3
14.8
10
2.9
5.6
16.1
23.7
26.5
20.9
15.9
13
7.8
17.5
24.4
33.7
32.3
33.4
22.2
21.7
12.8
15.2
17.1
17.6
17.5
14.7
12.9
12
11.1
12.3
18.9
24
29.6
30.9
33
34.9
40.1
30.8
31
23.8
30.8
27.6
30.2
22.2
19.9
18.3
15.2
10.1
6.5
1.9
2
4.3
4.8
4.9
2.1
5.5
10.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=64191&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=64191&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64191&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.1575181.20990.115568
20.235491.80880.037787
3-0.430112-3.30380.000812
4-0.18315-1.40680.082366
5-0.241302-1.85350.034408
60.0966710.74250.230351
70.1009420.77530.220615
80.2606812.00230.024926
90.1021210.78440.21797
10-0.034303-0.26350.396546
11-0.260304-1.99940.025087
12-0.288794-2.21830.015199
13-0.260028-1.99730.025205
14-0.059482-0.45690.324714
150.0535820.41160.341073
160.1529981.17520.122318
170.0705460.54190.294974
18-0.008698-0.06680.47348
190.0072690.05580.477832
20-0.07386-0.56730.286321
210.0952190.73140.233717
22-0.119685-0.91930.180837
230.1343911.03230.153078
24-0.041076-0.31550.376743
250.1895081.45560.075397
260.0155130.11920.452779
270.0958920.73660.232155
28-0.033503-0.25730.398904
290.0572550.43980.330852
30-0.088992-0.68360.248465
31-0.07957-0.61120.271711
32-0.100943-0.77540.220613
33-0.026982-0.20730.418264
340.0446310.34280.366478
350.077540.59560.276861
36-0.078169-0.60040.27526

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.157518 & 1.2099 & 0.115568 \tabularnewline
2 & 0.23549 & 1.8088 & 0.037787 \tabularnewline
3 & -0.430112 & -3.3038 & 0.000812 \tabularnewline
4 & -0.18315 & -1.4068 & 0.082366 \tabularnewline
5 & -0.241302 & -1.8535 & 0.034408 \tabularnewline
6 & 0.096671 & 0.7425 & 0.230351 \tabularnewline
7 & 0.100942 & 0.7753 & 0.220615 \tabularnewline
8 & 0.260681 & 2.0023 & 0.024926 \tabularnewline
9 & 0.102121 & 0.7844 & 0.21797 \tabularnewline
10 & -0.034303 & -0.2635 & 0.396546 \tabularnewline
11 & -0.260304 & -1.9994 & 0.025087 \tabularnewline
12 & -0.288794 & -2.2183 & 0.015199 \tabularnewline
13 & -0.260028 & -1.9973 & 0.025205 \tabularnewline
14 & -0.059482 & -0.4569 & 0.324714 \tabularnewline
15 & 0.053582 & 0.4116 & 0.341073 \tabularnewline
16 & 0.152998 & 1.1752 & 0.122318 \tabularnewline
17 & 0.070546 & 0.5419 & 0.294974 \tabularnewline
18 & -0.008698 & -0.0668 & 0.47348 \tabularnewline
19 & 0.007269 & 0.0558 & 0.477832 \tabularnewline
20 & -0.07386 & -0.5673 & 0.286321 \tabularnewline
21 & 0.095219 & 0.7314 & 0.233717 \tabularnewline
22 & -0.119685 & -0.9193 & 0.180837 \tabularnewline
23 & 0.134391 & 1.0323 & 0.153078 \tabularnewline
24 & -0.041076 & -0.3155 & 0.376743 \tabularnewline
25 & 0.189508 & 1.4556 & 0.075397 \tabularnewline
26 & 0.015513 & 0.1192 & 0.452779 \tabularnewline
27 & 0.095892 & 0.7366 & 0.232155 \tabularnewline
28 & -0.033503 & -0.2573 & 0.398904 \tabularnewline
29 & 0.057255 & 0.4398 & 0.330852 \tabularnewline
30 & -0.088992 & -0.6836 & 0.248465 \tabularnewline
31 & -0.07957 & -0.6112 & 0.271711 \tabularnewline
32 & -0.100943 & -0.7754 & 0.220613 \tabularnewline
33 & -0.026982 & -0.2073 & 0.418264 \tabularnewline
34 & 0.044631 & 0.3428 & 0.366478 \tabularnewline
35 & 0.07754 & 0.5956 & 0.276861 \tabularnewline
36 & -0.078169 & -0.6004 & 0.27526 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64191&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.157518[/C][C]1.2099[/C][C]0.115568[/C][/ROW]
[ROW][C]2[/C][C]0.23549[/C][C]1.8088[/C][C]0.037787[/C][/ROW]
[ROW][C]3[/C][C]-0.430112[/C][C]-3.3038[/C][C]0.000812[/C][/ROW]
[ROW][C]4[/C][C]-0.18315[/C][C]-1.4068[/C][C]0.082366[/C][/ROW]
[ROW][C]5[/C][C]-0.241302[/C][C]-1.8535[/C][C]0.034408[/C][/ROW]
[ROW][C]6[/C][C]0.096671[/C][C]0.7425[/C][C]0.230351[/C][/ROW]
[ROW][C]7[/C][C]0.100942[/C][C]0.7753[/C][C]0.220615[/C][/ROW]
[ROW][C]8[/C][C]0.260681[/C][C]2.0023[/C][C]0.024926[/C][/ROW]
[ROW][C]9[/C][C]0.102121[/C][C]0.7844[/C][C]0.21797[/C][/ROW]
[ROW][C]10[/C][C]-0.034303[/C][C]-0.2635[/C][C]0.396546[/C][/ROW]
[ROW][C]11[/C][C]-0.260304[/C][C]-1.9994[/C][C]0.025087[/C][/ROW]
[ROW][C]12[/C][C]-0.288794[/C][C]-2.2183[/C][C]0.015199[/C][/ROW]
[ROW][C]13[/C][C]-0.260028[/C][C]-1.9973[/C][C]0.025205[/C][/ROW]
[ROW][C]14[/C][C]-0.059482[/C][C]-0.4569[/C][C]0.324714[/C][/ROW]
[ROW][C]15[/C][C]0.053582[/C][C]0.4116[/C][C]0.341073[/C][/ROW]
[ROW][C]16[/C][C]0.152998[/C][C]1.1752[/C][C]0.122318[/C][/ROW]
[ROW][C]17[/C][C]0.070546[/C][C]0.5419[/C][C]0.294974[/C][/ROW]
[ROW][C]18[/C][C]-0.008698[/C][C]-0.0668[/C][C]0.47348[/C][/ROW]
[ROW][C]19[/C][C]0.007269[/C][C]0.0558[/C][C]0.477832[/C][/ROW]
[ROW][C]20[/C][C]-0.07386[/C][C]-0.5673[/C][C]0.286321[/C][/ROW]
[ROW][C]21[/C][C]0.095219[/C][C]0.7314[/C][C]0.233717[/C][/ROW]
[ROW][C]22[/C][C]-0.119685[/C][C]-0.9193[/C][C]0.180837[/C][/ROW]
[ROW][C]23[/C][C]0.134391[/C][C]1.0323[/C][C]0.153078[/C][/ROW]
[ROW][C]24[/C][C]-0.041076[/C][C]-0.3155[/C][C]0.376743[/C][/ROW]
[ROW][C]25[/C][C]0.189508[/C][C]1.4556[/C][C]0.075397[/C][/ROW]
[ROW][C]26[/C][C]0.015513[/C][C]0.1192[/C][C]0.452779[/C][/ROW]
[ROW][C]27[/C][C]0.095892[/C][C]0.7366[/C][C]0.232155[/C][/ROW]
[ROW][C]28[/C][C]-0.033503[/C][C]-0.2573[/C][C]0.398904[/C][/ROW]
[ROW][C]29[/C][C]0.057255[/C][C]0.4398[/C][C]0.330852[/C][/ROW]
[ROW][C]30[/C][C]-0.088992[/C][C]-0.6836[/C][C]0.248465[/C][/ROW]
[ROW][C]31[/C][C]-0.07957[/C][C]-0.6112[/C][C]0.271711[/C][/ROW]
[ROW][C]32[/C][C]-0.100943[/C][C]-0.7754[/C][C]0.220613[/C][/ROW]
[ROW][C]33[/C][C]-0.026982[/C][C]-0.2073[/C][C]0.418264[/C][/ROW]
[ROW][C]34[/C][C]0.044631[/C][C]0.3428[/C][C]0.366478[/C][/ROW]
[ROW][C]35[/C][C]0.07754[/C][C]0.5956[/C][C]0.276861[/C][/ROW]
[ROW][C]36[/C][C]-0.078169[/C][C]-0.6004[/C][C]0.27526[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64191&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64191&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.1575181.20990.115568
20.235491.80880.037787
3-0.430112-3.30380.000812
4-0.18315-1.40680.082366
5-0.241302-1.85350.034408
60.0966710.74250.230351
70.1009420.77530.220615
80.2606812.00230.024926
90.1021210.78440.21797
10-0.034303-0.26350.396546
11-0.260304-1.99940.025087
12-0.288794-2.21830.015199
13-0.260028-1.99730.025205
14-0.059482-0.45690.324714
150.0535820.41160.341073
160.1529981.17520.122318
170.0705460.54190.294974
18-0.008698-0.06680.47348
190.0072690.05580.477832
20-0.07386-0.56730.286321
210.0952190.73140.233717
22-0.119685-0.91930.180837
230.1343911.03230.153078
24-0.041076-0.31550.376743
250.1895081.45560.075397
260.0155130.11920.452779
270.0958920.73660.232155
28-0.033503-0.25730.398904
290.0572550.43980.330852
30-0.088992-0.68360.248465
31-0.07957-0.61120.271711
32-0.100943-0.77540.220613
33-0.026982-0.20730.418264
340.0446310.34280.366478
350.077540.59560.276861
36-0.078169-0.60040.27526







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1575181.20990.115568
20.2160381.65940.051169
3-0.530532-4.07517e-05
4-0.09502-0.72990.23418
50.0910230.69920.243599
6-0.014446-0.1110.456013
70.0023930.01840.4927
80.1512621.16190.124984
90.0506540.38910.349309
10-0.165506-1.27130.10431
11-0.162934-1.25150.107843
12-0.099014-0.76050.22498
13-0.175965-1.35160.090829
14-0.130552-1.00280.160029
15-0.06557-0.50370.308191
16-0.063165-0.48520.314672
17-0.107904-0.82880.205273
18-0.075967-0.58350.280887
190.2018261.55030.063214
20-0.006683-0.05130.479616
210.1043620.80160.212995
22-0.14576-1.11960.133711
230.0496480.38140.352156
24-0.010963-0.08420.466588
25-0.07276-0.55890.289178
260.0182260.140.444568
27-0.041121-0.31590.376612
280.0089040.06840.472852
290.0710590.54580.293626
30-0.061376-0.47140.319534
31-0.111207-0.85420.198225
320.0741270.56940.28563
330.0096330.0740.470634
34-0.025147-0.19320.423749
350.0098970.0760.46983
36-0.191602-1.47170.073205

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.157518 & 1.2099 & 0.115568 \tabularnewline
2 & 0.216038 & 1.6594 & 0.051169 \tabularnewline
3 & -0.530532 & -4.0751 & 7e-05 \tabularnewline
4 & -0.09502 & -0.7299 & 0.23418 \tabularnewline
5 & 0.091023 & 0.6992 & 0.243599 \tabularnewline
6 & -0.014446 & -0.111 & 0.456013 \tabularnewline
7 & 0.002393 & 0.0184 & 0.4927 \tabularnewline
8 & 0.151262 & 1.1619 & 0.124984 \tabularnewline
9 & 0.050654 & 0.3891 & 0.349309 \tabularnewline
10 & -0.165506 & -1.2713 & 0.10431 \tabularnewline
11 & -0.162934 & -1.2515 & 0.107843 \tabularnewline
12 & -0.099014 & -0.7605 & 0.22498 \tabularnewline
13 & -0.175965 & -1.3516 & 0.090829 \tabularnewline
14 & -0.130552 & -1.0028 & 0.160029 \tabularnewline
15 & -0.06557 & -0.5037 & 0.308191 \tabularnewline
16 & -0.063165 & -0.4852 & 0.314672 \tabularnewline
17 & -0.107904 & -0.8288 & 0.205273 \tabularnewline
18 & -0.075967 & -0.5835 & 0.280887 \tabularnewline
19 & 0.201826 & 1.5503 & 0.063214 \tabularnewline
20 & -0.006683 & -0.0513 & 0.479616 \tabularnewline
21 & 0.104362 & 0.8016 & 0.212995 \tabularnewline
22 & -0.14576 & -1.1196 & 0.133711 \tabularnewline
23 & 0.049648 & 0.3814 & 0.352156 \tabularnewline
24 & -0.010963 & -0.0842 & 0.466588 \tabularnewline
25 & -0.07276 & -0.5589 & 0.289178 \tabularnewline
26 & 0.018226 & 0.14 & 0.444568 \tabularnewline
27 & -0.041121 & -0.3159 & 0.376612 \tabularnewline
28 & 0.008904 & 0.0684 & 0.472852 \tabularnewline
29 & 0.071059 & 0.5458 & 0.293626 \tabularnewline
30 & -0.061376 & -0.4714 & 0.319534 \tabularnewline
31 & -0.111207 & -0.8542 & 0.198225 \tabularnewline
32 & 0.074127 & 0.5694 & 0.28563 \tabularnewline
33 & 0.009633 & 0.074 & 0.470634 \tabularnewline
34 & -0.025147 & -0.1932 & 0.423749 \tabularnewline
35 & 0.009897 & 0.076 & 0.46983 \tabularnewline
36 & -0.191602 & -1.4717 & 0.073205 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64191&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.157518[/C][C]1.2099[/C][C]0.115568[/C][/ROW]
[ROW][C]2[/C][C]0.216038[/C][C]1.6594[/C][C]0.051169[/C][/ROW]
[ROW][C]3[/C][C]-0.530532[/C][C]-4.0751[/C][C]7e-05[/C][/ROW]
[ROW][C]4[/C][C]-0.09502[/C][C]-0.7299[/C][C]0.23418[/C][/ROW]
[ROW][C]5[/C][C]0.091023[/C][C]0.6992[/C][C]0.243599[/C][/ROW]
[ROW][C]6[/C][C]-0.014446[/C][C]-0.111[/C][C]0.456013[/C][/ROW]
[ROW][C]7[/C][C]0.002393[/C][C]0.0184[/C][C]0.4927[/C][/ROW]
[ROW][C]8[/C][C]0.151262[/C][C]1.1619[/C][C]0.124984[/C][/ROW]
[ROW][C]9[/C][C]0.050654[/C][C]0.3891[/C][C]0.349309[/C][/ROW]
[ROW][C]10[/C][C]-0.165506[/C][C]-1.2713[/C][C]0.10431[/C][/ROW]
[ROW][C]11[/C][C]-0.162934[/C][C]-1.2515[/C][C]0.107843[/C][/ROW]
[ROW][C]12[/C][C]-0.099014[/C][C]-0.7605[/C][C]0.22498[/C][/ROW]
[ROW][C]13[/C][C]-0.175965[/C][C]-1.3516[/C][C]0.090829[/C][/ROW]
[ROW][C]14[/C][C]-0.130552[/C][C]-1.0028[/C][C]0.160029[/C][/ROW]
[ROW][C]15[/C][C]-0.06557[/C][C]-0.5037[/C][C]0.308191[/C][/ROW]
[ROW][C]16[/C][C]-0.063165[/C][C]-0.4852[/C][C]0.314672[/C][/ROW]
[ROW][C]17[/C][C]-0.107904[/C][C]-0.8288[/C][C]0.205273[/C][/ROW]
[ROW][C]18[/C][C]-0.075967[/C][C]-0.5835[/C][C]0.280887[/C][/ROW]
[ROW][C]19[/C][C]0.201826[/C][C]1.5503[/C][C]0.063214[/C][/ROW]
[ROW][C]20[/C][C]-0.006683[/C][C]-0.0513[/C][C]0.479616[/C][/ROW]
[ROW][C]21[/C][C]0.104362[/C][C]0.8016[/C][C]0.212995[/C][/ROW]
[ROW][C]22[/C][C]-0.14576[/C][C]-1.1196[/C][C]0.133711[/C][/ROW]
[ROW][C]23[/C][C]0.049648[/C][C]0.3814[/C][C]0.352156[/C][/ROW]
[ROW][C]24[/C][C]-0.010963[/C][C]-0.0842[/C][C]0.466588[/C][/ROW]
[ROW][C]25[/C][C]-0.07276[/C][C]-0.5589[/C][C]0.289178[/C][/ROW]
[ROW][C]26[/C][C]0.018226[/C][C]0.14[/C][C]0.444568[/C][/ROW]
[ROW][C]27[/C][C]-0.041121[/C][C]-0.3159[/C][C]0.376612[/C][/ROW]
[ROW][C]28[/C][C]0.008904[/C][C]0.0684[/C][C]0.472852[/C][/ROW]
[ROW][C]29[/C][C]0.071059[/C][C]0.5458[/C][C]0.293626[/C][/ROW]
[ROW][C]30[/C][C]-0.061376[/C][C]-0.4714[/C][C]0.319534[/C][/ROW]
[ROW][C]31[/C][C]-0.111207[/C][C]-0.8542[/C][C]0.198225[/C][/ROW]
[ROW][C]32[/C][C]0.074127[/C][C]0.5694[/C][C]0.28563[/C][/ROW]
[ROW][C]33[/C][C]0.009633[/C][C]0.074[/C][C]0.470634[/C][/ROW]
[ROW][C]34[/C][C]-0.025147[/C][C]-0.1932[/C][C]0.423749[/C][/ROW]
[ROW][C]35[/C][C]0.009897[/C][C]0.076[/C][C]0.46983[/C][/ROW]
[ROW][C]36[/C][C]-0.191602[/C][C]-1.4717[/C][C]0.073205[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64191&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64191&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.1575181.20990.115568
20.2160381.65940.051169
3-0.530532-4.07517e-05
4-0.09502-0.72990.23418
50.0910230.69920.243599
6-0.014446-0.1110.456013
70.0023930.01840.4927
80.1512621.16190.124984
90.0506540.38910.349309
10-0.165506-1.27130.10431
11-0.162934-1.25150.107843
12-0.099014-0.76050.22498
13-0.175965-1.35160.090829
14-0.130552-1.00280.160029
15-0.06557-0.50370.308191
16-0.063165-0.48520.314672
17-0.107904-0.82880.205273
18-0.075967-0.58350.280887
190.2018261.55030.063214
20-0.006683-0.05130.479616
210.1043620.80160.212995
22-0.14576-1.11960.133711
230.0496480.38140.352156
24-0.010963-0.08420.466588
25-0.07276-0.55890.289178
260.0182260.140.444568
27-0.041121-0.31590.376612
280.0089040.06840.472852
290.0710590.54580.293626
30-0.061376-0.47140.319534
31-0.111207-0.85420.198225
320.0741270.56940.28563
330.0096330.0740.470634
34-0.025147-0.19320.423749
350.0098970.0760.46983
36-0.191602-1.47170.073205



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