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, 11 Dec 2009 07:56:52 -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/11/t1260543486t3l6exgklx5zxlo.htm/, Retrieved Mon, 29 Apr 2024 07:16:02 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=66284, Retrieved Mon, 29 Apr 2024 07:16:02 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsacfpacfd2D0
Estimated Impact129
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Bivariate Explorative Data Analysis] [shw-ws4p1] [2009-10-28 17:17:04] [2663058f2a5dda519058ac6b2228468f]
- RMPD  [(Partial) Autocorrelation Function] [Paper: ACF en PACF] [2009-12-11 14:36:09] [786e067c4f7cec17385c4742b96b6dfa]
-   P       [(Partial) Autocorrelation Function] [Paper: ACF & PACF] [2009-12-11 14:56:52] [682632737e024f9e62885141c5f654cd] [Current]
Feedback Forum

Post a new message
Dataseries X:
128.6
128.9
129.06
129.23
129.27
129.33
129.35
129.31
129.4
129.49
129.47
129.46
129.45
129.28
129.2
129.25
129.14
129.11
129.02
129.08
128.99
129.11
129.08
129.19
129.23
129.25
129.31
129.33
129.39
129.55
129.43
129.45
129.57
129.76
129.92
130.08
130.41
130.84
131.24
131.49
131.74
132.34
133.5
134.43
136.5
137.41
138.02
138.15
138.24
138.2
138.31
138.65
139.3
139.8
140.52
141.57
141.77
141.66
141.36
141.17




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66284&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.214997-1.63740.053484
20.1821341.38710.08536
3-0.168594-1.2840.102128
4-0.094108-0.71670.238217
5-0.230269-1.75370.042384
6-0.069909-0.53240.298238
7-0.030698-0.23380.407986
80.1081680.82380.206719
9-0.01304-0.09930.460616
100.107780.82080.207553
110.2783392.11980.019158
12-0.143219-1.09070.139953
130.0672670.51230.305197
14-0.198577-1.51230.067941
150.008980.06840.472854
16-0.064488-0.49110.312594
170.0198270.1510.440249
180.0531480.40480.343571
190.0037730.02870.488586
20-0.052926-0.40310.34419
210.0451730.3440.366034
22-0.084488-0.64340.261238
230.1240360.94460.174384
24-0.120366-0.91670.181552
250.0169880.12940.448754
26-0.022452-0.1710.432414
270.0534770.40730.342656
28-0.066683-0.50780.306745
290.0507020.38610.350404
30-0.024045-0.18310.427672
31-0.040317-0.3070.379954
320.0064350.0490.480542
330.0132060.10060.460118
340.0058760.04480.48223
35-0.024023-0.1830.427735
360.0613750.46740.320977

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.214997 & -1.6374 & 0.053484 \tabularnewline
2 & 0.182134 & 1.3871 & 0.08536 \tabularnewline
3 & -0.168594 & -1.284 & 0.102128 \tabularnewline
4 & -0.094108 & -0.7167 & 0.238217 \tabularnewline
5 & -0.230269 & -1.7537 & 0.042384 \tabularnewline
6 & -0.069909 & -0.5324 & 0.298238 \tabularnewline
7 & -0.030698 & -0.2338 & 0.407986 \tabularnewline
8 & 0.108168 & 0.8238 & 0.206719 \tabularnewline
9 & -0.01304 & -0.0993 & 0.460616 \tabularnewline
10 & 0.10778 & 0.8208 & 0.207553 \tabularnewline
11 & 0.278339 & 2.1198 & 0.019158 \tabularnewline
12 & -0.143219 & -1.0907 & 0.139953 \tabularnewline
13 & 0.067267 & 0.5123 & 0.305197 \tabularnewline
14 & -0.198577 & -1.5123 & 0.067941 \tabularnewline
15 & 0.00898 & 0.0684 & 0.472854 \tabularnewline
16 & -0.064488 & -0.4911 & 0.312594 \tabularnewline
17 & 0.019827 & 0.151 & 0.440249 \tabularnewline
18 & 0.053148 & 0.4048 & 0.343571 \tabularnewline
19 & 0.003773 & 0.0287 & 0.488586 \tabularnewline
20 & -0.052926 & -0.4031 & 0.34419 \tabularnewline
21 & 0.045173 & 0.344 & 0.366034 \tabularnewline
22 & -0.084488 & -0.6434 & 0.261238 \tabularnewline
23 & 0.124036 & 0.9446 & 0.174384 \tabularnewline
24 & -0.120366 & -0.9167 & 0.181552 \tabularnewline
25 & 0.016988 & 0.1294 & 0.448754 \tabularnewline
26 & -0.022452 & -0.171 & 0.432414 \tabularnewline
27 & 0.053477 & 0.4073 & 0.342656 \tabularnewline
28 & -0.066683 & -0.5078 & 0.306745 \tabularnewline
29 & 0.050702 & 0.3861 & 0.350404 \tabularnewline
30 & -0.024045 & -0.1831 & 0.427672 \tabularnewline
31 & -0.040317 & -0.307 & 0.379954 \tabularnewline
32 & 0.006435 & 0.049 & 0.480542 \tabularnewline
33 & 0.013206 & 0.1006 & 0.460118 \tabularnewline
34 & 0.005876 & 0.0448 & 0.48223 \tabularnewline
35 & -0.024023 & -0.183 & 0.427735 \tabularnewline
36 & 0.061375 & 0.4674 & 0.320977 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66284&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.214997[/C][C]-1.6374[/C][C]0.053484[/C][/ROW]
[ROW][C]2[/C][C]0.182134[/C][C]1.3871[/C][C]0.08536[/C][/ROW]
[ROW][C]3[/C][C]-0.168594[/C][C]-1.284[/C][C]0.102128[/C][/ROW]
[ROW][C]4[/C][C]-0.094108[/C][C]-0.7167[/C][C]0.238217[/C][/ROW]
[ROW][C]5[/C][C]-0.230269[/C][C]-1.7537[/C][C]0.042384[/C][/ROW]
[ROW][C]6[/C][C]-0.069909[/C][C]-0.5324[/C][C]0.298238[/C][/ROW]
[ROW][C]7[/C][C]-0.030698[/C][C]-0.2338[/C][C]0.407986[/C][/ROW]
[ROW][C]8[/C][C]0.108168[/C][C]0.8238[/C][C]0.206719[/C][/ROW]
[ROW][C]9[/C][C]-0.01304[/C][C]-0.0993[/C][C]0.460616[/C][/ROW]
[ROW][C]10[/C][C]0.10778[/C][C]0.8208[/C][C]0.207553[/C][/ROW]
[ROW][C]11[/C][C]0.278339[/C][C]2.1198[/C][C]0.019158[/C][/ROW]
[ROW][C]12[/C][C]-0.143219[/C][C]-1.0907[/C][C]0.139953[/C][/ROW]
[ROW][C]13[/C][C]0.067267[/C][C]0.5123[/C][C]0.305197[/C][/ROW]
[ROW][C]14[/C][C]-0.198577[/C][C]-1.5123[/C][C]0.067941[/C][/ROW]
[ROW][C]15[/C][C]0.00898[/C][C]0.0684[/C][C]0.472854[/C][/ROW]
[ROW][C]16[/C][C]-0.064488[/C][C]-0.4911[/C][C]0.312594[/C][/ROW]
[ROW][C]17[/C][C]0.019827[/C][C]0.151[/C][C]0.440249[/C][/ROW]
[ROW][C]18[/C][C]0.053148[/C][C]0.4048[/C][C]0.343571[/C][/ROW]
[ROW][C]19[/C][C]0.003773[/C][C]0.0287[/C][C]0.488586[/C][/ROW]
[ROW][C]20[/C][C]-0.052926[/C][C]-0.4031[/C][C]0.34419[/C][/ROW]
[ROW][C]21[/C][C]0.045173[/C][C]0.344[/C][C]0.366034[/C][/ROW]
[ROW][C]22[/C][C]-0.084488[/C][C]-0.6434[/C][C]0.261238[/C][/ROW]
[ROW][C]23[/C][C]0.124036[/C][C]0.9446[/C][C]0.174384[/C][/ROW]
[ROW][C]24[/C][C]-0.120366[/C][C]-0.9167[/C][C]0.181552[/C][/ROW]
[ROW][C]25[/C][C]0.016988[/C][C]0.1294[/C][C]0.448754[/C][/ROW]
[ROW][C]26[/C][C]-0.022452[/C][C]-0.171[/C][C]0.432414[/C][/ROW]
[ROW][C]27[/C][C]0.053477[/C][C]0.4073[/C][C]0.342656[/C][/ROW]
[ROW][C]28[/C][C]-0.066683[/C][C]-0.5078[/C][C]0.306745[/C][/ROW]
[ROW][C]29[/C][C]0.050702[/C][C]0.3861[/C][C]0.350404[/C][/ROW]
[ROW][C]30[/C][C]-0.024045[/C][C]-0.1831[/C][C]0.427672[/C][/ROW]
[ROW][C]31[/C][C]-0.040317[/C][C]-0.307[/C][C]0.379954[/C][/ROW]
[ROW][C]32[/C][C]0.006435[/C][C]0.049[/C][C]0.480542[/C][/ROW]
[ROW][C]33[/C][C]0.013206[/C][C]0.1006[/C][C]0.460118[/C][/ROW]
[ROW][C]34[/C][C]0.005876[/C][C]0.0448[/C][C]0.48223[/C][/ROW]
[ROW][C]35[/C][C]-0.024023[/C][C]-0.183[/C][C]0.427735[/C][/ROW]
[ROW][C]36[/C][C]0.061375[/C][C]0.4674[/C][C]0.320977[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66284&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66284&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.214997-1.63740.053484
20.1821341.38710.08536
3-0.168594-1.2840.102128
4-0.094108-0.71670.238217
5-0.230269-1.75370.042384
6-0.069909-0.53240.298238
7-0.030698-0.23380.407986
80.1081680.82380.206719
9-0.01304-0.09930.460616
100.107780.82080.207553
110.2783392.11980.019158
12-0.143219-1.09070.139953
130.0672670.51230.305197
14-0.198577-1.51230.067941
150.008980.06840.472854
16-0.064488-0.49110.312594
170.0198270.1510.440249
180.0531480.40480.343571
190.0037730.02870.488586
20-0.052926-0.40310.34419
210.0451730.3440.366034
22-0.084488-0.64340.261238
230.1240360.94460.174384
24-0.120366-0.91670.181552
250.0169880.12940.448754
26-0.022452-0.1710.432414
270.0534770.40730.342656
28-0.066683-0.50780.306745
290.0507020.38610.350404
30-0.024045-0.18310.427672
31-0.040317-0.3070.379954
320.0064350.0490.480542
330.0132060.10060.460118
340.0058760.04480.48223
35-0.024023-0.1830.427735
360.0613750.46740.320977







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.214997-1.63740.053484
20.1424971.08520.141156
3-0.111706-0.85070.199209
4-0.182851-1.39260.084536
5-0.265827-2.02450.023767
6-0.177174-1.34930.091239
7-0.081322-0.61930.269061
80.0205860.15680.437983
9-0.104674-0.79720.214301
10-0.062559-0.47640.317778
110.3098322.35960.010841
12-0.032594-0.24820.402416
13-0.021086-0.16060.436488
14-0.088803-0.67630.250768
150.0401040.30540.380568
160.1336491.01780.15649
170.0295480.2250.411374
180.0001249e-040.499626
19-0.090032-0.68570.247828
20-0.052753-0.40180.344672
21-0.009394-0.07150.471607
22-0.163488-1.24510.109054
230.1110980.84610.200488
24-0.105759-0.80540.21193
25-0.05754-0.43820.33143
26-0.071454-0.54420.294202
270.0134250.10220.459459
28-0.076507-0.58270.28119
29-0.072043-0.54870.292672
300.050860.38730.349962
31-0.093293-0.71050.24012
320.0421750.32120.374608
330.0295650.22520.411324
34-0.146863-1.11850.133988
350.0367220.27970.390365
360.0615770.4690.320429

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.214997 & -1.6374 & 0.053484 \tabularnewline
2 & 0.142497 & 1.0852 & 0.141156 \tabularnewline
3 & -0.111706 & -0.8507 & 0.199209 \tabularnewline
4 & -0.182851 & -1.3926 & 0.084536 \tabularnewline
5 & -0.265827 & -2.0245 & 0.023767 \tabularnewline
6 & -0.177174 & -1.3493 & 0.091239 \tabularnewline
7 & -0.081322 & -0.6193 & 0.269061 \tabularnewline
8 & 0.020586 & 0.1568 & 0.437983 \tabularnewline
9 & -0.104674 & -0.7972 & 0.214301 \tabularnewline
10 & -0.062559 & -0.4764 & 0.317778 \tabularnewline
11 & 0.309832 & 2.3596 & 0.010841 \tabularnewline
12 & -0.032594 & -0.2482 & 0.402416 \tabularnewline
13 & -0.021086 & -0.1606 & 0.436488 \tabularnewline
14 & -0.088803 & -0.6763 & 0.250768 \tabularnewline
15 & 0.040104 & 0.3054 & 0.380568 \tabularnewline
16 & 0.133649 & 1.0178 & 0.15649 \tabularnewline
17 & 0.029548 & 0.225 & 0.411374 \tabularnewline
18 & 0.000124 & 9e-04 & 0.499626 \tabularnewline
19 & -0.090032 & -0.6857 & 0.247828 \tabularnewline
20 & -0.052753 & -0.4018 & 0.344672 \tabularnewline
21 & -0.009394 & -0.0715 & 0.471607 \tabularnewline
22 & -0.163488 & -1.2451 & 0.109054 \tabularnewline
23 & 0.111098 & 0.8461 & 0.200488 \tabularnewline
24 & -0.105759 & -0.8054 & 0.21193 \tabularnewline
25 & -0.05754 & -0.4382 & 0.33143 \tabularnewline
26 & -0.071454 & -0.5442 & 0.294202 \tabularnewline
27 & 0.013425 & 0.1022 & 0.459459 \tabularnewline
28 & -0.076507 & -0.5827 & 0.28119 \tabularnewline
29 & -0.072043 & -0.5487 & 0.292672 \tabularnewline
30 & 0.05086 & 0.3873 & 0.349962 \tabularnewline
31 & -0.093293 & -0.7105 & 0.24012 \tabularnewline
32 & 0.042175 & 0.3212 & 0.374608 \tabularnewline
33 & 0.029565 & 0.2252 & 0.411324 \tabularnewline
34 & -0.146863 & -1.1185 & 0.133988 \tabularnewline
35 & 0.036722 & 0.2797 & 0.390365 \tabularnewline
36 & 0.061577 & 0.469 & 0.320429 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66284&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.214997[/C][C]-1.6374[/C][C]0.053484[/C][/ROW]
[ROW][C]2[/C][C]0.142497[/C][C]1.0852[/C][C]0.141156[/C][/ROW]
[ROW][C]3[/C][C]-0.111706[/C][C]-0.8507[/C][C]0.199209[/C][/ROW]
[ROW][C]4[/C][C]-0.182851[/C][C]-1.3926[/C][C]0.084536[/C][/ROW]
[ROW][C]5[/C][C]-0.265827[/C][C]-2.0245[/C][C]0.023767[/C][/ROW]
[ROW][C]6[/C][C]-0.177174[/C][C]-1.3493[/C][C]0.091239[/C][/ROW]
[ROW][C]7[/C][C]-0.081322[/C][C]-0.6193[/C][C]0.269061[/C][/ROW]
[ROW][C]8[/C][C]0.020586[/C][C]0.1568[/C][C]0.437983[/C][/ROW]
[ROW][C]9[/C][C]-0.104674[/C][C]-0.7972[/C][C]0.214301[/C][/ROW]
[ROW][C]10[/C][C]-0.062559[/C][C]-0.4764[/C][C]0.317778[/C][/ROW]
[ROW][C]11[/C][C]0.309832[/C][C]2.3596[/C][C]0.010841[/C][/ROW]
[ROW][C]12[/C][C]-0.032594[/C][C]-0.2482[/C][C]0.402416[/C][/ROW]
[ROW][C]13[/C][C]-0.021086[/C][C]-0.1606[/C][C]0.436488[/C][/ROW]
[ROW][C]14[/C][C]-0.088803[/C][C]-0.6763[/C][C]0.250768[/C][/ROW]
[ROW][C]15[/C][C]0.040104[/C][C]0.3054[/C][C]0.380568[/C][/ROW]
[ROW][C]16[/C][C]0.133649[/C][C]1.0178[/C][C]0.15649[/C][/ROW]
[ROW][C]17[/C][C]0.029548[/C][C]0.225[/C][C]0.411374[/C][/ROW]
[ROW][C]18[/C][C]0.000124[/C][C]9e-04[/C][C]0.499626[/C][/ROW]
[ROW][C]19[/C][C]-0.090032[/C][C]-0.6857[/C][C]0.247828[/C][/ROW]
[ROW][C]20[/C][C]-0.052753[/C][C]-0.4018[/C][C]0.344672[/C][/ROW]
[ROW][C]21[/C][C]-0.009394[/C][C]-0.0715[/C][C]0.471607[/C][/ROW]
[ROW][C]22[/C][C]-0.163488[/C][C]-1.2451[/C][C]0.109054[/C][/ROW]
[ROW][C]23[/C][C]0.111098[/C][C]0.8461[/C][C]0.200488[/C][/ROW]
[ROW][C]24[/C][C]-0.105759[/C][C]-0.8054[/C][C]0.21193[/C][/ROW]
[ROW][C]25[/C][C]-0.05754[/C][C]-0.4382[/C][C]0.33143[/C][/ROW]
[ROW][C]26[/C][C]-0.071454[/C][C]-0.5442[/C][C]0.294202[/C][/ROW]
[ROW][C]27[/C][C]0.013425[/C][C]0.1022[/C][C]0.459459[/C][/ROW]
[ROW][C]28[/C][C]-0.076507[/C][C]-0.5827[/C][C]0.28119[/C][/ROW]
[ROW][C]29[/C][C]-0.072043[/C][C]-0.5487[/C][C]0.292672[/C][/ROW]
[ROW][C]30[/C][C]0.05086[/C][C]0.3873[/C][C]0.349962[/C][/ROW]
[ROW][C]31[/C][C]-0.093293[/C][C]-0.7105[/C][C]0.24012[/C][/ROW]
[ROW][C]32[/C][C]0.042175[/C][C]0.3212[/C][C]0.374608[/C][/ROW]
[ROW][C]33[/C][C]0.029565[/C][C]0.2252[/C][C]0.411324[/C][/ROW]
[ROW][C]34[/C][C]-0.146863[/C][C]-1.1185[/C][C]0.133988[/C][/ROW]
[ROW][C]35[/C][C]0.036722[/C][C]0.2797[/C][C]0.390365[/C][/ROW]
[ROW][C]36[/C][C]0.061577[/C][C]0.469[/C][C]0.320429[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66284&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66284&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.214997-1.63740.053484
20.1424971.08520.141156
3-0.111706-0.85070.199209
4-0.182851-1.39260.084536
5-0.265827-2.02450.023767
6-0.177174-1.34930.091239
7-0.081322-0.61930.269061
80.0205860.15680.437983
9-0.104674-0.79720.214301
10-0.062559-0.47640.317778
110.3098322.35960.010841
12-0.032594-0.24820.402416
13-0.021086-0.16060.436488
14-0.088803-0.67630.250768
150.0401040.30540.380568
160.1336491.01780.15649
170.0295480.2250.411374
180.0001249e-040.499626
19-0.090032-0.68570.247828
20-0.052753-0.40180.344672
21-0.009394-0.07150.471607
22-0.163488-1.24510.109054
230.1110980.84610.200488
24-0.105759-0.80540.21193
25-0.05754-0.43820.33143
26-0.071454-0.54420.294202
270.0134250.10220.459459
28-0.076507-0.58270.28119
29-0.072043-0.54870.292672
300.050860.38730.349962
31-0.093293-0.71050.24012
320.0421750.32120.374608
330.0295650.22520.411324
34-0.146863-1.11850.133988
350.0367220.27970.390365
360.0615770.4690.320429



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