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, 04 Dec 2009 07:17:16 -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/04/t1259936329gk9dbb951s09976.htm/, Retrieved Sun, 28 Apr 2024 15:59:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63584, Retrieved Sun, 28 Apr 2024 15:59:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact137
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:48:46] [b98453cac15ba1066b407e146608df68]
- R  D    [(Partial) Autocorrelation Function] [] [2009-12-03 19:45:01] [325e037ef8beb77178124dff9c2e015a]
-   PD        [(Partial) Autocorrelation Function] [] [2009-12-04 14:17:16] [ed082d38031561faed979d8cebfeba4d] [Current]
Feedback Forum

Post a new message
Dataseries X:
112
118
132
129
121
135
148
148
136
119
104
118
115
126
141
135
125
149
170
170
158
133
114
140
145
150
178
163
172
178
199
199
184
162
146
166
171
180
193
181
183
218
230
242
209
191
172
194
196
196
236
235
229
243
264
272
237
211
180
201
204
188
235
227
234
264
302
293
259
229
203
229
242
233
267
269
270
315
364
347
312
274
237
278
284
277
317
313
318
374
413
405
355
306
271
306
315
301
356
348
355
422
465
467
404
347
305
336
340
318
362
348
363
435
491
505
404
359
310
337
360
342
406
396
420
472
548
559
463
407
362
405
417
391
419
461
472
535
622
606
508
461
390
432




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 & 2 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63584&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]2 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=63584&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63584&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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.655201-7.47040
20.2293382.61490.004991
3-0.07296-0.83190.203503
4-0.063623-0.72540.234752
50.0855650.97560.16554
6-0.001337-0.01520.493929
7-0.020022-0.22830.409892
8-0.09005-1.02670.153227
90.2088272.3810.009359
10-0.201832-2.30120.011485
110.1581781.80350.036812
12-0.1601-1.82540.035116
130.1146461.30720.096733
14-0.054645-0.62310.267171
150.0883971.00790.157692
16-0.104944-1.19650.11683
170.023490.26780.394626
180.0763470.87050.192819
19-0.068044-0.77580.219633
20-0.042887-0.4890.312837
210.1273481.4520.074457
22-0.234072-2.66880.004291
230.2364622.69610.003972
24-0.039413-0.44940.326955
25-0.088616-1.01040.157097
260.1194331.36170.087817
27-0.109796-1.25190.106434
280.0376950.42980.33403
290.0183740.20950.417196
300.0031480.03590.485712
31-0.097393-1.11040.134428
320.1594931.81850.035644
33-0.141272-1.61080.05483
340.0773940.88240.189587
35-0.006641-0.07570.469879
36-0.076767-0.87530.19152

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.655201 & -7.4704 & 0 \tabularnewline
2 & 0.229338 & 2.6149 & 0.004991 \tabularnewline
3 & -0.07296 & -0.8319 & 0.203503 \tabularnewline
4 & -0.063623 & -0.7254 & 0.234752 \tabularnewline
5 & 0.085565 & 0.9756 & 0.16554 \tabularnewline
6 & -0.001337 & -0.0152 & 0.493929 \tabularnewline
7 & -0.020022 & -0.2283 & 0.409892 \tabularnewline
8 & -0.09005 & -1.0267 & 0.153227 \tabularnewline
9 & 0.208827 & 2.381 & 0.009359 \tabularnewline
10 & -0.201832 & -2.3012 & 0.011485 \tabularnewline
11 & 0.158178 & 1.8035 & 0.036812 \tabularnewline
12 & -0.1601 & -1.8254 & 0.035116 \tabularnewline
13 & 0.114646 & 1.3072 & 0.096733 \tabularnewline
14 & -0.054645 & -0.6231 & 0.267171 \tabularnewline
15 & 0.088397 & 1.0079 & 0.157692 \tabularnewline
16 & -0.104944 & -1.1965 & 0.11683 \tabularnewline
17 & 0.02349 & 0.2678 & 0.394626 \tabularnewline
18 & 0.076347 & 0.8705 & 0.192819 \tabularnewline
19 & -0.068044 & -0.7758 & 0.219633 \tabularnewline
20 & -0.042887 & -0.489 & 0.312837 \tabularnewline
21 & 0.127348 & 1.452 & 0.074457 \tabularnewline
22 & -0.234072 & -2.6688 & 0.004291 \tabularnewline
23 & 0.236462 & 2.6961 & 0.003972 \tabularnewline
24 & -0.039413 & -0.4494 & 0.326955 \tabularnewline
25 & -0.088616 & -1.0104 & 0.157097 \tabularnewline
26 & 0.119433 & 1.3617 & 0.087817 \tabularnewline
27 & -0.109796 & -1.2519 & 0.106434 \tabularnewline
28 & 0.037695 & 0.4298 & 0.33403 \tabularnewline
29 & 0.018374 & 0.2095 & 0.417196 \tabularnewline
30 & 0.003148 & 0.0359 & 0.485712 \tabularnewline
31 & -0.097393 & -1.1104 & 0.134428 \tabularnewline
32 & 0.159493 & 1.8185 & 0.035644 \tabularnewline
33 & -0.141272 & -1.6108 & 0.05483 \tabularnewline
34 & 0.077394 & 0.8824 & 0.189587 \tabularnewline
35 & -0.006641 & -0.0757 & 0.469879 \tabularnewline
36 & -0.076767 & -0.8753 & 0.19152 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63584&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.655201[/C][C]-7.4704[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.229338[/C][C]2.6149[/C][C]0.004991[/C][/ROW]
[ROW][C]3[/C][C]-0.07296[/C][C]-0.8319[/C][C]0.203503[/C][/ROW]
[ROW][C]4[/C][C]-0.063623[/C][C]-0.7254[/C][C]0.234752[/C][/ROW]
[ROW][C]5[/C][C]0.085565[/C][C]0.9756[/C][C]0.16554[/C][/ROW]
[ROW][C]6[/C][C]-0.001337[/C][C]-0.0152[/C][C]0.493929[/C][/ROW]
[ROW][C]7[/C][C]-0.020022[/C][C]-0.2283[/C][C]0.409892[/C][/ROW]
[ROW][C]8[/C][C]-0.09005[/C][C]-1.0267[/C][C]0.153227[/C][/ROW]
[ROW][C]9[/C][C]0.208827[/C][C]2.381[/C][C]0.009359[/C][/ROW]
[ROW][C]10[/C][C]-0.201832[/C][C]-2.3012[/C][C]0.011485[/C][/ROW]
[ROW][C]11[/C][C]0.158178[/C][C]1.8035[/C][C]0.036812[/C][/ROW]
[ROW][C]12[/C][C]-0.1601[/C][C]-1.8254[/C][C]0.035116[/C][/ROW]
[ROW][C]13[/C][C]0.114646[/C][C]1.3072[/C][C]0.096733[/C][/ROW]
[ROW][C]14[/C][C]-0.054645[/C][C]-0.6231[/C][C]0.267171[/C][/ROW]
[ROW][C]15[/C][C]0.088397[/C][C]1.0079[/C][C]0.157692[/C][/ROW]
[ROW][C]16[/C][C]-0.104944[/C][C]-1.1965[/C][C]0.11683[/C][/ROW]
[ROW][C]17[/C][C]0.02349[/C][C]0.2678[/C][C]0.394626[/C][/ROW]
[ROW][C]18[/C][C]0.076347[/C][C]0.8705[/C][C]0.192819[/C][/ROW]
[ROW][C]19[/C][C]-0.068044[/C][C]-0.7758[/C][C]0.219633[/C][/ROW]
[ROW][C]20[/C][C]-0.042887[/C][C]-0.489[/C][C]0.312837[/C][/ROW]
[ROW][C]21[/C][C]0.127348[/C][C]1.452[/C][C]0.074457[/C][/ROW]
[ROW][C]22[/C][C]-0.234072[/C][C]-2.6688[/C][C]0.004291[/C][/ROW]
[ROW][C]23[/C][C]0.236462[/C][C]2.6961[/C][C]0.003972[/C][/ROW]
[ROW][C]24[/C][C]-0.039413[/C][C]-0.4494[/C][C]0.326955[/C][/ROW]
[ROW][C]25[/C][C]-0.088616[/C][C]-1.0104[/C][C]0.157097[/C][/ROW]
[ROW][C]26[/C][C]0.119433[/C][C]1.3617[/C][C]0.087817[/C][/ROW]
[ROW][C]27[/C][C]-0.109796[/C][C]-1.2519[/C][C]0.106434[/C][/ROW]
[ROW][C]28[/C][C]0.037695[/C][C]0.4298[/C][C]0.33403[/C][/ROW]
[ROW][C]29[/C][C]0.018374[/C][C]0.2095[/C][C]0.417196[/C][/ROW]
[ROW][C]30[/C][C]0.003148[/C][C]0.0359[/C][C]0.485712[/C][/ROW]
[ROW][C]31[/C][C]-0.097393[/C][C]-1.1104[/C][C]0.134428[/C][/ROW]
[ROW][C]32[/C][C]0.159493[/C][C]1.8185[/C][C]0.035644[/C][/ROW]
[ROW][C]33[/C][C]-0.141272[/C][C]-1.6108[/C][C]0.05483[/C][/ROW]
[ROW][C]34[/C][C]0.077394[/C][C]0.8824[/C][C]0.189587[/C][/ROW]
[ROW][C]35[/C][C]-0.006641[/C][C]-0.0757[/C][C]0.469879[/C][/ROW]
[ROW][C]36[/C][C]-0.076767[/C][C]-0.8753[/C][C]0.19152[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63584&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63584&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.655201-7.47040
20.2293382.61490.004991
3-0.07296-0.83190.203503
4-0.063623-0.72540.234752
50.0855650.97560.16554
6-0.001337-0.01520.493929
7-0.020022-0.22830.409892
8-0.09005-1.02670.153227
90.2088272.3810.009359
10-0.201832-2.30120.011485
110.1581781.80350.036812
12-0.1601-1.82540.035116
130.1146461.30720.096733
14-0.054645-0.62310.267171
150.0883971.00790.157692
16-0.104944-1.19650.11683
170.023490.26780.394626
180.0763470.87050.192819
19-0.068044-0.77580.219633
20-0.042887-0.4890.312837
210.1273481.4520.074457
22-0.234072-2.66880.004291
230.2364622.69610.003972
24-0.039413-0.44940.326955
25-0.088616-1.01040.157097
260.1194331.36170.087817
27-0.109796-1.25190.106434
280.0376950.42980.33403
290.0183740.20950.417196
300.0031480.03590.485712
31-0.097393-1.11040.134428
320.1594931.81850.035644
33-0.141272-1.61080.05483
340.0773940.88240.189587
35-0.006641-0.07570.469879
36-0.076767-0.87530.19152







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.655201-7.47040
2-0.350353-3.99465.4e-05
3-0.198947-2.26830.012478
4-0.297173-3.38830.000466
5-0.257247-2.93310.001984
6-0.117333-1.33780.091649
7-0.073879-0.84240.20057
8-0.316536-3.60910.000219
9-0.066802-0.76170.22382
10-0.0728-0.830.204017
11-0.019955-0.22750.410187
12-0.181974-2.07480.019988
13-0.106639-1.21590.113118
14-0.125622-1.43230.077228
15-0.00327-0.03730.48516
16-0.059577-0.67930.249084
17-0.097624-1.11310.133863
180.0342620.39060.348349
190.1549571.76680.039806
20-0.123414-1.40710.080886
210.0960381.0950.137769
22-0.210968-2.40540.008781
23-0.20466-2.33350.010579
24-0.099793-1.13780.128644
25-0.075343-0.8590.195949
26-0.017137-0.19540.422696
270.0170950.19490.422883
28-0.027964-0.31880.375179
290.0445420.50790.306205
300.0614850.7010.242268
31-0.005203-0.05930.476392
32-0.019233-0.21930.413385
33-0.032088-0.36590.357534
34-0.109186-1.24490.107702
35-0.040723-0.46430.3216
36-0.190874-2.17630.01567

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.655201 & -7.4704 & 0 \tabularnewline
2 & -0.350353 & -3.9946 & 5.4e-05 \tabularnewline
3 & -0.198947 & -2.2683 & 0.012478 \tabularnewline
4 & -0.297173 & -3.3883 & 0.000466 \tabularnewline
5 & -0.257247 & -2.9331 & 0.001984 \tabularnewline
6 & -0.117333 & -1.3378 & 0.091649 \tabularnewline
7 & -0.073879 & -0.8424 & 0.20057 \tabularnewline
8 & -0.316536 & -3.6091 & 0.000219 \tabularnewline
9 & -0.066802 & -0.7617 & 0.22382 \tabularnewline
10 & -0.0728 & -0.83 & 0.204017 \tabularnewline
11 & -0.019955 & -0.2275 & 0.410187 \tabularnewline
12 & -0.181974 & -2.0748 & 0.019988 \tabularnewline
13 & -0.106639 & -1.2159 & 0.113118 \tabularnewline
14 & -0.125622 & -1.4323 & 0.077228 \tabularnewline
15 & -0.00327 & -0.0373 & 0.48516 \tabularnewline
16 & -0.059577 & -0.6793 & 0.249084 \tabularnewline
17 & -0.097624 & -1.1131 & 0.133863 \tabularnewline
18 & 0.034262 & 0.3906 & 0.348349 \tabularnewline
19 & 0.154957 & 1.7668 & 0.039806 \tabularnewline
20 & -0.123414 & -1.4071 & 0.080886 \tabularnewline
21 & 0.096038 & 1.095 & 0.137769 \tabularnewline
22 & -0.210968 & -2.4054 & 0.008781 \tabularnewline
23 & -0.20466 & -2.3335 & 0.010579 \tabularnewline
24 & -0.099793 & -1.1378 & 0.128644 \tabularnewline
25 & -0.075343 & -0.859 & 0.195949 \tabularnewline
26 & -0.017137 & -0.1954 & 0.422696 \tabularnewline
27 & 0.017095 & 0.1949 & 0.422883 \tabularnewline
28 & -0.027964 & -0.3188 & 0.375179 \tabularnewline
29 & 0.044542 & 0.5079 & 0.306205 \tabularnewline
30 & 0.061485 & 0.701 & 0.242268 \tabularnewline
31 & -0.005203 & -0.0593 & 0.476392 \tabularnewline
32 & -0.019233 & -0.2193 & 0.413385 \tabularnewline
33 & -0.032088 & -0.3659 & 0.357534 \tabularnewline
34 & -0.109186 & -1.2449 & 0.107702 \tabularnewline
35 & -0.040723 & -0.4643 & 0.3216 \tabularnewline
36 & -0.190874 & -2.1763 & 0.01567 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63584&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.655201[/C][C]-7.4704[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.350353[/C][C]-3.9946[/C][C]5.4e-05[/C][/ROW]
[ROW][C]3[/C][C]-0.198947[/C][C]-2.2683[/C][C]0.012478[/C][/ROW]
[ROW][C]4[/C][C]-0.297173[/C][C]-3.3883[/C][C]0.000466[/C][/ROW]
[ROW][C]5[/C][C]-0.257247[/C][C]-2.9331[/C][C]0.001984[/C][/ROW]
[ROW][C]6[/C][C]-0.117333[/C][C]-1.3378[/C][C]0.091649[/C][/ROW]
[ROW][C]7[/C][C]-0.073879[/C][C]-0.8424[/C][C]0.20057[/C][/ROW]
[ROW][C]8[/C][C]-0.316536[/C][C]-3.6091[/C][C]0.000219[/C][/ROW]
[ROW][C]9[/C][C]-0.066802[/C][C]-0.7617[/C][C]0.22382[/C][/ROW]
[ROW][C]10[/C][C]-0.0728[/C][C]-0.83[/C][C]0.204017[/C][/ROW]
[ROW][C]11[/C][C]-0.019955[/C][C]-0.2275[/C][C]0.410187[/C][/ROW]
[ROW][C]12[/C][C]-0.181974[/C][C]-2.0748[/C][C]0.019988[/C][/ROW]
[ROW][C]13[/C][C]-0.106639[/C][C]-1.2159[/C][C]0.113118[/C][/ROW]
[ROW][C]14[/C][C]-0.125622[/C][C]-1.4323[/C][C]0.077228[/C][/ROW]
[ROW][C]15[/C][C]-0.00327[/C][C]-0.0373[/C][C]0.48516[/C][/ROW]
[ROW][C]16[/C][C]-0.059577[/C][C]-0.6793[/C][C]0.249084[/C][/ROW]
[ROW][C]17[/C][C]-0.097624[/C][C]-1.1131[/C][C]0.133863[/C][/ROW]
[ROW][C]18[/C][C]0.034262[/C][C]0.3906[/C][C]0.348349[/C][/ROW]
[ROW][C]19[/C][C]0.154957[/C][C]1.7668[/C][C]0.039806[/C][/ROW]
[ROW][C]20[/C][C]-0.123414[/C][C]-1.4071[/C][C]0.080886[/C][/ROW]
[ROW][C]21[/C][C]0.096038[/C][C]1.095[/C][C]0.137769[/C][/ROW]
[ROW][C]22[/C][C]-0.210968[/C][C]-2.4054[/C][C]0.008781[/C][/ROW]
[ROW][C]23[/C][C]-0.20466[/C][C]-2.3335[/C][C]0.010579[/C][/ROW]
[ROW][C]24[/C][C]-0.099793[/C][C]-1.1378[/C][C]0.128644[/C][/ROW]
[ROW][C]25[/C][C]-0.075343[/C][C]-0.859[/C][C]0.195949[/C][/ROW]
[ROW][C]26[/C][C]-0.017137[/C][C]-0.1954[/C][C]0.422696[/C][/ROW]
[ROW][C]27[/C][C]0.017095[/C][C]0.1949[/C][C]0.422883[/C][/ROW]
[ROW][C]28[/C][C]-0.027964[/C][C]-0.3188[/C][C]0.375179[/C][/ROW]
[ROW][C]29[/C][C]0.044542[/C][C]0.5079[/C][C]0.306205[/C][/ROW]
[ROW][C]30[/C][C]0.061485[/C][C]0.701[/C][C]0.242268[/C][/ROW]
[ROW][C]31[/C][C]-0.005203[/C][C]-0.0593[/C][C]0.476392[/C][/ROW]
[ROW][C]32[/C][C]-0.019233[/C][C]-0.2193[/C][C]0.413385[/C][/ROW]
[ROW][C]33[/C][C]-0.032088[/C][C]-0.3659[/C][C]0.357534[/C][/ROW]
[ROW][C]34[/C][C]-0.109186[/C][C]-1.2449[/C][C]0.107702[/C][/ROW]
[ROW][C]35[/C][C]-0.040723[/C][C]-0.4643[/C][C]0.3216[/C][/ROW]
[ROW][C]36[/C][C]-0.190874[/C][C]-2.1763[/C][C]0.01567[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63584&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63584&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.655201-7.47040
2-0.350353-3.99465.4e-05
3-0.198947-2.26830.012478
4-0.297173-3.38830.000466
5-0.257247-2.93310.001984
6-0.117333-1.33780.091649
7-0.073879-0.84240.20057
8-0.316536-3.60910.000219
9-0.066802-0.76170.22382
10-0.0728-0.830.204017
11-0.019955-0.22750.410187
12-0.181974-2.07480.019988
13-0.106639-1.21590.113118
14-0.125622-1.43230.077228
15-0.00327-0.03730.48516
16-0.059577-0.67930.249084
17-0.097624-1.11310.133863
180.0342620.39060.348349
190.1549571.76680.039806
20-0.123414-1.40710.080886
210.0960381.0950.137769
22-0.210968-2.40540.008781
23-0.20466-2.33350.010579
24-0.099793-1.13780.128644
25-0.075343-0.8590.195949
26-0.017137-0.19540.422696
270.0170950.19490.422883
28-0.027964-0.31880.375179
290.0445420.50790.306205
300.0614850.7010.242268
31-0.005203-0.05930.476392
32-0.019233-0.21930.413385
33-0.032088-0.36590.357534
34-0.109186-1.24490.107702
35-0.040723-0.46430.3216
36-0.190874-2.17630.01567



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