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, 26 Nov 2009 11:35:58 -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/26/t12592606234jfobe5l8h72yk2.htm/, Retrieved Sun, 28 Apr 2024 21:05:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60253, Retrieved Sun, 28 Apr 2024 21:05:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact123
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-12 13:32:37] [76963dc1903f0f612b6153510a3818cf]
- R  D  [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-17 12:14:40] [76963dc1903f0f612b6153510a3818cf]
-         [Univariate Explorative Data Analysis] [Run Sequence Plot...] [2008-12-22 18:19:51] [1ce0d16c8f4225c977b42c8fa93bc163]
- RMP       [(Partial) Autocorrelation Function] [Identifying Integ...] [2009-11-22 12:16:10] [b98453cac15ba1066b407e146608df68]
-    D          [(Partial) Autocorrelation Function] [Methode1_1] [2009-11-26 18:35:58] [82f29a5d509ab8039aab37a0145f886d] [Current]
Feedback Forum

Post a new message
Dataseries X:
562
561
555
544
537
543
594
611
613
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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60253&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.8986987.01910
20.7425445.79950
30.6217934.85644e-06
40.5628084.39572.2e-05
50.5562934.34482.7e-05
60.5413544.22814e-05
70.4880063.81150.000162
80.4129323.22510.001013
90.3814572.97930.002072
100.4051233.16410.001213
110.4593063.58730.000333
120.4662023.64120.000281
130.334032.60890.005705
140.1744641.36260.089008
150.0529650.41370.340285
16-0.005692-0.04450.482343
17-0.022163-0.17310.431573
18-0.046805-0.36560.35798
19-0.100425-0.78430.217937
20-0.171973-1.34320.092099
21-0.196232-1.53260.06527
22-0.177546-1.38670.085294
23-0.142414-1.11230.13519
24-0.138169-1.07910.142388
25-0.224691-1.75490.04215
26-0.330434-2.58080.00614
27-0.394775-3.08330.001536
28-0.40219-3.14120.001298
29-0.373776-2.91930.002454
30-0.35366-2.76220.003789
31-0.355186-2.77410.003668
32-0.370916-2.89690.002613
33-0.354578-2.76930.003715
34-0.315843-2.46680.008228
35-0.263904-2.06120.021779
36-0.230072-1.79690.038649

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.898698 & 7.0191 & 0 \tabularnewline
2 & 0.742544 & 5.7995 & 0 \tabularnewline
3 & 0.621793 & 4.8564 & 4e-06 \tabularnewline
4 & 0.562808 & 4.3957 & 2.2e-05 \tabularnewline
5 & 0.556293 & 4.3448 & 2.7e-05 \tabularnewline
6 & 0.541354 & 4.2281 & 4e-05 \tabularnewline
7 & 0.488006 & 3.8115 & 0.000162 \tabularnewline
8 & 0.412932 & 3.2251 & 0.001013 \tabularnewline
9 & 0.381457 & 2.9793 & 0.002072 \tabularnewline
10 & 0.405123 & 3.1641 & 0.001213 \tabularnewline
11 & 0.459306 & 3.5873 & 0.000333 \tabularnewline
12 & 0.466202 & 3.6412 & 0.000281 \tabularnewline
13 & 0.33403 & 2.6089 & 0.005705 \tabularnewline
14 & 0.174464 & 1.3626 & 0.089008 \tabularnewline
15 & 0.052965 & 0.4137 & 0.340285 \tabularnewline
16 & -0.005692 & -0.0445 & 0.482343 \tabularnewline
17 & -0.022163 & -0.1731 & 0.431573 \tabularnewline
18 & -0.046805 & -0.3656 & 0.35798 \tabularnewline
19 & -0.100425 & -0.7843 & 0.217937 \tabularnewline
20 & -0.171973 & -1.3432 & 0.092099 \tabularnewline
21 & -0.196232 & -1.5326 & 0.06527 \tabularnewline
22 & -0.177546 & -1.3867 & 0.085294 \tabularnewline
23 & -0.142414 & -1.1123 & 0.13519 \tabularnewline
24 & -0.138169 & -1.0791 & 0.142388 \tabularnewline
25 & -0.224691 & -1.7549 & 0.04215 \tabularnewline
26 & -0.330434 & -2.5808 & 0.00614 \tabularnewline
27 & -0.394775 & -3.0833 & 0.001536 \tabularnewline
28 & -0.40219 & -3.1412 & 0.001298 \tabularnewline
29 & -0.373776 & -2.9193 & 0.002454 \tabularnewline
30 & -0.35366 & -2.7622 & 0.003789 \tabularnewline
31 & -0.355186 & -2.7741 & 0.003668 \tabularnewline
32 & -0.370916 & -2.8969 & 0.002613 \tabularnewline
33 & -0.354578 & -2.7693 & 0.003715 \tabularnewline
34 & -0.315843 & -2.4668 & 0.008228 \tabularnewline
35 & -0.263904 & -2.0612 & 0.021779 \tabularnewline
36 & -0.230072 & -1.7969 & 0.038649 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60253&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.898698[/C][C]7.0191[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.742544[/C][C]5.7995[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.621793[/C][C]4.8564[/C][C]4e-06[/C][/ROW]
[ROW][C]4[/C][C]0.562808[/C][C]4.3957[/C][C]2.2e-05[/C][/ROW]
[ROW][C]5[/C][C]0.556293[/C][C]4.3448[/C][C]2.7e-05[/C][/ROW]
[ROW][C]6[/C][C]0.541354[/C][C]4.2281[/C][C]4e-05[/C][/ROW]
[ROW][C]7[/C][C]0.488006[/C][C]3.8115[/C][C]0.000162[/C][/ROW]
[ROW][C]8[/C][C]0.412932[/C][C]3.2251[/C][C]0.001013[/C][/ROW]
[ROW][C]9[/C][C]0.381457[/C][C]2.9793[/C][C]0.002072[/C][/ROW]
[ROW][C]10[/C][C]0.405123[/C][C]3.1641[/C][C]0.001213[/C][/ROW]
[ROW][C]11[/C][C]0.459306[/C][C]3.5873[/C][C]0.000333[/C][/ROW]
[ROW][C]12[/C][C]0.466202[/C][C]3.6412[/C][C]0.000281[/C][/ROW]
[ROW][C]13[/C][C]0.33403[/C][C]2.6089[/C][C]0.005705[/C][/ROW]
[ROW][C]14[/C][C]0.174464[/C][C]1.3626[/C][C]0.089008[/C][/ROW]
[ROW][C]15[/C][C]0.052965[/C][C]0.4137[/C][C]0.340285[/C][/ROW]
[ROW][C]16[/C][C]-0.005692[/C][C]-0.0445[/C][C]0.482343[/C][/ROW]
[ROW][C]17[/C][C]-0.022163[/C][C]-0.1731[/C][C]0.431573[/C][/ROW]
[ROW][C]18[/C][C]-0.046805[/C][C]-0.3656[/C][C]0.35798[/C][/ROW]
[ROW][C]19[/C][C]-0.100425[/C][C]-0.7843[/C][C]0.217937[/C][/ROW]
[ROW][C]20[/C][C]-0.171973[/C][C]-1.3432[/C][C]0.092099[/C][/ROW]
[ROW][C]21[/C][C]-0.196232[/C][C]-1.5326[/C][C]0.06527[/C][/ROW]
[ROW][C]22[/C][C]-0.177546[/C][C]-1.3867[/C][C]0.085294[/C][/ROW]
[ROW][C]23[/C][C]-0.142414[/C][C]-1.1123[/C][C]0.13519[/C][/ROW]
[ROW][C]24[/C][C]-0.138169[/C][C]-1.0791[/C][C]0.142388[/C][/ROW]
[ROW][C]25[/C][C]-0.224691[/C][C]-1.7549[/C][C]0.04215[/C][/ROW]
[ROW][C]26[/C][C]-0.330434[/C][C]-2.5808[/C][C]0.00614[/C][/ROW]
[ROW][C]27[/C][C]-0.394775[/C][C]-3.0833[/C][C]0.001536[/C][/ROW]
[ROW][C]28[/C][C]-0.40219[/C][C]-3.1412[/C][C]0.001298[/C][/ROW]
[ROW][C]29[/C][C]-0.373776[/C][C]-2.9193[/C][C]0.002454[/C][/ROW]
[ROW][C]30[/C][C]-0.35366[/C][C]-2.7622[/C][C]0.003789[/C][/ROW]
[ROW][C]31[/C][C]-0.355186[/C][C]-2.7741[/C][C]0.003668[/C][/ROW]
[ROW][C]32[/C][C]-0.370916[/C][C]-2.8969[/C][C]0.002613[/C][/ROW]
[ROW][C]33[/C][C]-0.354578[/C][C]-2.7693[/C][C]0.003715[/C][/ROW]
[ROW][C]34[/C][C]-0.315843[/C][C]-2.4668[/C][C]0.008228[/C][/ROW]
[ROW][C]35[/C][C]-0.263904[/C][C]-2.0612[/C][C]0.021779[/C][/ROW]
[ROW][C]36[/C][C]-0.230072[/C][C]-1.7969[/C][C]0.038649[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60253&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60253&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.8986987.01910
20.7425445.79950
30.6217934.85644e-06
40.5628084.39572.2e-05
50.5562934.34482.7e-05
60.5413544.22814e-05
70.4880063.81150.000162
80.4129323.22510.001013
90.3814572.97930.002072
100.4051233.16410.001213
110.4593063.58730.000333
120.4662023.64120.000281
130.334032.60890.005705
140.1744641.36260.089008
150.0529650.41370.340285
16-0.005692-0.04450.482343
17-0.022163-0.17310.431573
18-0.046805-0.36560.35798
19-0.100425-0.78430.217937
20-0.171973-1.34320.092099
21-0.196232-1.53260.06527
22-0.177546-1.38670.085294
23-0.142414-1.11230.13519
24-0.138169-1.07910.142388
25-0.224691-1.75490.04215
26-0.330434-2.58080.00614
27-0.394775-3.08330.001536
28-0.40219-3.14120.001298
29-0.373776-2.91930.002454
30-0.35366-2.76220.003789
31-0.355186-2.77410.003668
32-0.370916-2.89690.002613
33-0.354578-2.76930.003715
34-0.315843-2.46680.008228
35-0.263904-2.06120.021779
36-0.230072-1.79690.038649







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8986987.01910
2-0.338532-2.6440.0052
30.1925911.50420.068847
40.1500971.17230.122818
50.1473551.15090.127137
6-0.107587-0.84030.202017
7-0.070738-0.55250.291319
8-0.01157-0.09040.464145
90.2425361.89430.031467
100.0890470.69550.244698
110.1022360.79850.213843
12-0.224571-1.7540.04223
13-0.589454-4.60381.1e-05
140.1844391.44050.077418
15-0.083232-0.65010.259045
16-0.013301-0.10390.4588
17-0.149357-1.16650.123973
18-0.019213-0.15010.440606
190.0594130.4640.322138
20-0.013891-0.10850.456979
210.0527280.41180.340959
22-0.139016-1.08570.140931
23-0.042436-0.33140.370724
240.1331331.03980.151267
25-0.018319-0.14310.443351
26-0.126524-0.98820.163483
270.0616910.48180.315828
28-0.031553-0.24640.403086
290.1342511.04850.149264
30-0.064724-0.50550.30751
310.0345230.26960.394177
32-0.010921-0.08530.466154
33-0.06792-0.53050.298856
340.0061360.04790.480967
350.0540740.42230.337133
36-0.020545-0.16050.436524

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.898698 & 7.0191 & 0 \tabularnewline
2 & -0.338532 & -2.644 & 0.0052 \tabularnewline
3 & 0.192591 & 1.5042 & 0.068847 \tabularnewline
4 & 0.150097 & 1.1723 & 0.122818 \tabularnewline
5 & 0.147355 & 1.1509 & 0.127137 \tabularnewline
6 & -0.107587 & -0.8403 & 0.202017 \tabularnewline
7 & -0.070738 & -0.5525 & 0.291319 \tabularnewline
8 & -0.01157 & -0.0904 & 0.464145 \tabularnewline
9 & 0.242536 & 1.8943 & 0.031467 \tabularnewline
10 & 0.089047 & 0.6955 & 0.244698 \tabularnewline
11 & 0.102236 & 0.7985 & 0.213843 \tabularnewline
12 & -0.224571 & -1.754 & 0.04223 \tabularnewline
13 & -0.589454 & -4.6038 & 1.1e-05 \tabularnewline
14 & 0.184439 & 1.4405 & 0.077418 \tabularnewline
15 & -0.083232 & -0.6501 & 0.259045 \tabularnewline
16 & -0.013301 & -0.1039 & 0.4588 \tabularnewline
17 & -0.149357 & -1.1665 & 0.123973 \tabularnewline
18 & -0.019213 & -0.1501 & 0.440606 \tabularnewline
19 & 0.059413 & 0.464 & 0.322138 \tabularnewline
20 & -0.013891 & -0.1085 & 0.456979 \tabularnewline
21 & 0.052728 & 0.4118 & 0.340959 \tabularnewline
22 & -0.139016 & -1.0857 & 0.140931 \tabularnewline
23 & -0.042436 & -0.3314 & 0.370724 \tabularnewline
24 & 0.133133 & 1.0398 & 0.151267 \tabularnewline
25 & -0.018319 & -0.1431 & 0.443351 \tabularnewline
26 & -0.126524 & -0.9882 & 0.163483 \tabularnewline
27 & 0.061691 & 0.4818 & 0.315828 \tabularnewline
28 & -0.031553 & -0.2464 & 0.403086 \tabularnewline
29 & 0.134251 & 1.0485 & 0.149264 \tabularnewline
30 & -0.064724 & -0.5055 & 0.30751 \tabularnewline
31 & 0.034523 & 0.2696 & 0.394177 \tabularnewline
32 & -0.010921 & -0.0853 & 0.466154 \tabularnewline
33 & -0.06792 & -0.5305 & 0.298856 \tabularnewline
34 & 0.006136 & 0.0479 & 0.480967 \tabularnewline
35 & 0.054074 & 0.4223 & 0.337133 \tabularnewline
36 & -0.020545 & -0.1605 & 0.436524 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60253&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.898698[/C][C]7.0191[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.338532[/C][C]-2.644[/C][C]0.0052[/C][/ROW]
[ROW][C]3[/C][C]0.192591[/C][C]1.5042[/C][C]0.068847[/C][/ROW]
[ROW][C]4[/C][C]0.150097[/C][C]1.1723[/C][C]0.122818[/C][/ROW]
[ROW][C]5[/C][C]0.147355[/C][C]1.1509[/C][C]0.127137[/C][/ROW]
[ROW][C]6[/C][C]-0.107587[/C][C]-0.8403[/C][C]0.202017[/C][/ROW]
[ROW][C]7[/C][C]-0.070738[/C][C]-0.5525[/C][C]0.291319[/C][/ROW]
[ROW][C]8[/C][C]-0.01157[/C][C]-0.0904[/C][C]0.464145[/C][/ROW]
[ROW][C]9[/C][C]0.242536[/C][C]1.8943[/C][C]0.031467[/C][/ROW]
[ROW][C]10[/C][C]0.089047[/C][C]0.6955[/C][C]0.244698[/C][/ROW]
[ROW][C]11[/C][C]0.102236[/C][C]0.7985[/C][C]0.213843[/C][/ROW]
[ROW][C]12[/C][C]-0.224571[/C][C]-1.754[/C][C]0.04223[/C][/ROW]
[ROW][C]13[/C][C]-0.589454[/C][C]-4.6038[/C][C]1.1e-05[/C][/ROW]
[ROW][C]14[/C][C]0.184439[/C][C]1.4405[/C][C]0.077418[/C][/ROW]
[ROW][C]15[/C][C]-0.083232[/C][C]-0.6501[/C][C]0.259045[/C][/ROW]
[ROW][C]16[/C][C]-0.013301[/C][C]-0.1039[/C][C]0.4588[/C][/ROW]
[ROW][C]17[/C][C]-0.149357[/C][C]-1.1665[/C][C]0.123973[/C][/ROW]
[ROW][C]18[/C][C]-0.019213[/C][C]-0.1501[/C][C]0.440606[/C][/ROW]
[ROW][C]19[/C][C]0.059413[/C][C]0.464[/C][C]0.322138[/C][/ROW]
[ROW][C]20[/C][C]-0.013891[/C][C]-0.1085[/C][C]0.456979[/C][/ROW]
[ROW][C]21[/C][C]0.052728[/C][C]0.4118[/C][C]0.340959[/C][/ROW]
[ROW][C]22[/C][C]-0.139016[/C][C]-1.0857[/C][C]0.140931[/C][/ROW]
[ROW][C]23[/C][C]-0.042436[/C][C]-0.3314[/C][C]0.370724[/C][/ROW]
[ROW][C]24[/C][C]0.133133[/C][C]1.0398[/C][C]0.151267[/C][/ROW]
[ROW][C]25[/C][C]-0.018319[/C][C]-0.1431[/C][C]0.443351[/C][/ROW]
[ROW][C]26[/C][C]-0.126524[/C][C]-0.9882[/C][C]0.163483[/C][/ROW]
[ROW][C]27[/C][C]0.061691[/C][C]0.4818[/C][C]0.315828[/C][/ROW]
[ROW][C]28[/C][C]-0.031553[/C][C]-0.2464[/C][C]0.403086[/C][/ROW]
[ROW][C]29[/C][C]0.134251[/C][C]1.0485[/C][C]0.149264[/C][/ROW]
[ROW][C]30[/C][C]-0.064724[/C][C]-0.5055[/C][C]0.30751[/C][/ROW]
[ROW][C]31[/C][C]0.034523[/C][C]0.2696[/C][C]0.394177[/C][/ROW]
[ROW][C]32[/C][C]-0.010921[/C][C]-0.0853[/C][C]0.466154[/C][/ROW]
[ROW][C]33[/C][C]-0.06792[/C][C]-0.5305[/C][C]0.298856[/C][/ROW]
[ROW][C]34[/C][C]0.006136[/C][C]0.0479[/C][C]0.480967[/C][/ROW]
[ROW][C]35[/C][C]0.054074[/C][C]0.4223[/C][C]0.337133[/C][/ROW]
[ROW][C]36[/C][C]-0.020545[/C][C]-0.1605[/C][C]0.436524[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60253&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60253&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.8986987.01910
2-0.338532-2.6440.0052
30.1925911.50420.068847
40.1500971.17230.122818
50.1473551.15090.127137
6-0.107587-0.84030.202017
7-0.070738-0.55250.291319
8-0.01157-0.09040.464145
90.2425361.89430.031467
100.0890470.69550.244698
110.1022360.79850.213843
12-0.224571-1.7540.04223
13-0.589454-4.60381.1e-05
140.1844391.44050.077418
15-0.083232-0.65010.259045
16-0.013301-0.10390.4588
17-0.149357-1.16650.123973
18-0.019213-0.15010.440606
190.0594130.4640.322138
20-0.013891-0.10850.456979
210.0527280.41180.340959
22-0.139016-1.08570.140931
23-0.042436-0.33140.370724
240.1331331.03980.151267
25-0.018319-0.14310.443351
26-0.126524-0.98820.163483
270.0616910.48180.315828
28-0.031553-0.24640.403086
290.1342511.04850.149264
30-0.064724-0.50550.30751
310.0345230.26960.394177
32-0.010921-0.08530.466154
33-0.06792-0.53050.298856
340.0061360.04790.480967
350.0540740.42230.337133
36-0.020545-0.16050.436524



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