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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact155
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:46:03] [b98453cac15ba1066b407e146608df68]
-   PD      [(Partial) Autocorrelation Function] [partiële autocorr...] [2009-12-10 08:39:15] [9a3898f49d4e2f0208d1968305d88f0a] [Current]
Feedback Forum

Post a new message
Dataseries X:
60
52
60
26
2
60
60
60
50
39
46
60
52
52
66
58
23
48
73
73
46
50
50
36
60
67
67
12
60
60
46
60
60
60
60
60
60
60
77
25
35
60
38
37
60
60
60
60
60
72
55
60
43
66
60
75
98
60
60
60
60




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65237&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
1-0.304522-2.35880.010804
2-0.308644-2.39070.009985
30.1166630.90370.184894
40.0211090.16350.435333
5-0.067699-0.52440.300968
6-0.009993-0.07740.469281
70.1874431.45190.075866
8-0.119202-0.92330.179765
9-0.035806-0.27740.39123
10-0.010409-0.08060.468004
11-0.104047-0.80590.211729
120.2105921.63120.054039
130.0740690.57370.284144
14-0.169914-1.31610.096565
150.002540.01970.492185
16-0.008285-0.06420.474521
17-0.049005-0.37960.352795
180.0363060.28120.389752
190.1052130.8150.209155
200.042510.32930.371546
21-0.105587-0.81790.208332
22-0.212715-1.64770.052322
230.3028982.34620.011143
24-0.012199-0.09450.462516
25-0.117495-0.91010.183202
260.0061620.04770.481045
270.1401871.08590.140938
28-0.098759-0.7650.223639
29-0.138146-1.07010.144435
300.1422271.10170.1375
310.0410940.31830.375676
32-0.009368-0.07260.471197
33-0.054376-0.42120.337559
34-0.08656-0.67050.252559
350.0405110.31380.377381
360.1187860.92010.1806

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.304522 & -2.3588 & 0.010804 \tabularnewline
2 & -0.308644 & -2.3907 & 0.009985 \tabularnewline
3 & 0.116663 & 0.9037 & 0.184894 \tabularnewline
4 & 0.021109 & 0.1635 & 0.435333 \tabularnewline
5 & -0.067699 & -0.5244 & 0.300968 \tabularnewline
6 & -0.009993 & -0.0774 & 0.469281 \tabularnewline
7 & 0.187443 & 1.4519 & 0.075866 \tabularnewline
8 & -0.119202 & -0.9233 & 0.179765 \tabularnewline
9 & -0.035806 & -0.2774 & 0.39123 \tabularnewline
10 & -0.010409 & -0.0806 & 0.468004 \tabularnewline
11 & -0.104047 & -0.8059 & 0.211729 \tabularnewline
12 & 0.210592 & 1.6312 & 0.054039 \tabularnewline
13 & 0.074069 & 0.5737 & 0.284144 \tabularnewline
14 & -0.169914 & -1.3161 & 0.096565 \tabularnewline
15 & 0.00254 & 0.0197 & 0.492185 \tabularnewline
16 & -0.008285 & -0.0642 & 0.474521 \tabularnewline
17 & -0.049005 & -0.3796 & 0.352795 \tabularnewline
18 & 0.036306 & 0.2812 & 0.389752 \tabularnewline
19 & 0.105213 & 0.815 & 0.209155 \tabularnewline
20 & 0.04251 & 0.3293 & 0.371546 \tabularnewline
21 & -0.105587 & -0.8179 & 0.208332 \tabularnewline
22 & -0.212715 & -1.6477 & 0.052322 \tabularnewline
23 & 0.302898 & 2.3462 & 0.011143 \tabularnewline
24 & -0.012199 & -0.0945 & 0.462516 \tabularnewline
25 & -0.117495 & -0.9101 & 0.183202 \tabularnewline
26 & 0.006162 & 0.0477 & 0.481045 \tabularnewline
27 & 0.140187 & 1.0859 & 0.140938 \tabularnewline
28 & -0.098759 & -0.765 & 0.223639 \tabularnewline
29 & -0.138146 & -1.0701 & 0.144435 \tabularnewline
30 & 0.142227 & 1.1017 & 0.1375 \tabularnewline
31 & 0.041094 & 0.3183 & 0.375676 \tabularnewline
32 & -0.009368 & -0.0726 & 0.471197 \tabularnewline
33 & -0.054376 & -0.4212 & 0.337559 \tabularnewline
34 & -0.08656 & -0.6705 & 0.252559 \tabularnewline
35 & 0.040511 & 0.3138 & 0.377381 \tabularnewline
36 & 0.118786 & 0.9201 & 0.1806 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65237&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.304522[/C][C]-2.3588[/C][C]0.010804[/C][/ROW]
[ROW][C]2[/C][C]-0.308644[/C][C]-2.3907[/C][C]0.009985[/C][/ROW]
[ROW][C]3[/C][C]0.116663[/C][C]0.9037[/C][C]0.184894[/C][/ROW]
[ROW][C]4[/C][C]0.021109[/C][C]0.1635[/C][C]0.435333[/C][/ROW]
[ROW][C]5[/C][C]-0.067699[/C][C]-0.5244[/C][C]0.300968[/C][/ROW]
[ROW][C]6[/C][C]-0.009993[/C][C]-0.0774[/C][C]0.469281[/C][/ROW]
[ROW][C]7[/C][C]0.187443[/C][C]1.4519[/C][C]0.075866[/C][/ROW]
[ROW][C]8[/C][C]-0.119202[/C][C]-0.9233[/C][C]0.179765[/C][/ROW]
[ROW][C]9[/C][C]-0.035806[/C][C]-0.2774[/C][C]0.39123[/C][/ROW]
[ROW][C]10[/C][C]-0.010409[/C][C]-0.0806[/C][C]0.468004[/C][/ROW]
[ROW][C]11[/C][C]-0.104047[/C][C]-0.8059[/C][C]0.211729[/C][/ROW]
[ROW][C]12[/C][C]0.210592[/C][C]1.6312[/C][C]0.054039[/C][/ROW]
[ROW][C]13[/C][C]0.074069[/C][C]0.5737[/C][C]0.284144[/C][/ROW]
[ROW][C]14[/C][C]-0.169914[/C][C]-1.3161[/C][C]0.096565[/C][/ROW]
[ROW][C]15[/C][C]0.00254[/C][C]0.0197[/C][C]0.492185[/C][/ROW]
[ROW][C]16[/C][C]-0.008285[/C][C]-0.0642[/C][C]0.474521[/C][/ROW]
[ROW][C]17[/C][C]-0.049005[/C][C]-0.3796[/C][C]0.352795[/C][/ROW]
[ROW][C]18[/C][C]0.036306[/C][C]0.2812[/C][C]0.389752[/C][/ROW]
[ROW][C]19[/C][C]0.105213[/C][C]0.815[/C][C]0.209155[/C][/ROW]
[ROW][C]20[/C][C]0.04251[/C][C]0.3293[/C][C]0.371546[/C][/ROW]
[ROW][C]21[/C][C]-0.105587[/C][C]-0.8179[/C][C]0.208332[/C][/ROW]
[ROW][C]22[/C][C]-0.212715[/C][C]-1.6477[/C][C]0.052322[/C][/ROW]
[ROW][C]23[/C][C]0.302898[/C][C]2.3462[/C][C]0.011143[/C][/ROW]
[ROW][C]24[/C][C]-0.012199[/C][C]-0.0945[/C][C]0.462516[/C][/ROW]
[ROW][C]25[/C][C]-0.117495[/C][C]-0.9101[/C][C]0.183202[/C][/ROW]
[ROW][C]26[/C][C]0.006162[/C][C]0.0477[/C][C]0.481045[/C][/ROW]
[ROW][C]27[/C][C]0.140187[/C][C]1.0859[/C][C]0.140938[/C][/ROW]
[ROW][C]28[/C][C]-0.098759[/C][C]-0.765[/C][C]0.223639[/C][/ROW]
[ROW][C]29[/C][C]-0.138146[/C][C]-1.0701[/C][C]0.144435[/C][/ROW]
[ROW][C]30[/C][C]0.142227[/C][C]1.1017[/C][C]0.1375[/C][/ROW]
[ROW][C]31[/C][C]0.041094[/C][C]0.3183[/C][C]0.375676[/C][/ROW]
[ROW][C]32[/C][C]-0.009368[/C][C]-0.0726[/C][C]0.471197[/C][/ROW]
[ROW][C]33[/C][C]-0.054376[/C][C]-0.4212[/C][C]0.337559[/C][/ROW]
[ROW][C]34[/C][C]-0.08656[/C][C]-0.6705[/C][C]0.252559[/C][/ROW]
[ROW][C]35[/C][C]0.040511[/C][C]0.3138[/C][C]0.377381[/C][/ROW]
[ROW][C]36[/C][C]0.118786[/C][C]0.9201[/C][C]0.1806[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65237&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65237&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.304522-2.35880.010804
2-0.308644-2.39070.009985
30.1166630.90370.184894
40.0211090.16350.435333
5-0.067699-0.52440.300968
6-0.009993-0.07740.469281
70.1874431.45190.075866
8-0.119202-0.92330.179765
9-0.035806-0.27740.39123
10-0.010409-0.08060.468004
11-0.104047-0.80590.211729
120.2105921.63120.054039
130.0740690.57370.284144
14-0.169914-1.31610.096565
150.002540.01970.492185
16-0.008285-0.06420.474521
17-0.049005-0.37960.352795
180.0363060.28120.389752
190.1052130.8150.209155
200.042510.32930.371546
21-0.105587-0.81790.208332
22-0.212715-1.64770.052322
230.3028982.34620.011143
24-0.012199-0.09450.462516
25-0.117495-0.91010.183202
260.0061620.04770.481045
270.1401871.08590.140938
28-0.098759-0.7650.223639
29-0.138146-1.07010.144435
300.1422271.10170.1375
310.0410940.31830.375676
32-0.009368-0.07260.471197
33-0.054376-0.42120.337559
34-0.08656-0.67050.252559
350.0405110.31380.377381
360.1187860.92010.1806







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.304522-2.35880.010804
2-0.442402-3.42680.000554
3-0.210537-1.63080.054084
4-0.209337-1.62150.055075
5-0.21475-1.66340.050719
6-0.238024-1.84370.035081
70.0220940.17110.432345
8-0.085704-0.66390.254661
9-0.001117-0.00870.496562
10-0.115143-0.89190.188007
11-0.28751-2.2270.014854
12-0.046324-0.35880.360494
130.075690.58630.27994
14-0.009669-0.07490.470274
150.0507650.39320.347775
16-0.078107-0.6050.273726
17-0.139311-1.07910.142432
18-0.111511-0.86380.19558
19-0.102888-0.7970.214305
200.045920.35570.361659
210.0704710.54590.293592
22-0.310878-2.40810.009564
230.1510621.17010.12329
240.0148830.11530.454304
25-0.036588-0.28340.388919
26-0.090864-0.70380.242131
270.0761350.58970.27879
280.0320190.2480.402483
290.0961730.7450.229604
30-0.066199-0.51280.304995
310.0210860.16330.435403
320.0336920.2610.3975
33-0.065098-0.50420.307967
34-0.051812-0.40130.344799
35-0.121395-0.94030.175411
36-0.083351-0.64560.260489

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.304522 & -2.3588 & 0.010804 \tabularnewline
2 & -0.442402 & -3.4268 & 0.000554 \tabularnewline
3 & -0.210537 & -1.6308 & 0.054084 \tabularnewline
4 & -0.209337 & -1.6215 & 0.055075 \tabularnewline
5 & -0.21475 & -1.6634 & 0.050719 \tabularnewline
6 & -0.238024 & -1.8437 & 0.035081 \tabularnewline
7 & 0.022094 & 0.1711 & 0.432345 \tabularnewline
8 & -0.085704 & -0.6639 & 0.254661 \tabularnewline
9 & -0.001117 & -0.0087 & 0.496562 \tabularnewline
10 & -0.115143 & -0.8919 & 0.188007 \tabularnewline
11 & -0.28751 & -2.227 & 0.014854 \tabularnewline
12 & -0.046324 & -0.3588 & 0.360494 \tabularnewline
13 & 0.07569 & 0.5863 & 0.27994 \tabularnewline
14 & -0.009669 & -0.0749 & 0.470274 \tabularnewline
15 & 0.050765 & 0.3932 & 0.347775 \tabularnewline
16 & -0.078107 & -0.605 & 0.273726 \tabularnewline
17 & -0.139311 & -1.0791 & 0.142432 \tabularnewline
18 & -0.111511 & -0.8638 & 0.19558 \tabularnewline
19 & -0.102888 & -0.797 & 0.214305 \tabularnewline
20 & 0.04592 & 0.3557 & 0.361659 \tabularnewline
21 & 0.070471 & 0.5459 & 0.293592 \tabularnewline
22 & -0.310878 & -2.4081 & 0.009564 \tabularnewline
23 & 0.151062 & 1.1701 & 0.12329 \tabularnewline
24 & 0.014883 & 0.1153 & 0.454304 \tabularnewline
25 & -0.036588 & -0.2834 & 0.388919 \tabularnewline
26 & -0.090864 & -0.7038 & 0.242131 \tabularnewline
27 & 0.076135 & 0.5897 & 0.27879 \tabularnewline
28 & 0.032019 & 0.248 & 0.402483 \tabularnewline
29 & 0.096173 & 0.745 & 0.229604 \tabularnewline
30 & -0.066199 & -0.5128 & 0.304995 \tabularnewline
31 & 0.021086 & 0.1633 & 0.435403 \tabularnewline
32 & 0.033692 & 0.261 & 0.3975 \tabularnewline
33 & -0.065098 & -0.5042 & 0.307967 \tabularnewline
34 & -0.051812 & -0.4013 & 0.344799 \tabularnewline
35 & -0.121395 & -0.9403 & 0.175411 \tabularnewline
36 & -0.083351 & -0.6456 & 0.260489 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65237&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.304522[/C][C]-2.3588[/C][C]0.010804[/C][/ROW]
[ROW][C]2[/C][C]-0.442402[/C][C]-3.4268[/C][C]0.000554[/C][/ROW]
[ROW][C]3[/C][C]-0.210537[/C][C]-1.6308[/C][C]0.054084[/C][/ROW]
[ROW][C]4[/C][C]-0.209337[/C][C]-1.6215[/C][C]0.055075[/C][/ROW]
[ROW][C]5[/C][C]-0.21475[/C][C]-1.6634[/C][C]0.050719[/C][/ROW]
[ROW][C]6[/C][C]-0.238024[/C][C]-1.8437[/C][C]0.035081[/C][/ROW]
[ROW][C]7[/C][C]0.022094[/C][C]0.1711[/C][C]0.432345[/C][/ROW]
[ROW][C]8[/C][C]-0.085704[/C][C]-0.6639[/C][C]0.254661[/C][/ROW]
[ROW][C]9[/C][C]-0.001117[/C][C]-0.0087[/C][C]0.496562[/C][/ROW]
[ROW][C]10[/C][C]-0.115143[/C][C]-0.8919[/C][C]0.188007[/C][/ROW]
[ROW][C]11[/C][C]-0.28751[/C][C]-2.227[/C][C]0.014854[/C][/ROW]
[ROW][C]12[/C][C]-0.046324[/C][C]-0.3588[/C][C]0.360494[/C][/ROW]
[ROW][C]13[/C][C]0.07569[/C][C]0.5863[/C][C]0.27994[/C][/ROW]
[ROW][C]14[/C][C]-0.009669[/C][C]-0.0749[/C][C]0.470274[/C][/ROW]
[ROW][C]15[/C][C]0.050765[/C][C]0.3932[/C][C]0.347775[/C][/ROW]
[ROW][C]16[/C][C]-0.078107[/C][C]-0.605[/C][C]0.273726[/C][/ROW]
[ROW][C]17[/C][C]-0.139311[/C][C]-1.0791[/C][C]0.142432[/C][/ROW]
[ROW][C]18[/C][C]-0.111511[/C][C]-0.8638[/C][C]0.19558[/C][/ROW]
[ROW][C]19[/C][C]-0.102888[/C][C]-0.797[/C][C]0.214305[/C][/ROW]
[ROW][C]20[/C][C]0.04592[/C][C]0.3557[/C][C]0.361659[/C][/ROW]
[ROW][C]21[/C][C]0.070471[/C][C]0.5459[/C][C]0.293592[/C][/ROW]
[ROW][C]22[/C][C]-0.310878[/C][C]-2.4081[/C][C]0.009564[/C][/ROW]
[ROW][C]23[/C][C]0.151062[/C][C]1.1701[/C][C]0.12329[/C][/ROW]
[ROW][C]24[/C][C]0.014883[/C][C]0.1153[/C][C]0.454304[/C][/ROW]
[ROW][C]25[/C][C]-0.036588[/C][C]-0.2834[/C][C]0.388919[/C][/ROW]
[ROW][C]26[/C][C]-0.090864[/C][C]-0.7038[/C][C]0.242131[/C][/ROW]
[ROW][C]27[/C][C]0.076135[/C][C]0.5897[/C][C]0.27879[/C][/ROW]
[ROW][C]28[/C][C]0.032019[/C][C]0.248[/C][C]0.402483[/C][/ROW]
[ROW][C]29[/C][C]0.096173[/C][C]0.745[/C][C]0.229604[/C][/ROW]
[ROW][C]30[/C][C]-0.066199[/C][C]-0.5128[/C][C]0.304995[/C][/ROW]
[ROW][C]31[/C][C]0.021086[/C][C]0.1633[/C][C]0.435403[/C][/ROW]
[ROW][C]32[/C][C]0.033692[/C][C]0.261[/C][C]0.3975[/C][/ROW]
[ROW][C]33[/C][C]-0.065098[/C][C]-0.5042[/C][C]0.307967[/C][/ROW]
[ROW][C]34[/C][C]-0.051812[/C][C]-0.4013[/C][C]0.344799[/C][/ROW]
[ROW][C]35[/C][C]-0.121395[/C][C]-0.9403[/C][C]0.175411[/C][/ROW]
[ROW][C]36[/C][C]-0.083351[/C][C]-0.6456[/C][C]0.260489[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65237&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65237&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.304522-2.35880.010804
2-0.442402-3.42680.000554
3-0.210537-1.63080.054084
4-0.209337-1.62150.055075
5-0.21475-1.66340.050719
6-0.238024-1.84370.035081
70.0220940.17110.432345
8-0.085704-0.66390.254661
9-0.001117-0.00870.496562
10-0.115143-0.89190.188007
11-0.28751-2.2270.014854
12-0.046324-0.35880.360494
130.075690.58630.27994
14-0.009669-0.07490.470274
150.0507650.39320.347775
16-0.078107-0.6050.273726
17-0.139311-1.07910.142432
18-0.111511-0.86380.19558
19-0.102888-0.7970.214305
200.045920.35570.361659
210.0704710.54590.293592
22-0.310878-2.40810.009564
230.1510621.17010.12329
240.0148830.11530.454304
25-0.036588-0.28340.388919
26-0.090864-0.70380.242131
270.0761350.58970.27879
280.0320190.2480.402483
290.0961730.7450.229604
30-0.066199-0.51280.304995
310.0210860.16330.435403
320.0336920.2610.3975
33-0.065098-0.50420.307967
34-0.051812-0.40130.344799
35-0.121395-0.94030.175411
36-0.083351-0.64560.260489



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