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 computationThu, 26 Nov 2009 04:15:27 -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/26/t1259234319md3neaomqyfas7d.htm/, Retrieved Sun, 28 Apr 2024 19:10:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59831, Retrieved Sun, 28 Apr 2024 19:10:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact139
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]
- R  D          [(Partial) Autocorrelation Function] [ACF Werkloosheid ...] [2009-11-26 11:15:27] [154177ed6b2613a730375f7d341441cf] [Current]
Feedback Forum

Post a new message
Dataseries X:
136
133
126
120
114
116
153
162
161
149
139
135
130
127
122
117
112
113
149
157
157
147
137
132
125
123
117
114
111
112
144
150
149
134
123
116
117
111
105
102
95
93
124
130
124
115
106
105
105
101
95
93
84
87
116
120
117
109
105
107
109




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59831&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.8169956.38090
20.5252284.10226.2e-05
30.2790362.17930.016589
40.1527061.19270.118808
50.1371421.07110.144168
60.1493571.16650.123973
70.1346221.05140.148604
80.1157930.90440.184678
90.1730521.35160.090751
100.3266412.55110.00663
110.5172314.03977.6e-05
120.6183054.82915e-06
130.45353.54190.000384
140.2109181.64730.052317
150.0077320.06040.476023
16-0.093916-0.73350.233029
17-0.106488-0.83170.204413
18-0.098237-0.76730.222943
19-0.117436-0.91720.181325
20-0.141133-1.10230.137334
21-0.103869-0.81120.210191
220.004430.03460.486256
230.1363371.06480.145576
240.2036571.59060.058433
250.0813090.6350.263889
26-0.095419-0.74520.229492
27-0.230408-1.79950.038439
28-0.279301-2.18140.016508
29-0.261433-2.04190.022748
30-0.23741-1.85420.034271
31-0.244897-1.91270.030241
32-0.264563-2.06630.021526
33-0.245907-1.92060.02973
34-0.178514-1.39420.084152
35-0.085192-0.66540.254162
36-0.0293-0.22880.40988

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.816995 & 6.3809 & 0 \tabularnewline
2 & 0.525228 & 4.1022 & 6.2e-05 \tabularnewline
3 & 0.279036 & 2.1793 & 0.016589 \tabularnewline
4 & 0.152706 & 1.1927 & 0.118808 \tabularnewline
5 & 0.137142 & 1.0711 & 0.144168 \tabularnewline
6 & 0.149357 & 1.1665 & 0.123973 \tabularnewline
7 & 0.134622 & 1.0514 & 0.148604 \tabularnewline
8 & 0.115793 & 0.9044 & 0.184678 \tabularnewline
9 & 0.173052 & 1.3516 & 0.090751 \tabularnewline
10 & 0.326641 & 2.5511 & 0.00663 \tabularnewline
11 & 0.517231 & 4.0397 & 7.6e-05 \tabularnewline
12 & 0.618305 & 4.8291 & 5e-06 \tabularnewline
13 & 0.4535 & 3.5419 & 0.000384 \tabularnewline
14 & 0.210918 & 1.6473 & 0.052317 \tabularnewline
15 & 0.007732 & 0.0604 & 0.476023 \tabularnewline
16 & -0.093916 & -0.7335 & 0.233029 \tabularnewline
17 & -0.106488 & -0.8317 & 0.204413 \tabularnewline
18 & -0.098237 & -0.7673 & 0.222943 \tabularnewline
19 & -0.117436 & -0.9172 & 0.181325 \tabularnewline
20 & -0.141133 & -1.1023 & 0.137334 \tabularnewline
21 & -0.103869 & -0.8112 & 0.210191 \tabularnewline
22 & 0.00443 & 0.0346 & 0.486256 \tabularnewline
23 & 0.136337 & 1.0648 & 0.145576 \tabularnewline
24 & 0.203657 & 1.5906 & 0.058433 \tabularnewline
25 & 0.081309 & 0.635 & 0.263889 \tabularnewline
26 & -0.095419 & -0.7452 & 0.229492 \tabularnewline
27 & -0.230408 & -1.7995 & 0.038439 \tabularnewline
28 & -0.279301 & -2.1814 & 0.016508 \tabularnewline
29 & -0.261433 & -2.0419 & 0.022748 \tabularnewline
30 & -0.23741 & -1.8542 & 0.034271 \tabularnewline
31 & -0.244897 & -1.9127 & 0.030241 \tabularnewline
32 & -0.264563 & -2.0663 & 0.021526 \tabularnewline
33 & -0.245907 & -1.9206 & 0.02973 \tabularnewline
34 & -0.178514 & -1.3942 & 0.084152 \tabularnewline
35 & -0.085192 & -0.6654 & 0.254162 \tabularnewline
36 & -0.0293 & -0.2288 & 0.40988 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59831&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.816995[/C][C]6.3809[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.525228[/C][C]4.1022[/C][C]6.2e-05[/C][/ROW]
[ROW][C]3[/C][C]0.279036[/C][C]2.1793[/C][C]0.016589[/C][/ROW]
[ROW][C]4[/C][C]0.152706[/C][C]1.1927[/C][C]0.118808[/C][/ROW]
[ROW][C]5[/C][C]0.137142[/C][C]1.0711[/C][C]0.144168[/C][/ROW]
[ROW][C]6[/C][C]0.149357[/C][C]1.1665[/C][C]0.123973[/C][/ROW]
[ROW][C]7[/C][C]0.134622[/C][C]1.0514[/C][C]0.148604[/C][/ROW]
[ROW][C]8[/C][C]0.115793[/C][C]0.9044[/C][C]0.184678[/C][/ROW]
[ROW][C]9[/C][C]0.173052[/C][C]1.3516[/C][C]0.090751[/C][/ROW]
[ROW][C]10[/C][C]0.326641[/C][C]2.5511[/C][C]0.00663[/C][/ROW]
[ROW][C]11[/C][C]0.517231[/C][C]4.0397[/C][C]7.6e-05[/C][/ROW]
[ROW][C]12[/C][C]0.618305[/C][C]4.8291[/C][C]5e-06[/C][/ROW]
[ROW][C]13[/C][C]0.4535[/C][C]3.5419[/C][C]0.000384[/C][/ROW]
[ROW][C]14[/C][C]0.210918[/C][C]1.6473[/C][C]0.052317[/C][/ROW]
[ROW][C]15[/C][C]0.007732[/C][C]0.0604[/C][C]0.476023[/C][/ROW]
[ROW][C]16[/C][C]-0.093916[/C][C]-0.7335[/C][C]0.233029[/C][/ROW]
[ROW][C]17[/C][C]-0.106488[/C][C]-0.8317[/C][C]0.204413[/C][/ROW]
[ROW][C]18[/C][C]-0.098237[/C][C]-0.7673[/C][C]0.222943[/C][/ROW]
[ROW][C]19[/C][C]-0.117436[/C][C]-0.9172[/C][C]0.181325[/C][/ROW]
[ROW][C]20[/C][C]-0.141133[/C][C]-1.1023[/C][C]0.137334[/C][/ROW]
[ROW][C]21[/C][C]-0.103869[/C][C]-0.8112[/C][C]0.210191[/C][/ROW]
[ROW][C]22[/C][C]0.00443[/C][C]0.0346[/C][C]0.486256[/C][/ROW]
[ROW][C]23[/C][C]0.136337[/C][C]1.0648[/C][C]0.145576[/C][/ROW]
[ROW][C]24[/C][C]0.203657[/C][C]1.5906[/C][C]0.058433[/C][/ROW]
[ROW][C]25[/C][C]0.081309[/C][C]0.635[/C][C]0.263889[/C][/ROW]
[ROW][C]26[/C][C]-0.095419[/C][C]-0.7452[/C][C]0.229492[/C][/ROW]
[ROW][C]27[/C][C]-0.230408[/C][C]-1.7995[/C][C]0.038439[/C][/ROW]
[ROW][C]28[/C][C]-0.279301[/C][C]-2.1814[/C][C]0.016508[/C][/ROW]
[ROW][C]29[/C][C]-0.261433[/C][C]-2.0419[/C][C]0.022748[/C][/ROW]
[ROW][C]30[/C][C]-0.23741[/C][C]-1.8542[/C][C]0.034271[/C][/ROW]
[ROW][C]31[/C][C]-0.244897[/C][C]-1.9127[/C][C]0.030241[/C][/ROW]
[ROW][C]32[/C][C]-0.264563[/C][C]-2.0663[/C][C]0.021526[/C][/ROW]
[ROW][C]33[/C][C]-0.245907[/C][C]-1.9206[/C][C]0.02973[/C][/ROW]
[ROW][C]34[/C][C]-0.178514[/C][C]-1.3942[/C][C]0.084152[/C][/ROW]
[ROW][C]35[/C][C]-0.085192[/C][C]-0.6654[/C][C]0.254162[/C][/ROW]
[ROW][C]36[/C][C]-0.0293[/C][C]-0.2288[/C][C]0.40988[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59831&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59831&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.8169956.38090
20.5252284.10226.2e-05
30.2790362.17930.016589
40.1527061.19270.118808
50.1371421.07110.144168
60.1493571.16650.123973
70.1346221.05140.148604
80.1157930.90440.184678
90.1730521.35160.090751
100.3266412.55110.00663
110.5172314.03977.6e-05
120.6183054.82915e-06
130.45353.54190.000384
140.2109181.64730.052317
150.0077320.06040.476023
16-0.093916-0.73350.233029
17-0.106488-0.83170.204413
18-0.098237-0.76730.222943
19-0.117436-0.91720.181325
20-0.141133-1.10230.137334
21-0.103869-0.81120.210191
220.004430.03460.486256
230.1363371.06480.145576
240.2036571.59060.058433
250.0813090.6350.263889
26-0.095419-0.74520.229492
27-0.230408-1.79950.038439
28-0.279301-2.18140.016508
29-0.261433-2.04190.022748
30-0.23741-1.85420.034271
31-0.244897-1.91270.030241
32-0.264563-2.06630.021526
33-0.245907-1.92060.02973
34-0.178514-1.39420.084152
35-0.085192-0.66540.254162
36-0.0293-0.22880.40988







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8169956.38090
2-0.427804-3.34130.000714
30.0584090.45620.324938
40.1218780.95190.172452
50.0893080.69750.244065
6-0.054091-0.42250.337087
7-0.034895-0.27250.393063
80.096890.75670.226061
90.2801922.18840.016241
100.2638672.06090.021793
110.2118211.65440.051594
120.0020690.01620.49358
13-0.578533-4.51851.5e-05
140.211721.65360.051674
15-0.06162-0.48130.316024
16-0.088343-0.690.246412
17-0.144267-1.12680.132128
18-0.074946-0.58530.280236
19-0.024586-0.1920.424182
200.0213560.16680.434042
21-0.063647-0.49710.310453
22-0.099509-0.77720.220025
23-0.04169-0.32560.372917
240.0584990.45690.324685
25-0.02751-0.21490.415296
26-0.034192-0.26710.395165
270.0313420.24480.40372
280.01230.09610.461892
290.0153780.12010.452398
30-0.029177-0.22790.410251
31-0.015343-0.11980.452506
32-0.042282-0.33020.371178
33-0.060799-0.47490.318293
34-0.054884-0.42870.334842
350.0159990.1250.450485
36-0.021261-0.16610.434332

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.816995 & 6.3809 & 0 \tabularnewline
2 & -0.427804 & -3.3413 & 0.000714 \tabularnewline
3 & 0.058409 & 0.4562 & 0.324938 \tabularnewline
4 & 0.121878 & 0.9519 & 0.172452 \tabularnewline
5 & 0.089308 & 0.6975 & 0.244065 \tabularnewline
6 & -0.054091 & -0.4225 & 0.337087 \tabularnewline
7 & -0.034895 & -0.2725 & 0.393063 \tabularnewline
8 & 0.09689 & 0.7567 & 0.226061 \tabularnewline
9 & 0.280192 & 2.1884 & 0.016241 \tabularnewline
10 & 0.263867 & 2.0609 & 0.021793 \tabularnewline
11 & 0.211821 & 1.6544 & 0.051594 \tabularnewline
12 & 0.002069 & 0.0162 & 0.49358 \tabularnewline
13 & -0.578533 & -4.5185 & 1.5e-05 \tabularnewline
14 & 0.21172 & 1.6536 & 0.051674 \tabularnewline
15 & -0.06162 & -0.4813 & 0.316024 \tabularnewline
16 & -0.088343 & -0.69 & 0.246412 \tabularnewline
17 & -0.144267 & -1.1268 & 0.132128 \tabularnewline
18 & -0.074946 & -0.5853 & 0.280236 \tabularnewline
19 & -0.024586 & -0.192 & 0.424182 \tabularnewline
20 & 0.021356 & 0.1668 & 0.434042 \tabularnewline
21 & -0.063647 & -0.4971 & 0.310453 \tabularnewline
22 & -0.099509 & -0.7772 & 0.220025 \tabularnewline
23 & -0.04169 & -0.3256 & 0.372917 \tabularnewline
24 & 0.058499 & 0.4569 & 0.324685 \tabularnewline
25 & -0.02751 & -0.2149 & 0.415296 \tabularnewline
26 & -0.034192 & -0.2671 & 0.395165 \tabularnewline
27 & 0.031342 & 0.2448 & 0.40372 \tabularnewline
28 & 0.0123 & 0.0961 & 0.461892 \tabularnewline
29 & 0.015378 & 0.1201 & 0.452398 \tabularnewline
30 & -0.029177 & -0.2279 & 0.410251 \tabularnewline
31 & -0.015343 & -0.1198 & 0.452506 \tabularnewline
32 & -0.042282 & -0.3302 & 0.371178 \tabularnewline
33 & -0.060799 & -0.4749 & 0.318293 \tabularnewline
34 & -0.054884 & -0.4287 & 0.334842 \tabularnewline
35 & 0.015999 & 0.125 & 0.450485 \tabularnewline
36 & -0.021261 & -0.1661 & 0.434332 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59831&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.816995[/C][C]6.3809[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.427804[/C][C]-3.3413[/C][C]0.000714[/C][/ROW]
[ROW][C]3[/C][C]0.058409[/C][C]0.4562[/C][C]0.324938[/C][/ROW]
[ROW][C]4[/C][C]0.121878[/C][C]0.9519[/C][C]0.172452[/C][/ROW]
[ROW][C]5[/C][C]0.089308[/C][C]0.6975[/C][C]0.244065[/C][/ROW]
[ROW][C]6[/C][C]-0.054091[/C][C]-0.4225[/C][C]0.337087[/C][/ROW]
[ROW][C]7[/C][C]-0.034895[/C][C]-0.2725[/C][C]0.393063[/C][/ROW]
[ROW][C]8[/C][C]0.09689[/C][C]0.7567[/C][C]0.226061[/C][/ROW]
[ROW][C]9[/C][C]0.280192[/C][C]2.1884[/C][C]0.016241[/C][/ROW]
[ROW][C]10[/C][C]0.263867[/C][C]2.0609[/C][C]0.021793[/C][/ROW]
[ROW][C]11[/C][C]0.211821[/C][C]1.6544[/C][C]0.051594[/C][/ROW]
[ROW][C]12[/C][C]0.002069[/C][C]0.0162[/C][C]0.49358[/C][/ROW]
[ROW][C]13[/C][C]-0.578533[/C][C]-4.5185[/C][C]1.5e-05[/C][/ROW]
[ROW][C]14[/C][C]0.21172[/C][C]1.6536[/C][C]0.051674[/C][/ROW]
[ROW][C]15[/C][C]-0.06162[/C][C]-0.4813[/C][C]0.316024[/C][/ROW]
[ROW][C]16[/C][C]-0.088343[/C][C]-0.69[/C][C]0.246412[/C][/ROW]
[ROW][C]17[/C][C]-0.144267[/C][C]-1.1268[/C][C]0.132128[/C][/ROW]
[ROW][C]18[/C][C]-0.074946[/C][C]-0.5853[/C][C]0.280236[/C][/ROW]
[ROW][C]19[/C][C]-0.024586[/C][C]-0.192[/C][C]0.424182[/C][/ROW]
[ROW][C]20[/C][C]0.021356[/C][C]0.1668[/C][C]0.434042[/C][/ROW]
[ROW][C]21[/C][C]-0.063647[/C][C]-0.4971[/C][C]0.310453[/C][/ROW]
[ROW][C]22[/C][C]-0.099509[/C][C]-0.7772[/C][C]0.220025[/C][/ROW]
[ROW][C]23[/C][C]-0.04169[/C][C]-0.3256[/C][C]0.372917[/C][/ROW]
[ROW][C]24[/C][C]0.058499[/C][C]0.4569[/C][C]0.324685[/C][/ROW]
[ROW][C]25[/C][C]-0.02751[/C][C]-0.2149[/C][C]0.415296[/C][/ROW]
[ROW][C]26[/C][C]-0.034192[/C][C]-0.2671[/C][C]0.395165[/C][/ROW]
[ROW][C]27[/C][C]0.031342[/C][C]0.2448[/C][C]0.40372[/C][/ROW]
[ROW][C]28[/C][C]0.0123[/C][C]0.0961[/C][C]0.461892[/C][/ROW]
[ROW][C]29[/C][C]0.015378[/C][C]0.1201[/C][C]0.452398[/C][/ROW]
[ROW][C]30[/C][C]-0.029177[/C][C]-0.2279[/C][C]0.410251[/C][/ROW]
[ROW][C]31[/C][C]-0.015343[/C][C]-0.1198[/C][C]0.452506[/C][/ROW]
[ROW][C]32[/C][C]-0.042282[/C][C]-0.3302[/C][C]0.371178[/C][/ROW]
[ROW][C]33[/C][C]-0.060799[/C][C]-0.4749[/C][C]0.318293[/C][/ROW]
[ROW][C]34[/C][C]-0.054884[/C][C]-0.4287[/C][C]0.334842[/C][/ROW]
[ROW][C]35[/C][C]0.015999[/C][C]0.125[/C][C]0.450485[/C][/ROW]
[ROW][C]36[/C][C]-0.021261[/C][C]-0.1661[/C][C]0.434332[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59831&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59831&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.8169956.38090
2-0.427804-3.34130.000714
30.0584090.45620.324938
40.1218780.95190.172452
50.0893080.69750.244065
6-0.054091-0.42250.337087
7-0.034895-0.27250.393063
80.096890.75670.226061
90.2801922.18840.016241
100.2638672.06090.021793
110.2118211.65440.051594
120.0020690.01620.49358
13-0.578533-4.51851.5e-05
140.211721.65360.051674
15-0.06162-0.48130.316024
16-0.088343-0.690.246412
17-0.144267-1.12680.132128
18-0.074946-0.58530.280236
19-0.024586-0.1920.424182
200.0213560.16680.434042
21-0.063647-0.49710.310453
22-0.099509-0.77720.220025
23-0.04169-0.32560.372917
240.0584990.45690.324685
25-0.02751-0.21490.415296
26-0.034192-0.26710.395165
270.0313420.24480.40372
280.01230.09610.461892
290.0153780.12010.452398
30-0.029177-0.22790.410251
31-0.015343-0.11980.452506
32-0.042282-0.33020.371178
33-0.060799-0.47490.318293
34-0.054884-0.42870.334842
350.0159990.1250.450485
36-0.021261-0.16610.434332



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