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 05:01:18 -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/t1259928138o3qj5yh43mzee2u.htm/, Retrieved Sat, 27 Apr 2024 17:33:28 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63341, Retrieved Sat, 27 Apr 2024 17:33:28 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact110
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]
- R  D      [(Partial) Autocorrelation Function] [Partial autocorre...] [2009-12-04 12:01:18] [4996e0131d5120d29a6e9a8dccb25dc3] [Current]
Feedback Forum

Post a new message
Dataseries X:
19
18
19
19
22
23
20
14
14
14
15
11
17
16
20
24
23
20
21
19
23
23
23
23
27
26
17
24
26
24
27
27
26
24
23
23
24
17
21
19
22
22
18
16
14
12
14
16
8
3
0
5
1
1
3
6
7
8
14
14
13




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63341&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.126902-0.9830.164783
2-0.088574-0.68610.247649
30.0074990.05810.476935
40.0777020.60190.274761
5-0.05967-0.46220.322803
6-0.018109-0.14030.444458
7-0.00211-0.01630.493508
80.0286730.22210.412496
9-0.101617-0.78710.217155
10-0.064059-0.49620.310783
110.1464271.13420.130606
12-0.029289-0.22690.410649
130.0044190.03420.486402
14-0.244441-1.89340.031563
150.1149520.89040.188399
160.0830610.64340.261211
17-0.091731-0.71050.24006
180.0238990.18510.426879
190.0432860.33530.369287
200.0349550.27080.393751
21-0.278118-2.15430.017621
22-0.056083-0.43440.332773
230.0710960.55070.291939
240.0284260.22020.413236
25-0.184093-1.4260.079528
260.1868491.44730.076505
270.0149830.11610.453997
28-0.01737-0.13450.44671
29-0.123175-0.95410.171928
30-0.009701-0.07510.470174
310.140731.09010.140016
32-0.080567-0.62410.267475
33-0.065183-0.50490.307737
34-0.015306-0.11860.453009
350.0107020.08290.467104
360.0045270.03510.486071

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.126902 & -0.983 & 0.164783 \tabularnewline
2 & -0.088574 & -0.6861 & 0.247649 \tabularnewline
3 & 0.007499 & 0.0581 & 0.476935 \tabularnewline
4 & 0.077702 & 0.6019 & 0.274761 \tabularnewline
5 & -0.05967 & -0.4622 & 0.322803 \tabularnewline
6 & -0.018109 & -0.1403 & 0.444458 \tabularnewline
7 & -0.00211 & -0.0163 & 0.493508 \tabularnewline
8 & 0.028673 & 0.2221 & 0.412496 \tabularnewline
9 & -0.101617 & -0.7871 & 0.217155 \tabularnewline
10 & -0.064059 & -0.4962 & 0.310783 \tabularnewline
11 & 0.146427 & 1.1342 & 0.130606 \tabularnewline
12 & -0.029289 & -0.2269 & 0.410649 \tabularnewline
13 & 0.004419 & 0.0342 & 0.486402 \tabularnewline
14 & -0.244441 & -1.8934 & 0.031563 \tabularnewline
15 & 0.114952 & 0.8904 & 0.188399 \tabularnewline
16 & 0.083061 & 0.6434 & 0.261211 \tabularnewline
17 & -0.091731 & -0.7105 & 0.24006 \tabularnewline
18 & 0.023899 & 0.1851 & 0.426879 \tabularnewline
19 & 0.043286 & 0.3353 & 0.369287 \tabularnewline
20 & 0.034955 & 0.2708 & 0.393751 \tabularnewline
21 & -0.278118 & -2.1543 & 0.017621 \tabularnewline
22 & -0.056083 & -0.4344 & 0.332773 \tabularnewline
23 & 0.071096 & 0.5507 & 0.291939 \tabularnewline
24 & 0.028426 & 0.2202 & 0.413236 \tabularnewline
25 & -0.184093 & -1.426 & 0.079528 \tabularnewline
26 & 0.186849 & 1.4473 & 0.076505 \tabularnewline
27 & 0.014983 & 0.1161 & 0.453997 \tabularnewline
28 & -0.01737 & -0.1345 & 0.44671 \tabularnewline
29 & -0.123175 & -0.9541 & 0.171928 \tabularnewline
30 & -0.009701 & -0.0751 & 0.470174 \tabularnewline
31 & 0.14073 & 1.0901 & 0.140016 \tabularnewline
32 & -0.080567 & -0.6241 & 0.267475 \tabularnewline
33 & -0.065183 & -0.5049 & 0.307737 \tabularnewline
34 & -0.015306 & -0.1186 & 0.453009 \tabularnewline
35 & 0.010702 & 0.0829 & 0.467104 \tabularnewline
36 & 0.004527 & 0.0351 & 0.486071 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63341&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.126902[/C][C]-0.983[/C][C]0.164783[/C][/ROW]
[ROW][C]2[/C][C]-0.088574[/C][C]-0.6861[/C][C]0.247649[/C][/ROW]
[ROW][C]3[/C][C]0.007499[/C][C]0.0581[/C][C]0.476935[/C][/ROW]
[ROW][C]4[/C][C]0.077702[/C][C]0.6019[/C][C]0.274761[/C][/ROW]
[ROW][C]5[/C][C]-0.05967[/C][C]-0.4622[/C][C]0.322803[/C][/ROW]
[ROW][C]6[/C][C]-0.018109[/C][C]-0.1403[/C][C]0.444458[/C][/ROW]
[ROW][C]7[/C][C]-0.00211[/C][C]-0.0163[/C][C]0.493508[/C][/ROW]
[ROW][C]8[/C][C]0.028673[/C][C]0.2221[/C][C]0.412496[/C][/ROW]
[ROW][C]9[/C][C]-0.101617[/C][C]-0.7871[/C][C]0.217155[/C][/ROW]
[ROW][C]10[/C][C]-0.064059[/C][C]-0.4962[/C][C]0.310783[/C][/ROW]
[ROW][C]11[/C][C]0.146427[/C][C]1.1342[/C][C]0.130606[/C][/ROW]
[ROW][C]12[/C][C]-0.029289[/C][C]-0.2269[/C][C]0.410649[/C][/ROW]
[ROW][C]13[/C][C]0.004419[/C][C]0.0342[/C][C]0.486402[/C][/ROW]
[ROW][C]14[/C][C]-0.244441[/C][C]-1.8934[/C][C]0.031563[/C][/ROW]
[ROW][C]15[/C][C]0.114952[/C][C]0.8904[/C][C]0.188399[/C][/ROW]
[ROW][C]16[/C][C]0.083061[/C][C]0.6434[/C][C]0.261211[/C][/ROW]
[ROW][C]17[/C][C]-0.091731[/C][C]-0.7105[/C][C]0.24006[/C][/ROW]
[ROW][C]18[/C][C]0.023899[/C][C]0.1851[/C][C]0.426879[/C][/ROW]
[ROW][C]19[/C][C]0.043286[/C][C]0.3353[/C][C]0.369287[/C][/ROW]
[ROW][C]20[/C][C]0.034955[/C][C]0.2708[/C][C]0.393751[/C][/ROW]
[ROW][C]21[/C][C]-0.278118[/C][C]-2.1543[/C][C]0.017621[/C][/ROW]
[ROW][C]22[/C][C]-0.056083[/C][C]-0.4344[/C][C]0.332773[/C][/ROW]
[ROW][C]23[/C][C]0.071096[/C][C]0.5507[/C][C]0.291939[/C][/ROW]
[ROW][C]24[/C][C]0.028426[/C][C]0.2202[/C][C]0.413236[/C][/ROW]
[ROW][C]25[/C][C]-0.184093[/C][C]-1.426[/C][C]0.079528[/C][/ROW]
[ROW][C]26[/C][C]0.186849[/C][C]1.4473[/C][C]0.076505[/C][/ROW]
[ROW][C]27[/C][C]0.014983[/C][C]0.1161[/C][C]0.453997[/C][/ROW]
[ROW][C]28[/C][C]-0.01737[/C][C]-0.1345[/C][C]0.44671[/C][/ROW]
[ROW][C]29[/C][C]-0.123175[/C][C]-0.9541[/C][C]0.171928[/C][/ROW]
[ROW][C]30[/C][C]-0.009701[/C][C]-0.0751[/C][C]0.470174[/C][/ROW]
[ROW][C]31[/C][C]0.14073[/C][C]1.0901[/C][C]0.140016[/C][/ROW]
[ROW][C]32[/C][C]-0.080567[/C][C]-0.6241[/C][C]0.267475[/C][/ROW]
[ROW][C]33[/C][C]-0.065183[/C][C]-0.5049[/C][C]0.307737[/C][/ROW]
[ROW][C]34[/C][C]-0.015306[/C][C]-0.1186[/C][C]0.453009[/C][/ROW]
[ROW][C]35[/C][C]0.010702[/C][C]0.0829[/C][C]0.467104[/C][/ROW]
[ROW][C]36[/C][C]0.004527[/C][C]0.0351[/C][C]0.486071[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63341&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63341&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.126902-0.9830.164783
2-0.088574-0.68610.247649
30.0074990.05810.476935
40.0777020.60190.274761
5-0.05967-0.46220.322803
6-0.018109-0.14030.444458
7-0.00211-0.01630.493508
80.0286730.22210.412496
9-0.101617-0.78710.217155
10-0.064059-0.49620.310783
110.1464271.13420.130606
12-0.029289-0.22690.410649
130.0044190.03420.486402
14-0.244441-1.89340.031563
150.1149520.89040.188399
160.0830610.64340.261211
17-0.091731-0.71050.24006
180.0238990.18510.426879
190.0432860.33530.369287
200.0349550.27080.393751
21-0.278118-2.15430.017621
22-0.056083-0.43440.332773
230.0710960.55070.291939
240.0284260.22020.413236
25-0.184093-1.4260.079528
260.1868491.44730.076505
270.0149830.11610.453997
28-0.01737-0.13450.44671
29-0.123175-0.95410.171928
30-0.009701-0.07510.470174
310.140731.09010.140016
32-0.080567-0.62410.267475
33-0.065183-0.50490.307737
34-0.015306-0.11860.453009
350.0107020.08290.467104
360.0045270.03510.486071







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.126902-0.9830.164783
2-0.106391-0.82410.206572
3-0.018954-0.14680.441883
40.0685990.53140.298565
5-0.041383-0.32050.374833
6-0.018662-0.14460.442773
7-0.016877-0.13070.448214
80.0180380.13970.444674
9-0.093046-0.72070.236936
10-0.08997-0.69690.244277
110.1125280.87160.19344
12-0.012638-0.09790.461172
130.0374540.29010.386363
14-0.258267-2.00050.024987
150.0333570.25840.398498
160.0782530.60610.273351
17-0.063727-0.49360.311686
180.0491730.38090.352315
19-0.021797-0.16880.433244
200.0770730.5970.276374
21-0.289062-2.23910.014436
22-0.156834-1.21480.114595
23-0.032815-0.25420.400113
240.002420.01870.492553
25-0.062315-0.48270.315535
260.10670.82650.2059
270.0321910.24930.401972
28-0.058579-0.45370.325824
29-0.143175-1.1090.135921
30-0.12645-0.97950.165638
310.0508220.39370.347613
320.0200290.15510.438615
33-0.026694-0.20680.418443
34-0.083996-0.65060.258885
35-0.186272-1.44290.077131
36-0.016444-0.12740.449534

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.126902 & -0.983 & 0.164783 \tabularnewline
2 & -0.106391 & -0.8241 & 0.206572 \tabularnewline
3 & -0.018954 & -0.1468 & 0.441883 \tabularnewline
4 & 0.068599 & 0.5314 & 0.298565 \tabularnewline
5 & -0.041383 & -0.3205 & 0.374833 \tabularnewline
6 & -0.018662 & -0.1446 & 0.442773 \tabularnewline
7 & -0.016877 & -0.1307 & 0.448214 \tabularnewline
8 & 0.018038 & 0.1397 & 0.444674 \tabularnewline
9 & -0.093046 & -0.7207 & 0.236936 \tabularnewline
10 & -0.08997 & -0.6969 & 0.244277 \tabularnewline
11 & 0.112528 & 0.8716 & 0.19344 \tabularnewline
12 & -0.012638 & -0.0979 & 0.461172 \tabularnewline
13 & 0.037454 & 0.2901 & 0.386363 \tabularnewline
14 & -0.258267 & -2.0005 & 0.024987 \tabularnewline
15 & 0.033357 & 0.2584 & 0.398498 \tabularnewline
16 & 0.078253 & 0.6061 & 0.273351 \tabularnewline
17 & -0.063727 & -0.4936 & 0.311686 \tabularnewline
18 & 0.049173 & 0.3809 & 0.352315 \tabularnewline
19 & -0.021797 & -0.1688 & 0.433244 \tabularnewline
20 & 0.077073 & 0.597 & 0.276374 \tabularnewline
21 & -0.289062 & -2.2391 & 0.014436 \tabularnewline
22 & -0.156834 & -1.2148 & 0.114595 \tabularnewline
23 & -0.032815 & -0.2542 & 0.400113 \tabularnewline
24 & 0.00242 & 0.0187 & 0.492553 \tabularnewline
25 & -0.062315 & -0.4827 & 0.315535 \tabularnewline
26 & 0.1067 & 0.8265 & 0.2059 \tabularnewline
27 & 0.032191 & 0.2493 & 0.401972 \tabularnewline
28 & -0.058579 & -0.4537 & 0.325824 \tabularnewline
29 & -0.143175 & -1.109 & 0.135921 \tabularnewline
30 & -0.12645 & -0.9795 & 0.165638 \tabularnewline
31 & 0.050822 & 0.3937 & 0.347613 \tabularnewline
32 & 0.020029 & 0.1551 & 0.438615 \tabularnewline
33 & -0.026694 & -0.2068 & 0.418443 \tabularnewline
34 & -0.083996 & -0.6506 & 0.258885 \tabularnewline
35 & -0.186272 & -1.4429 & 0.077131 \tabularnewline
36 & -0.016444 & -0.1274 & 0.449534 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63341&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.126902[/C][C]-0.983[/C][C]0.164783[/C][/ROW]
[ROW][C]2[/C][C]-0.106391[/C][C]-0.8241[/C][C]0.206572[/C][/ROW]
[ROW][C]3[/C][C]-0.018954[/C][C]-0.1468[/C][C]0.441883[/C][/ROW]
[ROW][C]4[/C][C]0.068599[/C][C]0.5314[/C][C]0.298565[/C][/ROW]
[ROW][C]5[/C][C]-0.041383[/C][C]-0.3205[/C][C]0.374833[/C][/ROW]
[ROW][C]6[/C][C]-0.018662[/C][C]-0.1446[/C][C]0.442773[/C][/ROW]
[ROW][C]7[/C][C]-0.016877[/C][C]-0.1307[/C][C]0.448214[/C][/ROW]
[ROW][C]8[/C][C]0.018038[/C][C]0.1397[/C][C]0.444674[/C][/ROW]
[ROW][C]9[/C][C]-0.093046[/C][C]-0.7207[/C][C]0.236936[/C][/ROW]
[ROW][C]10[/C][C]-0.08997[/C][C]-0.6969[/C][C]0.244277[/C][/ROW]
[ROW][C]11[/C][C]0.112528[/C][C]0.8716[/C][C]0.19344[/C][/ROW]
[ROW][C]12[/C][C]-0.012638[/C][C]-0.0979[/C][C]0.461172[/C][/ROW]
[ROW][C]13[/C][C]0.037454[/C][C]0.2901[/C][C]0.386363[/C][/ROW]
[ROW][C]14[/C][C]-0.258267[/C][C]-2.0005[/C][C]0.024987[/C][/ROW]
[ROW][C]15[/C][C]0.033357[/C][C]0.2584[/C][C]0.398498[/C][/ROW]
[ROW][C]16[/C][C]0.078253[/C][C]0.6061[/C][C]0.273351[/C][/ROW]
[ROW][C]17[/C][C]-0.063727[/C][C]-0.4936[/C][C]0.311686[/C][/ROW]
[ROW][C]18[/C][C]0.049173[/C][C]0.3809[/C][C]0.352315[/C][/ROW]
[ROW][C]19[/C][C]-0.021797[/C][C]-0.1688[/C][C]0.433244[/C][/ROW]
[ROW][C]20[/C][C]0.077073[/C][C]0.597[/C][C]0.276374[/C][/ROW]
[ROW][C]21[/C][C]-0.289062[/C][C]-2.2391[/C][C]0.014436[/C][/ROW]
[ROW][C]22[/C][C]-0.156834[/C][C]-1.2148[/C][C]0.114595[/C][/ROW]
[ROW][C]23[/C][C]-0.032815[/C][C]-0.2542[/C][C]0.400113[/C][/ROW]
[ROW][C]24[/C][C]0.00242[/C][C]0.0187[/C][C]0.492553[/C][/ROW]
[ROW][C]25[/C][C]-0.062315[/C][C]-0.4827[/C][C]0.315535[/C][/ROW]
[ROW][C]26[/C][C]0.1067[/C][C]0.8265[/C][C]0.2059[/C][/ROW]
[ROW][C]27[/C][C]0.032191[/C][C]0.2493[/C][C]0.401972[/C][/ROW]
[ROW][C]28[/C][C]-0.058579[/C][C]-0.4537[/C][C]0.325824[/C][/ROW]
[ROW][C]29[/C][C]-0.143175[/C][C]-1.109[/C][C]0.135921[/C][/ROW]
[ROW][C]30[/C][C]-0.12645[/C][C]-0.9795[/C][C]0.165638[/C][/ROW]
[ROW][C]31[/C][C]0.050822[/C][C]0.3937[/C][C]0.347613[/C][/ROW]
[ROW][C]32[/C][C]0.020029[/C][C]0.1551[/C][C]0.438615[/C][/ROW]
[ROW][C]33[/C][C]-0.026694[/C][C]-0.2068[/C][C]0.418443[/C][/ROW]
[ROW][C]34[/C][C]-0.083996[/C][C]-0.6506[/C][C]0.258885[/C][/ROW]
[ROW][C]35[/C][C]-0.186272[/C][C]-1.4429[/C][C]0.077131[/C][/ROW]
[ROW][C]36[/C][C]-0.016444[/C][C]-0.1274[/C][C]0.449534[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63341&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63341&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.126902-0.9830.164783
2-0.106391-0.82410.206572
3-0.018954-0.14680.441883
40.0685990.53140.298565
5-0.041383-0.32050.374833
6-0.018662-0.14460.442773
7-0.016877-0.13070.448214
80.0180380.13970.444674
9-0.093046-0.72070.236936
10-0.08997-0.69690.244277
110.1125280.87160.19344
12-0.012638-0.09790.461172
130.0374540.29010.386363
14-0.258267-2.00050.024987
150.0333570.25840.398498
160.0782530.60610.273351
17-0.063727-0.49360.311686
180.0491730.38090.352315
19-0.021797-0.16880.433244
200.0770730.5970.276374
21-0.289062-2.23910.014436
22-0.156834-1.21480.114595
23-0.032815-0.25420.400113
240.002420.01870.492553
25-0.062315-0.48270.315535
260.10670.82650.2059
270.0321910.24930.401972
28-0.058579-0.45370.325824
29-0.143175-1.1090.135921
30-0.12645-0.97950.165638
310.0508220.39370.347613
320.0200290.15510.438615
33-0.026694-0.20680.418443
34-0.083996-0.65060.258885
35-0.186272-1.44290.077131
36-0.016444-0.12740.449534



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