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 computationWed, 29 Dec 2010 21:39:31 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/29/t12936587876txeh2vep4m1r07.htm/, Retrieved Fri, 03 May 2024 09:16:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=117136, Retrieved Fri, 03 May 2024 09:16:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact141
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [(partial) autocor...] [2009-12-09 13:20:29] [f7fc9270f813d017f9fa5b506fdc7682]
-   P   [(Partial) Autocorrelation Function] [autocorrelation] [2009-12-09 13:36:40] [f7fc9270f813d017f9fa5b506fdc7682]
- R  D    [(Partial) Autocorrelation Function] [Autocorrelatie] [2010-12-27 10:03:28] [c420bdd199bcbe079f7d532ca3855317]
-             [(Partial) Autocorrelation Function] [Autocorrelatiefun...] [2010-12-29 21:39:31] [63a115f47699ab31b1a302b9539c58a2] [Current]
Feedback Forum

Post a new message
Dataseries X:
206010
198112
194519
185705
180173
176142
203401
221902
197378
185001
176356
180449
180144
173666
165688
161570
156145
153730
182698
200765
176512
166618
158644
159585
163095
159044
155511
153745
150569
150605
179612
194690
189917
184128
175335
179566
181140
177876
175041
169292
166070
166972
206348
215706
202108
195411
193111
195198
198770
194163
190420
189733
186029
191531
232571
243477
227247
217859
208679
213188
216234
213586
209465
204045
200237
203666
241476
260307
243324
244460
233575
237217
235243
230354
227184
221678
217142
219452
256446
265845
248624
241114
229245
231805
219277
219313
212610
214771
211142
211457
240048
240636
230580
208795
197922
194596
194581
185686
178106
172608
167302
168053
202300
202388
182516
173476
166444
171297
169701
164182
161914
159612
151001
158114
186530
187069
174330
169362
166827
178037
186413
189226
191563
188906
186005
195309
223532
226899
214126
206903
204442
220375
214320
212588
205816
202196
195722
198563
229139
229527
211868
203555
195770




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ www.wessa.org

