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, 27 Nov 2009 10:15:52 -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/27/t1259342226rekj8r1yyeg5mkt.htm/, Retrieved Sun, 28 Apr 2024 23:00:17 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61020, Retrieved Sun, 28 Apr 2024 23:00:17 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact119
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2009-11-27 17:15:52] [71596e6a53ccce532e52aaf6113616ef] [Current]
Feedback Forum

Post a new message
Dataseries X:
252.5
251.1
255.1
258.3
255.3
261.1
253.8
252.9
253.9
255.5
262
262.8
263.3
262.5
269.2
270.8
274.1
273
267.3
267.1
268.2
270.2
271.5
281
280.1
281.5
285.9
289.8
292.9
291.2
291.8
289.8
292.5
290.3
297.5
307.5
304.7
304.6
310.7
310.7
315.7
314.7
312.2
312.8
314.3
319.7
319.9
329.5
326.9
329.7
335.7
337.2
339.7
338.3
339.2
342.5
342.2
338.3
339
345.9




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61020&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.141923-1.09010.140044
2-0.069342-0.53260.298148
3-0.024759-0.19020.424912
4-0.16852-1.29440.100281
50.0604520.46430.322056
6-0.080407-0.61760.269602
70.0136090.10450.458551
8-0.234532-1.80150.038369
90.0954480.73320.233184
10-0.162523-1.24840.108415
110.1009020.7750.220706
120.4232883.25130.00095
130.0244180.18760.425932
14-0.053504-0.4110.341291
150.0820220.630.265556
16-0.146895-1.12830.131876
17-0.126366-0.97060.167847
180.0552540.42440.336405
19-0.130789-1.00460.159594
200.0127260.09770.461232
210.0538560.41370.340306
22-0.147911-1.13610.13025
23-0.054997-0.42240.337119
240.3333312.56040.006518
250.095780.73570.232414
26-0.05724-0.43970.330891
270.0075040.05760.477116
28-0.129243-0.99270.162447
29-0.082488-0.63360.264394
300.0333410.25610.399382
31-0.069814-0.53620.296902
32-0.047941-0.36820.357005
330.0901460.69240.245694
34-0.213096-1.63680.053496
350.1288950.99010.163094
360.1160340.89130.188202

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.141923 & -1.0901 & 0.140044 \tabularnewline
2 & -0.069342 & -0.5326 & 0.298148 \tabularnewline
3 & -0.024759 & -0.1902 & 0.424912 \tabularnewline
4 & -0.16852 & -1.2944 & 0.100281 \tabularnewline
5 & 0.060452 & 0.4643 & 0.322056 \tabularnewline
6 & -0.080407 & -0.6176 & 0.269602 \tabularnewline
7 & 0.013609 & 0.1045 & 0.458551 \tabularnewline
8 & -0.234532 & -1.8015 & 0.038369 \tabularnewline
9 & 0.095448 & 0.7332 & 0.233184 \tabularnewline
10 & -0.162523 & -1.2484 & 0.108415 \tabularnewline
11 & 0.100902 & 0.775 & 0.220706 \tabularnewline
12 & 0.423288 & 3.2513 & 0.00095 \tabularnewline
13 & 0.024418 & 0.1876 & 0.425932 \tabularnewline
14 & -0.053504 & -0.411 & 0.341291 \tabularnewline
15 & 0.082022 & 0.63 & 0.265556 \tabularnewline
16 & -0.146895 & -1.1283 & 0.131876 \tabularnewline
17 & -0.126366 & -0.9706 & 0.167847 \tabularnewline
18 & 0.055254 & 0.4244 & 0.336405 \tabularnewline
19 & -0.130789 & -1.0046 & 0.159594 \tabularnewline
20 & 0.012726 & 0.0977 & 0.461232 \tabularnewline
21 & 0.053856 & 0.4137 & 0.340306 \tabularnewline
22 & -0.147911 & -1.1361 & 0.13025 \tabularnewline
23 & -0.054997 & -0.4224 & 0.337119 \tabularnewline
24 & 0.333331 & 2.5604 & 0.006518 \tabularnewline
25 & 0.09578 & 0.7357 & 0.232414 \tabularnewline
26 & -0.05724 & -0.4397 & 0.330891 \tabularnewline
27 & 0.007504 & 0.0576 & 0.477116 \tabularnewline
28 & -0.129243 & -0.9927 & 0.162447 \tabularnewline
29 & -0.082488 & -0.6336 & 0.264394 \tabularnewline
30 & 0.033341 & 0.2561 & 0.399382 \tabularnewline
31 & -0.069814 & -0.5362 & 0.296902 \tabularnewline
32 & -0.047941 & -0.3682 & 0.357005 \tabularnewline
33 & 0.090146 & 0.6924 & 0.245694 \tabularnewline
34 & -0.213096 & -1.6368 & 0.053496 \tabularnewline
35 & 0.128895 & 0.9901 & 0.163094 \tabularnewline
36 & 0.116034 & 0.8913 & 0.188202 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61020&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.141923[/C][C]-1.0901[/C][C]0.140044[/C][/ROW]
[ROW][C]2[/C][C]-0.069342[/C][C]-0.5326[/C][C]0.298148[/C][/ROW]
[ROW][C]3[/C][C]-0.024759[/C][C]-0.1902[/C][C]0.424912[/C][/ROW]
[ROW][C]4[/C][C]-0.16852[/C][C]-1.2944[/C][C]0.100281[/C][/ROW]
[ROW][C]5[/C][C]0.060452[/C][C]0.4643[/C][C]0.322056[/C][/ROW]
[ROW][C]6[/C][C]-0.080407[/C][C]-0.6176[/C][C]0.269602[/C][/ROW]
[ROW][C]7[/C][C]0.013609[/C][C]0.1045[/C][C]0.458551[/C][/ROW]
[ROW][C]8[/C][C]-0.234532[/C][C]-1.8015[/C][C]0.038369[/C][/ROW]
[ROW][C]9[/C][C]0.095448[/C][C]0.7332[/C][C]0.233184[/C][/ROW]
[ROW][C]10[/C][C]-0.162523[/C][C]-1.2484[/C][C]0.108415[/C][/ROW]
[ROW][C]11[/C][C]0.100902[/C][C]0.775[/C][C]0.220706[/C][/ROW]
[ROW][C]12[/C][C]0.423288[/C][C]3.2513[/C][C]0.00095[/C][/ROW]
[ROW][C]13[/C][C]0.024418[/C][C]0.1876[/C][C]0.425932[/C][/ROW]
[ROW][C]14[/C][C]-0.053504[/C][C]-0.411[/C][C]0.341291[/C][/ROW]
[ROW][C]15[/C][C]0.082022[/C][C]0.63[/C][C]0.265556[/C][/ROW]
[ROW][C]16[/C][C]-0.146895[/C][C]-1.1283[/C][C]0.131876[/C][/ROW]
[ROW][C]17[/C][C]-0.126366[/C][C]-0.9706[/C][C]0.167847[/C][/ROW]
[ROW][C]18[/C][C]0.055254[/C][C]0.4244[/C][C]0.336405[/C][/ROW]
[ROW][C]19[/C][C]-0.130789[/C][C]-1.0046[/C][C]0.159594[/C][/ROW]
[ROW][C]20[/C][C]0.012726[/C][C]0.0977[/C][C]0.461232[/C][/ROW]
[ROW][C]21[/C][C]0.053856[/C][C]0.4137[/C][C]0.340306[/C][/ROW]
[ROW][C]22[/C][C]-0.147911[/C][C]-1.1361[/C][C]0.13025[/C][/ROW]
[ROW][C]23[/C][C]-0.054997[/C][C]-0.4224[/C][C]0.337119[/C][/ROW]
[ROW][C]24[/C][C]0.333331[/C][C]2.5604[/C][C]0.006518[/C][/ROW]
[ROW][C]25[/C][C]0.09578[/C][C]0.7357[/C][C]0.232414[/C][/ROW]
[ROW][C]26[/C][C]-0.05724[/C][C]-0.4397[/C][C]0.330891[/C][/ROW]
[ROW][C]27[/C][C]0.007504[/C][C]0.0576[/C][C]0.477116[/C][/ROW]
[ROW][C]28[/C][C]-0.129243[/C][C]-0.9927[/C][C]0.162447[/C][/ROW]
[ROW][C]29[/C][C]-0.082488[/C][C]-0.6336[/C][C]0.264394[/C][/ROW]
[ROW][C]30[/C][C]0.033341[/C][C]0.2561[/C][C]0.399382[/C][/ROW]
[ROW][C]31[/C][C]-0.069814[/C][C]-0.5362[/C][C]0.296902[/C][/ROW]
[ROW][C]32[/C][C]-0.047941[/C][C]-0.3682[/C][C]0.357005[/C][/ROW]
[ROW][C]33[/C][C]0.090146[/C][C]0.6924[/C][C]0.245694[/C][/ROW]
[ROW][C]34[/C][C]-0.213096[/C][C]-1.6368[/C][C]0.053496[/C][/ROW]
[ROW][C]35[/C][C]0.128895[/C][C]0.9901[/C][C]0.163094[/C][/ROW]
[ROW][C]36[/C][C]0.116034[/C][C]0.8913[/C][C]0.188202[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61020&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61020&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.141923-1.09010.140044
2-0.069342-0.53260.298148
3-0.024759-0.19020.424912
4-0.16852-1.29440.100281
50.0604520.46430.322056
6-0.080407-0.61760.269602
70.0136090.10450.458551
8-0.234532-1.80150.038369
90.0954480.73320.233184
10-0.162523-1.24840.108415
110.1009020.7750.220706
120.4232883.25130.00095
130.0244180.18760.425932
14-0.053504-0.4110.341291
150.0820220.630.265556
16-0.146895-1.12830.131876
17-0.126366-0.97060.167847
180.0552540.42440.336405
19-0.130789-1.00460.159594
200.0127260.09770.461232
210.0538560.41370.340306
22-0.147911-1.13610.13025
23-0.054997-0.42240.337119
240.3333312.56040.006518
250.095780.73570.232414
26-0.05724-0.43970.330891
270.0075040.05760.477116
28-0.129243-0.99270.162447
29-0.082488-0.63360.264394
300.0333410.25610.399382
31-0.069814-0.53620.296902
32-0.047941-0.36820.357005
330.0901460.69240.245694
34-0.213096-1.63680.053496
350.1288950.99010.163094
360.1160340.89130.188202







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.141923-1.09010.140044
2-0.091323-0.70150.242885
3-0.049872-0.38310.351521
4-0.192324-1.47730.072461
5-0.00411-0.03160.48746
6-0.11364-0.87290.193132
7-0.0322-0.24730.402756
8-0.311238-2.39070.010014
9-0.001381-0.01060.495787
10-0.307123-2.35910.010826
110.0032670.02510.490032
120.3164282.43050.009068
130.2432621.86850.033328
14-0.034547-0.26540.395828
150.2828472.17260.01692
16-0.074919-0.57550.283584
17-0.113251-0.86990.19394
18-0.06971-0.53540.297176
19-0.024431-0.18770.425895
200.037580.28870.386928
210.1899261.45890.074955
22-0.047651-0.3660.357831
23-0.166149-1.27620.103441
240.0295870.22730.410502
250.0613780.47150.319528
26-0.125268-0.96220.169938
27-0.15385-1.18170.121024
280.0566020.43480.332657
29-0.03947-0.30320.381411
30-0.033932-0.26060.397641
31-0.015938-0.12240.451489
32-0.055545-0.42660.335594
33-0.081796-0.62830.266119
34-0.123356-0.94750.173621
350.1390021.06770.145005
36-0.181949-1.39760.083737

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.141923 & -1.0901 & 0.140044 \tabularnewline
2 & -0.091323 & -0.7015 & 0.242885 \tabularnewline
3 & -0.049872 & -0.3831 & 0.351521 \tabularnewline
4 & -0.192324 & -1.4773 & 0.072461 \tabularnewline
5 & -0.00411 & -0.0316 & 0.48746 \tabularnewline
6 & -0.11364 & -0.8729 & 0.193132 \tabularnewline
7 & -0.0322 & -0.2473 & 0.402756 \tabularnewline
8 & -0.311238 & -2.3907 & 0.010014 \tabularnewline
9 & -0.001381 & -0.0106 & 0.495787 \tabularnewline
10 & -0.307123 & -2.3591 & 0.010826 \tabularnewline
11 & 0.003267 & 0.0251 & 0.490032 \tabularnewline
12 & 0.316428 & 2.4305 & 0.009068 \tabularnewline
13 & 0.243262 & 1.8685 & 0.033328 \tabularnewline
14 & -0.034547 & -0.2654 & 0.395828 \tabularnewline
15 & 0.282847 & 2.1726 & 0.01692 \tabularnewline
16 & -0.074919 & -0.5755 & 0.283584 \tabularnewline
17 & -0.113251 & -0.8699 & 0.19394 \tabularnewline
18 & -0.06971 & -0.5354 & 0.297176 \tabularnewline
19 & -0.024431 & -0.1877 & 0.425895 \tabularnewline
20 & 0.03758 & 0.2887 & 0.386928 \tabularnewline
21 & 0.189926 & 1.4589 & 0.074955 \tabularnewline
22 & -0.047651 & -0.366 & 0.357831 \tabularnewline
23 & -0.166149 & -1.2762 & 0.103441 \tabularnewline
24 & 0.029587 & 0.2273 & 0.410502 \tabularnewline
25 & 0.061378 & 0.4715 & 0.319528 \tabularnewline
26 & -0.125268 & -0.9622 & 0.169938 \tabularnewline
27 & -0.15385 & -1.1817 & 0.121024 \tabularnewline
28 & 0.056602 & 0.4348 & 0.332657 \tabularnewline
29 & -0.03947 & -0.3032 & 0.381411 \tabularnewline
30 & -0.033932 & -0.2606 & 0.397641 \tabularnewline
31 & -0.015938 & -0.1224 & 0.451489 \tabularnewline
32 & -0.055545 & -0.4266 & 0.335594 \tabularnewline
33 & -0.081796 & -0.6283 & 0.266119 \tabularnewline
34 & -0.123356 & -0.9475 & 0.173621 \tabularnewline
35 & 0.139002 & 1.0677 & 0.145005 \tabularnewline
36 & -0.181949 & -1.3976 & 0.083737 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61020&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.141923[/C][C]-1.0901[/C][C]0.140044[/C][/ROW]
[ROW][C]2[/C][C]-0.091323[/C][C]-0.7015[/C][C]0.242885[/C][/ROW]
[ROW][C]3[/C][C]-0.049872[/C][C]-0.3831[/C][C]0.351521[/C][/ROW]
[ROW][C]4[/C][C]-0.192324[/C][C]-1.4773[/C][C]0.072461[/C][/ROW]
[ROW][C]5[/C][C]-0.00411[/C][C]-0.0316[/C][C]0.48746[/C][/ROW]
[ROW][C]6[/C][C]-0.11364[/C][C]-0.8729[/C][C]0.193132[/C][/ROW]
[ROW][C]7[/C][C]-0.0322[/C][C]-0.2473[/C][C]0.402756[/C][/ROW]
[ROW][C]8[/C][C]-0.311238[/C][C]-2.3907[/C][C]0.010014[/C][/ROW]
[ROW][C]9[/C][C]-0.001381[/C][C]-0.0106[/C][C]0.495787[/C][/ROW]
[ROW][C]10[/C][C]-0.307123[/C][C]-2.3591[/C][C]0.010826[/C][/ROW]
[ROW][C]11[/C][C]0.003267[/C][C]0.0251[/C][C]0.490032[/C][/ROW]
[ROW][C]12[/C][C]0.316428[/C][C]2.4305[/C][C]0.009068[/C][/ROW]
[ROW][C]13[/C][C]0.243262[/C][C]1.8685[/C][C]0.033328[/C][/ROW]
[ROW][C]14[/C][C]-0.034547[/C][C]-0.2654[/C][C]0.395828[/C][/ROW]
[ROW][C]15[/C][C]0.282847[/C][C]2.1726[/C][C]0.01692[/C][/ROW]
[ROW][C]16[/C][C]-0.074919[/C][C]-0.5755[/C][C]0.283584[/C][/ROW]
[ROW][C]17[/C][C]-0.113251[/C][C]-0.8699[/C][C]0.19394[/C][/ROW]
[ROW][C]18[/C][C]-0.06971[/C][C]-0.5354[/C][C]0.297176[/C][/ROW]
[ROW][C]19[/C][C]-0.024431[/C][C]-0.1877[/C][C]0.425895[/C][/ROW]
[ROW][C]20[/C][C]0.03758[/C][C]0.2887[/C][C]0.386928[/C][/ROW]
[ROW][C]21[/C][C]0.189926[/C][C]1.4589[/C][C]0.074955[/C][/ROW]
[ROW][C]22[/C][C]-0.047651[/C][C]-0.366[/C][C]0.357831[/C][/ROW]
[ROW][C]23[/C][C]-0.166149[/C][C]-1.2762[/C][C]0.103441[/C][/ROW]
[ROW][C]24[/C][C]0.029587[/C][C]0.2273[/C][C]0.410502[/C][/ROW]
[ROW][C]25[/C][C]0.061378[/C][C]0.4715[/C][C]0.319528[/C][/ROW]
[ROW][C]26[/C][C]-0.125268[/C][C]-0.9622[/C][C]0.169938[/C][/ROW]
[ROW][C]27[/C][C]-0.15385[/C][C]-1.1817[/C][C]0.121024[/C][/ROW]
[ROW][C]28[/C][C]0.056602[/C][C]0.4348[/C][C]0.332657[/C][/ROW]
[ROW][C]29[/C][C]-0.03947[/C][C]-0.3032[/C][C]0.381411[/C][/ROW]
[ROW][C]30[/C][C]-0.033932[/C][C]-0.2606[/C][C]0.397641[/C][/ROW]
[ROW][C]31[/C][C]-0.015938[/C][C]-0.1224[/C][C]0.451489[/C][/ROW]
[ROW][C]32[/C][C]-0.055545[/C][C]-0.4266[/C][C]0.335594[/C][/ROW]
[ROW][C]33[/C][C]-0.081796[/C][C]-0.6283[/C][C]0.266119[/C][/ROW]
[ROW][C]34[/C][C]-0.123356[/C][C]-0.9475[/C][C]0.173621[/C][/ROW]
[ROW][C]35[/C][C]0.139002[/C][C]1.0677[/C][C]0.145005[/C][/ROW]
[ROW][C]36[/C][C]-0.181949[/C][C]-1.3976[/C][C]0.083737[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61020&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61020&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.141923-1.09010.140044
2-0.091323-0.70150.242885
3-0.049872-0.38310.351521
4-0.192324-1.47730.072461
5-0.00411-0.03160.48746
6-0.11364-0.87290.193132
7-0.0322-0.24730.402756
8-0.311238-2.39070.010014
9-0.001381-0.01060.495787
10-0.307123-2.35910.010826
110.0032670.02510.490032
120.3164282.43050.009068
130.2432621.86850.033328
14-0.034547-0.26540.395828
150.2828472.17260.01692
16-0.074919-0.57550.283584
17-0.113251-0.86990.19394
18-0.06971-0.53540.297176
19-0.024431-0.18770.425895
200.037580.28870.386928
210.1899261.45890.074955
22-0.047651-0.3660.357831
23-0.166149-1.27620.103441
240.0295870.22730.410502
250.0613780.47150.319528
26-0.125268-0.96220.169938
27-0.15385-1.18170.121024
280.0566020.43480.332657
29-0.03947-0.30320.381411
30-0.033932-0.26060.397641
31-0.015938-0.12240.451489
32-0.055545-0.42660.335594
33-0.081796-0.62830.266119
34-0.123356-0.94750.173621
350.1390021.06770.145005
36-0.181949-1.39760.083737



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