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 computationMon, 14 Dec 2009 03:13:26 -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/14/t1260785734qtud04t9406lwv0.htm/, Retrieved Sun, 05 May 2024 18:09:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=67500, Retrieved Sun, 05 May 2024 18:09:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact102
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]
-   PD          [(Partial) Autocorrelation Function] [] [2009-12-14 10:13:26] [d39d4e1021a28f94dc953cf77db656ab] [Current]
Feedback Forum

Post a new message
Dataseries X:
95,1
97,0
112,7
102,9
97,4
111,4
87,4
96,8
114,1
110,3
103,9
101,6
94,6
95,9
104,7
102,8
98,1
113,9
80,9
95,7
113,2
105,9
108,8
102,3
99,0
100,7
115,5
100,7
109,9
114,6
85,4
100,5
114,8
116,5
112,9
102,0
106,0
105,3
118,8
106,1
109,3
117,2
92,5
104,2
112,5
122,4
113,3
100,0
110,7
112,8
109,8
117,3
109,1
115,9
96,0
99,8
116,8
115,7
99,4
94,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=67500&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=67500&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67500&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.629949-4.31874e-05
20.0776010.5320.298613
30.1868791.28120.103208
4-0.190481-1.30590.098976
50.0726340.4980.310419
60.0646550.44330.329809
7-0.129494-0.88780.189594
80.0747570.51250.305348
90.0413830.28370.38894
10-0.117001-0.80210.213261
110.1177820.80750.211732
12-0.06748-0.46260.322885
130.0292380.20040.420999
14-0.058093-0.39830.346119
150.1099840.7540.227301
16-0.123043-0.84350.2016
170.0569940.39070.348882
180.065780.4510.327043
19-0.127466-0.87390.193319
200.0687660.47140.319755
210.0824310.56510.28734
22-0.28277-1.93860.029286
230.3938812.70030.0048
24-0.2787-1.91070.031079
250.0210520.14430.442931
260.1305570.89510.18766
27-0.108244-0.74210.230864
280.0275260.18870.425566
290.029740.20390.419662
30-0.023859-0.16360.435387
31-0.030837-0.21140.416741
320.0744070.51010.306181
33-0.105243-0.72150.237084
340.0888170.60890.272761
35-0.08724-0.59810.276327
360.0615410.42190.337509

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.629949 & -4.3187 & 4e-05 \tabularnewline
2 & 0.077601 & 0.532 & 0.298613 \tabularnewline
3 & 0.186879 & 1.2812 & 0.103208 \tabularnewline
4 & -0.190481 & -1.3059 & 0.098976 \tabularnewline
5 & 0.072634 & 0.498 & 0.310419 \tabularnewline
6 & 0.064655 & 0.4433 & 0.329809 \tabularnewline
7 & -0.129494 & -0.8878 & 0.189594 \tabularnewline
8 & 0.074757 & 0.5125 & 0.305348 \tabularnewline
9 & 0.041383 & 0.2837 & 0.38894 \tabularnewline
10 & -0.117001 & -0.8021 & 0.213261 \tabularnewline
11 & 0.117782 & 0.8075 & 0.211732 \tabularnewline
12 & -0.06748 & -0.4626 & 0.322885 \tabularnewline
13 & 0.029238 & 0.2004 & 0.420999 \tabularnewline
14 & -0.058093 & -0.3983 & 0.346119 \tabularnewline
15 & 0.109984 & 0.754 & 0.227301 \tabularnewline
16 & -0.123043 & -0.8435 & 0.2016 \tabularnewline
17 & 0.056994 & 0.3907 & 0.348882 \tabularnewline
18 & 0.06578 & 0.451 & 0.327043 \tabularnewline
19 & -0.127466 & -0.8739 & 0.193319 \tabularnewline
20 & 0.068766 & 0.4714 & 0.319755 \tabularnewline
21 & 0.082431 & 0.5651 & 0.28734 \tabularnewline
22 & -0.28277 & -1.9386 & 0.029286 \tabularnewline
23 & 0.393881 & 2.7003 & 0.0048 \tabularnewline
24 & -0.2787 & -1.9107 & 0.031079 \tabularnewline
25 & 0.021052 & 0.1443 & 0.442931 \tabularnewline
26 & 0.130557 & 0.8951 & 0.18766 \tabularnewline
27 & -0.108244 & -0.7421 & 0.230864 \tabularnewline
28 & 0.027526 & 0.1887 & 0.425566 \tabularnewline
29 & 0.02974 & 0.2039 & 0.419662 \tabularnewline
30 & -0.023859 & -0.1636 & 0.435387 \tabularnewline
31 & -0.030837 & -0.2114 & 0.416741 \tabularnewline
32 & 0.074407 & 0.5101 & 0.306181 \tabularnewline
33 & -0.105243 & -0.7215 & 0.237084 \tabularnewline
34 & 0.088817 & 0.6089 & 0.272761 \tabularnewline
35 & -0.08724 & -0.5981 & 0.276327 \tabularnewline
36 & 0.061541 & 0.4219 & 0.337509 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67500&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.629949[/C][C]-4.3187[/C][C]4e-05[/C][/ROW]
[ROW][C]2[/C][C]0.077601[/C][C]0.532[/C][C]0.298613[/C][/ROW]
[ROW][C]3[/C][C]0.186879[/C][C]1.2812[/C][C]0.103208[/C][/ROW]
[ROW][C]4[/C][C]-0.190481[/C][C]-1.3059[/C][C]0.098976[/C][/ROW]
[ROW][C]5[/C][C]0.072634[/C][C]0.498[/C][C]0.310419[/C][/ROW]
[ROW][C]6[/C][C]0.064655[/C][C]0.4433[/C][C]0.329809[/C][/ROW]
[ROW][C]7[/C][C]-0.129494[/C][C]-0.8878[/C][C]0.189594[/C][/ROW]
[ROW][C]8[/C][C]0.074757[/C][C]0.5125[/C][C]0.305348[/C][/ROW]
[ROW][C]9[/C][C]0.041383[/C][C]0.2837[/C][C]0.38894[/C][/ROW]
[ROW][C]10[/C][C]-0.117001[/C][C]-0.8021[/C][C]0.213261[/C][/ROW]
[ROW][C]11[/C][C]0.117782[/C][C]0.8075[/C][C]0.211732[/C][/ROW]
[ROW][C]12[/C][C]-0.06748[/C][C]-0.4626[/C][C]0.322885[/C][/ROW]
[ROW][C]13[/C][C]0.029238[/C][C]0.2004[/C][C]0.420999[/C][/ROW]
[ROW][C]14[/C][C]-0.058093[/C][C]-0.3983[/C][C]0.346119[/C][/ROW]
[ROW][C]15[/C][C]0.109984[/C][C]0.754[/C][C]0.227301[/C][/ROW]
[ROW][C]16[/C][C]-0.123043[/C][C]-0.8435[/C][C]0.2016[/C][/ROW]
[ROW][C]17[/C][C]0.056994[/C][C]0.3907[/C][C]0.348882[/C][/ROW]
[ROW][C]18[/C][C]0.06578[/C][C]0.451[/C][C]0.327043[/C][/ROW]
[ROW][C]19[/C][C]-0.127466[/C][C]-0.8739[/C][C]0.193319[/C][/ROW]
[ROW][C]20[/C][C]0.068766[/C][C]0.4714[/C][C]0.319755[/C][/ROW]
[ROW][C]21[/C][C]0.082431[/C][C]0.5651[/C][C]0.28734[/C][/ROW]
[ROW][C]22[/C][C]-0.28277[/C][C]-1.9386[/C][C]0.029286[/C][/ROW]
[ROW][C]23[/C][C]0.393881[/C][C]2.7003[/C][C]0.0048[/C][/ROW]
[ROW][C]24[/C][C]-0.2787[/C][C]-1.9107[/C][C]0.031079[/C][/ROW]
[ROW][C]25[/C][C]0.021052[/C][C]0.1443[/C][C]0.442931[/C][/ROW]
[ROW][C]26[/C][C]0.130557[/C][C]0.8951[/C][C]0.18766[/C][/ROW]
[ROW][C]27[/C][C]-0.108244[/C][C]-0.7421[/C][C]0.230864[/C][/ROW]
[ROW][C]28[/C][C]0.027526[/C][C]0.1887[/C][C]0.425566[/C][/ROW]
[ROW][C]29[/C][C]0.02974[/C][C]0.2039[/C][C]0.419662[/C][/ROW]
[ROW][C]30[/C][C]-0.023859[/C][C]-0.1636[/C][C]0.435387[/C][/ROW]
[ROW][C]31[/C][C]-0.030837[/C][C]-0.2114[/C][C]0.416741[/C][/ROW]
[ROW][C]32[/C][C]0.074407[/C][C]0.5101[/C][C]0.306181[/C][/ROW]
[ROW][C]33[/C][C]-0.105243[/C][C]-0.7215[/C][C]0.237084[/C][/ROW]
[ROW][C]34[/C][C]0.088817[/C][C]0.6089[/C][C]0.272761[/C][/ROW]
[ROW][C]35[/C][C]-0.08724[/C][C]-0.5981[/C][C]0.276327[/C][/ROW]
[ROW][C]36[/C][C]0.061541[/C][C]0.4219[/C][C]0.337509[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67500&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67500&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.629949-4.31874e-05
20.0776010.5320.298613
30.1868791.28120.103208
4-0.190481-1.30590.098976
50.0726340.4980.310419
60.0646550.44330.329809
7-0.129494-0.88780.189594
80.0747570.51250.305348
90.0413830.28370.38894
10-0.117001-0.80210.213261
110.1177820.80750.211732
12-0.06748-0.46260.322885
130.0292380.20040.420999
14-0.058093-0.39830.346119
150.1099840.7540.227301
16-0.123043-0.84350.2016
170.0569940.39070.348882
180.065780.4510.327043
19-0.127466-0.87390.193319
200.0687660.47140.319755
210.0824310.56510.28734
22-0.28277-1.93860.029286
230.3938812.70030.0048
24-0.2787-1.91070.031079
250.0210520.14430.442931
260.1305570.89510.18766
27-0.108244-0.74210.230864
280.0275260.18870.425566
290.029740.20390.419662
30-0.023859-0.16360.435387
31-0.030837-0.21140.416741
320.0744070.51010.306181
33-0.105243-0.72150.237084
340.0888170.60890.272761
35-0.08724-0.59810.276327
360.0615410.42190.337509







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.629949-4.31874e-05
2-0.529267-3.62850.00035
3-0.165301-1.13320.131429
4-0.106078-0.72720.235345
5-0.081184-0.55660.290232
60.0497530.34110.367279
7-0.007089-0.04860.480721
8-0.052904-0.36270.359232
90.0396290.27170.393528
10-0.021486-0.14730.441763
110.0302570.20740.418285
12-0.006688-0.04590.481811
130.0613040.42030.338098
14-0.098625-0.67610.251133
150.0308510.21150.416704
16-0.037825-0.25930.398263
17-0.06264-0.42940.334783
180.0690840.47360.318984
190.0334660.22940.409765
20-0.035818-0.24560.403548
210.1298730.89040.188902
22-0.240634-1.64970.052836
230.1176890.80680.211913
240.0130090.08920.464658
25-0.008756-0.060.476194
26-0.092871-0.63670.263708
270.0027270.01870.492581
280.0181480.12440.450759
29-0.013626-0.09340.462984
300.0600650.41180.341184
310.0087460.060.476222
32-0.028544-0.19570.422849
33-0.058601-0.40170.344846
34-0.073536-0.50410.308261
35-0.142957-0.98010.166036
36-0.166002-1.13810.130433

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.629949 & -4.3187 & 4e-05 \tabularnewline
2 & -0.529267 & -3.6285 & 0.00035 \tabularnewline
3 & -0.165301 & -1.1332 & 0.131429 \tabularnewline
4 & -0.106078 & -0.7272 & 0.235345 \tabularnewline
5 & -0.081184 & -0.5566 & 0.290232 \tabularnewline
6 & 0.049753 & 0.3411 & 0.367279 \tabularnewline
7 & -0.007089 & -0.0486 & 0.480721 \tabularnewline
8 & -0.052904 & -0.3627 & 0.359232 \tabularnewline
9 & 0.039629 & 0.2717 & 0.393528 \tabularnewline
10 & -0.021486 & -0.1473 & 0.441763 \tabularnewline
11 & 0.030257 & 0.2074 & 0.418285 \tabularnewline
12 & -0.006688 & -0.0459 & 0.481811 \tabularnewline
13 & 0.061304 & 0.4203 & 0.338098 \tabularnewline
14 & -0.098625 & -0.6761 & 0.251133 \tabularnewline
15 & 0.030851 & 0.2115 & 0.416704 \tabularnewline
16 & -0.037825 & -0.2593 & 0.398263 \tabularnewline
17 & -0.06264 & -0.4294 & 0.334783 \tabularnewline
18 & 0.069084 & 0.4736 & 0.318984 \tabularnewline
19 & 0.033466 & 0.2294 & 0.409765 \tabularnewline
20 & -0.035818 & -0.2456 & 0.403548 \tabularnewline
21 & 0.129873 & 0.8904 & 0.188902 \tabularnewline
22 & -0.240634 & -1.6497 & 0.052836 \tabularnewline
23 & 0.117689 & 0.8068 & 0.211913 \tabularnewline
24 & 0.013009 & 0.0892 & 0.464658 \tabularnewline
25 & -0.008756 & -0.06 & 0.476194 \tabularnewline
26 & -0.092871 & -0.6367 & 0.263708 \tabularnewline
27 & 0.002727 & 0.0187 & 0.492581 \tabularnewline
28 & 0.018148 & 0.1244 & 0.450759 \tabularnewline
29 & -0.013626 & -0.0934 & 0.462984 \tabularnewline
30 & 0.060065 & 0.4118 & 0.341184 \tabularnewline
31 & 0.008746 & 0.06 & 0.476222 \tabularnewline
32 & -0.028544 & -0.1957 & 0.422849 \tabularnewline
33 & -0.058601 & -0.4017 & 0.344846 \tabularnewline
34 & -0.073536 & -0.5041 & 0.308261 \tabularnewline
35 & -0.142957 & -0.9801 & 0.166036 \tabularnewline
36 & -0.166002 & -1.1381 & 0.130433 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67500&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.629949[/C][C]-4.3187[/C][C]4e-05[/C][/ROW]
[ROW][C]2[/C][C]-0.529267[/C][C]-3.6285[/C][C]0.00035[/C][/ROW]
[ROW][C]3[/C][C]-0.165301[/C][C]-1.1332[/C][C]0.131429[/C][/ROW]
[ROW][C]4[/C][C]-0.106078[/C][C]-0.7272[/C][C]0.235345[/C][/ROW]
[ROW][C]5[/C][C]-0.081184[/C][C]-0.5566[/C][C]0.290232[/C][/ROW]
[ROW][C]6[/C][C]0.049753[/C][C]0.3411[/C][C]0.367279[/C][/ROW]
[ROW][C]7[/C][C]-0.007089[/C][C]-0.0486[/C][C]0.480721[/C][/ROW]
[ROW][C]8[/C][C]-0.052904[/C][C]-0.3627[/C][C]0.359232[/C][/ROW]
[ROW][C]9[/C][C]0.039629[/C][C]0.2717[/C][C]0.393528[/C][/ROW]
[ROW][C]10[/C][C]-0.021486[/C][C]-0.1473[/C][C]0.441763[/C][/ROW]
[ROW][C]11[/C][C]0.030257[/C][C]0.2074[/C][C]0.418285[/C][/ROW]
[ROW][C]12[/C][C]-0.006688[/C][C]-0.0459[/C][C]0.481811[/C][/ROW]
[ROW][C]13[/C][C]0.061304[/C][C]0.4203[/C][C]0.338098[/C][/ROW]
[ROW][C]14[/C][C]-0.098625[/C][C]-0.6761[/C][C]0.251133[/C][/ROW]
[ROW][C]15[/C][C]0.030851[/C][C]0.2115[/C][C]0.416704[/C][/ROW]
[ROW][C]16[/C][C]-0.037825[/C][C]-0.2593[/C][C]0.398263[/C][/ROW]
[ROW][C]17[/C][C]-0.06264[/C][C]-0.4294[/C][C]0.334783[/C][/ROW]
[ROW][C]18[/C][C]0.069084[/C][C]0.4736[/C][C]0.318984[/C][/ROW]
[ROW][C]19[/C][C]0.033466[/C][C]0.2294[/C][C]0.409765[/C][/ROW]
[ROW][C]20[/C][C]-0.035818[/C][C]-0.2456[/C][C]0.403548[/C][/ROW]
[ROW][C]21[/C][C]0.129873[/C][C]0.8904[/C][C]0.188902[/C][/ROW]
[ROW][C]22[/C][C]-0.240634[/C][C]-1.6497[/C][C]0.052836[/C][/ROW]
[ROW][C]23[/C][C]0.117689[/C][C]0.8068[/C][C]0.211913[/C][/ROW]
[ROW][C]24[/C][C]0.013009[/C][C]0.0892[/C][C]0.464658[/C][/ROW]
[ROW][C]25[/C][C]-0.008756[/C][C]-0.06[/C][C]0.476194[/C][/ROW]
[ROW][C]26[/C][C]-0.092871[/C][C]-0.6367[/C][C]0.263708[/C][/ROW]
[ROW][C]27[/C][C]0.002727[/C][C]0.0187[/C][C]0.492581[/C][/ROW]
[ROW][C]28[/C][C]0.018148[/C][C]0.1244[/C][C]0.450759[/C][/ROW]
[ROW][C]29[/C][C]-0.013626[/C][C]-0.0934[/C][C]0.462984[/C][/ROW]
[ROW][C]30[/C][C]0.060065[/C][C]0.4118[/C][C]0.341184[/C][/ROW]
[ROW][C]31[/C][C]0.008746[/C][C]0.06[/C][C]0.476222[/C][/ROW]
[ROW][C]32[/C][C]-0.028544[/C][C]-0.1957[/C][C]0.422849[/C][/ROW]
[ROW][C]33[/C][C]-0.058601[/C][C]-0.4017[/C][C]0.344846[/C][/ROW]
[ROW][C]34[/C][C]-0.073536[/C][C]-0.5041[/C][C]0.308261[/C][/ROW]
[ROW][C]35[/C][C]-0.142957[/C][C]-0.9801[/C][C]0.166036[/C][/ROW]
[ROW][C]36[/C][C]-0.166002[/C][C]-1.1381[/C][C]0.130433[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67500&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67500&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.629949-4.31874e-05
2-0.529267-3.62850.00035
3-0.165301-1.13320.131429
4-0.106078-0.72720.235345
5-0.081184-0.55660.290232
60.0497530.34110.367279
7-0.007089-0.04860.480721
8-0.052904-0.36270.359232
90.0396290.27170.393528
10-0.021486-0.14730.441763
110.0302570.20740.418285
12-0.006688-0.04590.481811
130.0613040.42030.338098
14-0.098625-0.67610.251133
150.0308510.21150.416704
16-0.037825-0.25930.398263
17-0.06264-0.42940.334783
180.0690840.47360.318984
190.0334660.22940.409765
20-0.035818-0.24560.403548
210.1298730.89040.188902
22-0.240634-1.64970.052836
230.1176890.80680.211913
240.0130090.08920.464658
25-0.008756-0.060.476194
26-0.092871-0.63670.263708
270.0027270.01870.492581
280.0181480.12440.450759
29-0.013626-0.09340.462984
300.0600650.41180.341184
310.0087460.060.476222
32-0.028544-0.19570.422849
33-0.058601-0.40170.344846
34-0.073536-0.50410.308261
35-0.142957-0.98010.166036
36-0.166002-1.13810.130433



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