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, 17 Dec 2009 04:00:12 -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/17/t1261048221mcztk0nk6a8vyh7.htm/, Retrieved Tue, 30 Apr 2024 03:29:50 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68739, Retrieved Tue, 30 Apr 2024 03:29:50 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact92
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:26:39] [b98453cac15ba1066b407e146608df68]
- R  D          [(Partial) Autocorrelation Function] [] [2009-12-17 11:00:12] [479db4778e5b462dda1f74ecdd6ccff3] [Current]
Feedback Forum

Post a new message
Dataseries X:
43.9
51
51.9
54.3
50.3
57.2
48.8
41.1
58
63
53.8
54.7
55.5
56.1
69.6
69.4
57.2
68
53.3
47.9
60.8
61.7
57.8
51.4
50.5
48.1
58.7
54
56.1
60.4
51.2
50.7
56.4
53.3
52.6
47.7
49.5
48.5
55.3
49.8
57.4
64.6
53
41.5
55.9
58.4
53.5
50.6
58.5
49.1
61.1
52.3
58.4
65.5
61.7
45.1
52.1
59.3
57.9
45
64.9
63.8
69.4
71.1
62.9
73.5
62.7
51.9
73.3
66.7
62.5
70.3




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68739&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.351567-2.70040.004512
2-0.210195-1.61450.055873
30.2490831.91320.030287
4-0.117409-0.90180.185406
50.0026890.02070.491797
60.0395690.30390.381122
7-0.0375-0.2880.38716
80.0702960.540.295631
9-0.118182-0.90780.183846
100.1458851.12060.133508
110.0463620.35610.361514
12-0.254069-1.95150.027873
130.17151.31730.096413
140.1245590.95680.171297
15-0.225013-1.72840.044577
160.0421410.32370.373659
170.1256890.96540.169133
18-0.075619-0.58080.28178
19-0.072321-0.55550.290324
200.0905780.69570.244662
21-0.053143-0.40820.342304
22-0.07695-0.59110.278369
230.1617611.24250.109482
24-0.034652-0.26620.39552
25-0.17967-1.38010.086386
260.1722281.32290.095485
270.1033270.79370.215284
28-0.14708-1.12970.131579
29-0.102397-0.78650.217352
300.1004470.77160.22173
310.0117120.090.464312
320.0394440.3030.381487
330.0535210.41110.341245
34-0.077701-0.59680.276452
350.0166790.12810.449248
36-0.049894-0.38320.351459

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.351567 & -2.7004 & 0.004512 \tabularnewline
2 & -0.210195 & -1.6145 & 0.055873 \tabularnewline
3 & 0.249083 & 1.9132 & 0.030287 \tabularnewline
4 & -0.117409 & -0.9018 & 0.185406 \tabularnewline
5 & 0.002689 & 0.0207 & 0.491797 \tabularnewline
6 & 0.039569 & 0.3039 & 0.381122 \tabularnewline
7 & -0.0375 & -0.288 & 0.38716 \tabularnewline
8 & 0.070296 & 0.54 & 0.295631 \tabularnewline
9 & -0.118182 & -0.9078 & 0.183846 \tabularnewline
10 & 0.145885 & 1.1206 & 0.133508 \tabularnewline
11 & 0.046362 & 0.3561 & 0.361514 \tabularnewline
12 & -0.254069 & -1.9515 & 0.027873 \tabularnewline
13 & 0.1715 & 1.3173 & 0.096413 \tabularnewline
14 & 0.124559 & 0.9568 & 0.171297 \tabularnewline
15 & -0.225013 & -1.7284 & 0.044577 \tabularnewline
16 & 0.042141 & 0.3237 & 0.373659 \tabularnewline
17 & 0.125689 & 0.9654 & 0.169133 \tabularnewline
18 & -0.075619 & -0.5808 & 0.28178 \tabularnewline
19 & -0.072321 & -0.5555 & 0.290324 \tabularnewline
20 & 0.090578 & 0.6957 & 0.244662 \tabularnewline
21 & -0.053143 & -0.4082 & 0.342304 \tabularnewline
22 & -0.07695 & -0.5911 & 0.278369 \tabularnewline
23 & 0.161761 & 1.2425 & 0.109482 \tabularnewline
24 & -0.034652 & -0.2662 & 0.39552 \tabularnewline
25 & -0.17967 & -1.3801 & 0.086386 \tabularnewline
26 & 0.172228 & 1.3229 & 0.095485 \tabularnewline
27 & 0.103327 & 0.7937 & 0.215284 \tabularnewline
28 & -0.14708 & -1.1297 & 0.131579 \tabularnewline
29 & -0.102397 & -0.7865 & 0.217352 \tabularnewline
30 & 0.100447 & 0.7716 & 0.22173 \tabularnewline
31 & 0.011712 & 0.09 & 0.464312 \tabularnewline
32 & 0.039444 & 0.303 & 0.381487 \tabularnewline
33 & 0.053521 & 0.4111 & 0.341245 \tabularnewline
34 & -0.077701 & -0.5968 & 0.276452 \tabularnewline
35 & 0.016679 & 0.1281 & 0.449248 \tabularnewline
36 & -0.049894 & -0.3832 & 0.351459 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68739&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.351567[/C][C]-2.7004[/C][C]0.004512[/C][/ROW]
[ROW][C]2[/C][C]-0.210195[/C][C]-1.6145[/C][C]0.055873[/C][/ROW]
[ROW][C]3[/C][C]0.249083[/C][C]1.9132[/C][C]0.030287[/C][/ROW]
[ROW][C]4[/C][C]-0.117409[/C][C]-0.9018[/C][C]0.185406[/C][/ROW]
[ROW][C]5[/C][C]0.002689[/C][C]0.0207[/C][C]0.491797[/C][/ROW]
[ROW][C]6[/C][C]0.039569[/C][C]0.3039[/C][C]0.381122[/C][/ROW]
[ROW][C]7[/C][C]-0.0375[/C][C]-0.288[/C][C]0.38716[/C][/ROW]
[ROW][C]8[/C][C]0.070296[/C][C]0.54[/C][C]0.295631[/C][/ROW]
[ROW][C]9[/C][C]-0.118182[/C][C]-0.9078[/C][C]0.183846[/C][/ROW]
[ROW][C]10[/C][C]0.145885[/C][C]1.1206[/C][C]0.133508[/C][/ROW]
[ROW][C]11[/C][C]0.046362[/C][C]0.3561[/C][C]0.361514[/C][/ROW]
[ROW][C]12[/C][C]-0.254069[/C][C]-1.9515[/C][C]0.027873[/C][/ROW]
[ROW][C]13[/C][C]0.1715[/C][C]1.3173[/C][C]0.096413[/C][/ROW]
[ROW][C]14[/C][C]0.124559[/C][C]0.9568[/C][C]0.171297[/C][/ROW]
[ROW][C]15[/C][C]-0.225013[/C][C]-1.7284[/C][C]0.044577[/C][/ROW]
[ROW][C]16[/C][C]0.042141[/C][C]0.3237[/C][C]0.373659[/C][/ROW]
[ROW][C]17[/C][C]0.125689[/C][C]0.9654[/C][C]0.169133[/C][/ROW]
[ROW][C]18[/C][C]-0.075619[/C][C]-0.5808[/C][C]0.28178[/C][/ROW]
[ROW][C]19[/C][C]-0.072321[/C][C]-0.5555[/C][C]0.290324[/C][/ROW]
[ROW][C]20[/C][C]0.090578[/C][C]0.6957[/C][C]0.244662[/C][/ROW]
[ROW][C]21[/C][C]-0.053143[/C][C]-0.4082[/C][C]0.342304[/C][/ROW]
[ROW][C]22[/C][C]-0.07695[/C][C]-0.5911[/C][C]0.278369[/C][/ROW]
[ROW][C]23[/C][C]0.161761[/C][C]1.2425[/C][C]0.109482[/C][/ROW]
[ROW][C]24[/C][C]-0.034652[/C][C]-0.2662[/C][C]0.39552[/C][/ROW]
[ROW][C]25[/C][C]-0.17967[/C][C]-1.3801[/C][C]0.086386[/C][/ROW]
[ROW][C]26[/C][C]0.172228[/C][C]1.3229[/C][C]0.095485[/C][/ROW]
[ROW][C]27[/C][C]0.103327[/C][C]0.7937[/C][C]0.215284[/C][/ROW]
[ROW][C]28[/C][C]-0.14708[/C][C]-1.1297[/C][C]0.131579[/C][/ROW]
[ROW][C]29[/C][C]-0.102397[/C][C]-0.7865[/C][C]0.217352[/C][/ROW]
[ROW][C]30[/C][C]0.100447[/C][C]0.7716[/C][C]0.22173[/C][/ROW]
[ROW][C]31[/C][C]0.011712[/C][C]0.09[/C][C]0.464312[/C][/ROW]
[ROW][C]32[/C][C]0.039444[/C][C]0.303[/C][C]0.381487[/C][/ROW]
[ROW][C]33[/C][C]0.053521[/C][C]0.4111[/C][C]0.341245[/C][/ROW]
[ROW][C]34[/C][C]-0.077701[/C][C]-0.5968[/C][C]0.276452[/C][/ROW]
[ROW][C]35[/C][C]0.016679[/C][C]0.1281[/C][C]0.449248[/C][/ROW]
[ROW][C]36[/C][C]-0.049894[/C][C]-0.3832[/C][C]0.351459[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68739&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68739&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.351567-2.70040.004512
2-0.210195-1.61450.055873
30.2490831.91320.030287
4-0.117409-0.90180.185406
50.0026890.02070.491797
60.0395690.30390.381122
7-0.0375-0.2880.38716
80.0702960.540.295631
9-0.118182-0.90780.183846
100.1458851.12060.133508
110.0463620.35610.361514
12-0.254069-1.95150.027873
130.17151.31730.096413
140.1245590.95680.171297
15-0.225013-1.72840.044577
160.0421410.32370.373659
170.1256890.96540.169133
18-0.075619-0.58080.28178
19-0.072321-0.55550.290324
200.0905780.69570.244662
21-0.053143-0.40820.342304
22-0.07695-0.59110.278369
230.1617611.24250.109482
24-0.034652-0.26620.39552
25-0.17967-1.38010.086386
260.1722281.32290.095485
270.1033270.79370.215284
28-0.14708-1.12970.131579
29-0.102397-0.78650.217352
300.1004470.77160.22173
310.0117120.090.464312
320.0394440.3030.381487
330.0535210.41110.341245
34-0.077701-0.59680.276452
350.0166790.12810.449248
36-0.049894-0.38320.351459







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.351567-2.70040.004512
2-0.38087-2.92550.002437
30.0175350.13470.446657
4-0.093791-0.72040.237054
50.0126430.09710.461482
6-0.020739-0.15930.436989
7-0.004028-0.03090.487711
80.0686340.52720.300021
9-0.094446-0.72550.235522
100.1314391.00960.158405
110.114630.88050.191083
12-0.12213-0.93810.17601
130.0074970.05760.477137
140.1326461.01890.156212
15-0.030802-0.23660.406895
16-0.074235-0.57020.285351
170.0583880.44850.327722
180.0308630.23710.406716
19-0.083258-0.63950.26248
200.0077640.05960.476323
21-0.088369-0.67880.249967
22-0.089284-0.68580.247762
230.1025910.7880.216921
24-0.012893-0.0990.460723
25-0.148887-1.14360.1287
260.0959590.73710.231999
270.1536781.18040.121285
28-0.009902-0.07610.469815
29-0.117995-0.90630.184223
30-0.042502-0.32650.372614
31-0.066758-0.51280.305011
320.1801171.38350.085861
330.1815761.39470.084166
34-0.067765-0.52050.302327
350.0937960.72050.237043
36-0.07173-0.5510.291868

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.351567 & -2.7004 & 0.004512 \tabularnewline
2 & -0.38087 & -2.9255 & 0.002437 \tabularnewline
3 & 0.017535 & 0.1347 & 0.446657 \tabularnewline
4 & -0.093791 & -0.7204 & 0.237054 \tabularnewline
5 & 0.012643 & 0.0971 & 0.461482 \tabularnewline
6 & -0.020739 & -0.1593 & 0.436989 \tabularnewline
7 & -0.004028 & -0.0309 & 0.487711 \tabularnewline
8 & 0.068634 & 0.5272 & 0.300021 \tabularnewline
9 & -0.094446 & -0.7255 & 0.235522 \tabularnewline
10 & 0.131439 & 1.0096 & 0.158405 \tabularnewline
11 & 0.11463 & 0.8805 & 0.191083 \tabularnewline
12 & -0.12213 & -0.9381 & 0.17601 \tabularnewline
13 & 0.007497 & 0.0576 & 0.477137 \tabularnewline
14 & 0.132646 & 1.0189 & 0.156212 \tabularnewline
15 & -0.030802 & -0.2366 & 0.406895 \tabularnewline
16 & -0.074235 & -0.5702 & 0.285351 \tabularnewline
17 & 0.058388 & 0.4485 & 0.327722 \tabularnewline
18 & 0.030863 & 0.2371 & 0.406716 \tabularnewline
19 & -0.083258 & -0.6395 & 0.26248 \tabularnewline
20 & 0.007764 & 0.0596 & 0.476323 \tabularnewline
21 & -0.088369 & -0.6788 & 0.249967 \tabularnewline
22 & -0.089284 & -0.6858 & 0.247762 \tabularnewline
23 & 0.102591 & 0.788 & 0.216921 \tabularnewline
24 & -0.012893 & -0.099 & 0.460723 \tabularnewline
25 & -0.148887 & -1.1436 & 0.1287 \tabularnewline
26 & 0.095959 & 0.7371 & 0.231999 \tabularnewline
27 & 0.153678 & 1.1804 & 0.121285 \tabularnewline
28 & -0.009902 & -0.0761 & 0.469815 \tabularnewline
29 & -0.117995 & -0.9063 & 0.184223 \tabularnewline
30 & -0.042502 & -0.3265 & 0.372614 \tabularnewline
31 & -0.066758 & -0.5128 & 0.305011 \tabularnewline
32 & 0.180117 & 1.3835 & 0.085861 \tabularnewline
33 & 0.181576 & 1.3947 & 0.084166 \tabularnewline
34 & -0.067765 & -0.5205 & 0.302327 \tabularnewline
35 & 0.093796 & 0.7205 & 0.237043 \tabularnewline
36 & -0.07173 & -0.551 & 0.291868 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68739&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.351567[/C][C]-2.7004[/C][C]0.004512[/C][/ROW]
[ROW][C]2[/C][C]-0.38087[/C][C]-2.9255[/C][C]0.002437[/C][/ROW]
[ROW][C]3[/C][C]0.017535[/C][C]0.1347[/C][C]0.446657[/C][/ROW]
[ROW][C]4[/C][C]-0.093791[/C][C]-0.7204[/C][C]0.237054[/C][/ROW]
[ROW][C]5[/C][C]0.012643[/C][C]0.0971[/C][C]0.461482[/C][/ROW]
[ROW][C]6[/C][C]-0.020739[/C][C]-0.1593[/C][C]0.436989[/C][/ROW]
[ROW][C]7[/C][C]-0.004028[/C][C]-0.0309[/C][C]0.487711[/C][/ROW]
[ROW][C]8[/C][C]0.068634[/C][C]0.5272[/C][C]0.300021[/C][/ROW]
[ROW][C]9[/C][C]-0.094446[/C][C]-0.7255[/C][C]0.235522[/C][/ROW]
[ROW][C]10[/C][C]0.131439[/C][C]1.0096[/C][C]0.158405[/C][/ROW]
[ROW][C]11[/C][C]0.11463[/C][C]0.8805[/C][C]0.191083[/C][/ROW]
[ROW][C]12[/C][C]-0.12213[/C][C]-0.9381[/C][C]0.17601[/C][/ROW]
[ROW][C]13[/C][C]0.007497[/C][C]0.0576[/C][C]0.477137[/C][/ROW]
[ROW][C]14[/C][C]0.132646[/C][C]1.0189[/C][C]0.156212[/C][/ROW]
[ROW][C]15[/C][C]-0.030802[/C][C]-0.2366[/C][C]0.406895[/C][/ROW]
[ROW][C]16[/C][C]-0.074235[/C][C]-0.5702[/C][C]0.285351[/C][/ROW]
[ROW][C]17[/C][C]0.058388[/C][C]0.4485[/C][C]0.327722[/C][/ROW]
[ROW][C]18[/C][C]0.030863[/C][C]0.2371[/C][C]0.406716[/C][/ROW]
[ROW][C]19[/C][C]-0.083258[/C][C]-0.6395[/C][C]0.26248[/C][/ROW]
[ROW][C]20[/C][C]0.007764[/C][C]0.0596[/C][C]0.476323[/C][/ROW]
[ROW][C]21[/C][C]-0.088369[/C][C]-0.6788[/C][C]0.249967[/C][/ROW]
[ROW][C]22[/C][C]-0.089284[/C][C]-0.6858[/C][C]0.247762[/C][/ROW]
[ROW][C]23[/C][C]0.102591[/C][C]0.788[/C][C]0.216921[/C][/ROW]
[ROW][C]24[/C][C]-0.012893[/C][C]-0.099[/C][C]0.460723[/C][/ROW]
[ROW][C]25[/C][C]-0.148887[/C][C]-1.1436[/C][C]0.1287[/C][/ROW]
[ROW][C]26[/C][C]0.095959[/C][C]0.7371[/C][C]0.231999[/C][/ROW]
[ROW][C]27[/C][C]0.153678[/C][C]1.1804[/C][C]0.121285[/C][/ROW]
[ROW][C]28[/C][C]-0.009902[/C][C]-0.0761[/C][C]0.469815[/C][/ROW]
[ROW][C]29[/C][C]-0.117995[/C][C]-0.9063[/C][C]0.184223[/C][/ROW]
[ROW][C]30[/C][C]-0.042502[/C][C]-0.3265[/C][C]0.372614[/C][/ROW]
[ROW][C]31[/C][C]-0.066758[/C][C]-0.5128[/C][C]0.305011[/C][/ROW]
[ROW][C]32[/C][C]0.180117[/C][C]1.3835[/C][C]0.085861[/C][/ROW]
[ROW][C]33[/C][C]0.181576[/C][C]1.3947[/C][C]0.084166[/C][/ROW]
[ROW][C]34[/C][C]-0.067765[/C][C]-0.5205[/C][C]0.302327[/C][/ROW]
[ROW][C]35[/C][C]0.093796[/C][C]0.7205[/C][C]0.237043[/C][/ROW]
[ROW][C]36[/C][C]-0.07173[/C][C]-0.551[/C][C]0.291868[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68739&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68739&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.351567-2.70040.004512
2-0.38087-2.92550.002437
30.0175350.13470.446657
4-0.093791-0.72040.237054
50.0126430.09710.461482
6-0.020739-0.15930.436989
7-0.004028-0.03090.487711
80.0686340.52720.300021
9-0.094446-0.72550.235522
100.1314391.00960.158405
110.114630.88050.191083
12-0.12213-0.93810.17601
130.0074970.05760.477137
140.1326461.01890.156212
15-0.030802-0.23660.406895
16-0.074235-0.57020.285351
170.0583880.44850.327722
180.0308630.23710.406716
19-0.083258-0.63950.26248
200.0077640.05960.476323
21-0.088369-0.67880.249967
22-0.089284-0.68580.247762
230.1025910.7880.216921
24-0.012893-0.0990.460723
25-0.148887-1.14360.1287
260.0959590.73710.231999
270.1536781.18040.121285
28-0.009902-0.07610.469815
29-0.117995-0.90630.184223
30-0.042502-0.32650.372614
31-0.066758-0.51280.305011
320.1801171.38350.085861
330.1815761.39470.084166
34-0.067765-0.52050.302327
350.0937960.72050.237043
36-0.07173-0.5510.291868



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