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 03:48:48 -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/t1261047491re49hw24czuhkez.htm/, Retrieved Tue, 30 Apr 2024 04:09:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68723, Retrieved Tue, 30 Apr 2024 04:09:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact174
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:19:56] [b98453cac15ba1066b407e146608df68]
- R  D          [(Partial) Autocorrelation Function] [] [2009-12-17 10:48:48] [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=68723&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=68723&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68723&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.4848313.75550.000197
20.4202023.25490.000933
30.4895673.79220.000175
40.2625062.03340.023223
50.2477541.91910.029866
60.2580571.99890.025078
70.2053321.59050.058489
80.2014441.56040.061965
90.0555460.43030.334276
100.087310.67630.250725
11-0.061376-0.47540.318109
12-0.180854-1.40090.083199
13-0.000877-0.00680.497301
14-0.025839-0.20010.421021
15-0.130496-1.01080.158081
16-0.000653-0.00510.497989
170.01040.08060.468031
18-0.104712-0.81110.210258
19-0.119363-0.92460.179444
20-0.084266-0.65270.258214
21-0.120023-0.92970.178128
22-0.121865-0.9440.174487
23-0.032999-0.25560.399565
24-0.14185-1.09880.138129
25-0.189641-1.4690.073535
26-0.073139-0.56650.286571
27-0.123738-0.95850.170836
28-0.227302-1.76070.041695
29-0.162144-1.2560.106999
30-0.084857-0.65730.256752
31-0.104319-0.8080.211127
32-0.089724-0.6950.244869
33-0.096424-0.74690.229021
34-0.168251-1.30330.098732
35-0.186789-1.44690.07657
36-0.21618-1.67450.049617

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.484831 & 3.7555 & 0.000197 \tabularnewline
2 & 0.420202 & 3.2549 & 0.000933 \tabularnewline
3 & 0.489567 & 3.7922 & 0.000175 \tabularnewline
4 & 0.262506 & 2.0334 & 0.023223 \tabularnewline
5 & 0.247754 & 1.9191 & 0.029866 \tabularnewline
6 & 0.258057 & 1.9989 & 0.025078 \tabularnewline
7 & 0.205332 & 1.5905 & 0.058489 \tabularnewline
8 & 0.201444 & 1.5604 & 0.061965 \tabularnewline
9 & 0.055546 & 0.4303 & 0.334276 \tabularnewline
10 & 0.08731 & 0.6763 & 0.250725 \tabularnewline
11 & -0.061376 & -0.4754 & 0.318109 \tabularnewline
12 & -0.180854 & -1.4009 & 0.083199 \tabularnewline
13 & -0.000877 & -0.0068 & 0.497301 \tabularnewline
14 & -0.025839 & -0.2001 & 0.421021 \tabularnewline
15 & -0.130496 & -1.0108 & 0.158081 \tabularnewline
16 & -0.000653 & -0.0051 & 0.497989 \tabularnewline
17 & 0.0104 & 0.0806 & 0.468031 \tabularnewline
18 & -0.104712 & -0.8111 & 0.210258 \tabularnewline
19 & -0.119363 & -0.9246 & 0.179444 \tabularnewline
20 & -0.084266 & -0.6527 & 0.258214 \tabularnewline
21 & -0.120023 & -0.9297 & 0.178128 \tabularnewline
22 & -0.121865 & -0.944 & 0.174487 \tabularnewline
23 & -0.032999 & -0.2556 & 0.399565 \tabularnewline
24 & -0.14185 & -1.0988 & 0.138129 \tabularnewline
25 & -0.189641 & -1.469 & 0.073535 \tabularnewline
26 & -0.073139 & -0.5665 & 0.286571 \tabularnewline
27 & -0.123738 & -0.9585 & 0.170836 \tabularnewline
28 & -0.227302 & -1.7607 & 0.041695 \tabularnewline
29 & -0.162144 & -1.256 & 0.106999 \tabularnewline
30 & -0.084857 & -0.6573 & 0.256752 \tabularnewline
31 & -0.104319 & -0.808 & 0.211127 \tabularnewline
32 & -0.089724 & -0.695 & 0.244869 \tabularnewline
33 & -0.096424 & -0.7469 & 0.229021 \tabularnewline
34 & -0.168251 & -1.3033 & 0.098732 \tabularnewline
35 & -0.186789 & -1.4469 & 0.07657 \tabularnewline
36 & -0.21618 & -1.6745 & 0.049617 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68723&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.484831[/C][C]3.7555[/C][C]0.000197[/C][/ROW]
[ROW][C]2[/C][C]0.420202[/C][C]3.2549[/C][C]0.000933[/C][/ROW]
[ROW][C]3[/C][C]0.489567[/C][C]3.7922[/C][C]0.000175[/C][/ROW]
[ROW][C]4[/C][C]0.262506[/C][C]2.0334[/C][C]0.023223[/C][/ROW]
[ROW][C]5[/C][C]0.247754[/C][C]1.9191[/C][C]0.029866[/C][/ROW]
[ROW][C]6[/C][C]0.258057[/C][C]1.9989[/C][C]0.025078[/C][/ROW]
[ROW][C]7[/C][C]0.205332[/C][C]1.5905[/C][C]0.058489[/C][/ROW]
[ROW][C]8[/C][C]0.201444[/C][C]1.5604[/C][C]0.061965[/C][/ROW]
[ROW][C]9[/C][C]0.055546[/C][C]0.4303[/C][C]0.334276[/C][/ROW]
[ROW][C]10[/C][C]0.08731[/C][C]0.6763[/C][C]0.250725[/C][/ROW]
[ROW][C]11[/C][C]-0.061376[/C][C]-0.4754[/C][C]0.318109[/C][/ROW]
[ROW][C]12[/C][C]-0.180854[/C][C]-1.4009[/C][C]0.083199[/C][/ROW]
[ROW][C]13[/C][C]-0.000877[/C][C]-0.0068[/C][C]0.497301[/C][/ROW]
[ROW][C]14[/C][C]-0.025839[/C][C]-0.2001[/C][C]0.421021[/C][/ROW]
[ROW][C]15[/C][C]-0.130496[/C][C]-1.0108[/C][C]0.158081[/C][/ROW]
[ROW][C]16[/C][C]-0.000653[/C][C]-0.0051[/C][C]0.497989[/C][/ROW]
[ROW][C]17[/C][C]0.0104[/C][C]0.0806[/C][C]0.468031[/C][/ROW]
[ROW][C]18[/C][C]-0.104712[/C][C]-0.8111[/C][C]0.210258[/C][/ROW]
[ROW][C]19[/C][C]-0.119363[/C][C]-0.9246[/C][C]0.179444[/C][/ROW]
[ROW][C]20[/C][C]-0.084266[/C][C]-0.6527[/C][C]0.258214[/C][/ROW]
[ROW][C]21[/C][C]-0.120023[/C][C]-0.9297[/C][C]0.178128[/C][/ROW]
[ROW][C]22[/C][C]-0.121865[/C][C]-0.944[/C][C]0.174487[/C][/ROW]
[ROW][C]23[/C][C]-0.032999[/C][C]-0.2556[/C][C]0.399565[/C][/ROW]
[ROW][C]24[/C][C]-0.14185[/C][C]-1.0988[/C][C]0.138129[/C][/ROW]
[ROW][C]25[/C][C]-0.189641[/C][C]-1.469[/C][C]0.073535[/C][/ROW]
[ROW][C]26[/C][C]-0.073139[/C][C]-0.5665[/C][C]0.286571[/C][/ROW]
[ROW][C]27[/C][C]-0.123738[/C][C]-0.9585[/C][C]0.170836[/C][/ROW]
[ROW][C]28[/C][C]-0.227302[/C][C]-1.7607[/C][C]0.041695[/C][/ROW]
[ROW][C]29[/C][C]-0.162144[/C][C]-1.256[/C][C]0.106999[/C][/ROW]
[ROW][C]30[/C][C]-0.084857[/C][C]-0.6573[/C][C]0.256752[/C][/ROW]
[ROW][C]31[/C][C]-0.104319[/C][C]-0.808[/C][C]0.211127[/C][/ROW]
[ROW][C]32[/C][C]-0.089724[/C][C]-0.695[/C][C]0.244869[/C][/ROW]
[ROW][C]33[/C][C]-0.096424[/C][C]-0.7469[/C][C]0.229021[/C][/ROW]
[ROW][C]34[/C][C]-0.168251[/C][C]-1.3033[/C][C]0.098732[/C][/ROW]
[ROW][C]35[/C][C]-0.186789[/C][C]-1.4469[/C][C]0.07657[/C][/ROW]
[ROW][C]36[/C][C]-0.21618[/C][C]-1.6745[/C][C]0.049617[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68723&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68723&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.4848313.75550.000197
20.4202023.25490.000933
30.4895673.79220.000175
40.2625062.03340.023223
50.2477541.91910.029866
60.2580571.99890.025078
70.2053321.59050.058489
80.2014441.56040.061965
90.0555460.43030.334276
100.087310.67630.250725
11-0.061376-0.47540.318109
12-0.180854-1.40090.083199
13-0.000877-0.00680.497301
14-0.025839-0.20010.421021
15-0.130496-1.01080.158081
16-0.000653-0.00510.497989
170.01040.08060.468031
18-0.104712-0.81110.210258
19-0.119363-0.92460.179444
20-0.084266-0.65270.258214
21-0.120023-0.92970.178128
22-0.121865-0.9440.174487
23-0.032999-0.25560.399565
24-0.14185-1.09880.138129
25-0.189641-1.4690.073535
26-0.073139-0.56650.286571
27-0.123738-0.95850.170836
28-0.227302-1.76070.041695
29-0.162144-1.2560.106999
30-0.084857-0.65730.256752
31-0.104319-0.8080.211127
32-0.089724-0.6950.244869
33-0.096424-0.74690.229021
34-0.168251-1.30330.098732
35-0.186789-1.44690.07657
36-0.21618-1.67450.049617







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4848313.75550.000197
20.2420331.87480.032847
30.302452.34280.011238
4-0.127169-0.9850.164278
50.0109060.08450.466477
60.0335460.25980.397937
70.0729890.56540.286964
80.0309260.23960.405747
9-0.200041-1.54950.063259
100.0214270.1660.434369
11-0.21431-1.660.051062
12-0.13176-1.02060.155769
130.1717921.33070.094162
140.1347621.04390.150368
15-0.087564-0.67830.250104
160.0044370.03440.486348
170.1109070.85910.196856
18-0.074489-0.5770.283052
19-0.108466-0.84020.202074
20-0.025934-0.20090.420735
21-0.036883-0.28570.388048
22-0.020441-0.15830.437362
230.027890.2160.414847
24-0.19008-1.47240.073076
25-0.04245-0.32880.371718
260.1475761.14310.128764
270.0005620.00440.49827
28-0.135246-1.04760.14951
29-0.014839-0.11490.454436
300.0778740.60320.274322
310.0197770.15320.439379
320.0577610.44740.328094
33-0.162787-1.26090.106105
34-0.206005-1.59570.057905
35-0.020547-0.15920.437041
36-0.150295-1.16420.12448

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.484831 & 3.7555 & 0.000197 \tabularnewline
2 & 0.242033 & 1.8748 & 0.032847 \tabularnewline
3 & 0.30245 & 2.3428 & 0.011238 \tabularnewline
4 & -0.127169 & -0.985 & 0.164278 \tabularnewline
5 & 0.010906 & 0.0845 & 0.466477 \tabularnewline
6 & 0.033546 & 0.2598 & 0.397937 \tabularnewline
7 & 0.072989 & 0.5654 & 0.286964 \tabularnewline
8 & 0.030926 & 0.2396 & 0.405747 \tabularnewline
9 & -0.200041 & -1.5495 & 0.063259 \tabularnewline
10 & 0.021427 & 0.166 & 0.434369 \tabularnewline
11 & -0.21431 & -1.66 & 0.051062 \tabularnewline
12 & -0.13176 & -1.0206 & 0.155769 \tabularnewline
13 & 0.171792 & 1.3307 & 0.094162 \tabularnewline
14 & 0.134762 & 1.0439 & 0.150368 \tabularnewline
15 & -0.087564 & -0.6783 & 0.250104 \tabularnewline
16 & 0.004437 & 0.0344 & 0.486348 \tabularnewline
17 & 0.110907 & 0.8591 & 0.196856 \tabularnewline
18 & -0.074489 & -0.577 & 0.283052 \tabularnewline
19 & -0.108466 & -0.8402 & 0.202074 \tabularnewline
20 & -0.025934 & -0.2009 & 0.420735 \tabularnewline
21 & -0.036883 & -0.2857 & 0.388048 \tabularnewline
22 & -0.020441 & -0.1583 & 0.437362 \tabularnewline
23 & 0.02789 & 0.216 & 0.414847 \tabularnewline
24 & -0.19008 & -1.4724 & 0.073076 \tabularnewline
25 & -0.04245 & -0.3288 & 0.371718 \tabularnewline
26 & 0.147576 & 1.1431 & 0.128764 \tabularnewline
27 & 0.000562 & 0.0044 & 0.49827 \tabularnewline
28 & -0.135246 & -1.0476 & 0.14951 \tabularnewline
29 & -0.014839 & -0.1149 & 0.454436 \tabularnewline
30 & 0.077874 & 0.6032 & 0.274322 \tabularnewline
31 & 0.019777 & 0.1532 & 0.439379 \tabularnewline
32 & 0.057761 & 0.4474 & 0.328094 \tabularnewline
33 & -0.162787 & -1.2609 & 0.106105 \tabularnewline
34 & -0.206005 & -1.5957 & 0.057905 \tabularnewline
35 & -0.020547 & -0.1592 & 0.437041 \tabularnewline
36 & -0.150295 & -1.1642 & 0.12448 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68723&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.484831[/C][C]3.7555[/C][C]0.000197[/C][/ROW]
[ROW][C]2[/C][C]0.242033[/C][C]1.8748[/C][C]0.032847[/C][/ROW]
[ROW][C]3[/C][C]0.30245[/C][C]2.3428[/C][C]0.011238[/C][/ROW]
[ROW][C]4[/C][C]-0.127169[/C][C]-0.985[/C][C]0.164278[/C][/ROW]
[ROW][C]5[/C][C]0.010906[/C][C]0.0845[/C][C]0.466477[/C][/ROW]
[ROW][C]6[/C][C]0.033546[/C][C]0.2598[/C][C]0.397937[/C][/ROW]
[ROW][C]7[/C][C]0.072989[/C][C]0.5654[/C][C]0.286964[/C][/ROW]
[ROW][C]8[/C][C]0.030926[/C][C]0.2396[/C][C]0.405747[/C][/ROW]
[ROW][C]9[/C][C]-0.200041[/C][C]-1.5495[/C][C]0.063259[/C][/ROW]
[ROW][C]10[/C][C]0.021427[/C][C]0.166[/C][C]0.434369[/C][/ROW]
[ROW][C]11[/C][C]-0.21431[/C][C]-1.66[/C][C]0.051062[/C][/ROW]
[ROW][C]12[/C][C]-0.13176[/C][C]-1.0206[/C][C]0.155769[/C][/ROW]
[ROW][C]13[/C][C]0.171792[/C][C]1.3307[/C][C]0.094162[/C][/ROW]
[ROW][C]14[/C][C]0.134762[/C][C]1.0439[/C][C]0.150368[/C][/ROW]
[ROW][C]15[/C][C]-0.087564[/C][C]-0.6783[/C][C]0.250104[/C][/ROW]
[ROW][C]16[/C][C]0.004437[/C][C]0.0344[/C][C]0.486348[/C][/ROW]
[ROW][C]17[/C][C]0.110907[/C][C]0.8591[/C][C]0.196856[/C][/ROW]
[ROW][C]18[/C][C]-0.074489[/C][C]-0.577[/C][C]0.283052[/C][/ROW]
[ROW][C]19[/C][C]-0.108466[/C][C]-0.8402[/C][C]0.202074[/C][/ROW]
[ROW][C]20[/C][C]-0.025934[/C][C]-0.2009[/C][C]0.420735[/C][/ROW]
[ROW][C]21[/C][C]-0.036883[/C][C]-0.2857[/C][C]0.388048[/C][/ROW]
[ROW][C]22[/C][C]-0.020441[/C][C]-0.1583[/C][C]0.437362[/C][/ROW]
[ROW][C]23[/C][C]0.02789[/C][C]0.216[/C][C]0.414847[/C][/ROW]
[ROW][C]24[/C][C]-0.19008[/C][C]-1.4724[/C][C]0.073076[/C][/ROW]
[ROW][C]25[/C][C]-0.04245[/C][C]-0.3288[/C][C]0.371718[/C][/ROW]
[ROW][C]26[/C][C]0.147576[/C][C]1.1431[/C][C]0.128764[/C][/ROW]
[ROW][C]27[/C][C]0.000562[/C][C]0.0044[/C][C]0.49827[/C][/ROW]
[ROW][C]28[/C][C]-0.135246[/C][C]-1.0476[/C][C]0.14951[/C][/ROW]
[ROW][C]29[/C][C]-0.014839[/C][C]-0.1149[/C][C]0.454436[/C][/ROW]
[ROW][C]30[/C][C]0.077874[/C][C]0.6032[/C][C]0.274322[/C][/ROW]
[ROW][C]31[/C][C]0.019777[/C][C]0.1532[/C][C]0.439379[/C][/ROW]
[ROW][C]32[/C][C]0.057761[/C][C]0.4474[/C][C]0.328094[/C][/ROW]
[ROW][C]33[/C][C]-0.162787[/C][C]-1.2609[/C][C]0.106105[/C][/ROW]
[ROW][C]34[/C][C]-0.206005[/C][C]-1.5957[/C][C]0.057905[/C][/ROW]
[ROW][C]35[/C][C]-0.020547[/C][C]-0.1592[/C][C]0.437041[/C][/ROW]
[ROW][C]36[/C][C]-0.150295[/C][C]-1.1642[/C][C]0.12448[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68723&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68723&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.4848313.75550.000197
20.2420331.87480.032847
30.302452.34280.011238
4-0.127169-0.9850.164278
50.0109060.08450.466477
60.0335460.25980.397937
70.0729890.56540.286964
80.0309260.23960.405747
9-0.200041-1.54950.063259
100.0214270.1660.434369
11-0.21431-1.660.051062
12-0.13176-1.02060.155769
130.1717921.33070.094162
140.1347621.04390.150368
15-0.087564-0.67830.250104
160.0044370.03440.486348
170.1109070.85910.196856
18-0.074489-0.5770.283052
19-0.108466-0.84020.202074
20-0.025934-0.20090.420735
21-0.036883-0.28570.388048
22-0.020441-0.15830.437362
230.027890.2160.414847
24-0.19008-1.47240.073076
25-0.04245-0.32880.371718
260.1475761.14310.128764
270.0005620.00440.49827
28-0.135246-1.04760.14951
29-0.014839-0.11490.454436
300.0778740.60320.274322
310.0197770.15320.439379
320.0577610.44740.328094
33-0.162787-1.26090.106105
34-0.206005-1.59570.057905
35-0.020547-0.15920.437041
36-0.150295-1.16420.12448



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