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, 01 Dec 2009 12:39:16 -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/01/t1259696416v9t3nvt0cvs78jf.htm/, Retrieved Thu, 25 Apr 2024 03:41:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=62211, Retrieved Thu, 25 Apr 2024 03:41:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact160
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]
-    D      [(Partial) Autocorrelation Function] [workshop 9,5] [2009-12-01 19:39:16] [2210215221105fab636491031ce54076] [Current]
Feedback Forum

Post a new message
Dataseries X:
611
594
595
591
589
584
573
567
569
621
629
628
612
595
597
593
590
580
574
573
573
620
626
620
588
566
557
561
549
532
526
511
499
555
565
542
527
510
514
517
508
493
490
469
478
528
534
518
506
502
516
528
533
536
537
524
536
587
597
581
564




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62211&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.2499351.9360.028792
2-0.25827-2.00060.024986
3-0.308599-2.39040.009993
4-0.181872-1.40880.082031
50.0929390.71990.237189
60.2205931.70870.046337
70.0839250.65010.259061
8-0.223348-1.730.044382
9-0.283051-2.19250.016116
10-0.229222-1.77550.040439
110.2411551.8680.033325
120.7310525.66270
130.1345911.04250.150673
14-0.252049-1.95240.027783
15-0.2827-2.18980.016219
16-0.173684-1.34530.091788
170.0534850.41430.340068
180.1476141.14340.128705
190.049960.3870.350068
20-0.223497-1.73120.044278
21-0.250871-1.94320.028341
22-0.17043-1.32010.0959
230.2026911.570.060832
240.5158243.99568.9e-05
250.067030.51920.302762
26-0.228837-1.77260.040688
27-0.19629-1.52050.066825
28-0.096004-0.74360.229996
290.044260.34280.366459
300.1010430.78270.218449
310.0396530.30720.379896
32-0.181123-1.4030.082889
33-0.166579-1.29030.100946
34-0.057038-0.44180.330106
350.1569981.21610.114354
360.3160772.44830.008647

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.249935 & 1.936 & 0.028792 \tabularnewline
2 & -0.25827 & -2.0006 & 0.024986 \tabularnewline
3 & -0.308599 & -2.3904 & 0.009993 \tabularnewline
4 & -0.181872 & -1.4088 & 0.082031 \tabularnewline
5 & 0.092939 & 0.7199 & 0.237189 \tabularnewline
6 & 0.220593 & 1.7087 & 0.046337 \tabularnewline
7 & 0.083925 & 0.6501 & 0.259061 \tabularnewline
8 & -0.223348 & -1.73 & 0.044382 \tabularnewline
9 & -0.283051 & -2.1925 & 0.016116 \tabularnewline
10 & -0.229222 & -1.7755 & 0.040439 \tabularnewline
11 & 0.241155 & 1.868 & 0.033325 \tabularnewline
12 & 0.731052 & 5.6627 & 0 \tabularnewline
13 & 0.134591 & 1.0425 & 0.150673 \tabularnewline
14 & -0.252049 & -1.9524 & 0.027783 \tabularnewline
15 & -0.2827 & -2.1898 & 0.016219 \tabularnewline
16 & -0.173684 & -1.3453 & 0.091788 \tabularnewline
17 & 0.053485 & 0.4143 & 0.340068 \tabularnewline
18 & 0.147614 & 1.1434 & 0.128705 \tabularnewline
19 & 0.04996 & 0.387 & 0.350068 \tabularnewline
20 & -0.223497 & -1.7312 & 0.044278 \tabularnewline
21 & -0.250871 & -1.9432 & 0.028341 \tabularnewline
22 & -0.17043 & -1.3201 & 0.0959 \tabularnewline
23 & 0.202691 & 1.57 & 0.060832 \tabularnewline
24 & 0.515824 & 3.9956 & 8.9e-05 \tabularnewline
25 & 0.06703 & 0.5192 & 0.302762 \tabularnewline
26 & -0.228837 & -1.7726 & 0.040688 \tabularnewline
27 & -0.19629 & -1.5205 & 0.066825 \tabularnewline
28 & -0.096004 & -0.7436 & 0.229996 \tabularnewline
29 & 0.04426 & 0.3428 & 0.366459 \tabularnewline
30 & 0.101043 & 0.7827 & 0.218449 \tabularnewline
31 & 0.039653 & 0.3072 & 0.379896 \tabularnewline
32 & -0.181123 & -1.403 & 0.082889 \tabularnewline
33 & -0.166579 & -1.2903 & 0.100946 \tabularnewline
34 & -0.057038 & -0.4418 & 0.330106 \tabularnewline
35 & 0.156998 & 1.2161 & 0.114354 \tabularnewline
36 & 0.316077 & 2.4483 & 0.008647 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62211&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.249935[/C][C]1.936[/C][C]0.028792[/C][/ROW]
[ROW][C]2[/C][C]-0.25827[/C][C]-2.0006[/C][C]0.024986[/C][/ROW]
[ROW][C]3[/C][C]-0.308599[/C][C]-2.3904[/C][C]0.009993[/C][/ROW]
[ROW][C]4[/C][C]-0.181872[/C][C]-1.4088[/C][C]0.082031[/C][/ROW]
[ROW][C]5[/C][C]0.092939[/C][C]0.7199[/C][C]0.237189[/C][/ROW]
[ROW][C]6[/C][C]0.220593[/C][C]1.7087[/C][C]0.046337[/C][/ROW]
[ROW][C]7[/C][C]0.083925[/C][C]0.6501[/C][C]0.259061[/C][/ROW]
[ROW][C]8[/C][C]-0.223348[/C][C]-1.73[/C][C]0.044382[/C][/ROW]
[ROW][C]9[/C][C]-0.283051[/C][C]-2.1925[/C][C]0.016116[/C][/ROW]
[ROW][C]10[/C][C]-0.229222[/C][C]-1.7755[/C][C]0.040439[/C][/ROW]
[ROW][C]11[/C][C]0.241155[/C][C]1.868[/C][C]0.033325[/C][/ROW]
[ROW][C]12[/C][C]0.731052[/C][C]5.6627[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.134591[/C][C]1.0425[/C][C]0.150673[/C][/ROW]
[ROW][C]14[/C][C]-0.252049[/C][C]-1.9524[/C][C]0.027783[/C][/ROW]
[ROW][C]15[/C][C]-0.2827[/C][C]-2.1898[/C][C]0.016219[/C][/ROW]
[ROW][C]16[/C][C]-0.173684[/C][C]-1.3453[/C][C]0.091788[/C][/ROW]
[ROW][C]17[/C][C]0.053485[/C][C]0.4143[/C][C]0.340068[/C][/ROW]
[ROW][C]18[/C][C]0.147614[/C][C]1.1434[/C][C]0.128705[/C][/ROW]
[ROW][C]19[/C][C]0.04996[/C][C]0.387[/C][C]0.350068[/C][/ROW]
[ROW][C]20[/C][C]-0.223497[/C][C]-1.7312[/C][C]0.044278[/C][/ROW]
[ROW][C]21[/C][C]-0.250871[/C][C]-1.9432[/C][C]0.028341[/C][/ROW]
[ROW][C]22[/C][C]-0.17043[/C][C]-1.3201[/C][C]0.0959[/C][/ROW]
[ROW][C]23[/C][C]0.202691[/C][C]1.57[/C][C]0.060832[/C][/ROW]
[ROW][C]24[/C][C]0.515824[/C][C]3.9956[/C][C]8.9e-05[/C][/ROW]
[ROW][C]25[/C][C]0.06703[/C][C]0.5192[/C][C]0.302762[/C][/ROW]
[ROW][C]26[/C][C]-0.228837[/C][C]-1.7726[/C][C]0.040688[/C][/ROW]
[ROW][C]27[/C][C]-0.19629[/C][C]-1.5205[/C][C]0.066825[/C][/ROW]
[ROW][C]28[/C][C]-0.096004[/C][C]-0.7436[/C][C]0.229996[/C][/ROW]
[ROW][C]29[/C][C]0.04426[/C][C]0.3428[/C][C]0.366459[/C][/ROW]
[ROW][C]30[/C][C]0.101043[/C][C]0.7827[/C][C]0.218449[/C][/ROW]
[ROW][C]31[/C][C]0.039653[/C][C]0.3072[/C][C]0.379896[/C][/ROW]
[ROW][C]32[/C][C]-0.181123[/C][C]-1.403[/C][C]0.082889[/C][/ROW]
[ROW][C]33[/C][C]-0.166579[/C][C]-1.2903[/C][C]0.100946[/C][/ROW]
[ROW][C]34[/C][C]-0.057038[/C][C]-0.4418[/C][C]0.330106[/C][/ROW]
[ROW][C]35[/C][C]0.156998[/C][C]1.2161[/C][C]0.114354[/C][/ROW]
[ROW][C]36[/C][C]0.316077[/C][C]2.4483[/C][C]0.008647[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62211&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62211&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.2499351.9360.028792
2-0.25827-2.00060.024986
3-0.308599-2.39040.009993
4-0.181872-1.40880.082031
50.0929390.71990.237189
60.2205931.70870.046337
70.0839250.65010.259061
8-0.223348-1.730.044382
9-0.283051-2.19250.016116
10-0.229222-1.77550.040439
110.2411551.8680.033325
120.7310525.66270
130.1345911.04250.150673
14-0.252049-1.95240.027783
15-0.2827-2.18980.016219
16-0.173684-1.34530.091788
170.0534850.41430.340068
180.1476141.14340.128705
190.049960.3870.350068
20-0.223497-1.73120.044278
21-0.250871-1.94320.028341
22-0.17043-1.32010.0959
230.2026911.570.060832
240.5158243.99568.9e-05
250.067030.51920.302762
26-0.228837-1.77260.040688
27-0.19629-1.52050.066825
28-0.096004-0.74360.229996
290.044260.34280.366459
300.1010430.78270.218449
310.0396530.30720.379896
32-0.181123-1.4030.082889
33-0.166579-1.29030.100946
34-0.057038-0.44180.330106
350.1569981.21610.114354
360.3160772.44830.008647







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2499351.9360.028792
2-0.342109-2.650.005138
3-0.164846-1.27690.103281
4-0.159732-1.23730.110402
50.0574850.44530.32886
60.0593550.45980.323674
7-0.016554-0.12820.449198
8-0.209428-1.62220.055
9-0.132579-1.0270.154283
10-0.268559-2.08020.020891
110.2318621.7960.038765
120.5869954.54681.3e-05
13-0.210672-1.63190.053974
140.0675960.52360.301243
15-0.012147-0.09410.462674
16-0.11956-0.92610.17905
17-0.07609-0.58940.278906
18-0.171644-1.32950.094351
19-0.013946-0.1080.457167
20-0.061655-0.47760.317344
21-0.054202-0.41980.338049
220.0241390.1870.426155
23-0.111058-0.86030.196536
24-0.047624-0.36890.356752
25-0.027836-0.21560.415008
26-0.10763-0.83370.203879
270.1040980.80630.211616
28-0.008611-0.06670.473522
29-0.02939-0.22770.410343
30-0.005448-0.04220.483241
31-0.034029-0.26360.396501
320.0002820.00220.499132
330.0130150.10080.460016
340.0455520.35280.36272
35-0.081478-0.63110.265178
36-0.125799-0.97440.166877

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.249935 & 1.936 & 0.028792 \tabularnewline
2 & -0.342109 & -2.65 & 0.005138 \tabularnewline
3 & -0.164846 & -1.2769 & 0.103281 \tabularnewline
4 & -0.159732 & -1.2373 & 0.110402 \tabularnewline
5 & 0.057485 & 0.4453 & 0.32886 \tabularnewline
6 & 0.059355 & 0.4598 & 0.323674 \tabularnewline
7 & -0.016554 & -0.1282 & 0.449198 \tabularnewline
8 & -0.209428 & -1.6222 & 0.055 \tabularnewline
9 & -0.132579 & -1.027 & 0.154283 \tabularnewline
10 & -0.268559 & -2.0802 & 0.020891 \tabularnewline
11 & 0.231862 & 1.796 & 0.038765 \tabularnewline
12 & 0.586995 & 4.5468 & 1.3e-05 \tabularnewline
13 & -0.210672 & -1.6319 & 0.053974 \tabularnewline
14 & 0.067596 & 0.5236 & 0.301243 \tabularnewline
15 & -0.012147 & -0.0941 & 0.462674 \tabularnewline
16 & -0.11956 & -0.9261 & 0.17905 \tabularnewline
17 & -0.07609 & -0.5894 & 0.278906 \tabularnewline
18 & -0.171644 & -1.3295 & 0.094351 \tabularnewline
19 & -0.013946 & -0.108 & 0.457167 \tabularnewline
20 & -0.061655 & -0.4776 & 0.317344 \tabularnewline
21 & -0.054202 & -0.4198 & 0.338049 \tabularnewline
22 & 0.024139 & 0.187 & 0.426155 \tabularnewline
23 & -0.111058 & -0.8603 & 0.196536 \tabularnewline
24 & -0.047624 & -0.3689 & 0.356752 \tabularnewline
25 & -0.027836 & -0.2156 & 0.415008 \tabularnewline
26 & -0.10763 & -0.8337 & 0.203879 \tabularnewline
27 & 0.104098 & 0.8063 & 0.211616 \tabularnewline
28 & -0.008611 & -0.0667 & 0.473522 \tabularnewline
29 & -0.02939 & -0.2277 & 0.410343 \tabularnewline
30 & -0.005448 & -0.0422 & 0.483241 \tabularnewline
31 & -0.034029 & -0.2636 & 0.396501 \tabularnewline
32 & 0.000282 & 0.0022 & 0.499132 \tabularnewline
33 & 0.013015 & 0.1008 & 0.460016 \tabularnewline
34 & 0.045552 & 0.3528 & 0.36272 \tabularnewline
35 & -0.081478 & -0.6311 & 0.265178 \tabularnewline
36 & -0.125799 & -0.9744 & 0.166877 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62211&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.249935[/C][C]1.936[/C][C]0.028792[/C][/ROW]
[ROW][C]2[/C][C]-0.342109[/C][C]-2.65[/C][C]0.005138[/C][/ROW]
[ROW][C]3[/C][C]-0.164846[/C][C]-1.2769[/C][C]0.103281[/C][/ROW]
[ROW][C]4[/C][C]-0.159732[/C][C]-1.2373[/C][C]0.110402[/C][/ROW]
[ROW][C]5[/C][C]0.057485[/C][C]0.4453[/C][C]0.32886[/C][/ROW]
[ROW][C]6[/C][C]0.059355[/C][C]0.4598[/C][C]0.323674[/C][/ROW]
[ROW][C]7[/C][C]-0.016554[/C][C]-0.1282[/C][C]0.449198[/C][/ROW]
[ROW][C]8[/C][C]-0.209428[/C][C]-1.6222[/C][C]0.055[/C][/ROW]
[ROW][C]9[/C][C]-0.132579[/C][C]-1.027[/C][C]0.154283[/C][/ROW]
[ROW][C]10[/C][C]-0.268559[/C][C]-2.0802[/C][C]0.020891[/C][/ROW]
[ROW][C]11[/C][C]0.231862[/C][C]1.796[/C][C]0.038765[/C][/ROW]
[ROW][C]12[/C][C]0.586995[/C][C]4.5468[/C][C]1.3e-05[/C][/ROW]
[ROW][C]13[/C][C]-0.210672[/C][C]-1.6319[/C][C]0.053974[/C][/ROW]
[ROW][C]14[/C][C]0.067596[/C][C]0.5236[/C][C]0.301243[/C][/ROW]
[ROW][C]15[/C][C]-0.012147[/C][C]-0.0941[/C][C]0.462674[/C][/ROW]
[ROW][C]16[/C][C]-0.11956[/C][C]-0.9261[/C][C]0.17905[/C][/ROW]
[ROW][C]17[/C][C]-0.07609[/C][C]-0.5894[/C][C]0.278906[/C][/ROW]
[ROW][C]18[/C][C]-0.171644[/C][C]-1.3295[/C][C]0.094351[/C][/ROW]
[ROW][C]19[/C][C]-0.013946[/C][C]-0.108[/C][C]0.457167[/C][/ROW]
[ROW][C]20[/C][C]-0.061655[/C][C]-0.4776[/C][C]0.317344[/C][/ROW]
[ROW][C]21[/C][C]-0.054202[/C][C]-0.4198[/C][C]0.338049[/C][/ROW]
[ROW][C]22[/C][C]0.024139[/C][C]0.187[/C][C]0.426155[/C][/ROW]
[ROW][C]23[/C][C]-0.111058[/C][C]-0.8603[/C][C]0.196536[/C][/ROW]
[ROW][C]24[/C][C]-0.047624[/C][C]-0.3689[/C][C]0.356752[/C][/ROW]
[ROW][C]25[/C][C]-0.027836[/C][C]-0.2156[/C][C]0.415008[/C][/ROW]
[ROW][C]26[/C][C]-0.10763[/C][C]-0.8337[/C][C]0.203879[/C][/ROW]
[ROW][C]27[/C][C]0.104098[/C][C]0.8063[/C][C]0.211616[/C][/ROW]
[ROW][C]28[/C][C]-0.008611[/C][C]-0.0667[/C][C]0.473522[/C][/ROW]
[ROW][C]29[/C][C]-0.02939[/C][C]-0.2277[/C][C]0.410343[/C][/ROW]
[ROW][C]30[/C][C]-0.005448[/C][C]-0.0422[/C][C]0.483241[/C][/ROW]
[ROW][C]31[/C][C]-0.034029[/C][C]-0.2636[/C][C]0.396501[/C][/ROW]
[ROW][C]32[/C][C]0.000282[/C][C]0.0022[/C][C]0.499132[/C][/ROW]
[ROW][C]33[/C][C]0.013015[/C][C]0.1008[/C][C]0.460016[/C][/ROW]
[ROW][C]34[/C][C]0.045552[/C][C]0.3528[/C][C]0.36272[/C][/ROW]
[ROW][C]35[/C][C]-0.081478[/C][C]-0.6311[/C][C]0.265178[/C][/ROW]
[ROW][C]36[/C][C]-0.125799[/C][C]-0.9744[/C][C]0.166877[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62211&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62211&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.2499351.9360.028792
2-0.342109-2.650.005138
3-0.164846-1.27690.103281
4-0.159732-1.23730.110402
50.0574850.44530.32886
60.0593550.45980.323674
7-0.016554-0.12820.449198
8-0.209428-1.62220.055
9-0.132579-1.0270.154283
10-0.268559-2.08020.020891
110.2318621.7960.038765
120.5869954.54681.3e-05
13-0.210672-1.63190.053974
140.0675960.52360.301243
15-0.012147-0.09410.462674
16-0.11956-0.92610.17905
17-0.07609-0.58940.278906
18-0.171644-1.32950.094351
19-0.013946-0.1080.457167
20-0.061655-0.47760.317344
21-0.054202-0.41980.338049
220.0241390.1870.426155
23-0.111058-0.86030.196536
24-0.047624-0.36890.356752
25-0.027836-0.21560.415008
26-0.10763-0.83370.203879
270.1040980.80630.211616
28-0.008611-0.06670.473522
29-0.02939-0.22770.410343
30-0.005448-0.04220.483241
31-0.034029-0.26360.396501
320.0002820.00220.499132
330.0130150.10080.460016
340.0455520.35280.36272
35-0.081478-0.63110.265178
36-0.125799-0.97440.166877



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