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 03:25:35 -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/t1259231222yjavczu6vzdsneu.htm/, Retrieved Mon, 29 Apr 2024 01:33:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59787, Retrieved Mon, 29 Apr 2024 01:33:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact120
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-11-26 10:25:35] [c5f9f441970441f2f938cd843072158d] [Current]
Feedback Forum

Post a new message
Dataseries X:
14.9
18.6
19.1
18.8
18.2
18
19
20.7
21.2
20.7
19.6
18.6
18.7
23.8
24.9
24.8
23.8
22.3
21.7
20.7
19.7
18.4
17.4
17
18
23.8
25.5
25.6
23.7
22
21.3
20.7
20.4
20.3
20.4
19.8
19.5
23.1
23.5
23.5
22.9
21.9
21.5
20.5
20.2
19.4
19.2
18.8
18.8
22.6
23.3
23
21.4
19.9
18.8
18.6
18.4
18.6
19.9
19.2
18.4




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59787&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.8874426.21210
20.6472954.53111.9e-05
30.3644372.55110.006956
40.1132680.79290.215836
5-0.053607-0.37530.354547
6-0.12095-0.84670.200653
7-0.120366-0.84260.201784
8-0.083083-0.58160.281758
9-0.059661-0.41760.339022
10-0.064629-0.45240.326487
11-0.086214-0.60350.27448
12-0.104208-0.72950.234597
13-0.085922-0.60150.275156
14-0.030561-0.21390.415746
150.0455080.31860.375709
160.1198230.83880.202838
170.1772711.24090.110276
180.184411.29090.101403
190.1480881.03660.152502
200.089930.62950.26597
210.0332750.23290.408395
22-0.016825-0.11780.453363
23-0.059911-0.41940.338386
24-0.087133-0.60990.272364
25-0.096777-0.67740.250657
26-0.081872-0.57310.284597
27-0.062166-0.43520.332678
28-0.049349-0.34540.365621
29-0.052939-0.37060.356276
30-0.054693-0.38280.351744
31-0.047428-0.3320.370654
32-0.03745-0.26210.397153
33-0.041458-0.29020.386442
34-0.055695-0.38990.349164
35-0.088677-0.62070.268823
36-0.141366-0.98960.163625

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.887442 & 6.2121 & 0 \tabularnewline
2 & 0.647295 & 4.5311 & 1.9e-05 \tabularnewline
3 & 0.364437 & 2.5511 & 0.006956 \tabularnewline
4 & 0.113268 & 0.7929 & 0.215836 \tabularnewline
5 & -0.053607 & -0.3753 & 0.354547 \tabularnewline
6 & -0.12095 & -0.8467 & 0.200653 \tabularnewline
7 & -0.120366 & -0.8426 & 0.201784 \tabularnewline
8 & -0.083083 & -0.5816 & 0.281758 \tabularnewline
9 & -0.059661 & -0.4176 & 0.339022 \tabularnewline
10 & -0.064629 & -0.4524 & 0.326487 \tabularnewline
11 & -0.086214 & -0.6035 & 0.27448 \tabularnewline
12 & -0.104208 & -0.7295 & 0.234597 \tabularnewline
13 & -0.085922 & -0.6015 & 0.275156 \tabularnewline
14 & -0.030561 & -0.2139 & 0.415746 \tabularnewline
15 & 0.045508 & 0.3186 & 0.375709 \tabularnewline
16 & 0.119823 & 0.8388 & 0.202838 \tabularnewline
17 & 0.177271 & 1.2409 & 0.110276 \tabularnewline
18 & 0.18441 & 1.2909 & 0.101403 \tabularnewline
19 & 0.148088 & 1.0366 & 0.152502 \tabularnewline
20 & 0.08993 & 0.6295 & 0.26597 \tabularnewline
21 & 0.033275 & 0.2329 & 0.408395 \tabularnewline
22 & -0.016825 & -0.1178 & 0.453363 \tabularnewline
23 & -0.059911 & -0.4194 & 0.338386 \tabularnewline
24 & -0.087133 & -0.6099 & 0.272364 \tabularnewline
25 & -0.096777 & -0.6774 & 0.250657 \tabularnewline
26 & -0.081872 & -0.5731 & 0.284597 \tabularnewline
27 & -0.062166 & -0.4352 & 0.332678 \tabularnewline
28 & -0.049349 & -0.3454 & 0.365621 \tabularnewline
29 & -0.052939 & -0.3706 & 0.356276 \tabularnewline
30 & -0.054693 & -0.3828 & 0.351744 \tabularnewline
31 & -0.047428 & -0.332 & 0.370654 \tabularnewline
32 & -0.03745 & -0.2621 & 0.397153 \tabularnewline
33 & -0.041458 & -0.2902 & 0.386442 \tabularnewline
34 & -0.055695 & -0.3899 & 0.349164 \tabularnewline
35 & -0.088677 & -0.6207 & 0.268823 \tabularnewline
36 & -0.141366 & -0.9896 & 0.163625 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59787&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.887442[/C][C]6.2121[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.647295[/C][C]4.5311[/C][C]1.9e-05[/C][/ROW]
[ROW][C]3[/C][C]0.364437[/C][C]2.5511[/C][C]0.006956[/C][/ROW]
[ROW][C]4[/C][C]0.113268[/C][C]0.7929[/C][C]0.215836[/C][/ROW]
[ROW][C]5[/C][C]-0.053607[/C][C]-0.3753[/C][C]0.354547[/C][/ROW]
[ROW][C]6[/C][C]-0.12095[/C][C]-0.8467[/C][C]0.200653[/C][/ROW]
[ROW][C]7[/C][C]-0.120366[/C][C]-0.8426[/C][C]0.201784[/C][/ROW]
[ROW][C]8[/C][C]-0.083083[/C][C]-0.5816[/C][C]0.281758[/C][/ROW]
[ROW][C]9[/C][C]-0.059661[/C][C]-0.4176[/C][C]0.339022[/C][/ROW]
[ROW][C]10[/C][C]-0.064629[/C][C]-0.4524[/C][C]0.326487[/C][/ROW]
[ROW][C]11[/C][C]-0.086214[/C][C]-0.6035[/C][C]0.27448[/C][/ROW]
[ROW][C]12[/C][C]-0.104208[/C][C]-0.7295[/C][C]0.234597[/C][/ROW]
[ROW][C]13[/C][C]-0.085922[/C][C]-0.6015[/C][C]0.275156[/C][/ROW]
[ROW][C]14[/C][C]-0.030561[/C][C]-0.2139[/C][C]0.415746[/C][/ROW]
[ROW][C]15[/C][C]0.045508[/C][C]0.3186[/C][C]0.375709[/C][/ROW]
[ROW][C]16[/C][C]0.119823[/C][C]0.8388[/C][C]0.202838[/C][/ROW]
[ROW][C]17[/C][C]0.177271[/C][C]1.2409[/C][C]0.110276[/C][/ROW]
[ROW][C]18[/C][C]0.18441[/C][C]1.2909[/C][C]0.101403[/C][/ROW]
[ROW][C]19[/C][C]0.148088[/C][C]1.0366[/C][C]0.152502[/C][/ROW]
[ROW][C]20[/C][C]0.08993[/C][C]0.6295[/C][C]0.26597[/C][/ROW]
[ROW][C]21[/C][C]0.033275[/C][C]0.2329[/C][C]0.408395[/C][/ROW]
[ROW][C]22[/C][C]-0.016825[/C][C]-0.1178[/C][C]0.453363[/C][/ROW]
[ROW][C]23[/C][C]-0.059911[/C][C]-0.4194[/C][C]0.338386[/C][/ROW]
[ROW][C]24[/C][C]-0.087133[/C][C]-0.6099[/C][C]0.272364[/C][/ROW]
[ROW][C]25[/C][C]-0.096777[/C][C]-0.6774[/C][C]0.250657[/C][/ROW]
[ROW][C]26[/C][C]-0.081872[/C][C]-0.5731[/C][C]0.284597[/C][/ROW]
[ROW][C]27[/C][C]-0.062166[/C][C]-0.4352[/C][C]0.332678[/C][/ROW]
[ROW][C]28[/C][C]-0.049349[/C][C]-0.3454[/C][C]0.365621[/C][/ROW]
[ROW][C]29[/C][C]-0.052939[/C][C]-0.3706[/C][C]0.356276[/C][/ROW]
[ROW][C]30[/C][C]-0.054693[/C][C]-0.3828[/C][C]0.351744[/C][/ROW]
[ROW][C]31[/C][C]-0.047428[/C][C]-0.332[/C][C]0.370654[/C][/ROW]
[ROW][C]32[/C][C]-0.03745[/C][C]-0.2621[/C][C]0.397153[/C][/ROW]
[ROW][C]33[/C][C]-0.041458[/C][C]-0.2902[/C][C]0.386442[/C][/ROW]
[ROW][C]34[/C][C]-0.055695[/C][C]-0.3899[/C][C]0.349164[/C][/ROW]
[ROW][C]35[/C][C]-0.088677[/C][C]-0.6207[/C][C]0.268823[/C][/ROW]
[ROW][C]36[/C][C]-0.141366[/C][C]-0.9896[/C][C]0.163625[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59787&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59787&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.8874426.21210
20.6472954.53111.9e-05
30.3644372.55110.006956
40.1132680.79290.215836
5-0.053607-0.37530.354547
6-0.12095-0.84670.200653
7-0.120366-0.84260.201784
8-0.083083-0.58160.281758
9-0.059661-0.41760.339022
10-0.064629-0.45240.326487
11-0.086214-0.60350.27448
12-0.104208-0.72950.234597
13-0.085922-0.60150.275156
14-0.030561-0.21390.415746
150.0455080.31860.375709
160.1198230.83880.202838
170.1772711.24090.110276
180.184411.29090.101403
190.1480881.03660.152502
200.089930.62950.26597
210.0332750.23290.408395
22-0.016825-0.11780.453363
23-0.059911-0.41940.338386
24-0.087133-0.60990.272364
25-0.096777-0.67740.250657
26-0.081872-0.57310.284597
27-0.062166-0.43520.332678
28-0.049349-0.34540.365621
29-0.052939-0.37060.356276
30-0.054693-0.38280.351744
31-0.047428-0.3320.370654
32-0.03745-0.26210.397153
33-0.041458-0.29020.386442
34-0.055695-0.38990.349164
35-0.088677-0.62070.268823
36-0.141366-0.98960.163625







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8874426.21210
2-0.6602-4.62141.4e-05
3-0.027974-0.19580.422783
40.0714230.50.309669
50.1076910.75380.227278
60.0466160.32630.372789
7-0.116589-0.81610.209189
80.0140230.09820.461102
9-0.177744-1.24420.10967
100.029280.2050.419226
110.0595680.4170.339259
120.0306950.21490.415382
130.1601681.12120.133838
14-0.063707-0.44590.328799
150.0196440.13750.445596
16-0.003694-0.02590.489739
170.0942280.65960.256301
18-0.144262-1.00980.158767
190.0428380.29990.382774
200.0688640.4820.31596
21-0.026901-0.18830.425707
22-0.101397-0.70980.240604
23-0.098164-0.68710.247615
240.1252460.87670.192458
25-0.012328-0.08630.46579
260.1372250.96060.170741
27-0.1729-1.21030.115985
28-0.047772-0.33440.369751
29-0.042826-0.29980.382807
300.1124770.78730.217439
310.0650880.45560.32534
32-0.159955-1.11970.134153
33-0.084775-0.59340.277812
34-0.100731-0.70510.242038
35-0.049386-0.34570.365523
36-0.071556-0.50090.309344

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.887442 & 6.2121 & 0 \tabularnewline
2 & -0.6602 & -4.6214 & 1.4e-05 \tabularnewline
3 & -0.027974 & -0.1958 & 0.422783 \tabularnewline
4 & 0.071423 & 0.5 & 0.309669 \tabularnewline
5 & 0.107691 & 0.7538 & 0.227278 \tabularnewline
6 & 0.046616 & 0.3263 & 0.372789 \tabularnewline
7 & -0.116589 & -0.8161 & 0.209189 \tabularnewline
8 & 0.014023 & 0.0982 & 0.461102 \tabularnewline
9 & -0.177744 & -1.2442 & 0.10967 \tabularnewline
10 & 0.02928 & 0.205 & 0.419226 \tabularnewline
11 & 0.059568 & 0.417 & 0.339259 \tabularnewline
12 & 0.030695 & 0.2149 & 0.415382 \tabularnewline
13 & 0.160168 & 1.1212 & 0.133838 \tabularnewline
14 & -0.063707 & -0.4459 & 0.328799 \tabularnewline
15 & 0.019644 & 0.1375 & 0.445596 \tabularnewline
16 & -0.003694 & -0.0259 & 0.489739 \tabularnewline
17 & 0.094228 & 0.6596 & 0.256301 \tabularnewline
18 & -0.144262 & -1.0098 & 0.158767 \tabularnewline
19 & 0.042838 & 0.2999 & 0.382774 \tabularnewline
20 & 0.068864 & 0.482 & 0.31596 \tabularnewline
21 & -0.026901 & -0.1883 & 0.425707 \tabularnewline
22 & -0.101397 & -0.7098 & 0.240604 \tabularnewline
23 & -0.098164 & -0.6871 & 0.247615 \tabularnewline
24 & 0.125246 & 0.8767 & 0.192458 \tabularnewline
25 & -0.012328 & -0.0863 & 0.46579 \tabularnewline
26 & 0.137225 & 0.9606 & 0.170741 \tabularnewline
27 & -0.1729 & -1.2103 & 0.115985 \tabularnewline
28 & -0.047772 & -0.3344 & 0.369751 \tabularnewline
29 & -0.042826 & -0.2998 & 0.382807 \tabularnewline
30 & 0.112477 & 0.7873 & 0.217439 \tabularnewline
31 & 0.065088 & 0.4556 & 0.32534 \tabularnewline
32 & -0.159955 & -1.1197 & 0.134153 \tabularnewline
33 & -0.084775 & -0.5934 & 0.277812 \tabularnewline
34 & -0.100731 & -0.7051 & 0.242038 \tabularnewline
35 & -0.049386 & -0.3457 & 0.365523 \tabularnewline
36 & -0.071556 & -0.5009 & 0.309344 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59787&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.887442[/C][C]6.2121[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.6602[/C][C]-4.6214[/C][C]1.4e-05[/C][/ROW]
[ROW][C]3[/C][C]-0.027974[/C][C]-0.1958[/C][C]0.422783[/C][/ROW]
[ROW][C]4[/C][C]0.071423[/C][C]0.5[/C][C]0.309669[/C][/ROW]
[ROW][C]5[/C][C]0.107691[/C][C]0.7538[/C][C]0.227278[/C][/ROW]
[ROW][C]6[/C][C]0.046616[/C][C]0.3263[/C][C]0.372789[/C][/ROW]
[ROW][C]7[/C][C]-0.116589[/C][C]-0.8161[/C][C]0.209189[/C][/ROW]
[ROW][C]8[/C][C]0.014023[/C][C]0.0982[/C][C]0.461102[/C][/ROW]
[ROW][C]9[/C][C]-0.177744[/C][C]-1.2442[/C][C]0.10967[/C][/ROW]
[ROW][C]10[/C][C]0.02928[/C][C]0.205[/C][C]0.419226[/C][/ROW]
[ROW][C]11[/C][C]0.059568[/C][C]0.417[/C][C]0.339259[/C][/ROW]
[ROW][C]12[/C][C]0.030695[/C][C]0.2149[/C][C]0.415382[/C][/ROW]
[ROW][C]13[/C][C]0.160168[/C][C]1.1212[/C][C]0.133838[/C][/ROW]
[ROW][C]14[/C][C]-0.063707[/C][C]-0.4459[/C][C]0.328799[/C][/ROW]
[ROW][C]15[/C][C]0.019644[/C][C]0.1375[/C][C]0.445596[/C][/ROW]
[ROW][C]16[/C][C]-0.003694[/C][C]-0.0259[/C][C]0.489739[/C][/ROW]
[ROW][C]17[/C][C]0.094228[/C][C]0.6596[/C][C]0.256301[/C][/ROW]
[ROW][C]18[/C][C]-0.144262[/C][C]-1.0098[/C][C]0.158767[/C][/ROW]
[ROW][C]19[/C][C]0.042838[/C][C]0.2999[/C][C]0.382774[/C][/ROW]
[ROW][C]20[/C][C]0.068864[/C][C]0.482[/C][C]0.31596[/C][/ROW]
[ROW][C]21[/C][C]-0.026901[/C][C]-0.1883[/C][C]0.425707[/C][/ROW]
[ROW][C]22[/C][C]-0.101397[/C][C]-0.7098[/C][C]0.240604[/C][/ROW]
[ROW][C]23[/C][C]-0.098164[/C][C]-0.6871[/C][C]0.247615[/C][/ROW]
[ROW][C]24[/C][C]0.125246[/C][C]0.8767[/C][C]0.192458[/C][/ROW]
[ROW][C]25[/C][C]-0.012328[/C][C]-0.0863[/C][C]0.46579[/C][/ROW]
[ROW][C]26[/C][C]0.137225[/C][C]0.9606[/C][C]0.170741[/C][/ROW]
[ROW][C]27[/C][C]-0.1729[/C][C]-1.2103[/C][C]0.115985[/C][/ROW]
[ROW][C]28[/C][C]-0.047772[/C][C]-0.3344[/C][C]0.369751[/C][/ROW]
[ROW][C]29[/C][C]-0.042826[/C][C]-0.2998[/C][C]0.382807[/C][/ROW]
[ROW][C]30[/C][C]0.112477[/C][C]0.7873[/C][C]0.217439[/C][/ROW]
[ROW][C]31[/C][C]0.065088[/C][C]0.4556[/C][C]0.32534[/C][/ROW]
[ROW][C]32[/C][C]-0.159955[/C][C]-1.1197[/C][C]0.134153[/C][/ROW]
[ROW][C]33[/C][C]-0.084775[/C][C]-0.5934[/C][C]0.277812[/C][/ROW]
[ROW][C]34[/C][C]-0.100731[/C][C]-0.7051[/C][C]0.242038[/C][/ROW]
[ROW][C]35[/C][C]-0.049386[/C][C]-0.3457[/C][C]0.365523[/C][/ROW]
[ROW][C]36[/C][C]-0.071556[/C][C]-0.5009[/C][C]0.309344[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59787&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59787&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.8874426.21210
2-0.6602-4.62141.4e-05
3-0.027974-0.19580.422783
40.0714230.50.309669
50.1076910.75380.227278
60.0466160.32630.372789
7-0.116589-0.81610.209189
80.0140230.09820.461102
9-0.177744-1.24420.10967
100.029280.2050.419226
110.0595680.4170.339259
120.0306950.21490.415382
130.1601681.12120.133838
14-0.063707-0.44590.328799
150.0196440.13750.445596
16-0.003694-0.02590.489739
170.0942280.65960.256301
18-0.144262-1.00980.158767
190.0428380.29990.382774
200.0688640.4820.31596
21-0.026901-0.18830.425707
22-0.101397-0.70980.240604
23-0.098164-0.68710.247615
240.1252460.87670.192458
25-0.012328-0.08630.46579
260.1372250.96060.170741
27-0.1729-1.21030.115985
28-0.047772-0.33440.369751
29-0.042826-0.29980.382807
300.1124770.78730.217439
310.0650880.45560.32534
32-0.159955-1.11970.134153
33-0.084775-0.59340.277812
34-0.100731-0.70510.242038
35-0.049386-0.34570.365523
36-0.071556-0.50090.309344



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