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 computationThu, 03 Dec 2009 15:52:29 -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/03/t1259880806vdtotu6ggdcb2qs.htm/, Retrieved Fri, 19 Apr 2024 12:21:09 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63143, Retrieved Fri, 19 Apr 2024 12:21:09 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact127
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [Identifying integ...] [2009-11-23 18:42:00] [d46757a0a8c9b00540ab7e7e0c34bfc4]
-    D    [(Partial) Autocorrelation Function] [ACF met: d=1, D=0...] [2009-12-03 22:52:29] [371dc2189c569d90e2c1567f632c3ec0] [Current]
-   P       [(Partial) Autocorrelation Function] [ACF met: d=0, D=1...] [2009-12-04 14:13:45] [34d27ebe78dc2d31581e8710befe8733]
-    D        [(Partial) Autocorrelation Function] [ACF met: d=0, D=1...] [2009-12-16 22:43:21] [34d27ebe78dc2d31581e8710befe8733]
-               [(Partial) Autocorrelation Function] [ACF met: d=1, D=0...] [2009-12-19 11:29:26] [34d27ebe78dc2d31581e8710befe8733]
Feedback Forum

Post a new message
Dataseries X:
462
455
461
461
463
462
456
455
456
472
472
471
465
459
465
468
467
463
460
462
461
476
476
471
453
443
442
444
438
427
424
416
406
431
434
418
412
404
409
412
406
398
397
385
390
413
413
401
397
397
409
419
424
428
430
424
433
456
459
446
441




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63143&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.2031351.57350.060433
2-0.308216-2.38740.010067
3-0.225128-1.74380.043155
4-0.095795-0.7420.230483
50.1971991.52750.065947
60.3606732.79380.003492
70.1913141.48190.071798
8-0.146957-1.13830.129755
9-0.321041-2.48680.007845
10-0.325041-2.51780.007249
110.1999191.54860.063373
120.6426024.97763e-06
130.0238650.18490.426982
14-0.311002-2.4090.009541
15-0.246386-1.90850.030557
16-0.149691-1.15950.125422
170.0866940.67150.25223
180.212591.64670.052422
190.1454731.12680.13215
20-0.211292-1.63670.053469
21-0.318317-2.46570.008276
22-0.227282-1.76050.041708
230.158461.22740.112229
240.3861352.9910.002015
25-0.029172-0.2260.411
26-0.281805-2.18290.016485
27-0.194786-1.50880.068298
28-0.122567-0.94940.173113
290.0407240.31540.376758
300.1450551.12360.132831
310.1215840.94180.17504
32-0.178433-1.38210.086027
33-0.199433-1.54480.063826
34-0.048836-0.37830.353277
350.1356341.05060.148825
360.230461.78510.039647

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.203135 & 1.5735 & 0.060433 \tabularnewline
2 & -0.308216 & -2.3874 & 0.010067 \tabularnewline
3 & -0.225128 & -1.7438 & 0.043155 \tabularnewline
4 & -0.095795 & -0.742 & 0.230483 \tabularnewline
5 & 0.197199 & 1.5275 & 0.065947 \tabularnewline
6 & 0.360673 & 2.7938 & 0.003492 \tabularnewline
7 & 0.191314 & 1.4819 & 0.071798 \tabularnewline
8 & -0.146957 & -1.1383 & 0.129755 \tabularnewline
9 & -0.321041 & -2.4868 & 0.007845 \tabularnewline
10 & -0.325041 & -2.5178 & 0.007249 \tabularnewline
11 & 0.199919 & 1.5486 & 0.063373 \tabularnewline
12 & 0.642602 & 4.9776 & 3e-06 \tabularnewline
13 & 0.023865 & 0.1849 & 0.426982 \tabularnewline
14 & -0.311002 & -2.409 & 0.009541 \tabularnewline
15 & -0.246386 & -1.9085 & 0.030557 \tabularnewline
16 & -0.149691 & -1.1595 & 0.125422 \tabularnewline
17 & 0.086694 & 0.6715 & 0.25223 \tabularnewline
18 & 0.21259 & 1.6467 & 0.052422 \tabularnewline
19 & 0.145473 & 1.1268 & 0.13215 \tabularnewline
20 & -0.211292 & -1.6367 & 0.053469 \tabularnewline
21 & -0.318317 & -2.4657 & 0.008276 \tabularnewline
22 & -0.227282 & -1.7605 & 0.041708 \tabularnewline
23 & 0.15846 & 1.2274 & 0.112229 \tabularnewline
24 & 0.386135 & 2.991 & 0.002015 \tabularnewline
25 & -0.029172 & -0.226 & 0.411 \tabularnewline
26 & -0.281805 & -2.1829 & 0.016485 \tabularnewline
27 & -0.194786 & -1.5088 & 0.068298 \tabularnewline
28 & -0.122567 & -0.9494 & 0.173113 \tabularnewline
29 & 0.040724 & 0.3154 & 0.376758 \tabularnewline
30 & 0.145055 & 1.1236 & 0.132831 \tabularnewline
31 & 0.121584 & 0.9418 & 0.17504 \tabularnewline
32 & -0.178433 & -1.3821 & 0.086027 \tabularnewline
33 & -0.199433 & -1.5448 & 0.063826 \tabularnewline
34 & -0.048836 & -0.3783 & 0.353277 \tabularnewline
35 & 0.135634 & 1.0506 & 0.148825 \tabularnewline
36 & 0.23046 & 1.7851 & 0.039647 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63143&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.203135[/C][C]1.5735[/C][C]0.060433[/C][/ROW]
[ROW][C]2[/C][C]-0.308216[/C][C]-2.3874[/C][C]0.010067[/C][/ROW]
[ROW][C]3[/C][C]-0.225128[/C][C]-1.7438[/C][C]0.043155[/C][/ROW]
[ROW][C]4[/C][C]-0.095795[/C][C]-0.742[/C][C]0.230483[/C][/ROW]
[ROW][C]5[/C][C]0.197199[/C][C]1.5275[/C][C]0.065947[/C][/ROW]
[ROW][C]6[/C][C]0.360673[/C][C]2.7938[/C][C]0.003492[/C][/ROW]
[ROW][C]7[/C][C]0.191314[/C][C]1.4819[/C][C]0.071798[/C][/ROW]
[ROW][C]8[/C][C]-0.146957[/C][C]-1.1383[/C][C]0.129755[/C][/ROW]
[ROW][C]9[/C][C]-0.321041[/C][C]-2.4868[/C][C]0.007845[/C][/ROW]
[ROW][C]10[/C][C]-0.325041[/C][C]-2.5178[/C][C]0.007249[/C][/ROW]
[ROW][C]11[/C][C]0.199919[/C][C]1.5486[/C][C]0.063373[/C][/ROW]
[ROW][C]12[/C][C]0.642602[/C][C]4.9776[/C][C]3e-06[/C][/ROW]
[ROW][C]13[/C][C]0.023865[/C][C]0.1849[/C][C]0.426982[/C][/ROW]
[ROW][C]14[/C][C]-0.311002[/C][C]-2.409[/C][C]0.009541[/C][/ROW]
[ROW][C]15[/C][C]-0.246386[/C][C]-1.9085[/C][C]0.030557[/C][/ROW]
[ROW][C]16[/C][C]-0.149691[/C][C]-1.1595[/C][C]0.125422[/C][/ROW]
[ROW][C]17[/C][C]0.086694[/C][C]0.6715[/C][C]0.25223[/C][/ROW]
[ROW][C]18[/C][C]0.21259[/C][C]1.6467[/C][C]0.052422[/C][/ROW]
[ROW][C]19[/C][C]0.145473[/C][C]1.1268[/C][C]0.13215[/C][/ROW]
[ROW][C]20[/C][C]-0.211292[/C][C]-1.6367[/C][C]0.053469[/C][/ROW]
[ROW][C]21[/C][C]-0.318317[/C][C]-2.4657[/C][C]0.008276[/C][/ROW]
[ROW][C]22[/C][C]-0.227282[/C][C]-1.7605[/C][C]0.041708[/C][/ROW]
[ROW][C]23[/C][C]0.15846[/C][C]1.2274[/C][C]0.112229[/C][/ROW]
[ROW][C]24[/C][C]0.386135[/C][C]2.991[/C][C]0.002015[/C][/ROW]
[ROW][C]25[/C][C]-0.029172[/C][C]-0.226[/C][C]0.411[/C][/ROW]
[ROW][C]26[/C][C]-0.281805[/C][C]-2.1829[/C][C]0.016485[/C][/ROW]
[ROW][C]27[/C][C]-0.194786[/C][C]-1.5088[/C][C]0.068298[/C][/ROW]
[ROW][C]28[/C][C]-0.122567[/C][C]-0.9494[/C][C]0.173113[/C][/ROW]
[ROW][C]29[/C][C]0.040724[/C][C]0.3154[/C][C]0.376758[/C][/ROW]
[ROW][C]30[/C][C]0.145055[/C][C]1.1236[/C][C]0.132831[/C][/ROW]
[ROW][C]31[/C][C]0.121584[/C][C]0.9418[/C][C]0.17504[/C][/ROW]
[ROW][C]32[/C][C]-0.178433[/C][C]-1.3821[/C][C]0.086027[/C][/ROW]
[ROW][C]33[/C][C]-0.199433[/C][C]-1.5448[/C][C]0.063826[/C][/ROW]
[ROW][C]34[/C][C]-0.048836[/C][C]-0.3783[/C][C]0.353277[/C][/ROW]
[ROW][C]35[/C][C]0.135634[/C][C]1.0506[/C][C]0.148825[/C][/ROW]
[ROW][C]36[/C][C]0.23046[/C][C]1.7851[/C][C]0.039647[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63143&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63143&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.2031351.57350.060433
2-0.308216-2.38740.010067
3-0.225128-1.74380.043155
4-0.095795-0.7420.230483
50.1971991.52750.065947
60.3606732.79380.003492
70.1913141.48190.071798
8-0.146957-1.13830.129755
9-0.321041-2.48680.007845
10-0.325041-2.51780.007249
110.1999191.54860.063373
120.6426024.97763e-06
130.0238650.18490.426982
14-0.311002-2.4090.009541
15-0.246386-1.90850.030557
16-0.149691-1.15950.125422
170.0866940.67150.25223
180.212591.64670.052422
190.1454731.12680.13215
20-0.211292-1.63670.053469
21-0.318317-2.46570.008276
22-0.227282-1.76050.041708
230.158461.22740.112229
240.3861352.9910.002015
25-0.029172-0.2260.411
26-0.281805-2.18290.016485
27-0.194786-1.50880.068298
28-0.122567-0.94940.173113
290.0407240.31540.376758
300.1450551.12360.132831
310.1215840.94180.17504
32-0.178433-1.38210.086027
33-0.199433-1.54480.063826
34-0.048836-0.37830.353277
350.1356341.05060.148825
360.230461.78510.039647







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2031351.57350.060433
2-0.364521-2.82360.003218
3-0.078967-0.61170.271531
4-0.156675-1.21360.114829
50.1862181.44240.077189
60.2301731.78290.03983
70.2008851.5560.062478
8-0.012173-0.09430.462595
9-0.135057-1.04620.149844
10-0.361465-2.79990.003434
110.1389171.0760.143106
120.4326863.35160.000697
13-0.2099-1.62590.054608
140.000430.00330.498677
15-0.074921-0.58030.28193
16-0.052296-0.40510.343429
17-0.139561-1.0810.142004
18-0.189231-1.46580.073966
190.0418920.32450.373345
20-0.133264-1.03230.153047
210.1201390.93060.177896
220.0181970.1410.444189
23-0.048859-0.37850.353213
24-0.052581-0.40730.342621
25-0.02757-0.21360.415809
26-0.153151-1.18630.12009
27-0.005174-0.04010.484082
28-0.109576-0.84880.199691
29-0.00478-0.0370.485294
30-0.107334-0.83140.204521
310.0334560.25910.398204
320.0075310.05830.476839
330.0701320.54320.294487
340.1042380.80740.211305
35-0.070562-0.54660.29335
36-0.092618-0.71740.23795

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.203135 & 1.5735 & 0.060433 \tabularnewline
2 & -0.364521 & -2.8236 & 0.003218 \tabularnewline
3 & -0.078967 & -0.6117 & 0.271531 \tabularnewline
4 & -0.156675 & -1.2136 & 0.114829 \tabularnewline
5 & 0.186218 & 1.4424 & 0.077189 \tabularnewline
6 & 0.230173 & 1.7829 & 0.03983 \tabularnewline
7 & 0.200885 & 1.556 & 0.062478 \tabularnewline
8 & -0.012173 & -0.0943 & 0.462595 \tabularnewline
9 & -0.135057 & -1.0462 & 0.149844 \tabularnewline
10 & -0.361465 & -2.7999 & 0.003434 \tabularnewline
11 & 0.138917 & 1.076 & 0.143106 \tabularnewline
12 & 0.432686 & 3.3516 & 0.000697 \tabularnewline
13 & -0.2099 & -1.6259 & 0.054608 \tabularnewline
14 & 0.00043 & 0.0033 & 0.498677 \tabularnewline
15 & -0.074921 & -0.5803 & 0.28193 \tabularnewline
16 & -0.052296 & -0.4051 & 0.343429 \tabularnewline
17 & -0.139561 & -1.081 & 0.142004 \tabularnewline
18 & -0.189231 & -1.4658 & 0.073966 \tabularnewline
19 & 0.041892 & 0.3245 & 0.373345 \tabularnewline
20 & -0.133264 & -1.0323 & 0.153047 \tabularnewline
21 & 0.120139 & 0.9306 & 0.177896 \tabularnewline
22 & 0.018197 & 0.141 & 0.444189 \tabularnewline
23 & -0.048859 & -0.3785 & 0.353213 \tabularnewline
24 & -0.052581 & -0.4073 & 0.342621 \tabularnewline
25 & -0.02757 & -0.2136 & 0.415809 \tabularnewline
26 & -0.153151 & -1.1863 & 0.12009 \tabularnewline
27 & -0.005174 & -0.0401 & 0.484082 \tabularnewline
28 & -0.109576 & -0.8488 & 0.199691 \tabularnewline
29 & -0.00478 & -0.037 & 0.485294 \tabularnewline
30 & -0.107334 & -0.8314 & 0.204521 \tabularnewline
31 & 0.033456 & 0.2591 & 0.398204 \tabularnewline
32 & 0.007531 & 0.0583 & 0.476839 \tabularnewline
33 & 0.070132 & 0.5432 & 0.294487 \tabularnewline
34 & 0.104238 & 0.8074 & 0.211305 \tabularnewline
35 & -0.070562 & -0.5466 & 0.29335 \tabularnewline
36 & -0.092618 & -0.7174 & 0.23795 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63143&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.203135[/C][C]1.5735[/C][C]0.060433[/C][/ROW]
[ROW][C]2[/C][C]-0.364521[/C][C]-2.8236[/C][C]0.003218[/C][/ROW]
[ROW][C]3[/C][C]-0.078967[/C][C]-0.6117[/C][C]0.271531[/C][/ROW]
[ROW][C]4[/C][C]-0.156675[/C][C]-1.2136[/C][C]0.114829[/C][/ROW]
[ROW][C]5[/C][C]0.186218[/C][C]1.4424[/C][C]0.077189[/C][/ROW]
[ROW][C]6[/C][C]0.230173[/C][C]1.7829[/C][C]0.03983[/C][/ROW]
[ROW][C]7[/C][C]0.200885[/C][C]1.556[/C][C]0.062478[/C][/ROW]
[ROW][C]8[/C][C]-0.012173[/C][C]-0.0943[/C][C]0.462595[/C][/ROW]
[ROW][C]9[/C][C]-0.135057[/C][C]-1.0462[/C][C]0.149844[/C][/ROW]
[ROW][C]10[/C][C]-0.361465[/C][C]-2.7999[/C][C]0.003434[/C][/ROW]
[ROW][C]11[/C][C]0.138917[/C][C]1.076[/C][C]0.143106[/C][/ROW]
[ROW][C]12[/C][C]0.432686[/C][C]3.3516[/C][C]0.000697[/C][/ROW]
[ROW][C]13[/C][C]-0.2099[/C][C]-1.6259[/C][C]0.054608[/C][/ROW]
[ROW][C]14[/C][C]0.00043[/C][C]0.0033[/C][C]0.498677[/C][/ROW]
[ROW][C]15[/C][C]-0.074921[/C][C]-0.5803[/C][C]0.28193[/C][/ROW]
[ROW][C]16[/C][C]-0.052296[/C][C]-0.4051[/C][C]0.343429[/C][/ROW]
[ROW][C]17[/C][C]-0.139561[/C][C]-1.081[/C][C]0.142004[/C][/ROW]
[ROW][C]18[/C][C]-0.189231[/C][C]-1.4658[/C][C]0.073966[/C][/ROW]
[ROW][C]19[/C][C]0.041892[/C][C]0.3245[/C][C]0.373345[/C][/ROW]
[ROW][C]20[/C][C]-0.133264[/C][C]-1.0323[/C][C]0.153047[/C][/ROW]
[ROW][C]21[/C][C]0.120139[/C][C]0.9306[/C][C]0.177896[/C][/ROW]
[ROW][C]22[/C][C]0.018197[/C][C]0.141[/C][C]0.444189[/C][/ROW]
[ROW][C]23[/C][C]-0.048859[/C][C]-0.3785[/C][C]0.353213[/C][/ROW]
[ROW][C]24[/C][C]-0.052581[/C][C]-0.4073[/C][C]0.342621[/C][/ROW]
[ROW][C]25[/C][C]-0.02757[/C][C]-0.2136[/C][C]0.415809[/C][/ROW]
[ROW][C]26[/C][C]-0.153151[/C][C]-1.1863[/C][C]0.12009[/C][/ROW]
[ROW][C]27[/C][C]-0.005174[/C][C]-0.0401[/C][C]0.484082[/C][/ROW]
[ROW][C]28[/C][C]-0.109576[/C][C]-0.8488[/C][C]0.199691[/C][/ROW]
[ROW][C]29[/C][C]-0.00478[/C][C]-0.037[/C][C]0.485294[/C][/ROW]
[ROW][C]30[/C][C]-0.107334[/C][C]-0.8314[/C][C]0.204521[/C][/ROW]
[ROW][C]31[/C][C]0.033456[/C][C]0.2591[/C][C]0.398204[/C][/ROW]
[ROW][C]32[/C][C]0.007531[/C][C]0.0583[/C][C]0.476839[/C][/ROW]
[ROW][C]33[/C][C]0.070132[/C][C]0.5432[/C][C]0.294487[/C][/ROW]
[ROW][C]34[/C][C]0.104238[/C][C]0.8074[/C][C]0.211305[/C][/ROW]
[ROW][C]35[/C][C]-0.070562[/C][C]-0.5466[/C][C]0.29335[/C][/ROW]
[ROW][C]36[/C][C]-0.092618[/C][C]-0.7174[/C][C]0.23795[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63143&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63143&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.2031351.57350.060433
2-0.364521-2.82360.003218
3-0.078967-0.61170.271531
4-0.156675-1.21360.114829
50.1862181.44240.077189
60.2301731.78290.03983
70.2008851.5560.062478
8-0.012173-0.09430.462595
9-0.135057-1.04620.149844
10-0.361465-2.79990.003434
110.1389171.0760.143106
120.4326863.35160.000697
13-0.2099-1.62590.054608
140.000430.00330.498677
15-0.074921-0.58030.28193
16-0.052296-0.40510.343429
17-0.139561-1.0810.142004
18-0.189231-1.46580.073966
190.0418920.32450.373345
20-0.133264-1.03230.153047
210.1201390.93060.177896
220.0181970.1410.444189
23-0.048859-0.37850.353213
24-0.052581-0.40730.342621
25-0.02757-0.21360.415809
26-0.153151-1.18630.12009
27-0.005174-0.04010.484082
28-0.109576-0.84880.199691
29-0.00478-0.0370.485294
30-0.107334-0.83140.204521
310.0334560.25910.398204
320.0075310.05830.476839
330.0701320.54320.294487
340.1042380.80740.211305
35-0.070562-0.54660.29335
36-0.092618-0.71740.23795



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