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 08:31:57 -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/t1259249575ydr41hp5h06s8m2.htm/, Retrieved Sun, 28 Apr 2024 21:53:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60098, Retrieved Sun, 28 Apr 2024 21:53:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact157
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] [] [2009-11-26 15:31:57] [27b6e36591879260e4dc6bb7e89a38fd] [Current]
Feedback Forum

Post a new message
Dataseries X:
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
533
536
537
524
536
587
597
581




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60098&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.8868966.92690
20.7247575.66050
30.6223924.8614e-06
40.5824614.54921.3e-05
50.5803034.53231.4e-05
60.5597534.37182.4e-05
70.4983243.8920.000124
80.426023.32730.000745
90.4003943.12720.001352
100.4298543.35730.00068
110.4771053.72630.000214
120.4719373.68590.000243
130.3228812.52180.007152
140.1540021.20280.116851
150.0429270.33530.369286
16-0.011859-0.09260.463253
17-0.031165-0.24340.404255
18-0.061642-0.48140.315963
19-0.11673-0.91170.182761
20-0.180019-1.4060.082399
21-0.200309-1.56450.061441
22-0.171499-1.33950.092696
23-0.134439-1.050.14893
24-0.142042-1.10940.13581
25-0.249174-1.94610.028126
26-0.354825-2.77130.003696
27-0.404132-3.15640.001241
28-0.407441-3.18220.00115
29-0.395539-3.08930.00151
30-0.387539-3.02680.001809
31-0.391057-3.05420.001671
32-0.400467-3.12770.00135
33-0.367498-2.87020.002815
34-0.294683-2.30150.012395
35-0.240362-1.87730.032631
36-0.223552-1.7460.042923

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.886896 & 6.9269 & 0 \tabularnewline
2 & 0.724757 & 5.6605 & 0 \tabularnewline
3 & 0.622392 & 4.861 & 4e-06 \tabularnewline
4 & 0.582461 & 4.5492 & 1.3e-05 \tabularnewline
5 & 0.580303 & 4.5323 & 1.4e-05 \tabularnewline
6 & 0.559753 & 4.3718 & 2.4e-05 \tabularnewline
7 & 0.498324 & 3.892 & 0.000124 \tabularnewline
8 & 0.42602 & 3.3273 & 0.000745 \tabularnewline
9 & 0.400394 & 3.1272 & 0.001352 \tabularnewline
10 & 0.429854 & 3.3573 & 0.00068 \tabularnewline
11 & 0.477105 & 3.7263 & 0.000214 \tabularnewline
12 & 0.471937 & 3.6859 & 0.000243 \tabularnewline
13 & 0.322881 & 2.5218 & 0.007152 \tabularnewline
14 & 0.154002 & 1.2028 & 0.116851 \tabularnewline
15 & 0.042927 & 0.3353 & 0.369286 \tabularnewline
16 & -0.011859 & -0.0926 & 0.463253 \tabularnewline
17 & -0.031165 & -0.2434 & 0.404255 \tabularnewline
18 & -0.061642 & -0.4814 & 0.315963 \tabularnewline
19 & -0.11673 & -0.9117 & 0.182761 \tabularnewline
20 & -0.180019 & -1.406 & 0.082399 \tabularnewline
21 & -0.200309 & -1.5645 & 0.061441 \tabularnewline
22 & -0.171499 & -1.3395 & 0.092696 \tabularnewline
23 & -0.134439 & -1.05 & 0.14893 \tabularnewline
24 & -0.142042 & -1.1094 & 0.13581 \tabularnewline
25 & -0.249174 & -1.9461 & 0.028126 \tabularnewline
26 & -0.354825 & -2.7713 & 0.003696 \tabularnewline
27 & -0.404132 & -3.1564 & 0.001241 \tabularnewline
28 & -0.407441 & -3.1822 & 0.00115 \tabularnewline
29 & -0.395539 & -3.0893 & 0.00151 \tabularnewline
30 & -0.387539 & -3.0268 & 0.001809 \tabularnewline
31 & -0.391057 & -3.0542 & 0.001671 \tabularnewline
32 & -0.400467 & -3.1277 & 0.00135 \tabularnewline
33 & -0.367498 & -2.8702 & 0.002815 \tabularnewline
34 & -0.294683 & -2.3015 & 0.012395 \tabularnewline
35 & -0.240362 & -1.8773 & 0.032631 \tabularnewline
36 & -0.223552 & -1.746 & 0.042923 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60098&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.886896[/C][C]6.9269[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.724757[/C][C]5.6605[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.622392[/C][C]4.861[/C][C]4e-06[/C][/ROW]
[ROW][C]4[/C][C]0.582461[/C][C]4.5492[/C][C]1.3e-05[/C][/ROW]
[ROW][C]5[/C][C]0.580303[/C][C]4.5323[/C][C]1.4e-05[/C][/ROW]
[ROW][C]6[/C][C]0.559753[/C][C]4.3718[/C][C]2.4e-05[/C][/ROW]
[ROW][C]7[/C][C]0.498324[/C][C]3.892[/C][C]0.000124[/C][/ROW]
[ROW][C]8[/C][C]0.42602[/C][C]3.3273[/C][C]0.000745[/C][/ROW]
[ROW][C]9[/C][C]0.400394[/C][C]3.1272[/C][C]0.001352[/C][/ROW]
[ROW][C]10[/C][C]0.429854[/C][C]3.3573[/C][C]0.00068[/C][/ROW]
[ROW][C]11[/C][C]0.477105[/C][C]3.7263[/C][C]0.000214[/C][/ROW]
[ROW][C]12[/C][C]0.471937[/C][C]3.6859[/C][C]0.000243[/C][/ROW]
[ROW][C]13[/C][C]0.322881[/C][C]2.5218[/C][C]0.007152[/C][/ROW]
[ROW][C]14[/C][C]0.154002[/C][C]1.2028[/C][C]0.116851[/C][/ROW]
[ROW][C]15[/C][C]0.042927[/C][C]0.3353[/C][C]0.369286[/C][/ROW]
[ROW][C]16[/C][C]-0.011859[/C][C]-0.0926[/C][C]0.463253[/C][/ROW]
[ROW][C]17[/C][C]-0.031165[/C][C]-0.2434[/C][C]0.404255[/C][/ROW]
[ROW][C]18[/C][C]-0.061642[/C][C]-0.4814[/C][C]0.315963[/C][/ROW]
[ROW][C]19[/C][C]-0.11673[/C][C]-0.9117[/C][C]0.182761[/C][/ROW]
[ROW][C]20[/C][C]-0.180019[/C][C]-1.406[/C][C]0.082399[/C][/ROW]
[ROW][C]21[/C][C]-0.200309[/C][C]-1.5645[/C][C]0.061441[/C][/ROW]
[ROW][C]22[/C][C]-0.171499[/C][C]-1.3395[/C][C]0.092696[/C][/ROW]
[ROW][C]23[/C][C]-0.134439[/C][C]-1.05[/C][C]0.14893[/C][/ROW]
[ROW][C]24[/C][C]-0.142042[/C][C]-1.1094[/C][C]0.13581[/C][/ROW]
[ROW][C]25[/C][C]-0.249174[/C][C]-1.9461[/C][C]0.028126[/C][/ROW]
[ROW][C]26[/C][C]-0.354825[/C][C]-2.7713[/C][C]0.003696[/C][/ROW]
[ROW][C]27[/C][C]-0.404132[/C][C]-3.1564[/C][C]0.001241[/C][/ROW]
[ROW][C]28[/C][C]-0.407441[/C][C]-3.1822[/C][C]0.00115[/C][/ROW]
[ROW][C]29[/C][C]-0.395539[/C][C]-3.0893[/C][C]0.00151[/C][/ROW]
[ROW][C]30[/C][C]-0.387539[/C][C]-3.0268[/C][C]0.001809[/C][/ROW]
[ROW][C]31[/C][C]-0.391057[/C][C]-3.0542[/C][C]0.001671[/C][/ROW]
[ROW][C]32[/C][C]-0.400467[/C][C]-3.1277[/C][C]0.00135[/C][/ROW]
[ROW][C]33[/C][C]-0.367498[/C][C]-2.8702[/C][C]0.002815[/C][/ROW]
[ROW][C]34[/C][C]-0.294683[/C][C]-2.3015[/C][C]0.012395[/C][/ROW]
[ROW][C]35[/C][C]-0.240362[/C][C]-1.8773[/C][C]0.032631[/C][/ROW]
[ROW][C]36[/C][C]-0.223552[/C][C]-1.746[/C][C]0.042923[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60098&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60098&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.8868966.92690
20.7247575.66050
30.6223924.8614e-06
40.5824614.54921.3e-05
50.5803034.53231.4e-05
60.5597534.37182.4e-05
70.4983243.8920.000124
80.426023.32730.000745
90.4003943.12720.001352
100.4298543.35730.00068
110.4771053.72630.000214
120.4719373.68590.000243
130.3228812.52180.007152
140.1540021.20280.116851
150.0429270.33530.369286
16-0.011859-0.09260.463253
17-0.031165-0.24340.404255
18-0.061642-0.48140.315963
19-0.11673-0.91170.182761
20-0.180019-1.4060.082399
21-0.200309-1.56450.061441
22-0.171499-1.33950.092696
23-0.134439-1.050.14893
24-0.142042-1.10940.13581
25-0.249174-1.94610.028126
26-0.354825-2.77130.003696
27-0.404132-3.15640.001241
28-0.407441-3.18220.00115
29-0.395539-3.08930.00151
30-0.387539-3.02680.001809
31-0.391057-3.05420.001671
32-0.400467-3.12770.00135
33-0.367498-2.87020.002815
34-0.294683-2.30150.012395
35-0.240362-1.87730.032631
36-0.223552-1.7460.042923







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8868966.92690
2-0.289708-2.26270.013613
30.257432.01060.024398
40.1051440.82120.207365
50.1371621.07130.144134
6-0.073092-0.57090.285093
7-0.066335-0.51810.303133
8-0.00513-0.04010.484085
90.1645691.28530.101768
100.1222790.9550.171666
110.0904740.70660.241246
12-0.141356-1.1040.136959
13-0.582962-4.55311.3e-05
140.0437250.34150.366948
15-0.206047-1.60930.05636
16-0.031277-0.24430.403917
17-0.013556-0.10590.458014
180.0252890.19750.42204
190.0473740.370.356332
20-0.074389-0.5810.281692
210.0222540.17380.431297
22-0.003033-0.02370.49059
230.0640060.49990.30947
24-0.014529-0.11350.455013
25-0.048387-0.37790.353403
260.0766010.59830.275937
27-0.027572-0.21530.415107
28-0.003405-0.02660.489436
29-0.139714-1.09120.139737
300.1098040.85760.197235
31-0.046419-0.36250.3591
320.0209910.16390.435157
330.065850.51430.304449
340.0248060.19370.423511
35-0.08108-0.63330.264467
360.0553720.43250.333463

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.886896 & 6.9269 & 0 \tabularnewline
2 & -0.289708 & -2.2627 & 0.013613 \tabularnewline
3 & 0.25743 & 2.0106 & 0.024398 \tabularnewline
4 & 0.105144 & 0.8212 & 0.207365 \tabularnewline
5 & 0.137162 & 1.0713 & 0.144134 \tabularnewline
6 & -0.073092 & -0.5709 & 0.285093 \tabularnewline
7 & -0.066335 & -0.5181 & 0.303133 \tabularnewline
8 & -0.00513 & -0.0401 & 0.484085 \tabularnewline
9 & 0.164569 & 1.2853 & 0.101768 \tabularnewline
10 & 0.122279 & 0.955 & 0.171666 \tabularnewline
11 & 0.090474 & 0.7066 & 0.241246 \tabularnewline
12 & -0.141356 & -1.104 & 0.136959 \tabularnewline
13 & -0.582962 & -4.5531 & 1.3e-05 \tabularnewline
14 & 0.043725 & 0.3415 & 0.366948 \tabularnewline
15 & -0.206047 & -1.6093 & 0.05636 \tabularnewline
16 & -0.031277 & -0.2443 & 0.403917 \tabularnewline
17 & -0.013556 & -0.1059 & 0.458014 \tabularnewline
18 & 0.025289 & 0.1975 & 0.42204 \tabularnewline
19 & 0.047374 & 0.37 & 0.356332 \tabularnewline
20 & -0.074389 & -0.581 & 0.281692 \tabularnewline
21 & 0.022254 & 0.1738 & 0.431297 \tabularnewline
22 & -0.003033 & -0.0237 & 0.49059 \tabularnewline
23 & 0.064006 & 0.4999 & 0.30947 \tabularnewline
24 & -0.014529 & -0.1135 & 0.455013 \tabularnewline
25 & -0.048387 & -0.3779 & 0.353403 \tabularnewline
26 & 0.076601 & 0.5983 & 0.275937 \tabularnewline
27 & -0.027572 & -0.2153 & 0.415107 \tabularnewline
28 & -0.003405 & -0.0266 & 0.489436 \tabularnewline
29 & -0.139714 & -1.0912 & 0.139737 \tabularnewline
30 & 0.109804 & 0.8576 & 0.197235 \tabularnewline
31 & -0.046419 & -0.3625 & 0.3591 \tabularnewline
32 & 0.020991 & 0.1639 & 0.435157 \tabularnewline
33 & 0.06585 & 0.5143 & 0.304449 \tabularnewline
34 & 0.024806 & 0.1937 & 0.423511 \tabularnewline
35 & -0.08108 & -0.6333 & 0.264467 \tabularnewline
36 & 0.055372 & 0.4325 & 0.333463 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60098&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.886896[/C][C]6.9269[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.289708[/C][C]-2.2627[/C][C]0.013613[/C][/ROW]
[ROW][C]3[/C][C]0.25743[/C][C]2.0106[/C][C]0.024398[/C][/ROW]
[ROW][C]4[/C][C]0.105144[/C][C]0.8212[/C][C]0.207365[/C][/ROW]
[ROW][C]5[/C][C]0.137162[/C][C]1.0713[/C][C]0.144134[/C][/ROW]
[ROW][C]6[/C][C]-0.073092[/C][C]-0.5709[/C][C]0.285093[/C][/ROW]
[ROW][C]7[/C][C]-0.066335[/C][C]-0.5181[/C][C]0.303133[/C][/ROW]
[ROW][C]8[/C][C]-0.00513[/C][C]-0.0401[/C][C]0.484085[/C][/ROW]
[ROW][C]9[/C][C]0.164569[/C][C]1.2853[/C][C]0.101768[/C][/ROW]
[ROW][C]10[/C][C]0.122279[/C][C]0.955[/C][C]0.171666[/C][/ROW]
[ROW][C]11[/C][C]0.090474[/C][C]0.7066[/C][C]0.241246[/C][/ROW]
[ROW][C]12[/C][C]-0.141356[/C][C]-1.104[/C][C]0.136959[/C][/ROW]
[ROW][C]13[/C][C]-0.582962[/C][C]-4.5531[/C][C]1.3e-05[/C][/ROW]
[ROW][C]14[/C][C]0.043725[/C][C]0.3415[/C][C]0.366948[/C][/ROW]
[ROW][C]15[/C][C]-0.206047[/C][C]-1.6093[/C][C]0.05636[/C][/ROW]
[ROW][C]16[/C][C]-0.031277[/C][C]-0.2443[/C][C]0.403917[/C][/ROW]
[ROW][C]17[/C][C]-0.013556[/C][C]-0.1059[/C][C]0.458014[/C][/ROW]
[ROW][C]18[/C][C]0.025289[/C][C]0.1975[/C][C]0.42204[/C][/ROW]
[ROW][C]19[/C][C]0.047374[/C][C]0.37[/C][C]0.356332[/C][/ROW]
[ROW][C]20[/C][C]-0.074389[/C][C]-0.581[/C][C]0.281692[/C][/ROW]
[ROW][C]21[/C][C]0.022254[/C][C]0.1738[/C][C]0.431297[/C][/ROW]
[ROW][C]22[/C][C]-0.003033[/C][C]-0.0237[/C][C]0.49059[/C][/ROW]
[ROW][C]23[/C][C]0.064006[/C][C]0.4999[/C][C]0.30947[/C][/ROW]
[ROW][C]24[/C][C]-0.014529[/C][C]-0.1135[/C][C]0.455013[/C][/ROW]
[ROW][C]25[/C][C]-0.048387[/C][C]-0.3779[/C][C]0.353403[/C][/ROW]
[ROW][C]26[/C][C]0.076601[/C][C]0.5983[/C][C]0.275937[/C][/ROW]
[ROW][C]27[/C][C]-0.027572[/C][C]-0.2153[/C][C]0.415107[/C][/ROW]
[ROW][C]28[/C][C]-0.003405[/C][C]-0.0266[/C][C]0.489436[/C][/ROW]
[ROW][C]29[/C][C]-0.139714[/C][C]-1.0912[/C][C]0.139737[/C][/ROW]
[ROW][C]30[/C][C]0.109804[/C][C]0.8576[/C][C]0.197235[/C][/ROW]
[ROW][C]31[/C][C]-0.046419[/C][C]-0.3625[/C][C]0.3591[/C][/ROW]
[ROW][C]32[/C][C]0.020991[/C][C]0.1639[/C][C]0.435157[/C][/ROW]
[ROW][C]33[/C][C]0.06585[/C][C]0.5143[/C][C]0.304449[/C][/ROW]
[ROW][C]34[/C][C]0.024806[/C][C]0.1937[/C][C]0.423511[/C][/ROW]
[ROW][C]35[/C][C]-0.08108[/C][C]-0.6333[/C][C]0.264467[/C][/ROW]
[ROW][C]36[/C][C]0.055372[/C][C]0.4325[/C][C]0.333463[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60098&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60098&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.8868966.92690
2-0.289708-2.26270.013613
30.257432.01060.024398
40.1051440.82120.207365
50.1371621.07130.144134
6-0.073092-0.57090.285093
7-0.066335-0.51810.303133
8-0.00513-0.04010.484085
90.1645691.28530.101768
100.1222790.9550.171666
110.0904740.70660.241246
12-0.141356-1.1040.136959
13-0.582962-4.55311.3e-05
140.0437250.34150.366948
15-0.206047-1.60930.05636
16-0.031277-0.24430.403917
17-0.013556-0.10590.458014
180.0252890.19750.42204
190.0473740.370.356332
20-0.074389-0.5810.281692
210.0222540.17380.431297
22-0.003033-0.02370.49059
230.0640060.49990.30947
24-0.014529-0.11350.455013
25-0.048387-0.37790.353403
260.0766010.59830.275937
27-0.027572-0.21530.415107
28-0.003405-0.02660.489436
29-0.139714-1.09120.139737
300.1098040.85760.197235
31-0.046419-0.36250.3591
320.0209910.16390.435157
330.065850.51430.304449
340.0248060.19370.423511
35-0.08108-0.63330.264467
360.0553720.43250.333463



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