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, 18 Dec 2009 02:37:49 -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/18/t1261129123b1228i40fc000mw.htm/, Retrieved Sat, 27 Apr 2024 07:45:09 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69193, Retrieved Sat, 27 Apr 2024 07:45:09 +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 Data Series] [data set] [2008-12-01 19:54:57] [b98453cac15ba1066b407e146608df68]
- RMP   [(Partial) Autocorrelation Function] [] [2009-11-27 14:48:46] [b98453cac15ba1066b407e146608df68]
-    D      [(Partial) Autocorrelation Function] [] [2009-12-18 09:37:49] [409dc0d28e18f9691548de68770dd903] [Current]
Feedback Forum

Post a new message
Dataseries X:
20366
22782
19169
13807
29743
25591
29096
26482
22405
27044
17970
18730
19684
19785
18479
10698
31956
29506
34506
27165
26736
23691
18157
17328
18205
20995
17382
9367
31124
26551
30651
25859
25100
25778
20418
18688
20424
24776
19814
12738
31566
30111
30019
31934
25826
26835
20205
17789
20520
22518
15572
11509
25447
24090
27786
26195
20516
22759
19028
16971




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 & 2 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69193&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]2 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=69193&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69193&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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.574448-3.93820.000135
20.320192.19510.016565
3-0.133213-0.91330.182884
40.0041180.02820.488798
5-0.119105-0.81650.209155
60.1684961.15520.126934
7-0.216313-1.4830.072379
80.2285721.5670.061911
9-0.13729-0.94120.175705
100.0082370.05650.477602
110.0696180.47730.317688
12-0.145506-0.99750.161806
13-0.018265-0.12520.450442
14-0.067222-0.46090.323516
150.0914350.62680.266897
16-0.07143-0.48970.313312
170.1036680.71070.240388
18-0.058791-0.40310.344368
190.0308610.21160.416678
20-0.104549-0.71680.238537
210.2429591.66560.051219
22-0.325374-2.23060.015258
230.324512.22470.015469
24-0.240763-1.65060.052745
250.1506881.03310.153431
260.0074440.0510.479757
270.0777250.53290.298322
28-0.153983-1.05570.148261
290.1746691.19750.118564
30-0.206878-1.41830.081353
310.1537861.05430.148566
32-0.053033-0.36360.358902
33-0.06122-0.41970.338309
340.0942680.64630.260623
35-0.073872-0.50640.307459
36-0.020819-0.14270.443558

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.574448 & -3.9382 & 0.000135 \tabularnewline
2 & 0.32019 & 2.1951 & 0.016565 \tabularnewline
3 & -0.133213 & -0.9133 & 0.182884 \tabularnewline
4 & 0.004118 & 0.0282 & 0.488798 \tabularnewline
5 & -0.119105 & -0.8165 & 0.209155 \tabularnewline
6 & 0.168496 & 1.1552 & 0.126934 \tabularnewline
7 & -0.216313 & -1.483 & 0.072379 \tabularnewline
8 & 0.228572 & 1.567 & 0.061911 \tabularnewline
9 & -0.13729 & -0.9412 & 0.175705 \tabularnewline
10 & 0.008237 & 0.0565 & 0.477602 \tabularnewline
11 & 0.069618 & 0.4773 & 0.317688 \tabularnewline
12 & -0.145506 & -0.9975 & 0.161806 \tabularnewline
13 & -0.018265 & -0.1252 & 0.450442 \tabularnewline
14 & -0.067222 & -0.4609 & 0.323516 \tabularnewline
15 & 0.091435 & 0.6268 & 0.266897 \tabularnewline
16 & -0.07143 & -0.4897 & 0.313312 \tabularnewline
17 & 0.103668 & 0.7107 & 0.240388 \tabularnewline
18 & -0.058791 & -0.4031 & 0.344368 \tabularnewline
19 & 0.030861 & 0.2116 & 0.416678 \tabularnewline
20 & -0.104549 & -0.7168 & 0.238537 \tabularnewline
21 & 0.242959 & 1.6656 & 0.051219 \tabularnewline
22 & -0.325374 & -2.2306 & 0.015258 \tabularnewline
23 & 0.32451 & 2.2247 & 0.015469 \tabularnewline
24 & -0.240763 & -1.6506 & 0.052745 \tabularnewline
25 & 0.150688 & 1.0331 & 0.153431 \tabularnewline
26 & 0.007444 & 0.051 & 0.479757 \tabularnewline
27 & 0.077725 & 0.5329 & 0.298322 \tabularnewline
28 & -0.153983 & -1.0557 & 0.148261 \tabularnewline
29 & 0.174669 & 1.1975 & 0.118564 \tabularnewline
30 & -0.206878 & -1.4183 & 0.081353 \tabularnewline
31 & 0.153786 & 1.0543 & 0.148566 \tabularnewline
32 & -0.053033 & -0.3636 & 0.358902 \tabularnewline
33 & -0.06122 & -0.4197 & 0.338309 \tabularnewline
34 & 0.094268 & 0.6463 & 0.260623 \tabularnewline
35 & -0.073872 & -0.5064 & 0.307459 \tabularnewline
36 & -0.020819 & -0.1427 & 0.443558 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69193&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.574448[/C][C]-3.9382[/C][C]0.000135[/C][/ROW]
[ROW][C]2[/C][C]0.32019[/C][C]2.1951[/C][C]0.016565[/C][/ROW]
[ROW][C]3[/C][C]-0.133213[/C][C]-0.9133[/C][C]0.182884[/C][/ROW]
[ROW][C]4[/C][C]0.004118[/C][C]0.0282[/C][C]0.488798[/C][/ROW]
[ROW][C]5[/C][C]-0.119105[/C][C]-0.8165[/C][C]0.209155[/C][/ROW]
[ROW][C]6[/C][C]0.168496[/C][C]1.1552[/C][C]0.126934[/C][/ROW]
[ROW][C]7[/C][C]-0.216313[/C][C]-1.483[/C][C]0.072379[/C][/ROW]
[ROW][C]8[/C][C]0.228572[/C][C]1.567[/C][C]0.061911[/C][/ROW]
[ROW][C]9[/C][C]-0.13729[/C][C]-0.9412[/C][C]0.175705[/C][/ROW]
[ROW][C]10[/C][C]0.008237[/C][C]0.0565[/C][C]0.477602[/C][/ROW]
[ROW][C]11[/C][C]0.069618[/C][C]0.4773[/C][C]0.317688[/C][/ROW]
[ROW][C]12[/C][C]-0.145506[/C][C]-0.9975[/C][C]0.161806[/C][/ROW]
[ROW][C]13[/C][C]-0.018265[/C][C]-0.1252[/C][C]0.450442[/C][/ROW]
[ROW][C]14[/C][C]-0.067222[/C][C]-0.4609[/C][C]0.323516[/C][/ROW]
[ROW][C]15[/C][C]0.091435[/C][C]0.6268[/C][C]0.266897[/C][/ROW]
[ROW][C]16[/C][C]-0.07143[/C][C]-0.4897[/C][C]0.313312[/C][/ROW]
[ROW][C]17[/C][C]0.103668[/C][C]0.7107[/C][C]0.240388[/C][/ROW]
[ROW][C]18[/C][C]-0.058791[/C][C]-0.4031[/C][C]0.344368[/C][/ROW]
[ROW][C]19[/C][C]0.030861[/C][C]0.2116[/C][C]0.416678[/C][/ROW]
[ROW][C]20[/C][C]-0.104549[/C][C]-0.7168[/C][C]0.238537[/C][/ROW]
[ROW][C]21[/C][C]0.242959[/C][C]1.6656[/C][C]0.051219[/C][/ROW]
[ROW][C]22[/C][C]-0.325374[/C][C]-2.2306[/C][C]0.015258[/C][/ROW]
[ROW][C]23[/C][C]0.32451[/C][C]2.2247[/C][C]0.015469[/C][/ROW]
[ROW][C]24[/C][C]-0.240763[/C][C]-1.6506[/C][C]0.052745[/C][/ROW]
[ROW][C]25[/C][C]0.150688[/C][C]1.0331[/C][C]0.153431[/C][/ROW]
[ROW][C]26[/C][C]0.007444[/C][C]0.051[/C][C]0.479757[/C][/ROW]
[ROW][C]27[/C][C]0.077725[/C][C]0.5329[/C][C]0.298322[/C][/ROW]
[ROW][C]28[/C][C]-0.153983[/C][C]-1.0557[/C][C]0.148261[/C][/ROW]
[ROW][C]29[/C][C]0.174669[/C][C]1.1975[/C][C]0.118564[/C][/ROW]
[ROW][C]30[/C][C]-0.206878[/C][C]-1.4183[/C][C]0.081353[/C][/ROW]
[ROW][C]31[/C][C]0.153786[/C][C]1.0543[/C][C]0.148566[/C][/ROW]
[ROW][C]32[/C][C]-0.053033[/C][C]-0.3636[/C][C]0.358902[/C][/ROW]
[ROW][C]33[/C][C]-0.06122[/C][C]-0.4197[/C][C]0.338309[/C][/ROW]
[ROW][C]34[/C][C]0.094268[/C][C]0.6463[/C][C]0.260623[/C][/ROW]
[ROW][C]35[/C][C]-0.073872[/C][C]-0.5064[/C][C]0.307459[/C][/ROW]
[ROW][C]36[/C][C]-0.020819[/C][C]-0.1427[/C][C]0.443558[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69193&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69193&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.574448-3.93820.000135
20.320192.19510.016565
3-0.133213-0.91330.182884
40.0041180.02820.488798
5-0.119105-0.81650.209155
60.1684961.15520.126934
7-0.216313-1.4830.072379
80.2285721.5670.061911
9-0.13729-0.94120.175705
100.0082370.05650.477602
110.0696180.47730.317688
12-0.145506-0.99750.161806
13-0.018265-0.12520.450442
14-0.067222-0.46090.323516
150.0914350.62680.266897
16-0.07143-0.48970.313312
170.1036680.71070.240388
18-0.058791-0.40310.344368
190.0308610.21160.416678
20-0.104549-0.71680.238537
210.2429591.66560.051219
22-0.325374-2.23060.015258
230.324512.22470.015469
24-0.240763-1.65060.052745
250.1506881.03310.153431
260.0074440.0510.479757
270.0777250.53290.298322
28-0.153983-1.05570.148261
290.1746691.19750.118564
30-0.206878-1.41830.081353
310.1537861.05430.148566
32-0.053033-0.36360.358902
33-0.06122-0.41970.338309
340.0942680.64630.260623
35-0.073872-0.50640.307459
36-0.020819-0.14270.443558







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.574448-3.93820.000135
2-0.014627-0.10030.460275
30.0671890.46060.323596
4-0.063962-0.43850.331516
5-0.240303-1.64740.05307
60.0470520.32260.374226
7-0.072919-0.49990.309737
80.0496040.34010.367659
90.0257830.17680.43023
10-0.122223-0.83790.203158
110.0379620.26030.397903
12-0.107262-0.73540.232889
13-0.211843-1.45230.076528
14-0.298157-2.04410.023287
150.0109610.07510.470209
160.0033540.0230.490875
17-0.073745-0.50560.30776
18-0.063741-0.4370.332061
19-0.097624-0.66930.253297
20-0.169958-1.16520.124914
210.2151251.47480.073464
22-0.155602-1.06680.145766
23-0.082277-0.56410.287697
24-0.074923-0.51360.304953
25-0.059127-0.40540.343527
260.0248540.17040.432717
270.1161830.79650.214871
28-0.067707-0.46420.322332
29-0.107102-0.73430.233221
300.0225910.15490.438791
310.0457540.31370.377579
32-0.03642-0.24970.401961
33-0.106039-0.7270.235426
340.0015780.01080.495706
350.0032980.02260.491029
36-0.095536-0.6550.257843

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.574448 & -3.9382 & 0.000135 \tabularnewline
2 & -0.014627 & -0.1003 & 0.460275 \tabularnewline
3 & 0.067189 & 0.4606 & 0.323596 \tabularnewline
4 & -0.063962 & -0.4385 & 0.331516 \tabularnewline
5 & -0.240303 & -1.6474 & 0.05307 \tabularnewline
6 & 0.047052 & 0.3226 & 0.374226 \tabularnewline
7 & -0.072919 & -0.4999 & 0.309737 \tabularnewline
8 & 0.049604 & 0.3401 & 0.367659 \tabularnewline
9 & 0.025783 & 0.1768 & 0.43023 \tabularnewline
10 & -0.122223 & -0.8379 & 0.203158 \tabularnewline
11 & 0.037962 & 0.2603 & 0.397903 \tabularnewline
12 & -0.107262 & -0.7354 & 0.232889 \tabularnewline
13 & -0.211843 & -1.4523 & 0.076528 \tabularnewline
14 & -0.298157 & -2.0441 & 0.023287 \tabularnewline
15 & 0.010961 & 0.0751 & 0.470209 \tabularnewline
16 & 0.003354 & 0.023 & 0.490875 \tabularnewline
17 & -0.073745 & -0.5056 & 0.30776 \tabularnewline
18 & -0.063741 & -0.437 & 0.332061 \tabularnewline
19 & -0.097624 & -0.6693 & 0.253297 \tabularnewline
20 & -0.169958 & -1.1652 & 0.124914 \tabularnewline
21 & 0.215125 & 1.4748 & 0.073464 \tabularnewline
22 & -0.155602 & -1.0668 & 0.145766 \tabularnewline
23 & -0.082277 & -0.5641 & 0.287697 \tabularnewline
24 & -0.074923 & -0.5136 & 0.304953 \tabularnewline
25 & -0.059127 & -0.4054 & 0.343527 \tabularnewline
26 & 0.024854 & 0.1704 & 0.432717 \tabularnewline
27 & 0.116183 & 0.7965 & 0.214871 \tabularnewline
28 & -0.067707 & -0.4642 & 0.322332 \tabularnewline
29 & -0.107102 & -0.7343 & 0.233221 \tabularnewline
30 & 0.022591 & 0.1549 & 0.438791 \tabularnewline
31 & 0.045754 & 0.3137 & 0.377579 \tabularnewline
32 & -0.03642 & -0.2497 & 0.401961 \tabularnewline
33 & -0.106039 & -0.727 & 0.235426 \tabularnewline
34 & 0.001578 & 0.0108 & 0.495706 \tabularnewline
35 & 0.003298 & 0.0226 & 0.491029 \tabularnewline
36 & -0.095536 & -0.655 & 0.257843 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69193&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.574448[/C][C]-3.9382[/C][C]0.000135[/C][/ROW]
[ROW][C]2[/C][C]-0.014627[/C][C]-0.1003[/C][C]0.460275[/C][/ROW]
[ROW][C]3[/C][C]0.067189[/C][C]0.4606[/C][C]0.323596[/C][/ROW]
[ROW][C]4[/C][C]-0.063962[/C][C]-0.4385[/C][C]0.331516[/C][/ROW]
[ROW][C]5[/C][C]-0.240303[/C][C]-1.6474[/C][C]0.05307[/C][/ROW]
[ROW][C]6[/C][C]0.047052[/C][C]0.3226[/C][C]0.374226[/C][/ROW]
[ROW][C]7[/C][C]-0.072919[/C][C]-0.4999[/C][C]0.309737[/C][/ROW]
[ROW][C]8[/C][C]0.049604[/C][C]0.3401[/C][C]0.367659[/C][/ROW]
[ROW][C]9[/C][C]0.025783[/C][C]0.1768[/C][C]0.43023[/C][/ROW]
[ROW][C]10[/C][C]-0.122223[/C][C]-0.8379[/C][C]0.203158[/C][/ROW]
[ROW][C]11[/C][C]0.037962[/C][C]0.2603[/C][C]0.397903[/C][/ROW]
[ROW][C]12[/C][C]-0.107262[/C][C]-0.7354[/C][C]0.232889[/C][/ROW]
[ROW][C]13[/C][C]-0.211843[/C][C]-1.4523[/C][C]0.076528[/C][/ROW]
[ROW][C]14[/C][C]-0.298157[/C][C]-2.0441[/C][C]0.023287[/C][/ROW]
[ROW][C]15[/C][C]0.010961[/C][C]0.0751[/C][C]0.470209[/C][/ROW]
[ROW][C]16[/C][C]0.003354[/C][C]0.023[/C][C]0.490875[/C][/ROW]
[ROW][C]17[/C][C]-0.073745[/C][C]-0.5056[/C][C]0.30776[/C][/ROW]
[ROW][C]18[/C][C]-0.063741[/C][C]-0.437[/C][C]0.332061[/C][/ROW]
[ROW][C]19[/C][C]-0.097624[/C][C]-0.6693[/C][C]0.253297[/C][/ROW]
[ROW][C]20[/C][C]-0.169958[/C][C]-1.1652[/C][C]0.124914[/C][/ROW]
[ROW][C]21[/C][C]0.215125[/C][C]1.4748[/C][C]0.073464[/C][/ROW]
[ROW][C]22[/C][C]-0.155602[/C][C]-1.0668[/C][C]0.145766[/C][/ROW]
[ROW][C]23[/C][C]-0.082277[/C][C]-0.5641[/C][C]0.287697[/C][/ROW]
[ROW][C]24[/C][C]-0.074923[/C][C]-0.5136[/C][C]0.304953[/C][/ROW]
[ROW][C]25[/C][C]-0.059127[/C][C]-0.4054[/C][C]0.343527[/C][/ROW]
[ROW][C]26[/C][C]0.024854[/C][C]0.1704[/C][C]0.432717[/C][/ROW]
[ROW][C]27[/C][C]0.116183[/C][C]0.7965[/C][C]0.214871[/C][/ROW]
[ROW][C]28[/C][C]-0.067707[/C][C]-0.4642[/C][C]0.322332[/C][/ROW]
[ROW][C]29[/C][C]-0.107102[/C][C]-0.7343[/C][C]0.233221[/C][/ROW]
[ROW][C]30[/C][C]0.022591[/C][C]0.1549[/C][C]0.438791[/C][/ROW]
[ROW][C]31[/C][C]0.045754[/C][C]0.3137[/C][C]0.377579[/C][/ROW]
[ROW][C]32[/C][C]-0.03642[/C][C]-0.2497[/C][C]0.401961[/C][/ROW]
[ROW][C]33[/C][C]-0.106039[/C][C]-0.727[/C][C]0.235426[/C][/ROW]
[ROW][C]34[/C][C]0.001578[/C][C]0.0108[/C][C]0.495706[/C][/ROW]
[ROW][C]35[/C][C]0.003298[/C][C]0.0226[/C][C]0.491029[/C][/ROW]
[ROW][C]36[/C][C]-0.095536[/C][C]-0.655[/C][C]0.257843[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69193&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69193&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.574448-3.93820.000135
2-0.014627-0.10030.460275
30.0671890.46060.323596
4-0.063962-0.43850.331516
5-0.240303-1.64740.05307
60.0470520.32260.374226
7-0.072919-0.49990.309737
80.0496040.34010.367659
90.0257830.17680.43023
10-0.122223-0.83790.203158
110.0379620.26030.397903
12-0.107262-0.73540.232889
13-0.211843-1.45230.076528
14-0.298157-2.04410.023287
150.0109610.07510.470209
160.0033540.0230.490875
17-0.073745-0.50560.30776
18-0.063741-0.4370.332061
19-0.097624-0.66930.253297
20-0.169958-1.16520.124914
210.2151251.47480.073464
22-0.155602-1.06680.145766
23-0.082277-0.56410.287697
24-0.074923-0.51360.304953
25-0.059127-0.40540.343527
260.0248540.17040.432717
270.1161830.79650.214871
28-0.067707-0.46420.322332
29-0.107102-0.73430.233221
300.0225910.15490.438791
310.0457540.31370.377579
32-0.03642-0.24970.401961
33-0.106039-0.7270.235426
340.0015780.01080.495706
350.0032980.02260.491029
36-0.095536-0.6550.257843



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