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:16:37 -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/t1259324247ndtzmp7x0q82xgq.htm/, Retrieved Sun, 28 Apr 2024 20:34:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60620, Retrieved Sun, 28 Apr 2024 20:34:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact114
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:16:37] [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=60620&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=60620&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60620&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.41065-2.84510.003255
20.1737691.20390.117264
3-0.24133-1.6720.050517
40.0755770.52360.301479
50.2801031.94060.029095
6-0.124354-0.86150.19661
70.1250290.86620.195338
8-0.211483-1.46520.074694
90.2850291.97470.027033
10-0.178054-1.23360.111681
110.2966912.05550.022645
12-0.322004-2.23090.015197
130.0850360.58910.279263
14-0.069406-0.48090.316401
150.0485350.33630.36907
160.1391780.96430.169876
17-0.217958-1.51010.068792
180.1288930.8930.188156
19-0.280434-1.94290.028953
200.2038711.41250.082133
21-0.131979-0.91440.182545
220.0579360.40140.344955
23-0.11719-0.81190.210425
24-0.078678-0.54510.294104
250.0954830.66150.255719
26-0.073871-0.51180.305572
270.0150280.10410.458754
28-0.115903-0.8030.212967
290.068240.47280.319257
30-0.101535-0.70350.242586
310.0606010.41990.338232
32-0.062754-0.43480.332837
330.1231320.85310.198925
34-0.067747-0.46940.320466
35-0.049019-0.33960.367815
360.0289970.20090.420814

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.41065 & -2.8451 & 0.003255 \tabularnewline
2 & 0.173769 & 1.2039 & 0.117264 \tabularnewline
3 & -0.24133 & -1.672 & 0.050517 \tabularnewline
4 & 0.075577 & 0.5236 & 0.301479 \tabularnewline
5 & 0.280103 & 1.9406 & 0.029095 \tabularnewline
6 & -0.124354 & -0.8615 & 0.19661 \tabularnewline
7 & 0.125029 & 0.8662 & 0.195338 \tabularnewline
8 & -0.211483 & -1.4652 & 0.074694 \tabularnewline
9 & 0.285029 & 1.9747 & 0.027033 \tabularnewline
10 & -0.178054 & -1.2336 & 0.111681 \tabularnewline
11 & 0.296691 & 2.0555 & 0.022645 \tabularnewline
12 & -0.322004 & -2.2309 & 0.015197 \tabularnewline
13 & 0.085036 & 0.5891 & 0.279263 \tabularnewline
14 & -0.069406 & -0.4809 & 0.316401 \tabularnewline
15 & 0.048535 & 0.3363 & 0.36907 \tabularnewline
16 & 0.139178 & 0.9643 & 0.169876 \tabularnewline
17 & -0.217958 & -1.5101 & 0.068792 \tabularnewline
18 & 0.128893 & 0.893 & 0.188156 \tabularnewline
19 & -0.280434 & -1.9429 & 0.028953 \tabularnewline
20 & 0.203871 & 1.4125 & 0.082133 \tabularnewline
21 & -0.131979 & -0.9144 & 0.182545 \tabularnewline
22 & 0.057936 & 0.4014 & 0.344955 \tabularnewline
23 & -0.11719 & -0.8119 & 0.210425 \tabularnewline
24 & -0.078678 & -0.5451 & 0.294104 \tabularnewline
25 & 0.095483 & 0.6615 & 0.255719 \tabularnewline
26 & -0.073871 & -0.5118 & 0.305572 \tabularnewline
27 & 0.015028 & 0.1041 & 0.458754 \tabularnewline
28 & -0.115903 & -0.803 & 0.212967 \tabularnewline
29 & 0.06824 & 0.4728 & 0.319257 \tabularnewline
30 & -0.101535 & -0.7035 & 0.242586 \tabularnewline
31 & 0.060601 & 0.4199 & 0.338232 \tabularnewline
32 & -0.062754 & -0.4348 & 0.332837 \tabularnewline
33 & 0.123132 & 0.8531 & 0.198925 \tabularnewline
34 & -0.067747 & -0.4694 & 0.320466 \tabularnewline
35 & -0.049019 & -0.3396 & 0.367815 \tabularnewline
36 & 0.028997 & 0.2009 & 0.420814 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60620&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.41065[/C][C]-2.8451[/C][C]0.003255[/C][/ROW]
[ROW][C]2[/C][C]0.173769[/C][C]1.2039[/C][C]0.117264[/C][/ROW]
[ROW][C]3[/C][C]-0.24133[/C][C]-1.672[/C][C]0.050517[/C][/ROW]
[ROW][C]4[/C][C]0.075577[/C][C]0.5236[/C][C]0.301479[/C][/ROW]
[ROW][C]5[/C][C]0.280103[/C][C]1.9406[/C][C]0.029095[/C][/ROW]
[ROW][C]6[/C][C]-0.124354[/C][C]-0.8615[/C][C]0.19661[/C][/ROW]
[ROW][C]7[/C][C]0.125029[/C][C]0.8662[/C][C]0.195338[/C][/ROW]
[ROW][C]8[/C][C]-0.211483[/C][C]-1.4652[/C][C]0.074694[/C][/ROW]
[ROW][C]9[/C][C]0.285029[/C][C]1.9747[/C][C]0.027033[/C][/ROW]
[ROW][C]10[/C][C]-0.178054[/C][C]-1.2336[/C][C]0.111681[/C][/ROW]
[ROW][C]11[/C][C]0.296691[/C][C]2.0555[/C][C]0.022645[/C][/ROW]
[ROW][C]12[/C][C]-0.322004[/C][C]-2.2309[/C][C]0.015197[/C][/ROW]
[ROW][C]13[/C][C]0.085036[/C][C]0.5891[/C][C]0.279263[/C][/ROW]
[ROW][C]14[/C][C]-0.069406[/C][C]-0.4809[/C][C]0.316401[/C][/ROW]
[ROW][C]15[/C][C]0.048535[/C][C]0.3363[/C][C]0.36907[/C][/ROW]
[ROW][C]16[/C][C]0.139178[/C][C]0.9643[/C][C]0.169876[/C][/ROW]
[ROW][C]17[/C][C]-0.217958[/C][C]-1.5101[/C][C]0.068792[/C][/ROW]
[ROW][C]18[/C][C]0.128893[/C][C]0.893[/C][C]0.188156[/C][/ROW]
[ROW][C]19[/C][C]-0.280434[/C][C]-1.9429[/C][C]0.028953[/C][/ROW]
[ROW][C]20[/C][C]0.203871[/C][C]1.4125[/C][C]0.082133[/C][/ROW]
[ROW][C]21[/C][C]-0.131979[/C][C]-0.9144[/C][C]0.182545[/C][/ROW]
[ROW][C]22[/C][C]0.057936[/C][C]0.4014[/C][C]0.344955[/C][/ROW]
[ROW][C]23[/C][C]-0.11719[/C][C]-0.8119[/C][C]0.210425[/C][/ROW]
[ROW][C]24[/C][C]-0.078678[/C][C]-0.5451[/C][C]0.294104[/C][/ROW]
[ROW][C]25[/C][C]0.095483[/C][C]0.6615[/C][C]0.255719[/C][/ROW]
[ROW][C]26[/C][C]-0.073871[/C][C]-0.5118[/C][C]0.305572[/C][/ROW]
[ROW][C]27[/C][C]0.015028[/C][C]0.1041[/C][C]0.458754[/C][/ROW]
[ROW][C]28[/C][C]-0.115903[/C][C]-0.803[/C][C]0.212967[/C][/ROW]
[ROW][C]29[/C][C]0.06824[/C][C]0.4728[/C][C]0.319257[/C][/ROW]
[ROW][C]30[/C][C]-0.101535[/C][C]-0.7035[/C][C]0.242586[/C][/ROW]
[ROW][C]31[/C][C]0.060601[/C][C]0.4199[/C][C]0.338232[/C][/ROW]
[ROW][C]32[/C][C]-0.062754[/C][C]-0.4348[/C][C]0.332837[/C][/ROW]
[ROW][C]33[/C][C]0.123132[/C][C]0.8531[/C][C]0.198925[/C][/ROW]
[ROW][C]34[/C][C]-0.067747[/C][C]-0.4694[/C][C]0.320466[/C][/ROW]
[ROW][C]35[/C][C]-0.049019[/C][C]-0.3396[/C][C]0.367815[/C][/ROW]
[ROW][C]36[/C][C]0.028997[/C][C]0.2009[/C][C]0.420814[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60620&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60620&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.41065-2.84510.003255
20.1737691.20390.117264
3-0.24133-1.6720.050517
40.0755770.52360.301479
50.2801031.94060.029095
6-0.124354-0.86150.19661
70.1250290.86620.195338
8-0.211483-1.46520.074694
90.2850291.97470.027033
10-0.178054-1.23360.111681
110.2966912.05550.022645
12-0.322004-2.23090.015197
130.0850360.58910.279263
14-0.069406-0.48090.316401
150.0485350.33630.36907
160.1391780.96430.169876
17-0.217958-1.51010.068792
180.1288930.8930.188156
19-0.280434-1.94290.028953
200.2038711.41250.082133
21-0.131979-0.91440.182545
220.0579360.40140.344955
23-0.11719-0.81190.210425
24-0.078678-0.54510.294104
250.0954830.66150.255719
26-0.073871-0.51180.305572
270.0150280.10410.458754
28-0.115903-0.8030.212967
290.068240.47280.319257
30-0.101535-0.70350.242586
310.0606010.41990.338232
32-0.062754-0.43480.332837
330.1231320.85310.198925
34-0.067747-0.46940.320466
35-0.049019-0.33960.367815
360.0289970.20090.420814







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.41065-2.84510.003255
20.0061780.04280.483019
3-0.201935-1.3990.084114
4-0.115733-0.80180.213304
50.3658562.53470.007284
60.108960.75490.226999
70.1036750.71830.238033
80.0055260.03830.484808
90.2180561.51070.068706
10-0.104683-0.72530.235906
110.2147761.4880.071645
12-0.160455-1.11170.13591
13-0.167132-1.15790.126312
14-0.198873-1.37780.087323
15-0.085744-0.59410.277632
16-0.06236-0.4320.333824
17-0.02201-0.15250.439719
180.0252590.1750.430907
19-0.127801-0.88540.190168
20-0.101192-0.70110.243319
210.0118440.08210.467472
22-0.065836-0.45610.325179
23-0.024697-0.17110.43243
24-0.086919-0.60220.27494
250.0003770.00260.498964
26-0.018956-0.13130.448032
27-0.09591-0.66450.254779
280.0793040.54940.292629
290.0817980.56670.286776
30-0.021006-0.14550.44245
31-0.06698-0.4640.322355
320.0058760.04070.483848
330.1686881.16870.124147
340.0301160.20870.417801
350.0171120.11860.453061
36-0.025151-0.17430.431201

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.41065 & -2.8451 & 0.003255 \tabularnewline
2 & 0.006178 & 0.0428 & 0.483019 \tabularnewline
3 & -0.201935 & -1.399 & 0.084114 \tabularnewline
4 & -0.115733 & -0.8018 & 0.213304 \tabularnewline
5 & 0.365856 & 2.5347 & 0.007284 \tabularnewline
6 & 0.10896 & 0.7549 & 0.226999 \tabularnewline
7 & 0.103675 & 0.7183 & 0.238033 \tabularnewline
8 & 0.005526 & 0.0383 & 0.484808 \tabularnewline
9 & 0.218056 & 1.5107 & 0.068706 \tabularnewline
10 & -0.104683 & -0.7253 & 0.235906 \tabularnewline
11 & 0.214776 & 1.488 & 0.071645 \tabularnewline
12 & -0.160455 & -1.1117 & 0.13591 \tabularnewline
13 & -0.167132 & -1.1579 & 0.126312 \tabularnewline
14 & -0.198873 & -1.3778 & 0.087323 \tabularnewline
15 & -0.085744 & -0.5941 & 0.277632 \tabularnewline
16 & -0.06236 & -0.432 & 0.333824 \tabularnewline
17 & -0.02201 & -0.1525 & 0.439719 \tabularnewline
18 & 0.025259 & 0.175 & 0.430907 \tabularnewline
19 & -0.127801 & -0.8854 & 0.190168 \tabularnewline
20 & -0.101192 & -0.7011 & 0.243319 \tabularnewline
21 & 0.011844 & 0.0821 & 0.467472 \tabularnewline
22 & -0.065836 & -0.4561 & 0.325179 \tabularnewline
23 & -0.024697 & -0.1711 & 0.43243 \tabularnewline
24 & -0.086919 & -0.6022 & 0.27494 \tabularnewline
25 & 0.000377 & 0.0026 & 0.498964 \tabularnewline
26 & -0.018956 & -0.1313 & 0.448032 \tabularnewline
27 & -0.09591 & -0.6645 & 0.254779 \tabularnewline
28 & 0.079304 & 0.5494 & 0.292629 \tabularnewline
29 & 0.081798 & 0.5667 & 0.286776 \tabularnewline
30 & -0.021006 & -0.1455 & 0.44245 \tabularnewline
31 & -0.06698 & -0.464 & 0.322355 \tabularnewline
32 & 0.005876 & 0.0407 & 0.483848 \tabularnewline
33 & 0.168688 & 1.1687 & 0.124147 \tabularnewline
34 & 0.030116 & 0.2087 & 0.417801 \tabularnewline
35 & 0.017112 & 0.1186 & 0.453061 \tabularnewline
36 & -0.025151 & -0.1743 & 0.431201 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60620&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.41065[/C][C]-2.8451[/C][C]0.003255[/C][/ROW]
[ROW][C]2[/C][C]0.006178[/C][C]0.0428[/C][C]0.483019[/C][/ROW]
[ROW][C]3[/C][C]-0.201935[/C][C]-1.399[/C][C]0.084114[/C][/ROW]
[ROW][C]4[/C][C]-0.115733[/C][C]-0.8018[/C][C]0.213304[/C][/ROW]
[ROW][C]5[/C][C]0.365856[/C][C]2.5347[/C][C]0.007284[/C][/ROW]
[ROW][C]6[/C][C]0.10896[/C][C]0.7549[/C][C]0.226999[/C][/ROW]
[ROW][C]7[/C][C]0.103675[/C][C]0.7183[/C][C]0.238033[/C][/ROW]
[ROW][C]8[/C][C]0.005526[/C][C]0.0383[/C][C]0.484808[/C][/ROW]
[ROW][C]9[/C][C]0.218056[/C][C]1.5107[/C][C]0.068706[/C][/ROW]
[ROW][C]10[/C][C]-0.104683[/C][C]-0.7253[/C][C]0.235906[/C][/ROW]
[ROW][C]11[/C][C]0.214776[/C][C]1.488[/C][C]0.071645[/C][/ROW]
[ROW][C]12[/C][C]-0.160455[/C][C]-1.1117[/C][C]0.13591[/C][/ROW]
[ROW][C]13[/C][C]-0.167132[/C][C]-1.1579[/C][C]0.126312[/C][/ROW]
[ROW][C]14[/C][C]-0.198873[/C][C]-1.3778[/C][C]0.087323[/C][/ROW]
[ROW][C]15[/C][C]-0.085744[/C][C]-0.5941[/C][C]0.277632[/C][/ROW]
[ROW][C]16[/C][C]-0.06236[/C][C]-0.432[/C][C]0.333824[/C][/ROW]
[ROW][C]17[/C][C]-0.02201[/C][C]-0.1525[/C][C]0.439719[/C][/ROW]
[ROW][C]18[/C][C]0.025259[/C][C]0.175[/C][C]0.430907[/C][/ROW]
[ROW][C]19[/C][C]-0.127801[/C][C]-0.8854[/C][C]0.190168[/C][/ROW]
[ROW][C]20[/C][C]-0.101192[/C][C]-0.7011[/C][C]0.243319[/C][/ROW]
[ROW][C]21[/C][C]0.011844[/C][C]0.0821[/C][C]0.467472[/C][/ROW]
[ROW][C]22[/C][C]-0.065836[/C][C]-0.4561[/C][C]0.325179[/C][/ROW]
[ROW][C]23[/C][C]-0.024697[/C][C]-0.1711[/C][C]0.43243[/C][/ROW]
[ROW][C]24[/C][C]-0.086919[/C][C]-0.6022[/C][C]0.27494[/C][/ROW]
[ROW][C]25[/C][C]0.000377[/C][C]0.0026[/C][C]0.498964[/C][/ROW]
[ROW][C]26[/C][C]-0.018956[/C][C]-0.1313[/C][C]0.448032[/C][/ROW]
[ROW][C]27[/C][C]-0.09591[/C][C]-0.6645[/C][C]0.254779[/C][/ROW]
[ROW][C]28[/C][C]0.079304[/C][C]0.5494[/C][C]0.292629[/C][/ROW]
[ROW][C]29[/C][C]0.081798[/C][C]0.5667[/C][C]0.286776[/C][/ROW]
[ROW][C]30[/C][C]-0.021006[/C][C]-0.1455[/C][C]0.44245[/C][/ROW]
[ROW][C]31[/C][C]-0.06698[/C][C]-0.464[/C][C]0.322355[/C][/ROW]
[ROW][C]32[/C][C]0.005876[/C][C]0.0407[/C][C]0.483848[/C][/ROW]
[ROW][C]33[/C][C]0.168688[/C][C]1.1687[/C][C]0.124147[/C][/ROW]
[ROW][C]34[/C][C]0.030116[/C][C]0.2087[/C][C]0.417801[/C][/ROW]
[ROW][C]35[/C][C]0.017112[/C][C]0.1186[/C][C]0.453061[/C][/ROW]
[ROW][C]36[/C][C]-0.025151[/C][C]-0.1743[/C][C]0.431201[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60620&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60620&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.41065-2.84510.003255
20.0061780.04280.483019
3-0.201935-1.3990.084114
4-0.115733-0.80180.213304
50.3658562.53470.007284
60.108960.75490.226999
70.1036750.71830.238033
80.0055260.03830.484808
90.2180561.51070.068706
10-0.104683-0.72530.235906
110.2147761.4880.071645
12-0.160455-1.11170.13591
13-0.167132-1.15790.126312
14-0.198873-1.37780.087323
15-0.085744-0.59410.277632
16-0.06236-0.4320.333824
17-0.02201-0.15250.439719
180.0252590.1750.430907
19-0.127801-0.88540.190168
20-0.101192-0.70110.243319
210.0118440.08210.467472
22-0.065836-0.45610.325179
23-0.024697-0.17110.43243
24-0.086919-0.60220.27494
250.0003770.00260.498964
26-0.018956-0.13130.448032
27-0.09591-0.66450.254779
280.0793040.54940.292629
290.0817980.56670.286776
30-0.021006-0.14550.44245
31-0.06698-0.4640.322355
320.0058760.04070.483848
330.1686881.16870.124147
340.0301160.20870.417801
350.0171120.11860.453061
36-0.025151-0.17430.431201



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