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 computationTue, 24 Nov 2009 06:46:01 -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/24/t1259070393vuo48f3xooooevn.htm/, Retrieved Wed, 24 Apr 2024 08:32:17 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59052, Retrieved Wed, 24 Apr 2024 08:32:17 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact147
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-12 13:32:37] [76963dc1903f0f612b6153510a3818cf]
- R  D  [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-17 12:14:40] [76963dc1903f0f612b6153510a3818cf]
-         [Univariate Explorative Data Analysis] [Run Sequence Plot...] [2008-12-22 18:19:51] [1ce0d16c8f4225c977b42c8fa93bc163]
- RMP       [(Partial) Autocorrelation Function] [Identifying Integ...] [2009-11-22 12:16:10] [b98453cac15ba1066b407e146608df68]
- R  D          [(Partial) Autocorrelation Function] [] [2009-11-24 13:46:01] [4057bfb3a128b4e91b455d276991f7f0] [Current]
Feedback Forum

Post a new message
Dataseries X:
11
8
6
10
11
10
9
8
11
10
12
13
13
13
13
13
12
13
12
13
12
14
11
12
13
13
12
10
9
10
10
9
7
11
11
12
13
13
12
12
10
12
12
12
10
13
13
11
13
12
11
12
12
11
10
9
10
9
6
7
5
8
5
5
5
1
3
5
7
2
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=59052&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=59052&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59052&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.7922336.67550
20.6805655.73450
30.6529325.50170
40.626875.28211e-06
50.5412424.56061e-05
60.4128013.47830.000433
70.3516022.96270.002074
80.2598462.18950.015924
90.1925831.62270.05454
100.1589511.33930.092365
110.0978160.82420.206289
120.044380.37390.354778
13-0.04114-0.34670.364939
14-0.085373-0.71940.237138
15-0.085309-0.71880.237303
16-0.118855-1.00150.159996
17-0.179882-1.51570.067016
18-0.166056-1.39920.083052
19-0.176657-1.48850.070518
20-0.144488-1.21750.113726
21-0.133737-1.12690.131792
22-0.103073-0.86850.194021
23-0.102987-0.86780.194217
24-0.09987-0.84150.201442
25-0.021877-0.18430.427138
260.0011530.00970.496137
27-0.030866-0.26010.397778
28-0.04151-0.34980.363773
29-0.035382-0.29810.383236
300.0028290.02380.490523
31-0.001751-0.01480.494134
32-0.021578-0.18180.428122
33-0.006332-0.05340.4788
34-0.016934-0.14270.443472
35-0.010741-0.09050.464071
36-0.03203-0.26990.394015

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.792233 & 6.6755 & 0 \tabularnewline
2 & 0.680565 & 5.7345 & 0 \tabularnewline
3 & 0.652932 & 5.5017 & 0 \tabularnewline
4 & 0.62687 & 5.2821 & 1e-06 \tabularnewline
5 & 0.541242 & 4.5606 & 1e-05 \tabularnewline
6 & 0.412801 & 3.4783 & 0.000433 \tabularnewline
7 & 0.351602 & 2.9627 & 0.002074 \tabularnewline
8 & 0.259846 & 2.1895 & 0.015924 \tabularnewline
9 & 0.192583 & 1.6227 & 0.05454 \tabularnewline
10 & 0.158951 & 1.3393 & 0.092365 \tabularnewline
11 & 0.097816 & 0.8242 & 0.206289 \tabularnewline
12 & 0.04438 & 0.3739 & 0.354778 \tabularnewline
13 & -0.04114 & -0.3467 & 0.364939 \tabularnewline
14 & -0.085373 & -0.7194 & 0.237138 \tabularnewline
15 & -0.085309 & -0.7188 & 0.237303 \tabularnewline
16 & -0.118855 & -1.0015 & 0.159996 \tabularnewline
17 & -0.179882 & -1.5157 & 0.067016 \tabularnewline
18 & -0.166056 & -1.3992 & 0.083052 \tabularnewline
19 & -0.176657 & -1.4885 & 0.070518 \tabularnewline
20 & -0.144488 & -1.2175 & 0.113726 \tabularnewline
21 & -0.133737 & -1.1269 & 0.131792 \tabularnewline
22 & -0.103073 & -0.8685 & 0.194021 \tabularnewline
23 & -0.102987 & -0.8678 & 0.194217 \tabularnewline
24 & -0.09987 & -0.8415 & 0.201442 \tabularnewline
25 & -0.021877 & -0.1843 & 0.427138 \tabularnewline
26 & 0.001153 & 0.0097 & 0.496137 \tabularnewline
27 & -0.030866 & -0.2601 & 0.397778 \tabularnewline
28 & -0.04151 & -0.3498 & 0.363773 \tabularnewline
29 & -0.035382 & -0.2981 & 0.383236 \tabularnewline
30 & 0.002829 & 0.0238 & 0.490523 \tabularnewline
31 & -0.001751 & -0.0148 & 0.494134 \tabularnewline
32 & -0.021578 & -0.1818 & 0.428122 \tabularnewline
33 & -0.006332 & -0.0534 & 0.4788 \tabularnewline
34 & -0.016934 & -0.1427 & 0.443472 \tabularnewline
35 & -0.010741 & -0.0905 & 0.464071 \tabularnewline
36 & -0.03203 & -0.2699 & 0.394015 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59052&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.792233[/C][C]6.6755[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.680565[/C][C]5.7345[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.652932[/C][C]5.5017[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.62687[/C][C]5.2821[/C][C]1e-06[/C][/ROW]
[ROW][C]5[/C][C]0.541242[/C][C]4.5606[/C][C]1e-05[/C][/ROW]
[ROW][C]6[/C][C]0.412801[/C][C]3.4783[/C][C]0.000433[/C][/ROW]
[ROW][C]7[/C][C]0.351602[/C][C]2.9627[/C][C]0.002074[/C][/ROW]
[ROW][C]8[/C][C]0.259846[/C][C]2.1895[/C][C]0.015924[/C][/ROW]
[ROW][C]9[/C][C]0.192583[/C][C]1.6227[/C][C]0.05454[/C][/ROW]
[ROW][C]10[/C][C]0.158951[/C][C]1.3393[/C][C]0.092365[/C][/ROW]
[ROW][C]11[/C][C]0.097816[/C][C]0.8242[/C][C]0.206289[/C][/ROW]
[ROW][C]12[/C][C]0.04438[/C][C]0.3739[/C][C]0.354778[/C][/ROW]
[ROW][C]13[/C][C]-0.04114[/C][C]-0.3467[/C][C]0.364939[/C][/ROW]
[ROW][C]14[/C][C]-0.085373[/C][C]-0.7194[/C][C]0.237138[/C][/ROW]
[ROW][C]15[/C][C]-0.085309[/C][C]-0.7188[/C][C]0.237303[/C][/ROW]
[ROW][C]16[/C][C]-0.118855[/C][C]-1.0015[/C][C]0.159996[/C][/ROW]
[ROW][C]17[/C][C]-0.179882[/C][C]-1.5157[/C][C]0.067016[/C][/ROW]
[ROW][C]18[/C][C]-0.166056[/C][C]-1.3992[/C][C]0.083052[/C][/ROW]
[ROW][C]19[/C][C]-0.176657[/C][C]-1.4885[/C][C]0.070518[/C][/ROW]
[ROW][C]20[/C][C]-0.144488[/C][C]-1.2175[/C][C]0.113726[/C][/ROW]
[ROW][C]21[/C][C]-0.133737[/C][C]-1.1269[/C][C]0.131792[/C][/ROW]
[ROW][C]22[/C][C]-0.103073[/C][C]-0.8685[/C][C]0.194021[/C][/ROW]
[ROW][C]23[/C][C]-0.102987[/C][C]-0.8678[/C][C]0.194217[/C][/ROW]
[ROW][C]24[/C][C]-0.09987[/C][C]-0.8415[/C][C]0.201442[/C][/ROW]
[ROW][C]25[/C][C]-0.021877[/C][C]-0.1843[/C][C]0.427138[/C][/ROW]
[ROW][C]26[/C][C]0.001153[/C][C]0.0097[/C][C]0.496137[/C][/ROW]
[ROW][C]27[/C][C]-0.030866[/C][C]-0.2601[/C][C]0.397778[/C][/ROW]
[ROW][C]28[/C][C]-0.04151[/C][C]-0.3498[/C][C]0.363773[/C][/ROW]
[ROW][C]29[/C][C]-0.035382[/C][C]-0.2981[/C][C]0.383236[/C][/ROW]
[ROW][C]30[/C][C]0.002829[/C][C]0.0238[/C][C]0.490523[/C][/ROW]
[ROW][C]31[/C][C]-0.001751[/C][C]-0.0148[/C][C]0.494134[/C][/ROW]
[ROW][C]32[/C][C]-0.021578[/C][C]-0.1818[/C][C]0.428122[/C][/ROW]
[ROW][C]33[/C][C]-0.006332[/C][C]-0.0534[/C][C]0.4788[/C][/ROW]
[ROW][C]34[/C][C]-0.016934[/C][C]-0.1427[/C][C]0.443472[/C][/ROW]
[ROW][C]35[/C][C]-0.010741[/C][C]-0.0905[/C][C]0.464071[/C][/ROW]
[ROW][C]36[/C][C]-0.03203[/C][C]-0.2699[/C][C]0.394015[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59052&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59052&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.7922336.67550
20.6805655.73450
30.6529325.50170
40.626875.28211e-06
50.5412424.56061e-05
60.4128013.47830.000433
70.3516022.96270.002074
80.2598462.18950.015924
90.1925831.62270.05454
100.1589511.33930.092365
110.0978160.82420.206289
120.044380.37390.354778
13-0.04114-0.34670.364939
14-0.085373-0.71940.237138
15-0.085309-0.71880.237303
16-0.118855-1.00150.159996
17-0.179882-1.51570.067016
18-0.166056-1.39920.083052
19-0.176657-1.48850.070518
20-0.144488-1.21750.113726
21-0.133737-1.12690.131792
22-0.103073-0.86850.194021
23-0.102987-0.86780.194217
24-0.09987-0.84150.201442
25-0.021877-0.18430.427138
260.0011530.00970.496137
27-0.030866-0.26010.397778
28-0.04151-0.34980.363773
29-0.035382-0.29810.383236
300.0028290.02380.490523
31-0.001751-0.01480.494134
32-0.021578-0.18180.428122
33-0.006332-0.05340.4788
34-0.016934-0.14270.443472
35-0.010741-0.09050.464071
36-0.03203-0.26990.394015







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7922336.67550
20.142151.19780.117494
30.2132241.79670.038322
40.1030050.86790.194178
5-0.091719-0.77280.221092
6-0.206988-1.74410.042734
7-0.022929-0.19320.423675
8-0.164709-1.38790.084759
90.0041360.03480.48615
100.095840.80760.21102
11-0.024875-0.20960.417291
120.0026820.02260.491018
13-0.140988-1.1880.119398
14-0.076784-0.6470.25986
150.0625890.52740.299784
16-0.020057-0.1690.433138
17-0.078224-0.65910.255972
180.1707451.43870.077311
19-0.093612-0.78880.21643
200.1371541.15570.125843
210.0219030.18460.427051
220.0221560.18670.426218
23-0.074979-0.63180.26478
24-0.007938-0.06690.47343
250.0964070.81230.209655
260.0014420.01220.495169
27-0.145247-1.22390.112523
28-0.033988-0.28640.387709
29-0.050631-0.42660.335472
300.0234160.19730.422074
310.0522490.44030.330543
32-0.041479-0.34950.363872
330.0845810.71270.239186
34-0.065957-0.55580.290059
350.0121150.10210.459491
36-0.112195-0.94540.173837

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.792233 & 6.6755 & 0 \tabularnewline
2 & 0.14215 & 1.1978 & 0.117494 \tabularnewline
3 & 0.213224 & 1.7967 & 0.038322 \tabularnewline
4 & 0.103005 & 0.8679 & 0.194178 \tabularnewline
5 & -0.091719 & -0.7728 & 0.221092 \tabularnewline
6 & -0.206988 & -1.7441 & 0.042734 \tabularnewline
7 & -0.022929 & -0.1932 & 0.423675 \tabularnewline
8 & -0.164709 & -1.3879 & 0.084759 \tabularnewline
9 & 0.004136 & 0.0348 & 0.48615 \tabularnewline
10 & 0.09584 & 0.8076 & 0.21102 \tabularnewline
11 & -0.024875 & -0.2096 & 0.417291 \tabularnewline
12 & 0.002682 & 0.0226 & 0.491018 \tabularnewline
13 & -0.140988 & -1.188 & 0.119398 \tabularnewline
14 & -0.076784 & -0.647 & 0.25986 \tabularnewline
15 & 0.062589 & 0.5274 & 0.299784 \tabularnewline
16 & -0.020057 & -0.169 & 0.433138 \tabularnewline
17 & -0.078224 & -0.6591 & 0.255972 \tabularnewline
18 & 0.170745 & 1.4387 & 0.077311 \tabularnewline
19 & -0.093612 & -0.7888 & 0.21643 \tabularnewline
20 & 0.137154 & 1.1557 & 0.125843 \tabularnewline
21 & 0.021903 & 0.1846 & 0.427051 \tabularnewline
22 & 0.022156 & 0.1867 & 0.426218 \tabularnewline
23 & -0.074979 & -0.6318 & 0.26478 \tabularnewline
24 & -0.007938 & -0.0669 & 0.47343 \tabularnewline
25 & 0.096407 & 0.8123 & 0.209655 \tabularnewline
26 & 0.001442 & 0.0122 & 0.495169 \tabularnewline
27 & -0.145247 & -1.2239 & 0.112523 \tabularnewline
28 & -0.033988 & -0.2864 & 0.387709 \tabularnewline
29 & -0.050631 & -0.4266 & 0.335472 \tabularnewline
30 & 0.023416 & 0.1973 & 0.422074 \tabularnewline
31 & 0.052249 & 0.4403 & 0.330543 \tabularnewline
32 & -0.041479 & -0.3495 & 0.363872 \tabularnewline
33 & 0.084581 & 0.7127 & 0.239186 \tabularnewline
34 & -0.065957 & -0.5558 & 0.290059 \tabularnewline
35 & 0.012115 & 0.1021 & 0.459491 \tabularnewline
36 & -0.112195 & -0.9454 & 0.173837 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59052&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.792233[/C][C]6.6755[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.14215[/C][C]1.1978[/C][C]0.117494[/C][/ROW]
[ROW][C]3[/C][C]0.213224[/C][C]1.7967[/C][C]0.038322[/C][/ROW]
[ROW][C]4[/C][C]0.103005[/C][C]0.8679[/C][C]0.194178[/C][/ROW]
[ROW][C]5[/C][C]-0.091719[/C][C]-0.7728[/C][C]0.221092[/C][/ROW]
[ROW][C]6[/C][C]-0.206988[/C][C]-1.7441[/C][C]0.042734[/C][/ROW]
[ROW][C]7[/C][C]-0.022929[/C][C]-0.1932[/C][C]0.423675[/C][/ROW]
[ROW][C]8[/C][C]-0.164709[/C][C]-1.3879[/C][C]0.084759[/C][/ROW]
[ROW][C]9[/C][C]0.004136[/C][C]0.0348[/C][C]0.48615[/C][/ROW]
[ROW][C]10[/C][C]0.09584[/C][C]0.8076[/C][C]0.21102[/C][/ROW]
[ROW][C]11[/C][C]-0.024875[/C][C]-0.2096[/C][C]0.417291[/C][/ROW]
[ROW][C]12[/C][C]0.002682[/C][C]0.0226[/C][C]0.491018[/C][/ROW]
[ROW][C]13[/C][C]-0.140988[/C][C]-1.188[/C][C]0.119398[/C][/ROW]
[ROW][C]14[/C][C]-0.076784[/C][C]-0.647[/C][C]0.25986[/C][/ROW]
[ROW][C]15[/C][C]0.062589[/C][C]0.5274[/C][C]0.299784[/C][/ROW]
[ROW][C]16[/C][C]-0.020057[/C][C]-0.169[/C][C]0.433138[/C][/ROW]
[ROW][C]17[/C][C]-0.078224[/C][C]-0.6591[/C][C]0.255972[/C][/ROW]
[ROW][C]18[/C][C]0.170745[/C][C]1.4387[/C][C]0.077311[/C][/ROW]
[ROW][C]19[/C][C]-0.093612[/C][C]-0.7888[/C][C]0.21643[/C][/ROW]
[ROW][C]20[/C][C]0.137154[/C][C]1.1557[/C][C]0.125843[/C][/ROW]
[ROW][C]21[/C][C]0.021903[/C][C]0.1846[/C][C]0.427051[/C][/ROW]
[ROW][C]22[/C][C]0.022156[/C][C]0.1867[/C][C]0.426218[/C][/ROW]
[ROW][C]23[/C][C]-0.074979[/C][C]-0.6318[/C][C]0.26478[/C][/ROW]
[ROW][C]24[/C][C]-0.007938[/C][C]-0.0669[/C][C]0.47343[/C][/ROW]
[ROW][C]25[/C][C]0.096407[/C][C]0.8123[/C][C]0.209655[/C][/ROW]
[ROW][C]26[/C][C]0.001442[/C][C]0.0122[/C][C]0.495169[/C][/ROW]
[ROW][C]27[/C][C]-0.145247[/C][C]-1.2239[/C][C]0.112523[/C][/ROW]
[ROW][C]28[/C][C]-0.033988[/C][C]-0.2864[/C][C]0.387709[/C][/ROW]
[ROW][C]29[/C][C]-0.050631[/C][C]-0.4266[/C][C]0.335472[/C][/ROW]
[ROW][C]30[/C][C]0.023416[/C][C]0.1973[/C][C]0.422074[/C][/ROW]
[ROW][C]31[/C][C]0.052249[/C][C]0.4403[/C][C]0.330543[/C][/ROW]
[ROW][C]32[/C][C]-0.041479[/C][C]-0.3495[/C][C]0.363872[/C][/ROW]
[ROW][C]33[/C][C]0.084581[/C][C]0.7127[/C][C]0.239186[/C][/ROW]
[ROW][C]34[/C][C]-0.065957[/C][C]-0.5558[/C][C]0.290059[/C][/ROW]
[ROW][C]35[/C][C]0.012115[/C][C]0.1021[/C][C]0.459491[/C][/ROW]
[ROW][C]36[/C][C]-0.112195[/C][C]-0.9454[/C][C]0.173837[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59052&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59052&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.7922336.67550
20.142151.19780.117494
30.2132241.79670.038322
40.1030050.86790.194178
5-0.091719-0.77280.221092
6-0.206988-1.74410.042734
7-0.022929-0.19320.423675
8-0.164709-1.38790.084759
90.0041360.03480.48615
100.095840.80760.21102
11-0.024875-0.20960.417291
120.0026820.02260.491018
13-0.140988-1.1880.119398
14-0.076784-0.6470.25986
150.0625890.52740.299784
16-0.020057-0.1690.433138
17-0.078224-0.65910.255972
180.1707451.43870.077311
19-0.093612-0.78880.21643
200.1371541.15570.125843
210.0219030.18460.427051
220.0221560.18670.426218
23-0.074979-0.63180.26478
24-0.007938-0.06690.47343
250.0964070.81230.209655
260.0014420.01220.495169
27-0.145247-1.22390.112523
28-0.033988-0.28640.387709
29-0.050631-0.42660.335472
300.0234160.19730.422074
310.0522490.44030.330543
32-0.041479-0.34950.363872
330.0845810.71270.239186
34-0.065957-0.55580.290059
350.0121150.10210.459491
36-0.112195-0.94540.173837



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