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 computationFri, 04 Dec 2009 12:44:00 -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/04/t125995594241s3k0a5g1htajj.htm/, Retrieved Sat, 27 Apr 2024 23:45:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64095, Retrieved Sat, 27 Apr 2024 23:45:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsws9.6
Estimated Impact138
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:48:46] [b98453cac15ba1066b407e146608df68]
-    D    [(Partial) Autocorrelation Function] [WS 9] [2009-12-02 18:29:08] [3e19a07d230ba260a720e0e03e0f40f2]
-    D        [(Partial) Autocorrelation Function] [Workshop 9] [2009-12-04 19:44:00] [682632737e024f9e62885141c5f654cd] [Current]
-   P           [(Partial) Autocorrelation Function] [WS 9 verbetering d=2] [2009-12-10 19:05:07] [4637f404ac59dfaba4ecf14efa20abbd]
Feedback Forum

Post a new message
Dataseries X:
126.51
131.02
136.51
138.04
132.92
129.61
122.96
124.04
121.29
124.56
118.53
113.14
114.15
122.17
129.23
131.19
129.12
128.28
126.83
138.13
140.52
146.83
135.14
131.84
125.7
128.98
133.25
136.76
133.24
128.54
121.08
120.23
119.08
125.75
126.89
126.6
121.89
123.44
126.46
129.49
127.78
125.29
119.02
119.96
122.86
131.89
132.73
135.01
136.71
142.73
144.43
144.93
138.75
130.22
122.19
128.4
140.43
153.5
149.33
142.97




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 & 2 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64095&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]2 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=64095&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64095&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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.490283.36120.000775
20.0731790.50170.309114
3-0.304336-2.08640.021196
4-0.212053-1.45380.076329
5-0.094428-0.64740.260273
60.1054710.72310.23661
70.2298671.57590.06088
80.0804790.55170.291872
9-0.070868-0.48580.314666
10-0.268878-1.84330.035795
11-0.237755-1.630.054897
12-0.279008-1.91280.03094
13-0.074327-0.50960.306373
140.0370480.2540.400307
150.0998430.68450.248514
16-0.036187-0.24810.402574
17-0.177753-1.21860.114536
18-0.255901-1.75440.042942
19-0.192361-1.31880.096819
200.0134110.09190.463569
210.2342661.6060.057482
220.239491.64190.053647
230.0503490.34520.36575
24-0.139653-0.95740.171629
25-0.197226-1.35210.091405
26-0.04235-0.29030.386419
270.1076260.73780.232139
280.2563691.75760.042666
290.2090851.43340.07918
300.089710.6150.270754
31-0.03638-0.24940.402066
32-0.09468-0.64910.259718
33-0.069217-0.47450.318661
34-0.036809-0.25230.400936
350.0328830.22540.411311
360.0816060.55950.289251

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.49028 & 3.3612 & 0.000775 \tabularnewline
2 & 0.073179 & 0.5017 & 0.309114 \tabularnewline
3 & -0.304336 & -2.0864 & 0.021196 \tabularnewline
4 & -0.212053 & -1.4538 & 0.076329 \tabularnewline
5 & -0.094428 & -0.6474 & 0.260273 \tabularnewline
6 & 0.105471 & 0.7231 & 0.23661 \tabularnewline
7 & 0.229867 & 1.5759 & 0.06088 \tabularnewline
8 & 0.080479 & 0.5517 & 0.291872 \tabularnewline
9 & -0.070868 & -0.4858 & 0.314666 \tabularnewline
10 & -0.268878 & -1.8433 & 0.035795 \tabularnewline
11 & -0.237755 & -1.63 & 0.054897 \tabularnewline
12 & -0.279008 & -1.9128 & 0.03094 \tabularnewline
13 & -0.074327 & -0.5096 & 0.306373 \tabularnewline
14 & 0.037048 & 0.254 & 0.400307 \tabularnewline
15 & 0.099843 & 0.6845 & 0.248514 \tabularnewline
16 & -0.036187 & -0.2481 & 0.402574 \tabularnewline
17 & -0.177753 & -1.2186 & 0.114536 \tabularnewline
18 & -0.255901 & -1.7544 & 0.042942 \tabularnewline
19 & -0.192361 & -1.3188 & 0.096819 \tabularnewline
20 & 0.013411 & 0.0919 & 0.463569 \tabularnewline
21 & 0.234266 & 1.606 & 0.057482 \tabularnewline
22 & 0.23949 & 1.6419 & 0.053647 \tabularnewline
23 & 0.050349 & 0.3452 & 0.36575 \tabularnewline
24 & -0.139653 & -0.9574 & 0.171629 \tabularnewline
25 & -0.197226 & -1.3521 & 0.091405 \tabularnewline
26 & -0.04235 & -0.2903 & 0.386419 \tabularnewline
27 & 0.107626 & 0.7378 & 0.232139 \tabularnewline
28 & 0.256369 & 1.7576 & 0.042666 \tabularnewline
29 & 0.209085 & 1.4334 & 0.07918 \tabularnewline
30 & 0.08971 & 0.615 & 0.270754 \tabularnewline
31 & -0.03638 & -0.2494 & 0.402066 \tabularnewline
32 & -0.09468 & -0.6491 & 0.259718 \tabularnewline
33 & -0.069217 & -0.4745 & 0.318661 \tabularnewline
34 & -0.036809 & -0.2523 & 0.400936 \tabularnewline
35 & 0.032883 & 0.2254 & 0.411311 \tabularnewline
36 & 0.081606 & 0.5595 & 0.289251 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64095&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.49028[/C][C]3.3612[/C][C]0.000775[/C][/ROW]
[ROW][C]2[/C][C]0.073179[/C][C]0.5017[/C][C]0.309114[/C][/ROW]
[ROW][C]3[/C][C]-0.304336[/C][C]-2.0864[/C][C]0.021196[/C][/ROW]
[ROW][C]4[/C][C]-0.212053[/C][C]-1.4538[/C][C]0.076329[/C][/ROW]
[ROW][C]5[/C][C]-0.094428[/C][C]-0.6474[/C][C]0.260273[/C][/ROW]
[ROW][C]6[/C][C]0.105471[/C][C]0.7231[/C][C]0.23661[/C][/ROW]
[ROW][C]7[/C][C]0.229867[/C][C]1.5759[/C][C]0.06088[/C][/ROW]
[ROW][C]8[/C][C]0.080479[/C][C]0.5517[/C][C]0.291872[/C][/ROW]
[ROW][C]9[/C][C]-0.070868[/C][C]-0.4858[/C][C]0.314666[/C][/ROW]
[ROW][C]10[/C][C]-0.268878[/C][C]-1.8433[/C][C]0.035795[/C][/ROW]
[ROW][C]11[/C][C]-0.237755[/C][C]-1.63[/C][C]0.054897[/C][/ROW]
[ROW][C]12[/C][C]-0.279008[/C][C]-1.9128[/C][C]0.03094[/C][/ROW]
[ROW][C]13[/C][C]-0.074327[/C][C]-0.5096[/C][C]0.306373[/C][/ROW]
[ROW][C]14[/C][C]0.037048[/C][C]0.254[/C][C]0.400307[/C][/ROW]
[ROW][C]15[/C][C]0.099843[/C][C]0.6845[/C][C]0.248514[/C][/ROW]
[ROW][C]16[/C][C]-0.036187[/C][C]-0.2481[/C][C]0.402574[/C][/ROW]
[ROW][C]17[/C][C]-0.177753[/C][C]-1.2186[/C][C]0.114536[/C][/ROW]
[ROW][C]18[/C][C]-0.255901[/C][C]-1.7544[/C][C]0.042942[/C][/ROW]
[ROW][C]19[/C][C]-0.192361[/C][C]-1.3188[/C][C]0.096819[/C][/ROW]
[ROW][C]20[/C][C]0.013411[/C][C]0.0919[/C][C]0.463569[/C][/ROW]
[ROW][C]21[/C][C]0.234266[/C][C]1.606[/C][C]0.057482[/C][/ROW]
[ROW][C]22[/C][C]0.23949[/C][C]1.6419[/C][C]0.053647[/C][/ROW]
[ROW][C]23[/C][C]0.050349[/C][C]0.3452[/C][C]0.36575[/C][/ROW]
[ROW][C]24[/C][C]-0.139653[/C][C]-0.9574[/C][C]0.171629[/C][/ROW]
[ROW][C]25[/C][C]-0.197226[/C][C]-1.3521[/C][C]0.091405[/C][/ROW]
[ROW][C]26[/C][C]-0.04235[/C][C]-0.2903[/C][C]0.386419[/C][/ROW]
[ROW][C]27[/C][C]0.107626[/C][C]0.7378[/C][C]0.232139[/C][/ROW]
[ROW][C]28[/C][C]0.256369[/C][C]1.7576[/C][C]0.042666[/C][/ROW]
[ROW][C]29[/C][C]0.209085[/C][C]1.4334[/C][C]0.07918[/C][/ROW]
[ROW][C]30[/C][C]0.08971[/C][C]0.615[/C][C]0.270754[/C][/ROW]
[ROW][C]31[/C][C]-0.03638[/C][C]-0.2494[/C][C]0.402066[/C][/ROW]
[ROW][C]32[/C][C]-0.09468[/C][C]-0.6491[/C][C]0.259718[/C][/ROW]
[ROW][C]33[/C][C]-0.069217[/C][C]-0.4745[/C][C]0.318661[/C][/ROW]
[ROW][C]34[/C][C]-0.036809[/C][C]-0.2523[/C][C]0.400936[/C][/ROW]
[ROW][C]35[/C][C]0.032883[/C][C]0.2254[/C][C]0.411311[/C][/ROW]
[ROW][C]36[/C][C]0.081606[/C][C]0.5595[/C][C]0.289251[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64095&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64095&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.490283.36120.000775
20.0731790.50170.309114
3-0.304336-2.08640.021196
4-0.212053-1.45380.076329
5-0.094428-0.64740.260273
60.1054710.72310.23661
70.2298671.57590.06088
80.0804790.55170.291872
9-0.070868-0.48580.314666
10-0.268878-1.84330.035795
11-0.237755-1.630.054897
12-0.279008-1.91280.03094
13-0.074327-0.50960.306373
140.0370480.2540.400307
150.0998430.68450.248514
16-0.036187-0.24810.402574
17-0.177753-1.21860.114536
18-0.255901-1.75440.042942
19-0.192361-1.31880.096819
200.0134110.09190.463569
210.2342661.6060.057482
220.239491.64190.053647
230.0503490.34520.36575
24-0.139653-0.95740.171629
25-0.197226-1.35210.091405
26-0.04235-0.29030.386419
270.1076260.73780.232139
280.2563691.75760.042666
290.2090851.43340.07918
300.089710.6150.270754
31-0.03638-0.24940.402066
32-0.09468-0.64910.259718
33-0.069217-0.47450.318661
34-0.036809-0.25230.400936
350.0328830.22540.411311
360.0816060.55950.289251







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.490283.36120.000775
2-0.220103-1.50890.069003
3-0.332306-2.27820.013653
40.1745281.19650.11875
5-0.04923-0.33750.368619
60.053320.36550.358174
70.1926981.32110.096437
8-0.240555-1.64920.052892
90.0104550.07170.471581
10-0.120907-0.82890.205676
11-0.116447-0.79830.21435
12-0.202528-1.38850.085771
130.0565730.38780.349942
14-0.036491-0.25020.401772
15-0.089313-0.61230.271646
16-0.069841-0.47880.317147
17-0.14148-0.96990.168522
18-0.156959-1.07610.143698
190.0035860.02460.490245
20-0.032128-0.22030.413312
210.1104680.75730.226317
22-0.137678-0.94390.17503
23-0.111368-0.76350.224491
24-0.089879-0.61620.270375
25-0.099979-0.68540.248223
260.0697510.47820.317366
27-0.078926-0.54110.295502
28-0.005624-0.03860.484705
29-0.01228-0.08420.466633
30-0.103462-0.70930.240821
310.072790.4990.310045
32-0.102475-0.70250.242906
33-0.001451-0.010.496051
34-0.100657-0.69010.246773
35-0.133388-0.91450.182571
360.0485960.33320.370249

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.49028 & 3.3612 & 0.000775 \tabularnewline
2 & -0.220103 & -1.5089 & 0.069003 \tabularnewline
3 & -0.332306 & -2.2782 & 0.013653 \tabularnewline
4 & 0.174528 & 1.1965 & 0.11875 \tabularnewline
5 & -0.04923 & -0.3375 & 0.368619 \tabularnewline
6 & 0.05332 & 0.3655 & 0.358174 \tabularnewline
7 & 0.192698 & 1.3211 & 0.096437 \tabularnewline
8 & -0.240555 & -1.6492 & 0.052892 \tabularnewline
9 & 0.010455 & 0.0717 & 0.471581 \tabularnewline
10 & -0.120907 & -0.8289 & 0.205676 \tabularnewline
11 & -0.116447 & -0.7983 & 0.21435 \tabularnewline
12 & -0.202528 & -1.3885 & 0.085771 \tabularnewline
13 & 0.056573 & 0.3878 & 0.349942 \tabularnewline
14 & -0.036491 & -0.2502 & 0.401772 \tabularnewline
15 & -0.089313 & -0.6123 & 0.271646 \tabularnewline
16 & -0.069841 & -0.4788 & 0.317147 \tabularnewline
17 & -0.14148 & -0.9699 & 0.168522 \tabularnewline
18 & -0.156959 & -1.0761 & 0.143698 \tabularnewline
19 & 0.003586 & 0.0246 & 0.490245 \tabularnewline
20 & -0.032128 & -0.2203 & 0.413312 \tabularnewline
21 & 0.110468 & 0.7573 & 0.226317 \tabularnewline
22 & -0.137678 & -0.9439 & 0.17503 \tabularnewline
23 & -0.111368 & -0.7635 & 0.224491 \tabularnewline
24 & -0.089879 & -0.6162 & 0.270375 \tabularnewline
25 & -0.099979 & -0.6854 & 0.248223 \tabularnewline
26 & 0.069751 & 0.4782 & 0.317366 \tabularnewline
27 & -0.078926 & -0.5411 & 0.295502 \tabularnewline
28 & -0.005624 & -0.0386 & 0.484705 \tabularnewline
29 & -0.01228 & -0.0842 & 0.466633 \tabularnewline
30 & -0.103462 & -0.7093 & 0.240821 \tabularnewline
31 & 0.07279 & 0.499 & 0.310045 \tabularnewline
32 & -0.102475 & -0.7025 & 0.242906 \tabularnewline
33 & -0.001451 & -0.01 & 0.496051 \tabularnewline
34 & -0.100657 & -0.6901 & 0.246773 \tabularnewline
35 & -0.133388 & -0.9145 & 0.182571 \tabularnewline
36 & 0.048596 & 0.3332 & 0.370249 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64095&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.49028[/C][C]3.3612[/C][C]0.000775[/C][/ROW]
[ROW][C]2[/C][C]-0.220103[/C][C]-1.5089[/C][C]0.069003[/C][/ROW]
[ROW][C]3[/C][C]-0.332306[/C][C]-2.2782[/C][C]0.013653[/C][/ROW]
[ROW][C]4[/C][C]0.174528[/C][C]1.1965[/C][C]0.11875[/C][/ROW]
[ROW][C]5[/C][C]-0.04923[/C][C]-0.3375[/C][C]0.368619[/C][/ROW]
[ROW][C]6[/C][C]0.05332[/C][C]0.3655[/C][C]0.358174[/C][/ROW]
[ROW][C]7[/C][C]0.192698[/C][C]1.3211[/C][C]0.096437[/C][/ROW]
[ROW][C]8[/C][C]-0.240555[/C][C]-1.6492[/C][C]0.052892[/C][/ROW]
[ROW][C]9[/C][C]0.010455[/C][C]0.0717[/C][C]0.471581[/C][/ROW]
[ROW][C]10[/C][C]-0.120907[/C][C]-0.8289[/C][C]0.205676[/C][/ROW]
[ROW][C]11[/C][C]-0.116447[/C][C]-0.7983[/C][C]0.21435[/C][/ROW]
[ROW][C]12[/C][C]-0.202528[/C][C]-1.3885[/C][C]0.085771[/C][/ROW]
[ROW][C]13[/C][C]0.056573[/C][C]0.3878[/C][C]0.349942[/C][/ROW]
[ROW][C]14[/C][C]-0.036491[/C][C]-0.2502[/C][C]0.401772[/C][/ROW]
[ROW][C]15[/C][C]-0.089313[/C][C]-0.6123[/C][C]0.271646[/C][/ROW]
[ROW][C]16[/C][C]-0.069841[/C][C]-0.4788[/C][C]0.317147[/C][/ROW]
[ROW][C]17[/C][C]-0.14148[/C][C]-0.9699[/C][C]0.168522[/C][/ROW]
[ROW][C]18[/C][C]-0.156959[/C][C]-1.0761[/C][C]0.143698[/C][/ROW]
[ROW][C]19[/C][C]0.003586[/C][C]0.0246[/C][C]0.490245[/C][/ROW]
[ROW][C]20[/C][C]-0.032128[/C][C]-0.2203[/C][C]0.413312[/C][/ROW]
[ROW][C]21[/C][C]0.110468[/C][C]0.7573[/C][C]0.226317[/C][/ROW]
[ROW][C]22[/C][C]-0.137678[/C][C]-0.9439[/C][C]0.17503[/C][/ROW]
[ROW][C]23[/C][C]-0.111368[/C][C]-0.7635[/C][C]0.224491[/C][/ROW]
[ROW][C]24[/C][C]-0.089879[/C][C]-0.6162[/C][C]0.270375[/C][/ROW]
[ROW][C]25[/C][C]-0.099979[/C][C]-0.6854[/C][C]0.248223[/C][/ROW]
[ROW][C]26[/C][C]0.069751[/C][C]0.4782[/C][C]0.317366[/C][/ROW]
[ROW][C]27[/C][C]-0.078926[/C][C]-0.5411[/C][C]0.295502[/C][/ROW]
[ROW][C]28[/C][C]-0.005624[/C][C]-0.0386[/C][C]0.484705[/C][/ROW]
[ROW][C]29[/C][C]-0.01228[/C][C]-0.0842[/C][C]0.466633[/C][/ROW]
[ROW][C]30[/C][C]-0.103462[/C][C]-0.7093[/C][C]0.240821[/C][/ROW]
[ROW][C]31[/C][C]0.07279[/C][C]0.499[/C][C]0.310045[/C][/ROW]
[ROW][C]32[/C][C]-0.102475[/C][C]-0.7025[/C][C]0.242906[/C][/ROW]
[ROW][C]33[/C][C]-0.001451[/C][C]-0.01[/C][C]0.496051[/C][/ROW]
[ROW][C]34[/C][C]-0.100657[/C][C]-0.6901[/C][C]0.246773[/C][/ROW]
[ROW][C]35[/C][C]-0.133388[/C][C]-0.9145[/C][C]0.182571[/C][/ROW]
[ROW][C]36[/C][C]0.048596[/C][C]0.3332[/C][C]0.370249[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64095&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64095&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.490283.36120.000775
2-0.220103-1.50890.069003
3-0.332306-2.27820.013653
40.1745281.19650.11875
5-0.04923-0.33750.368619
60.053320.36550.358174
70.1926981.32110.096437
8-0.240555-1.64920.052892
90.0104550.07170.471581
10-0.120907-0.82890.205676
11-0.116447-0.79830.21435
12-0.202528-1.38850.085771
130.0565730.38780.349942
14-0.036491-0.25020.401772
15-0.089313-0.61230.271646
16-0.069841-0.47880.317147
17-0.14148-0.96990.168522
18-0.156959-1.07610.143698
190.0035860.02460.490245
20-0.032128-0.22030.413312
210.1104680.75730.226317
22-0.137678-0.94390.17503
23-0.111368-0.76350.224491
24-0.089879-0.61620.270375
25-0.099979-0.68540.248223
260.0697510.47820.317366
27-0.078926-0.54110.295502
28-0.005624-0.03860.484705
29-0.01228-0.08420.466633
30-0.103462-0.70930.240821
310.072790.4990.310045
32-0.102475-0.70250.242906
33-0.001451-0.010.496051
34-0.100657-0.69010.246773
35-0.133388-0.91450.182571
360.0485960.33320.370249



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