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 computationWed, 16 Dec 2009 10:16:51 -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/16/t1260983851qwexupa5p2465o9.htm/, Retrieved Tue, 30 Apr 2024 16:20:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68487, Retrieved Tue, 30 Apr 2024 16:20:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact118
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:46:03] [b98453cac15ba1066b407e146608df68]
-    D    [(Partial) Autocorrelation Function] [] [2009-12-04 15:37:37] [897115520fe7b6114489bc0eeed64548]
-    D        [(Partial) Autocorrelation Function] [] [2009-12-16 17:16:51] [8cd69d0f4298074aa572ca2f9b39b6ae] [Current]
Feedback Forum

Post a new message
Dataseries X:
16,2
16,7
18,4
16
16,5
18,2
16,8
17,3
18
19,6
23,3
23,7
20,3
22,8
24,3
21,5
23,5
22,2
20,9
22,2
19,5
21,1
22
19,2
17,8
19,2
19,9
19,6
18,1
20,4
18,1
18,6
17,6
19,4
19,3
18,6
16,9
16,4
19
18,7
17,1
21,5
17,8
18,1
19
18,9
16,8
18,1
15,7
15,1
18,3
16,5
16,9
18,4
16,4
15,7
16,9
16,6
16,7
16,6




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68487&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.6632735.13772e-06
20.5764174.46491.8e-05
30.6395374.95383e-06
40.4633813.58930.000334
50.3847522.98030.002077
60.3619442.80360.003399
70.1858251.43940.077618
80.1595961.23620.110597
90.0937890.72650.235184
10-0.06176-0.47840.317055
11-0.027884-0.2160.414864
120.0615510.47680.317629
13-0.129417-1.00250.160074
14-0.159803-1.23780.110301
15-0.104647-0.81060.210401
16-0.093013-0.72050.237016
17-0.091333-0.70750.24101
18-0.10179-0.78850.216765
19-0.049516-0.38350.351334
20-0.07022-0.54390.294255
21-0.123918-0.95990.170487
22-0.084499-0.65450.257637
23-0.0877-0.67930.249773
24-0.048728-0.37740.353587
25-0.072956-0.56510.287051
26-0.175862-1.36220.08911
27-0.107649-0.83380.203837
28-0.068331-0.52930.299278
29-0.146431-1.13430.1306
30-0.126665-0.98110.16523
31-0.078849-0.61080.271833
32-0.198455-1.53720.064748
33-0.208863-1.61780.055471
34-0.187525-1.45260.075778
35-0.269158-2.08490.020671
36-0.219467-1.70.047156

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.663273 & 5.1377 & 2e-06 \tabularnewline
2 & 0.576417 & 4.4649 & 1.8e-05 \tabularnewline
3 & 0.639537 & 4.9538 & 3e-06 \tabularnewline
4 & 0.463381 & 3.5893 & 0.000334 \tabularnewline
5 & 0.384752 & 2.9803 & 0.002077 \tabularnewline
6 & 0.361944 & 2.8036 & 0.003399 \tabularnewline
7 & 0.185825 & 1.4394 & 0.077618 \tabularnewline
8 & 0.159596 & 1.2362 & 0.110597 \tabularnewline
9 & 0.093789 & 0.7265 & 0.235184 \tabularnewline
10 & -0.06176 & -0.4784 & 0.317055 \tabularnewline
11 & -0.027884 & -0.216 & 0.414864 \tabularnewline
12 & 0.061551 & 0.4768 & 0.317629 \tabularnewline
13 & -0.129417 & -1.0025 & 0.160074 \tabularnewline
14 & -0.159803 & -1.2378 & 0.110301 \tabularnewline
15 & -0.104647 & -0.8106 & 0.210401 \tabularnewline
16 & -0.093013 & -0.7205 & 0.237016 \tabularnewline
17 & -0.091333 & -0.7075 & 0.24101 \tabularnewline
18 & -0.10179 & -0.7885 & 0.216765 \tabularnewline
19 & -0.049516 & -0.3835 & 0.351334 \tabularnewline
20 & -0.07022 & -0.5439 & 0.294255 \tabularnewline
21 & -0.123918 & -0.9599 & 0.170487 \tabularnewline
22 & -0.084499 & -0.6545 & 0.257637 \tabularnewline
23 & -0.0877 & -0.6793 & 0.249773 \tabularnewline
24 & -0.048728 & -0.3774 & 0.353587 \tabularnewline
25 & -0.072956 & -0.5651 & 0.287051 \tabularnewline
26 & -0.175862 & -1.3622 & 0.08911 \tabularnewline
27 & -0.107649 & -0.8338 & 0.203837 \tabularnewline
28 & -0.068331 & -0.5293 & 0.299278 \tabularnewline
29 & -0.146431 & -1.1343 & 0.1306 \tabularnewline
30 & -0.126665 & -0.9811 & 0.16523 \tabularnewline
31 & -0.078849 & -0.6108 & 0.271833 \tabularnewline
32 & -0.198455 & -1.5372 & 0.064748 \tabularnewline
33 & -0.208863 & -1.6178 & 0.055471 \tabularnewline
34 & -0.187525 & -1.4526 & 0.075778 \tabularnewline
35 & -0.269158 & -2.0849 & 0.020671 \tabularnewline
36 & -0.219467 & -1.7 & 0.047156 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68487&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.663273[/C][C]5.1377[/C][C]2e-06[/C][/ROW]
[ROW][C]2[/C][C]0.576417[/C][C]4.4649[/C][C]1.8e-05[/C][/ROW]
[ROW][C]3[/C][C]0.639537[/C][C]4.9538[/C][C]3e-06[/C][/ROW]
[ROW][C]4[/C][C]0.463381[/C][C]3.5893[/C][C]0.000334[/C][/ROW]
[ROW][C]5[/C][C]0.384752[/C][C]2.9803[/C][C]0.002077[/C][/ROW]
[ROW][C]6[/C][C]0.361944[/C][C]2.8036[/C][C]0.003399[/C][/ROW]
[ROW][C]7[/C][C]0.185825[/C][C]1.4394[/C][C]0.077618[/C][/ROW]
[ROW][C]8[/C][C]0.159596[/C][C]1.2362[/C][C]0.110597[/C][/ROW]
[ROW][C]9[/C][C]0.093789[/C][C]0.7265[/C][C]0.235184[/C][/ROW]
[ROW][C]10[/C][C]-0.06176[/C][C]-0.4784[/C][C]0.317055[/C][/ROW]
[ROW][C]11[/C][C]-0.027884[/C][C]-0.216[/C][C]0.414864[/C][/ROW]
[ROW][C]12[/C][C]0.061551[/C][C]0.4768[/C][C]0.317629[/C][/ROW]
[ROW][C]13[/C][C]-0.129417[/C][C]-1.0025[/C][C]0.160074[/C][/ROW]
[ROW][C]14[/C][C]-0.159803[/C][C]-1.2378[/C][C]0.110301[/C][/ROW]
[ROW][C]15[/C][C]-0.104647[/C][C]-0.8106[/C][C]0.210401[/C][/ROW]
[ROW][C]16[/C][C]-0.093013[/C][C]-0.7205[/C][C]0.237016[/C][/ROW]
[ROW][C]17[/C][C]-0.091333[/C][C]-0.7075[/C][C]0.24101[/C][/ROW]
[ROW][C]18[/C][C]-0.10179[/C][C]-0.7885[/C][C]0.216765[/C][/ROW]
[ROW][C]19[/C][C]-0.049516[/C][C]-0.3835[/C][C]0.351334[/C][/ROW]
[ROW][C]20[/C][C]-0.07022[/C][C]-0.5439[/C][C]0.294255[/C][/ROW]
[ROW][C]21[/C][C]-0.123918[/C][C]-0.9599[/C][C]0.170487[/C][/ROW]
[ROW][C]22[/C][C]-0.084499[/C][C]-0.6545[/C][C]0.257637[/C][/ROW]
[ROW][C]23[/C][C]-0.0877[/C][C]-0.6793[/C][C]0.249773[/C][/ROW]
[ROW][C]24[/C][C]-0.048728[/C][C]-0.3774[/C][C]0.353587[/C][/ROW]
[ROW][C]25[/C][C]-0.072956[/C][C]-0.5651[/C][C]0.287051[/C][/ROW]
[ROW][C]26[/C][C]-0.175862[/C][C]-1.3622[/C][C]0.08911[/C][/ROW]
[ROW][C]27[/C][C]-0.107649[/C][C]-0.8338[/C][C]0.203837[/C][/ROW]
[ROW][C]28[/C][C]-0.068331[/C][C]-0.5293[/C][C]0.299278[/C][/ROW]
[ROW][C]29[/C][C]-0.146431[/C][C]-1.1343[/C][C]0.1306[/C][/ROW]
[ROW][C]30[/C][C]-0.126665[/C][C]-0.9811[/C][C]0.16523[/C][/ROW]
[ROW][C]31[/C][C]-0.078849[/C][C]-0.6108[/C][C]0.271833[/C][/ROW]
[ROW][C]32[/C][C]-0.198455[/C][C]-1.5372[/C][C]0.064748[/C][/ROW]
[ROW][C]33[/C][C]-0.208863[/C][C]-1.6178[/C][C]0.055471[/C][/ROW]
[ROW][C]34[/C][C]-0.187525[/C][C]-1.4526[/C][C]0.075778[/C][/ROW]
[ROW][C]35[/C][C]-0.269158[/C][C]-2.0849[/C][C]0.020671[/C][/ROW]
[ROW][C]36[/C][C]-0.219467[/C][C]-1.7[/C][C]0.047156[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68487&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68487&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.6632735.13772e-06
20.5764174.46491.8e-05
30.6395374.95383e-06
40.4633813.58930.000334
50.3847522.98030.002077
60.3619442.80360.003399
70.1858251.43940.077618
80.1595961.23620.110597
90.0937890.72650.235184
10-0.06176-0.47840.317055
11-0.027884-0.2160.414864
120.0615510.47680.317629
13-0.129417-1.00250.160074
14-0.159803-1.23780.110301
15-0.104647-0.81060.210401
16-0.093013-0.72050.237016
17-0.091333-0.70750.24101
18-0.10179-0.78850.216765
19-0.049516-0.38350.351334
20-0.07022-0.54390.294255
21-0.123918-0.95990.170487
22-0.084499-0.65450.257637
23-0.0877-0.67930.249773
24-0.048728-0.37740.353587
25-0.072956-0.56510.287051
26-0.175862-1.36220.08911
27-0.107649-0.83380.203837
28-0.068331-0.52930.299278
29-0.146431-1.13430.1306
30-0.126665-0.98110.16523
31-0.078849-0.61080.271833
32-0.198455-1.53720.064748
33-0.208863-1.61780.055471
34-0.187525-1.45260.075778
35-0.269158-2.08490.020671
36-0.219467-1.70.047156







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6632735.13772e-06
20.2436951.88770.031956
30.3582882.77530.003672
4-0.165746-1.28390.102063
5-0.041686-0.32290.373947
6-0.053159-0.41180.340987
7-0.201433-1.56030.061975
80.0371120.28750.387372
9-0.106431-0.82440.206487
10-0.121833-0.94370.174551
110.0933980.72350.236104
120.3039992.35480.010912
13-0.219904-1.70340.046837
14-0.163542-1.26680.105063
15-0.043492-0.33690.36869
160.2777162.15120.017749
170.0156230.1210.45204
18-0.158199-1.22540.112606
190.1286390.99640.161521
20-0.171701-1.330.094278
21-0.095804-0.74210.230463
220.0790230.61210.271389
23-0.038653-0.29940.382834
24-0.0218-0.16890.433235
250.0156390.12110.451992
26-0.055084-0.42670.335571
270.0412580.31960.375198
28-0.087127-0.67490.251171
290.0333710.25850.398455
300.0114550.08870.464795
31-0.082985-0.64280.261402
32-0.15985-1.23820.110233
33-0.034899-0.27030.39392
34-0.035739-0.27680.39143
35-0.15239-1.18040.121249
36-0.001791-0.01390.494487

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.663273 & 5.1377 & 2e-06 \tabularnewline
2 & 0.243695 & 1.8877 & 0.031956 \tabularnewline
3 & 0.358288 & 2.7753 & 0.003672 \tabularnewline
4 & -0.165746 & -1.2839 & 0.102063 \tabularnewline
5 & -0.041686 & -0.3229 & 0.373947 \tabularnewline
6 & -0.053159 & -0.4118 & 0.340987 \tabularnewline
7 & -0.201433 & -1.5603 & 0.061975 \tabularnewline
8 & 0.037112 & 0.2875 & 0.387372 \tabularnewline
9 & -0.106431 & -0.8244 & 0.206487 \tabularnewline
10 & -0.121833 & -0.9437 & 0.174551 \tabularnewline
11 & 0.093398 & 0.7235 & 0.236104 \tabularnewline
12 & 0.303999 & 2.3548 & 0.010912 \tabularnewline
13 & -0.219904 & -1.7034 & 0.046837 \tabularnewline
14 & -0.163542 & -1.2668 & 0.105063 \tabularnewline
15 & -0.043492 & -0.3369 & 0.36869 \tabularnewline
16 & 0.277716 & 2.1512 & 0.017749 \tabularnewline
17 & 0.015623 & 0.121 & 0.45204 \tabularnewline
18 & -0.158199 & -1.2254 & 0.112606 \tabularnewline
19 & 0.128639 & 0.9964 & 0.161521 \tabularnewline
20 & -0.171701 & -1.33 & 0.094278 \tabularnewline
21 & -0.095804 & -0.7421 & 0.230463 \tabularnewline
22 & 0.079023 & 0.6121 & 0.271389 \tabularnewline
23 & -0.038653 & -0.2994 & 0.382834 \tabularnewline
24 & -0.0218 & -0.1689 & 0.433235 \tabularnewline
25 & 0.015639 & 0.1211 & 0.451992 \tabularnewline
26 & -0.055084 & -0.4267 & 0.335571 \tabularnewline
27 & 0.041258 & 0.3196 & 0.375198 \tabularnewline
28 & -0.087127 & -0.6749 & 0.251171 \tabularnewline
29 & 0.033371 & 0.2585 & 0.398455 \tabularnewline
30 & 0.011455 & 0.0887 & 0.464795 \tabularnewline
31 & -0.082985 & -0.6428 & 0.261402 \tabularnewline
32 & -0.15985 & -1.2382 & 0.110233 \tabularnewline
33 & -0.034899 & -0.2703 & 0.39392 \tabularnewline
34 & -0.035739 & -0.2768 & 0.39143 \tabularnewline
35 & -0.15239 & -1.1804 & 0.121249 \tabularnewline
36 & -0.001791 & -0.0139 & 0.494487 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68487&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.663273[/C][C]5.1377[/C][C]2e-06[/C][/ROW]
[ROW][C]2[/C][C]0.243695[/C][C]1.8877[/C][C]0.031956[/C][/ROW]
[ROW][C]3[/C][C]0.358288[/C][C]2.7753[/C][C]0.003672[/C][/ROW]
[ROW][C]4[/C][C]-0.165746[/C][C]-1.2839[/C][C]0.102063[/C][/ROW]
[ROW][C]5[/C][C]-0.041686[/C][C]-0.3229[/C][C]0.373947[/C][/ROW]
[ROW][C]6[/C][C]-0.053159[/C][C]-0.4118[/C][C]0.340987[/C][/ROW]
[ROW][C]7[/C][C]-0.201433[/C][C]-1.5603[/C][C]0.061975[/C][/ROW]
[ROW][C]8[/C][C]0.037112[/C][C]0.2875[/C][C]0.387372[/C][/ROW]
[ROW][C]9[/C][C]-0.106431[/C][C]-0.8244[/C][C]0.206487[/C][/ROW]
[ROW][C]10[/C][C]-0.121833[/C][C]-0.9437[/C][C]0.174551[/C][/ROW]
[ROW][C]11[/C][C]0.093398[/C][C]0.7235[/C][C]0.236104[/C][/ROW]
[ROW][C]12[/C][C]0.303999[/C][C]2.3548[/C][C]0.010912[/C][/ROW]
[ROW][C]13[/C][C]-0.219904[/C][C]-1.7034[/C][C]0.046837[/C][/ROW]
[ROW][C]14[/C][C]-0.163542[/C][C]-1.2668[/C][C]0.105063[/C][/ROW]
[ROW][C]15[/C][C]-0.043492[/C][C]-0.3369[/C][C]0.36869[/C][/ROW]
[ROW][C]16[/C][C]0.277716[/C][C]2.1512[/C][C]0.017749[/C][/ROW]
[ROW][C]17[/C][C]0.015623[/C][C]0.121[/C][C]0.45204[/C][/ROW]
[ROW][C]18[/C][C]-0.158199[/C][C]-1.2254[/C][C]0.112606[/C][/ROW]
[ROW][C]19[/C][C]0.128639[/C][C]0.9964[/C][C]0.161521[/C][/ROW]
[ROW][C]20[/C][C]-0.171701[/C][C]-1.33[/C][C]0.094278[/C][/ROW]
[ROW][C]21[/C][C]-0.095804[/C][C]-0.7421[/C][C]0.230463[/C][/ROW]
[ROW][C]22[/C][C]0.079023[/C][C]0.6121[/C][C]0.271389[/C][/ROW]
[ROW][C]23[/C][C]-0.038653[/C][C]-0.2994[/C][C]0.382834[/C][/ROW]
[ROW][C]24[/C][C]-0.0218[/C][C]-0.1689[/C][C]0.433235[/C][/ROW]
[ROW][C]25[/C][C]0.015639[/C][C]0.1211[/C][C]0.451992[/C][/ROW]
[ROW][C]26[/C][C]-0.055084[/C][C]-0.4267[/C][C]0.335571[/C][/ROW]
[ROW][C]27[/C][C]0.041258[/C][C]0.3196[/C][C]0.375198[/C][/ROW]
[ROW][C]28[/C][C]-0.087127[/C][C]-0.6749[/C][C]0.251171[/C][/ROW]
[ROW][C]29[/C][C]0.033371[/C][C]0.2585[/C][C]0.398455[/C][/ROW]
[ROW][C]30[/C][C]0.011455[/C][C]0.0887[/C][C]0.464795[/C][/ROW]
[ROW][C]31[/C][C]-0.082985[/C][C]-0.6428[/C][C]0.261402[/C][/ROW]
[ROW][C]32[/C][C]-0.15985[/C][C]-1.2382[/C][C]0.110233[/C][/ROW]
[ROW][C]33[/C][C]-0.034899[/C][C]-0.2703[/C][C]0.39392[/C][/ROW]
[ROW][C]34[/C][C]-0.035739[/C][C]-0.2768[/C][C]0.39143[/C][/ROW]
[ROW][C]35[/C][C]-0.15239[/C][C]-1.1804[/C][C]0.121249[/C][/ROW]
[ROW][C]36[/C][C]-0.001791[/C][C]-0.0139[/C][C]0.494487[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68487&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68487&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.6632735.13772e-06
20.2436951.88770.031956
30.3582882.77530.003672
4-0.165746-1.28390.102063
5-0.041686-0.32290.373947
6-0.053159-0.41180.340987
7-0.201433-1.56030.061975
80.0371120.28750.387372
9-0.106431-0.82440.206487
10-0.121833-0.94370.174551
110.0933980.72350.236104
120.3039992.35480.010912
13-0.219904-1.70340.046837
14-0.163542-1.26680.105063
15-0.043492-0.33690.36869
160.2777162.15120.017749
170.0156230.1210.45204
18-0.158199-1.22540.112606
190.1286390.99640.161521
20-0.171701-1.330.094278
21-0.095804-0.74210.230463
220.0790230.61210.271389
23-0.038653-0.29940.382834
24-0.0218-0.16890.433235
250.0156390.12110.451992
26-0.055084-0.42670.335571
270.0412580.31960.375198
28-0.087127-0.67490.251171
290.0333710.25850.398455
300.0114550.08870.464795
31-0.082985-0.64280.261402
32-0.15985-1.23820.110233
33-0.034899-0.27030.39392
34-0.035739-0.27680.39143
35-0.15239-1.18040.121249
36-0.001791-0.01390.494487



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