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, 27 Nov 2009 05:14:14 -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/27/t12593240960ghm4hq6g9dyb1u.htm/, Retrieved Sun, 28 Apr 2024 20:17:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60618, Retrieved Sun, 28 Apr 2024 20:17:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact117
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:16:10] [b98453cac15ba1066b407e146608df68]
-   PD          [(Partial) Autocorrelation Function] [] [2009-11-27 12:14:14] [2f6049721194fa571920c3539d7b729e] [Current]
Feedback Forum

Post a new message
Dataseries X:
17
14
15
16
16
15
13
12
13
13
12
10
14
14
15
16
16
15
15
13
15
15
15
13
16
16
14
16
15
14
15
15
14
13
12
13
12
9
10
8
11
8
8
8
4
6
8
10
5
6
5
9
8
6
9
11
11
8
11
11
13




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60618&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.6895994.82727e-06
20.6802374.76179e-06
30.5580333.90620.000144
40.5668933.96820.000118
50.4706573.29460.000918
60.2873172.01120.02491
70.1963911.37470.087733
80.0809190.56640.286844
90.0862960.60410.27429
10-0.10131-0.70920.240791
11-0.118419-0.82890.205582
12-0.306663-2.14660.018399
13-0.284601-1.99220.025968
14-0.355999-2.4920.008067
15-0.387964-2.71570.004554
16-0.400924-2.80650.003584
17-0.444119-3.10880.001563
18-0.41843-2.9290.002574
19-0.452716-3.1690.001318
20-0.355561-2.48890.008129
21-0.393214-2.75250.004135
22-0.315818-2.21070.015877
23-0.323091-2.26160.014096
24-0.225153-1.57610.060722
25-0.139749-0.97820.166379
26-0.165505-1.15850.12613
27-0.11022-0.77150.222045
28-0.089696-0.62790.266501
29-0.017872-0.12510.450477
30-0.028772-0.20140.420609
310.0293570.20550.419017
320.066420.46490.322017
330.1213280.84930.199923
340.1055240.73870.231815
350.1403830.98270.165297
360.1585561.10990.136231

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.689599 & 4.8272 & 7e-06 \tabularnewline
2 & 0.680237 & 4.7617 & 9e-06 \tabularnewline
3 & 0.558033 & 3.9062 & 0.000144 \tabularnewline
4 & 0.566893 & 3.9682 & 0.000118 \tabularnewline
5 & 0.470657 & 3.2946 & 0.000918 \tabularnewline
6 & 0.287317 & 2.0112 & 0.02491 \tabularnewline
7 & 0.196391 & 1.3747 & 0.087733 \tabularnewline
8 & 0.080919 & 0.5664 & 0.286844 \tabularnewline
9 & 0.086296 & 0.6041 & 0.27429 \tabularnewline
10 & -0.10131 & -0.7092 & 0.240791 \tabularnewline
11 & -0.118419 & -0.8289 & 0.205582 \tabularnewline
12 & -0.306663 & -2.1466 & 0.018399 \tabularnewline
13 & -0.284601 & -1.9922 & 0.025968 \tabularnewline
14 & -0.355999 & -2.492 & 0.008067 \tabularnewline
15 & -0.387964 & -2.7157 & 0.004554 \tabularnewline
16 & -0.400924 & -2.8065 & 0.003584 \tabularnewline
17 & -0.444119 & -3.1088 & 0.001563 \tabularnewline
18 & -0.41843 & -2.929 & 0.002574 \tabularnewline
19 & -0.452716 & -3.169 & 0.001318 \tabularnewline
20 & -0.355561 & -2.4889 & 0.008129 \tabularnewline
21 & -0.393214 & -2.7525 & 0.004135 \tabularnewline
22 & -0.315818 & -2.2107 & 0.015877 \tabularnewline
23 & -0.323091 & -2.2616 & 0.014096 \tabularnewline
24 & -0.225153 & -1.5761 & 0.060722 \tabularnewline
25 & -0.139749 & -0.9782 & 0.166379 \tabularnewline
26 & -0.165505 & -1.1585 & 0.12613 \tabularnewline
27 & -0.11022 & -0.7715 & 0.222045 \tabularnewline
28 & -0.089696 & -0.6279 & 0.266501 \tabularnewline
29 & -0.017872 & -0.1251 & 0.450477 \tabularnewline
30 & -0.028772 & -0.2014 & 0.420609 \tabularnewline
31 & 0.029357 & 0.2055 & 0.419017 \tabularnewline
32 & 0.06642 & 0.4649 & 0.322017 \tabularnewline
33 & 0.121328 & 0.8493 & 0.199923 \tabularnewline
34 & 0.105524 & 0.7387 & 0.231815 \tabularnewline
35 & 0.140383 & 0.9827 & 0.165297 \tabularnewline
36 & 0.158556 & 1.1099 & 0.136231 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60618&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.689599[/C][C]4.8272[/C][C]7e-06[/C][/ROW]
[ROW][C]2[/C][C]0.680237[/C][C]4.7617[/C][C]9e-06[/C][/ROW]
[ROW][C]3[/C][C]0.558033[/C][C]3.9062[/C][C]0.000144[/C][/ROW]
[ROW][C]4[/C][C]0.566893[/C][C]3.9682[/C][C]0.000118[/C][/ROW]
[ROW][C]5[/C][C]0.470657[/C][C]3.2946[/C][C]0.000918[/C][/ROW]
[ROW][C]6[/C][C]0.287317[/C][C]2.0112[/C][C]0.02491[/C][/ROW]
[ROW][C]7[/C][C]0.196391[/C][C]1.3747[/C][C]0.087733[/C][/ROW]
[ROW][C]8[/C][C]0.080919[/C][C]0.5664[/C][C]0.286844[/C][/ROW]
[ROW][C]9[/C][C]0.086296[/C][C]0.6041[/C][C]0.27429[/C][/ROW]
[ROW][C]10[/C][C]-0.10131[/C][C]-0.7092[/C][C]0.240791[/C][/ROW]
[ROW][C]11[/C][C]-0.118419[/C][C]-0.8289[/C][C]0.205582[/C][/ROW]
[ROW][C]12[/C][C]-0.306663[/C][C]-2.1466[/C][C]0.018399[/C][/ROW]
[ROW][C]13[/C][C]-0.284601[/C][C]-1.9922[/C][C]0.025968[/C][/ROW]
[ROW][C]14[/C][C]-0.355999[/C][C]-2.492[/C][C]0.008067[/C][/ROW]
[ROW][C]15[/C][C]-0.387964[/C][C]-2.7157[/C][C]0.004554[/C][/ROW]
[ROW][C]16[/C][C]-0.400924[/C][C]-2.8065[/C][C]0.003584[/C][/ROW]
[ROW][C]17[/C][C]-0.444119[/C][C]-3.1088[/C][C]0.001563[/C][/ROW]
[ROW][C]18[/C][C]-0.41843[/C][C]-2.929[/C][C]0.002574[/C][/ROW]
[ROW][C]19[/C][C]-0.452716[/C][C]-3.169[/C][C]0.001318[/C][/ROW]
[ROW][C]20[/C][C]-0.355561[/C][C]-2.4889[/C][C]0.008129[/C][/ROW]
[ROW][C]21[/C][C]-0.393214[/C][C]-2.7525[/C][C]0.004135[/C][/ROW]
[ROW][C]22[/C][C]-0.315818[/C][C]-2.2107[/C][C]0.015877[/C][/ROW]
[ROW][C]23[/C][C]-0.323091[/C][C]-2.2616[/C][C]0.014096[/C][/ROW]
[ROW][C]24[/C][C]-0.225153[/C][C]-1.5761[/C][C]0.060722[/C][/ROW]
[ROW][C]25[/C][C]-0.139749[/C][C]-0.9782[/C][C]0.166379[/C][/ROW]
[ROW][C]26[/C][C]-0.165505[/C][C]-1.1585[/C][C]0.12613[/C][/ROW]
[ROW][C]27[/C][C]-0.11022[/C][C]-0.7715[/C][C]0.222045[/C][/ROW]
[ROW][C]28[/C][C]-0.089696[/C][C]-0.6279[/C][C]0.266501[/C][/ROW]
[ROW][C]29[/C][C]-0.017872[/C][C]-0.1251[/C][C]0.450477[/C][/ROW]
[ROW][C]30[/C][C]-0.028772[/C][C]-0.2014[/C][C]0.420609[/C][/ROW]
[ROW][C]31[/C][C]0.029357[/C][C]0.2055[/C][C]0.419017[/C][/ROW]
[ROW][C]32[/C][C]0.06642[/C][C]0.4649[/C][C]0.322017[/C][/ROW]
[ROW][C]33[/C][C]0.121328[/C][C]0.8493[/C][C]0.199923[/C][/ROW]
[ROW][C]34[/C][C]0.105524[/C][C]0.7387[/C][C]0.231815[/C][/ROW]
[ROW][C]35[/C][C]0.140383[/C][C]0.9827[/C][C]0.165297[/C][/ROW]
[ROW][C]36[/C][C]0.158556[/C][C]1.1099[/C][C]0.136231[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60618&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60618&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.6895994.82727e-06
20.6802374.76179e-06
30.5580333.90620.000144
40.5668933.96820.000118
50.4706573.29460.000918
60.2873172.01120.02491
70.1963911.37470.087733
80.0809190.56640.286844
90.0862960.60410.27429
10-0.10131-0.70920.240791
11-0.118419-0.82890.205582
12-0.306663-2.14660.018399
13-0.284601-1.99220.025968
14-0.355999-2.4920.008067
15-0.387964-2.71570.004554
16-0.400924-2.80650.003584
17-0.444119-3.10880.001563
18-0.41843-2.9290.002574
19-0.452716-3.1690.001318
20-0.355561-2.48890.008129
21-0.393214-2.75250.004135
22-0.315818-2.21070.015877
23-0.323091-2.26160.014096
24-0.225153-1.57610.060722
25-0.139749-0.97820.166379
26-0.165505-1.15850.12613
27-0.11022-0.77150.222045
28-0.089696-0.62790.266501
29-0.017872-0.12510.450477
30-0.028772-0.20140.420609
310.0293570.20550.419017
320.066420.46490.322017
330.1213280.84930.199923
340.1055240.73870.231815
350.1403830.98270.165297
360.1585561.10990.136231







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6895994.82727e-06
20.3902932.7320.004364
30.0064760.04530.482013
40.1475011.03250.153452
5-0.032849-0.22990.409548
6-0.36777-2.57440.006557
7-0.150365-1.05260.148854
8-0.110035-0.77020.222426
90.1075290.75270.227615
10-0.168687-1.18080.121689
110.0674610.47220.31943
12-0.260947-1.82660.036925
13-0.048696-0.34090.36733
14-0.013644-0.09550.46215
15-0.007019-0.04910.480507
160.0635630.44490.32916
17-0.004226-0.02960.488261
18-0.13656-0.95590.171903
19-0.110694-0.77490.221073
200.0593090.41520.339917
21-0.018798-0.13160.447924
22-0.013554-0.09490.4624
230.0124260.0870.465519
24-0.016987-0.11890.452917
250.0691880.48430.315161
26-0.197103-1.37970.086968
27-0.091956-0.64370.261388
280.0200680.14050.44443
29-0.100632-0.70440.242251
30-0.063476-0.44430.329381
310.0827810.57950.282465
320.1654581.15820.126197
33-0.026034-0.18220.428075
34-0.160454-1.12320.133417
350.0450130.31510.377014
36-0.088685-0.62080.268806

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.689599 & 4.8272 & 7e-06 \tabularnewline
2 & 0.390293 & 2.732 & 0.004364 \tabularnewline
3 & 0.006476 & 0.0453 & 0.482013 \tabularnewline
4 & 0.147501 & 1.0325 & 0.153452 \tabularnewline
5 & -0.032849 & -0.2299 & 0.409548 \tabularnewline
6 & -0.36777 & -2.5744 & 0.006557 \tabularnewline
7 & -0.150365 & -1.0526 & 0.148854 \tabularnewline
8 & -0.110035 & -0.7702 & 0.222426 \tabularnewline
9 & 0.107529 & 0.7527 & 0.227615 \tabularnewline
10 & -0.168687 & -1.1808 & 0.121689 \tabularnewline
11 & 0.067461 & 0.4722 & 0.31943 \tabularnewline
12 & -0.260947 & -1.8266 & 0.036925 \tabularnewline
13 & -0.048696 & -0.3409 & 0.36733 \tabularnewline
14 & -0.013644 & -0.0955 & 0.46215 \tabularnewline
15 & -0.007019 & -0.0491 & 0.480507 \tabularnewline
16 & 0.063563 & 0.4449 & 0.32916 \tabularnewline
17 & -0.004226 & -0.0296 & 0.488261 \tabularnewline
18 & -0.13656 & -0.9559 & 0.171903 \tabularnewline
19 & -0.110694 & -0.7749 & 0.221073 \tabularnewline
20 & 0.059309 & 0.4152 & 0.339917 \tabularnewline
21 & -0.018798 & -0.1316 & 0.447924 \tabularnewline
22 & -0.013554 & -0.0949 & 0.4624 \tabularnewline
23 & 0.012426 & 0.087 & 0.465519 \tabularnewline
24 & -0.016987 & -0.1189 & 0.452917 \tabularnewline
25 & 0.069188 & 0.4843 & 0.315161 \tabularnewline
26 & -0.197103 & -1.3797 & 0.086968 \tabularnewline
27 & -0.091956 & -0.6437 & 0.261388 \tabularnewline
28 & 0.020068 & 0.1405 & 0.44443 \tabularnewline
29 & -0.100632 & -0.7044 & 0.242251 \tabularnewline
30 & -0.063476 & -0.4443 & 0.329381 \tabularnewline
31 & 0.082781 & 0.5795 & 0.282465 \tabularnewline
32 & 0.165458 & 1.1582 & 0.126197 \tabularnewline
33 & -0.026034 & -0.1822 & 0.428075 \tabularnewline
34 & -0.160454 & -1.1232 & 0.133417 \tabularnewline
35 & 0.045013 & 0.3151 & 0.377014 \tabularnewline
36 & -0.088685 & -0.6208 & 0.268806 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60618&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.689599[/C][C]4.8272[/C][C]7e-06[/C][/ROW]
[ROW][C]2[/C][C]0.390293[/C][C]2.732[/C][C]0.004364[/C][/ROW]
[ROW][C]3[/C][C]0.006476[/C][C]0.0453[/C][C]0.482013[/C][/ROW]
[ROW][C]4[/C][C]0.147501[/C][C]1.0325[/C][C]0.153452[/C][/ROW]
[ROW][C]5[/C][C]-0.032849[/C][C]-0.2299[/C][C]0.409548[/C][/ROW]
[ROW][C]6[/C][C]-0.36777[/C][C]-2.5744[/C][C]0.006557[/C][/ROW]
[ROW][C]7[/C][C]-0.150365[/C][C]-1.0526[/C][C]0.148854[/C][/ROW]
[ROW][C]8[/C][C]-0.110035[/C][C]-0.7702[/C][C]0.222426[/C][/ROW]
[ROW][C]9[/C][C]0.107529[/C][C]0.7527[/C][C]0.227615[/C][/ROW]
[ROW][C]10[/C][C]-0.168687[/C][C]-1.1808[/C][C]0.121689[/C][/ROW]
[ROW][C]11[/C][C]0.067461[/C][C]0.4722[/C][C]0.31943[/C][/ROW]
[ROW][C]12[/C][C]-0.260947[/C][C]-1.8266[/C][C]0.036925[/C][/ROW]
[ROW][C]13[/C][C]-0.048696[/C][C]-0.3409[/C][C]0.36733[/C][/ROW]
[ROW][C]14[/C][C]-0.013644[/C][C]-0.0955[/C][C]0.46215[/C][/ROW]
[ROW][C]15[/C][C]-0.007019[/C][C]-0.0491[/C][C]0.480507[/C][/ROW]
[ROW][C]16[/C][C]0.063563[/C][C]0.4449[/C][C]0.32916[/C][/ROW]
[ROW][C]17[/C][C]-0.004226[/C][C]-0.0296[/C][C]0.488261[/C][/ROW]
[ROW][C]18[/C][C]-0.13656[/C][C]-0.9559[/C][C]0.171903[/C][/ROW]
[ROW][C]19[/C][C]-0.110694[/C][C]-0.7749[/C][C]0.221073[/C][/ROW]
[ROW][C]20[/C][C]0.059309[/C][C]0.4152[/C][C]0.339917[/C][/ROW]
[ROW][C]21[/C][C]-0.018798[/C][C]-0.1316[/C][C]0.447924[/C][/ROW]
[ROW][C]22[/C][C]-0.013554[/C][C]-0.0949[/C][C]0.4624[/C][/ROW]
[ROW][C]23[/C][C]0.012426[/C][C]0.087[/C][C]0.465519[/C][/ROW]
[ROW][C]24[/C][C]-0.016987[/C][C]-0.1189[/C][C]0.452917[/C][/ROW]
[ROW][C]25[/C][C]0.069188[/C][C]0.4843[/C][C]0.315161[/C][/ROW]
[ROW][C]26[/C][C]-0.197103[/C][C]-1.3797[/C][C]0.086968[/C][/ROW]
[ROW][C]27[/C][C]-0.091956[/C][C]-0.6437[/C][C]0.261388[/C][/ROW]
[ROW][C]28[/C][C]0.020068[/C][C]0.1405[/C][C]0.44443[/C][/ROW]
[ROW][C]29[/C][C]-0.100632[/C][C]-0.7044[/C][C]0.242251[/C][/ROW]
[ROW][C]30[/C][C]-0.063476[/C][C]-0.4443[/C][C]0.329381[/C][/ROW]
[ROW][C]31[/C][C]0.082781[/C][C]0.5795[/C][C]0.282465[/C][/ROW]
[ROW][C]32[/C][C]0.165458[/C][C]1.1582[/C][C]0.126197[/C][/ROW]
[ROW][C]33[/C][C]-0.026034[/C][C]-0.1822[/C][C]0.428075[/C][/ROW]
[ROW][C]34[/C][C]-0.160454[/C][C]-1.1232[/C][C]0.133417[/C][/ROW]
[ROW][C]35[/C][C]0.045013[/C][C]0.3151[/C][C]0.377014[/C][/ROW]
[ROW][C]36[/C][C]-0.088685[/C][C]-0.6208[/C][C]0.268806[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60618&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60618&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.6895994.82727e-06
20.3902932.7320.004364
30.0064760.04530.482013
40.1475011.03250.153452
5-0.032849-0.22990.409548
6-0.36777-2.57440.006557
7-0.150365-1.05260.148854
8-0.110035-0.77020.222426
90.1075290.75270.227615
10-0.168687-1.18080.121689
110.0674610.47220.31943
12-0.260947-1.82660.036925
13-0.048696-0.34090.36733
14-0.013644-0.09550.46215
15-0.007019-0.04910.480507
160.0635630.44490.32916
17-0.004226-0.02960.488261
18-0.13656-0.95590.171903
19-0.110694-0.77490.221073
200.0593090.41520.339917
21-0.018798-0.13160.447924
22-0.013554-0.09490.4624
230.0124260.0870.465519
24-0.016987-0.11890.452917
250.0691880.48430.315161
26-0.197103-1.37970.086968
27-0.091956-0.64370.261388
280.0200680.14050.44443
29-0.100632-0.70440.242251
30-0.063476-0.44430.329381
310.0827810.57950.282465
320.1654581.15820.126197
33-0.026034-0.18220.428075
34-0.160454-1.12320.133417
350.0450130.31510.377014
36-0.088685-0.62080.268806



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