\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' @ www.wessa.org \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=117136&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' @ www.wessa.org[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=117136&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=117136&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' @ www.wessa.org







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.88735610.61120
20.722298.63730
30.6285257.51610
40.6042547.22580
50.6127347.32720
60.6011877.18920
70.5621576.72240
80.4989955.96710
90.4688825.6070
100.4991765.96930
110.5991187.16440
120.6428077.68690
130.500365.98340
140.3150883.76790.00012
150.1978452.36590.009664
160.1466611.75380.040803
170.1302181.55720.060819
180.1004961.20180.115721
190.0471020.56330.28707
20-0.021996-0.2630.396452
21-0.056292-0.67320.250969
22-0.0332-0.3970.345976
230.0566170.6770.249736
240.092571.1070.13508
25-0.034777-0.41590.339062
26-0.193208-2.31040.011147
27-0.284947-3.40750.000426
28-0.315636-3.77450.000117
29-0.31326-3.7460.00013
30-0.321827-3.84858.9e-05
31-0.345973-4.13723e-05
32-0.381228-4.55885e-06
33-0.383892-4.59075e-06
34-0.333018-3.98235.4e-05
35-0.222709-2.66320.004314
36-0.171665-2.05280.020957

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.887356 & 10.6112 & 0 \tabularnewline
2 & 0.72229 & 8.6373 & 0 \tabularnewline
3 & 0.628525 & 7.5161 & 0 \tabularnewline
4 & 0.604254 & 7.2258 & 0 \tabularnewline
5 & 0.612734 & 7.3272 & 0 \tabularnewline
6 & 0.601187 & 7.1892 & 0 \tabularnewline
7 & 0.562157 & 6.7224 & 0 \tabularnewline
8 & 0.498995 & 5.9671 & 0 \tabularnewline
9 & 0.468882 & 5.607 & 0 \tabularnewline
10 & 0.499176 & 5.9693 & 0 \tabularnewline
11 & 0.599118 & 7.1644 & 0 \tabularnewline
12 & 0.642807 & 7.6869 & 0 \tabularnewline
13 & 0.50036 & 5.9834 & 0 \tabularnewline
14 & 0.315088 & 3.7679 & 0.00012 \tabularnewline
15 & 0.197845 & 2.3659 & 0.009664 \tabularnewline
16 & 0.146661 & 1.7538 & 0.040803 \tabularnewline
17 & 0.130218 & 1.5572 & 0.060819 \tabularnewline
18 & 0.100496 & 1.2018 & 0.115721 \tabularnewline
19 & 0.047102 & 0.5633 & 0.28707 \tabularnewline
20 & -0.021996 & -0.263 & 0.396452 \tabularnewline
21 & -0.056292 & -0.6732 & 0.250969 \tabularnewline
22 & -0.0332 & -0.397 & 0.345976 \tabularnewline
23 & 0.056617 & 0.677 & 0.249736 \tabularnewline
24 & 0.09257 & 1.107 & 0.13508 \tabularnewline
25 & -0.034777 & -0.4159 & 0.339062 \tabularnewline
26 & -0.193208 & -2.3104 & 0.011147 \tabularnewline
27 & -0.284947 & -3.4075 & 0.000426 \tabularnewline
28 & -0.315636 & -3.7745 & 0.000117 \tabularnewline
29 & -0.31326 & -3.746 & 0.00013 \tabularnewline
30 & -0.321827 & -3.8485 & 8.9e-05 \tabularnewline
31 & -0.345973 & -4.1372 & 3e-05 \tabularnewline
32 & -0.381228 & -4.5588 & 5e-06 \tabularnewline
33 & -0.383892 & -4.5907 & 5e-06 \tabularnewline
34 & -0.333018 & -3.9823 & 5.4e-05 \tabularnewline
35 & -0.222709 & -2.6632 & 0.004314 \tabularnewline
36 & -0.171665 & -2.0528 & 0.020957 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=117136&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.887356[/C][C]10.6112[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.72229[/C][C]8.6373[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.628525[/C][C]7.5161[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.604254[/C][C]7.2258[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0.612734[/C][C]7.3272[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0.601187[/C][C]7.1892[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0.562157[/C][C]6.7224[/C][C]0[/C][/ROW]
[ROW][C]8[/C][C]0.498995[/C][C]5.9671[/C][C]0[/C][/ROW]
[ROW][C]9[/C][C]0.468882[/C][C]5.607[/C][C]0[/C][/ROW]
[ROW][C]10[/C][C]0.499176[/C][C]5.9693[/C][C]0[/C][/ROW]
[ROW][C]11[/C][C]0.599118[/C][C]7.1644[/C][C]0[/C][/ROW]
[ROW][C]12[/C][C]0.642807[/C][C]7.6869[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.50036[/C][C]5.9834[/C][C]0[/C][/ROW]
[ROW][C]14[/C][C]0.315088[/C][C]3.7679[/C][C]0.00012[/C][/ROW]
[ROW][C]15[/C][C]0.197845[/C][C]2.3659[/C][C]0.009664[/C][/ROW]
[ROW][C]16[/C][C]0.146661[/C][C]1.7538[/C][C]0.040803[/C][/ROW]
[ROW][C]17[/C][C]0.130218[/C][C]1.5572[/C][C]0.060819[/C][/ROW]
[ROW][C]18[/C][C]0.100496[/C][C]1.2018[/C][C]0.115721[/C][/ROW]
[ROW][C]19[/C][C]0.047102[/C][C]0.5633[/C][C]0.28707[/C][/ROW]
[ROW][C]20[/C][C]-0.021996[/C][C]-0.263[/C][C]0.396452[/C][/ROW]
[ROW][C]21[/C][C]-0.056292[/C][C]-0.6732[/C][C]0.250969[/C][/ROW]
[ROW][C]22[/C][C]-0.0332[/C][C]-0.397[/C][C]0.345976[/C][/ROW]
[ROW][C]23[/C][C]0.056617[/C][C]0.677[/C][C]0.249736[/C][/ROW]
[ROW][C]24[/C][C]0.09257[/C][C]1.107[/C][C]0.13508[/C][/ROW]
[ROW][C]25[/C][C]-0.034777[/C][C]-0.4159[/C][C]0.339062[/C][/ROW]
[ROW][C]26[/C][C]-0.193208[/C][C]-2.3104[/C][C]0.011147[/C][/ROW]
[ROW][C]27[/C][C]-0.284947[/C][C]-3.4075[/C][C]0.000426[/C][/ROW]
[ROW][C]28[/C][C]-0.315636[/C][C]-3.7745[/C][C]0.000117[/C][/ROW]
[ROW][C]29[/C][C]-0.31326[/C][C]-3.746[/C][C]0.00013[/C][/ROW]
[ROW][C]30[/C][C]-0.321827[/C][C]-3.8485[/C][C]8.9e-05[/C][/ROW]
[ROW][C]31[/C][C]-0.345973[/C][C]-4.1372[/C][C]3e-05[/C][/ROW]
[ROW][C]32[/C][C]-0.381228[/C][C]-4.5588[/C][C]5e-06[/C][/ROW]
[ROW][C]33[/C][C]-0.383892[/C][C]-4.5907[/C][C]5e-06[/C][/ROW]
[ROW][C]34[/C][C]-0.333018[/C][C]-3.9823[/C][C]5.4e-05[/C][/ROW]
[ROW][C]35[/C][C]-0.222709[/C][C]-2.6632[/C][C]0.004314[/C][/ROW]
[ROW][C]36[/C][C]-0.171665[/C][C]-2.0528[/C][C]0.020957[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=117136&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=117136&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.88735610.61120
20.722298.63730
30.6285257.51610
40.6042547.22580
50.6127347.32720
60.6011877.18920
70.5621576.72240
80.4989955.96710
90.4688825.6070
100.4991765.96930
110.5991187.16440
120.6428077.68690
130.500365.98340
140.3150883.76790.00012
150.1978452.36590.009664
160.1466611.75380.040803
170.1302181.55720.060819
180.1004961.20180.115721
190.0471020.56330.28707
20-0.021996-0.2630.396452
21-0.056292-0.67320.250969
22-0.0332-0.3970.345976
230.0566170.6770.249736
240.092571.1070.13508
25-0.034777-0.41590.339062
26-0.193208-2.31040.011147
27-0.284947-3.40750.000426
28-0.315636-3.77450.000117
29-0.31326-3.7460.00013
30-0.321827-3.84858.9e-05
31-0.345973-4.13723e-05
32-0.381228-4.55885e-06
33-0.383892-4.59075e-06
34-0.333018-3.98235.4e-05
35-0.222709-2.66320.004314
36-0.171665-2.05280.020957







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.88735610.61120
2-0.306263-3.66240.000176
30.3273543.91467e-05
40.1017571.21680.112836
50.145851.74410.041644
6-0.039986-0.47820.316633
70.0344770.41230.340374
8-0.107284-1.28290.100796
90.2008542.40190.008798
100.1297461.55150.061491
110.4190725.01141e-06
12-0.351364-4.20172.3e-05
13-0.682767-8.16470
14-0.010037-0.120.452315
15-0.07825-0.93570.175495
16-0.19403-2.32030.010871
170.0369570.44190.329599
18-0.093544-1.11860.132588
190.0488270.58390.280109
200.0575830.68860.246097
210.0644890.77120.220938
220.0129550.15490.438553
230.1103631.31970.094514
24-0.000616-0.00740.497067
25-0.081051-0.96920.167033
260.0464940.5560.289543
270.0263340.31490.376646
28-0.104883-1.25420.105905
290.0276580.33070.370664
30-0.089183-1.06650.144003
310.1138821.36180.087696
32-0.061431-0.73460.23189
330.0384440.45970.323205
340.0006690.0080.496815
350.024950.29840.382932
36-0.128124-1.53210.063849

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.887356 & 10.6112 & 0 \tabularnewline
2 & -0.306263 & -3.6624 & 0.000176 \tabularnewline
3 & 0.327354 & 3.9146 & 7e-05 \tabularnewline
4 & 0.101757 & 1.2168 & 0.112836 \tabularnewline
5 & 0.14585 & 1.7441 & 0.041644 \tabularnewline
6 & -0.039986 & -0.4782 & 0.316633 \tabularnewline
7 & 0.034477 & 0.4123 & 0.340374 \tabularnewline
8 & -0.107284 & -1.2829 & 0.100796 \tabularnewline
9 & 0.200854 & 2.4019 & 0.008798 \tabularnewline
10 & 0.129746 & 1.5515 & 0.061491 \tabularnewline
11 & 0.419072 & 5.0114 & 1e-06 \tabularnewline
12 & -0.351364 & -4.2017 & 2.3e-05 \tabularnewline
13 & -0.682767 & -8.1647 & 0 \tabularnewline
14 & -0.010037 & -0.12 & 0.452315 \tabularnewline
15 & -0.07825 & -0.9357 & 0.175495 \tabularnewline
16 & -0.19403 & -2.3203 & 0.010871 \tabularnewline
17 & 0.036957 & 0.4419 & 0.329599 \tabularnewline
18 & -0.093544 & -1.1186 & 0.132588 \tabularnewline
19 & 0.048827 & 0.5839 & 0.280109 \tabularnewline
20 & 0.057583 & 0.6886 & 0.246097 \tabularnewline
21 & 0.064489 & 0.7712 & 0.220938 \tabularnewline
22 & 0.012955 & 0.1549 & 0.438553 \tabularnewline
23 & 0.110363 & 1.3197 & 0.094514 \tabularnewline
24 & -0.000616 & -0.0074 & 0.497067 \tabularnewline
25 & -0.081051 & -0.9692 & 0.167033 \tabularnewline
26 & 0.046494 & 0.556 & 0.289543 \tabularnewline
27 & 0.026334 & 0.3149 & 0.376646 \tabularnewline
28 & -0.104883 & -1.2542 & 0.105905 \tabularnewline
29 & 0.027658 & 0.3307 & 0.370664 \tabularnewline
30 & -0.089183 & -1.0665 & 0.144003 \tabularnewline
31 & 0.113882 & 1.3618 & 0.087696 \tabularnewline
32 & -0.061431 & -0.7346 & 0.23189 \tabularnewline
33 & 0.038444 & 0.4597 & 0.323205 \tabularnewline
34 & 0.000669 & 0.008 & 0.496815 \tabularnewline
35 & 0.02495 & 0.2984 & 0.382932 \tabularnewline
36 & -0.128124 & -1.5321 & 0.063849 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=117136&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.887356[/C][C]10.6112[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.306263[/C][C]-3.6624[/C][C]0.000176[/C][/ROW]
[ROW][C]3[/C][C]0.327354[/C][C]3.9146[/C][C]7e-05[/C][/ROW]
[ROW][C]4[/C][C]0.101757[/C][C]1.2168[/C][C]0.112836[/C][/ROW]
[ROW][C]5[/C][C]0.14585[/C][C]1.7441[/C][C]0.041644[/C][/ROW]
[ROW][C]6[/C][C]-0.039986[/C][C]-0.4782[/C][C]0.316633[/C][/ROW]
[ROW][C]7[/C][C]0.034477[/C][C]0.4123[/C][C]0.340374[/C][/ROW]
[ROW][C]8[/C][C]-0.107284[/C][C]-1.2829[/C][C]0.100796[/C][/ROW]
[ROW][C]9[/C][C]0.200854[/C][C]2.4019[/C][C]0.008798[/C][/ROW]
[ROW][C]10[/C][C]0.129746[/C][C]1.5515[/C][C]0.061491[/C][/ROW]
[ROW][C]11[/C][C]0.419072[/C][C]5.0114[/C][C]1e-06[/C][/ROW]
[ROW][C]12[/C][C]-0.351364[/C][C]-4.2017[/C][C]2.3e-05[/C][/ROW]
[ROW][C]13[/C][C]-0.682767[/C][C]-8.1647[/C][C]0[/C][/ROW]
[ROW][C]14[/C][C]-0.010037[/C][C]-0.12[/C][C]0.452315[/C][/ROW]
[ROW][C]15[/C][C]-0.07825[/C][C]-0.9357[/C][C]0.175495[/C][/ROW]
[ROW][C]16[/C][C]-0.19403[/C][C]-2.3203[/C][C]0.010871[/C][/ROW]
[ROW][C]17[/C][C]0.036957[/C][C]0.4419[/C][C]0.329599[/C][/ROW]
[ROW][C]18[/C][C]-0.093544[/C][C]-1.1186[/C][C]0.132588[/C][/ROW]
[ROW][C]19[/C][C]0.048827[/C][C]0.5839[/C][C]0.280109[/C][/ROW]
[ROW][C]20[/C][C]0.057583[/C][C]0.6886[/C][C]0.246097[/C][/ROW]
[ROW][C]21[/C][C]0.064489[/C][C]0.7712[/C][C]0.220938[/C][/ROW]
[ROW][C]22[/C][C]0.012955[/C][C]0.1549[/C][C]0.438553[/C][/ROW]
[ROW][C]23[/C][C]0.110363[/C][C]1.3197[/C][C]0.094514[/C][/ROW]
[ROW][C]24[/C][C]-0.000616[/C][C]-0.0074[/C][C]0.497067[/C][/ROW]
[ROW][C]25[/C][C]-0.081051[/C][C]-0.9692[/C][C]0.167033[/C][/ROW]
[ROW][C]26[/C][C]0.046494[/C][C]0.556[/C][C]0.289543[/C][/ROW]
[ROW][C]27[/C][C]0.026334[/C][C]0.3149[/C][C]0.376646[/C][/ROW]
[ROW][C]28[/C][C]-0.104883[/C][C]-1.2542[/C][C]0.105905[/C][/ROW]
[ROW][C]29[/C][C]0.027658[/C][C]0.3307[/C][C]0.370664[/C][/ROW]
[ROW][C]30[/C][C]-0.089183[/C][C]-1.0665[/C][C]0.144003[/C][/ROW]
[ROW][C]31[/C][C]0.113882[/C][C]1.3618[/C][C]0.087696[/C][/ROW]
[ROW][C]32[/C][C]-0.061431[/C][C]-0.7346[/C][C]0.23189[/C][/ROW]
[ROW][C]33[/C][C]0.038444[/C][C]0.4597[/C][C]0.323205[/C][/ROW]
[ROW][C]34[/C][C]0.000669[/C][C]0.008[/C][C]0.496815[/C][/ROW]
[ROW][C]35[/C][C]0.02495[/C][C]0.2984[/C][C]0.382932[/C][/ROW]
[ROW][C]36[/C][C]-0.128124[/C][C]-1.5321[/C][C]0.063849[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=117136&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=117136&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.88735610.61120
2-0.306263-3.66240.000176
30.3273543.91467e-05
40.1017571.21680.112836
50.145851.74410.041644
6-0.039986-0.47820.316633
70.0344770.41230.340374
8-0.107284-1.28290.100796
90.2008542.40190.008798
100.1297461.55150.061491
110.4190725.01141e-06
12-0.351364-4.20172.3e-05
13-0.682767-8.16470
14-0.010037-0.120.452315
15-0.07825-0.93570.175495
16-0.19403-2.32030.010871
170.0369570.44190.329599
18-0.093544-1.11860.132588
190.0488270.58390.280109
200.0575830.68860.246097
210.0644890.77120.220938
220.0129550.15490.438553
230.1103631.31970.094514
24-0.000616-0.00740.497067
25-0.081051-0.96920.167033
260.0464940.5560.289543
270.0263340.31490.376646
28-0.104883-1.25420.105905
290.0276580.33070.370664
30-0.089183-1.06650.144003
310.1138821.36180.087696
32-0.061431-0.73460.23189
330.0384440.45970.323205
340.0006690.0080.496815
350.024950.29840.382932
36-0.128124-1.53210.063849



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 ; par8 = ; par9 = ; par10 = ; par11 = ; par12 = ; par13 = ; par14 = ; par15 = ; par16 = ; par17 = ; par18 = ; par19 = ; par20 = ;
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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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')