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:09:49 -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/t1259935911a29pbdvqyusxh14.htm/, Retrieved Sat, 27 Apr 2024 21:34:33 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63563, Retrieved Sat, 27 Apr 2024 21:34:33 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact146
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:47:30] [b98453cac15ba1066b407e146608df68]
- R  D    [(Partial) Autocorrelation Function] [] [2009-12-03 19:40:36] [325e037ef8beb77178124dff9c2e015a]
-   PD        [(Partial) Autocorrelation Function] [] [2009-12-04 14:09:49] [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 time3 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 & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63563&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]3 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=63563&T=0

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.191006-2.27610.012168
2-0.195982-2.33540.010462
3-0.048547-0.57850.281919
4-0.206647-2.46250.007497
50.1193971.42280.078497
60.0257510.30690.379699
70.1455821.73480.042472
8-0.226139-2.69480.003947
90.0140750.16770.433518
10-0.208276-2.48190.007117
11-0.1209-1.44070.075937
120.7822499.32160
13-0.095929-1.14310.127456
14-0.195474-2.32930.010626
15-0.070343-0.83820.201653
16-0.147948-1.7630.040025
170.1131961.34890.089761
180.0192190.2290.409589
190.1369511.6320.052451
20-0.240152-2.86170.002425
210.0261310.31140.377983
22-0.173074-2.06240.020495
23-0.084295-1.00450.158424
240.6418937.6490
25-0.051015-0.60790.272108
26-0.185838-2.21450.014194
27-0.076995-0.91750.180219
28-0.080084-0.95430.170774
290.0479980.5720.284127
300.043540.51880.302341
310.1060321.26350.104238
32-0.181512-2.1630.016109
33-0.025241-0.30080.382011
34-0.084262-1.00410.15852
35-0.106793-1.27260.102622
360.5215376.21480

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.191006 & -2.2761 & 0.012168 \tabularnewline
2 & -0.195982 & -2.3354 & 0.010462 \tabularnewline
3 & -0.048547 & -0.5785 & 0.281919 \tabularnewline
4 & -0.206647 & -2.4625 & 0.007497 \tabularnewline
5 & 0.119397 & 1.4228 & 0.078497 \tabularnewline
6 & 0.025751 & 0.3069 & 0.379699 \tabularnewline
7 & 0.145582 & 1.7348 & 0.042472 \tabularnewline
8 & -0.226139 & -2.6948 & 0.003947 \tabularnewline
9 & 0.014075 & 0.1677 & 0.433518 \tabularnewline
10 & -0.208276 & -2.4819 & 0.007117 \tabularnewline
11 & -0.1209 & -1.4407 & 0.075937 \tabularnewline
12 & 0.782249 & 9.3216 & 0 \tabularnewline
13 & -0.095929 & -1.1431 & 0.127456 \tabularnewline
14 & -0.195474 & -2.3293 & 0.010626 \tabularnewline
15 & -0.070343 & -0.8382 & 0.201653 \tabularnewline
16 & -0.147948 & -1.763 & 0.040025 \tabularnewline
17 & 0.113196 & 1.3489 & 0.089761 \tabularnewline
18 & 0.019219 & 0.229 & 0.409589 \tabularnewline
19 & 0.136951 & 1.632 & 0.052451 \tabularnewline
20 & -0.240152 & -2.8617 & 0.002425 \tabularnewline
21 & 0.026131 & 0.3114 & 0.377983 \tabularnewline
22 & -0.173074 & -2.0624 & 0.020495 \tabularnewline
23 & -0.084295 & -1.0045 & 0.158424 \tabularnewline
24 & 0.641893 & 7.649 & 0 \tabularnewline
25 & -0.051015 & -0.6079 & 0.272108 \tabularnewline
26 & -0.185838 & -2.2145 & 0.014194 \tabularnewline
27 & -0.076995 & -0.9175 & 0.180219 \tabularnewline
28 & -0.080084 & -0.9543 & 0.170774 \tabularnewline
29 & 0.047998 & 0.572 & 0.284127 \tabularnewline
30 & 0.04354 & 0.5188 & 0.302341 \tabularnewline
31 & 0.106032 & 1.2635 & 0.104238 \tabularnewline
32 & -0.181512 & -2.163 & 0.016109 \tabularnewline
33 & -0.025241 & -0.3008 & 0.382011 \tabularnewline
34 & -0.084262 & -1.0041 & 0.15852 \tabularnewline
35 & -0.106793 & -1.2726 & 0.102622 \tabularnewline
36 & 0.521537 & 6.2148 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63563&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.191006[/C][C]-2.2761[/C][C]0.012168[/C][/ROW]
[ROW][C]2[/C][C]-0.195982[/C][C]-2.3354[/C][C]0.010462[/C][/ROW]
[ROW][C]3[/C][C]-0.048547[/C][C]-0.5785[/C][C]0.281919[/C][/ROW]
[ROW][C]4[/C][C]-0.206647[/C][C]-2.4625[/C][C]0.007497[/C][/ROW]
[ROW][C]5[/C][C]0.119397[/C][C]1.4228[/C][C]0.078497[/C][/ROW]
[ROW][C]6[/C][C]0.025751[/C][C]0.3069[/C][C]0.379699[/C][/ROW]
[ROW][C]7[/C][C]0.145582[/C][C]1.7348[/C][C]0.042472[/C][/ROW]
[ROW][C]8[/C][C]-0.226139[/C][C]-2.6948[/C][C]0.003947[/C][/ROW]
[ROW][C]9[/C][C]0.014075[/C][C]0.1677[/C][C]0.433518[/C][/ROW]
[ROW][C]10[/C][C]-0.208276[/C][C]-2.4819[/C][C]0.007117[/C][/ROW]
[ROW][C]11[/C][C]-0.1209[/C][C]-1.4407[/C][C]0.075937[/C][/ROW]
[ROW][C]12[/C][C]0.782249[/C][C]9.3216[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]-0.095929[/C][C]-1.1431[/C][C]0.127456[/C][/ROW]
[ROW][C]14[/C][C]-0.195474[/C][C]-2.3293[/C][C]0.010626[/C][/ROW]
[ROW][C]15[/C][C]-0.070343[/C][C]-0.8382[/C][C]0.201653[/C][/ROW]
[ROW][C]16[/C][C]-0.147948[/C][C]-1.763[/C][C]0.040025[/C][/ROW]
[ROW][C]17[/C][C]0.113196[/C][C]1.3489[/C][C]0.089761[/C][/ROW]
[ROW][C]18[/C][C]0.019219[/C][C]0.229[/C][C]0.409589[/C][/ROW]
[ROW][C]19[/C][C]0.136951[/C][C]1.632[/C][C]0.052451[/C][/ROW]
[ROW][C]20[/C][C]-0.240152[/C][C]-2.8617[/C][C]0.002425[/C][/ROW]
[ROW][C]21[/C][C]0.026131[/C][C]0.3114[/C][C]0.377983[/C][/ROW]
[ROW][C]22[/C][C]-0.173074[/C][C]-2.0624[/C][C]0.020495[/C][/ROW]
[ROW][C]23[/C][C]-0.084295[/C][C]-1.0045[/C][C]0.158424[/C][/ROW]
[ROW][C]24[/C][C]0.641893[/C][C]7.649[/C][C]0[/C][/ROW]
[ROW][C]25[/C][C]-0.051015[/C][C]-0.6079[/C][C]0.272108[/C][/ROW]
[ROW][C]26[/C][C]-0.185838[/C][C]-2.2145[/C][C]0.014194[/C][/ROW]
[ROW][C]27[/C][C]-0.076995[/C][C]-0.9175[/C][C]0.180219[/C][/ROW]
[ROW][C]28[/C][C]-0.080084[/C][C]-0.9543[/C][C]0.170774[/C][/ROW]
[ROW][C]29[/C][C]0.047998[/C][C]0.572[/C][C]0.284127[/C][/ROW]
[ROW][C]30[/C][C]0.04354[/C][C]0.5188[/C][C]0.302341[/C][/ROW]
[ROW][C]31[/C][C]0.106032[/C][C]1.2635[/C][C]0.104238[/C][/ROW]
[ROW][C]32[/C][C]-0.181512[/C][C]-2.163[/C][C]0.016109[/C][/ROW]
[ROW][C]33[/C][C]-0.025241[/C][C]-0.3008[/C][C]0.382011[/C][/ROW]
[ROW][C]34[/C][C]-0.084262[/C][C]-1.0041[/C][C]0.15852[/C][/ROW]
[ROW][C]35[/C][C]-0.106793[/C][C]-1.2726[/C][C]0.102622[/C][/ROW]
[ROW][C]36[/C][C]0.521537[/C][C]6.2148[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63563&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63563&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.191006-2.27610.012168
2-0.195982-2.33540.010462
3-0.048547-0.57850.281919
4-0.206647-2.46250.007497
50.1193971.42280.078497
60.0257510.30690.379699
70.1455821.73480.042472
8-0.226139-2.69480.003947
90.0140750.16770.433518
10-0.208276-2.48190.007117
11-0.1209-1.44070.075937
120.7822499.32160
13-0.095929-1.14310.127456
14-0.195474-2.32930.010626
15-0.070343-0.83820.201653
16-0.147948-1.7630.040025
170.1131961.34890.089761
180.0192190.2290.409589
190.1369511.6320.052451
20-0.240152-2.86170.002425
210.0261310.31140.377983
22-0.173074-2.06240.020495
23-0.084295-1.00450.158424
240.6418937.6490
25-0.051015-0.60790.272108
26-0.185838-2.21450.014194
27-0.076995-0.91750.180219
28-0.080084-0.95430.170774
290.0479980.5720.284127
300.043540.51880.302341
310.1060321.26350.104238
32-0.181512-2.1630.016109
33-0.025241-0.30080.382011
34-0.084262-1.00410.15852
35-0.106793-1.27260.102622
360.5215376.21480







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.191006-2.27610.012168
2-0.241267-2.8750.002331
3-0.155489-1.85290.032988
4-0.343522-4.09353.5e-05
5-0.103846-1.23750.108979
6-0.156945-1.87020.031756
70.0773150.92130.179225
8-0.303402-3.61540.000208
9-0.061961-0.73830.230762
10-0.523954-6.24360
11-0.672457-8.01330
120.2308682.75110.003357
130.1140611.35920.088119
14-0.107503-1.2810.101133
15-0.045146-0.5380.295717
160.005560.06630.473633
170.1529351.82240.035247
180.0487510.58090.281102
190.0841311.00250.158895
20-0.023622-0.28150.389373
21-0.014861-0.17710.429846
22-0.01187-0.14150.443857
23-0.002958-0.03520.485965
24-0.010061-0.11990.45237
25-0.016752-0.19960.421028
26-0.088597-1.05580.146437
270.0330470.39380.347161
280.0830870.99010.161907
29-0.066078-0.78740.216176
30-0.056888-0.67790.24947
31-0.055218-0.6580.255802
320.1373371.63660.051968
33-0.057606-0.68650.246772
340.1240281.4780.070816
35-0.038149-0.45460.325046
36-0.014377-0.17130.432105

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.191006 & -2.2761 & 0.012168 \tabularnewline
2 & -0.241267 & -2.875 & 0.002331 \tabularnewline
3 & -0.155489 & -1.8529 & 0.032988 \tabularnewline
4 & -0.343522 & -4.0935 & 3.5e-05 \tabularnewline
5 & -0.103846 & -1.2375 & 0.108979 \tabularnewline
6 & -0.156945 & -1.8702 & 0.031756 \tabularnewline
7 & 0.077315 & 0.9213 & 0.179225 \tabularnewline
8 & -0.303402 & -3.6154 & 0.000208 \tabularnewline
9 & -0.061961 & -0.7383 & 0.230762 \tabularnewline
10 & -0.523954 & -6.2436 & 0 \tabularnewline
11 & -0.672457 & -8.0133 & 0 \tabularnewline
12 & 0.230868 & 2.7511 & 0.003357 \tabularnewline
13 & 0.114061 & 1.3592 & 0.088119 \tabularnewline
14 & -0.107503 & -1.281 & 0.101133 \tabularnewline
15 & -0.045146 & -0.538 & 0.295717 \tabularnewline
16 & 0.00556 & 0.0663 & 0.473633 \tabularnewline
17 & 0.152935 & 1.8224 & 0.035247 \tabularnewline
18 & 0.048751 & 0.5809 & 0.281102 \tabularnewline
19 & 0.084131 & 1.0025 & 0.158895 \tabularnewline
20 & -0.023622 & -0.2815 & 0.389373 \tabularnewline
21 & -0.014861 & -0.1771 & 0.429846 \tabularnewline
22 & -0.01187 & -0.1415 & 0.443857 \tabularnewline
23 & -0.002958 & -0.0352 & 0.485965 \tabularnewline
24 & -0.010061 & -0.1199 & 0.45237 \tabularnewline
25 & -0.016752 & -0.1996 & 0.421028 \tabularnewline
26 & -0.088597 & -1.0558 & 0.146437 \tabularnewline
27 & 0.033047 & 0.3938 & 0.347161 \tabularnewline
28 & 0.083087 & 0.9901 & 0.161907 \tabularnewline
29 & -0.066078 & -0.7874 & 0.216176 \tabularnewline
30 & -0.056888 & -0.6779 & 0.24947 \tabularnewline
31 & -0.055218 & -0.658 & 0.255802 \tabularnewline
32 & 0.137337 & 1.6366 & 0.051968 \tabularnewline
33 & -0.057606 & -0.6865 & 0.246772 \tabularnewline
34 & 0.124028 & 1.478 & 0.070816 \tabularnewline
35 & -0.038149 & -0.4546 & 0.325046 \tabularnewline
36 & -0.014377 & -0.1713 & 0.432105 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63563&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.191006[/C][C]-2.2761[/C][C]0.012168[/C][/ROW]
[ROW][C]2[/C][C]-0.241267[/C][C]-2.875[/C][C]0.002331[/C][/ROW]
[ROW][C]3[/C][C]-0.155489[/C][C]-1.8529[/C][C]0.032988[/C][/ROW]
[ROW][C]4[/C][C]-0.343522[/C][C]-4.0935[/C][C]3.5e-05[/C][/ROW]
[ROW][C]5[/C][C]-0.103846[/C][C]-1.2375[/C][C]0.108979[/C][/ROW]
[ROW][C]6[/C][C]-0.156945[/C][C]-1.8702[/C][C]0.031756[/C][/ROW]
[ROW][C]7[/C][C]0.077315[/C][C]0.9213[/C][C]0.179225[/C][/ROW]
[ROW][C]8[/C][C]-0.303402[/C][C]-3.6154[/C][C]0.000208[/C][/ROW]
[ROW][C]9[/C][C]-0.061961[/C][C]-0.7383[/C][C]0.230762[/C][/ROW]
[ROW][C]10[/C][C]-0.523954[/C][C]-6.2436[/C][C]0[/C][/ROW]
[ROW][C]11[/C][C]-0.672457[/C][C]-8.0133[/C][C]0[/C][/ROW]
[ROW][C]12[/C][C]0.230868[/C][C]2.7511[/C][C]0.003357[/C][/ROW]
[ROW][C]13[/C][C]0.114061[/C][C]1.3592[/C][C]0.088119[/C][/ROW]
[ROW][C]14[/C][C]-0.107503[/C][C]-1.281[/C][C]0.101133[/C][/ROW]
[ROW][C]15[/C][C]-0.045146[/C][C]-0.538[/C][C]0.295717[/C][/ROW]
[ROW][C]16[/C][C]0.00556[/C][C]0.0663[/C][C]0.473633[/C][/ROW]
[ROW][C]17[/C][C]0.152935[/C][C]1.8224[/C][C]0.035247[/C][/ROW]
[ROW][C]18[/C][C]0.048751[/C][C]0.5809[/C][C]0.281102[/C][/ROW]
[ROW][C]19[/C][C]0.084131[/C][C]1.0025[/C][C]0.158895[/C][/ROW]
[ROW][C]20[/C][C]-0.023622[/C][C]-0.2815[/C][C]0.389373[/C][/ROW]
[ROW][C]21[/C][C]-0.014861[/C][C]-0.1771[/C][C]0.429846[/C][/ROW]
[ROW][C]22[/C][C]-0.01187[/C][C]-0.1415[/C][C]0.443857[/C][/ROW]
[ROW][C]23[/C][C]-0.002958[/C][C]-0.0352[/C][C]0.485965[/C][/ROW]
[ROW][C]24[/C][C]-0.010061[/C][C]-0.1199[/C][C]0.45237[/C][/ROW]
[ROW][C]25[/C][C]-0.016752[/C][C]-0.1996[/C][C]0.421028[/C][/ROW]
[ROW][C]26[/C][C]-0.088597[/C][C]-1.0558[/C][C]0.146437[/C][/ROW]
[ROW][C]27[/C][C]0.033047[/C][C]0.3938[/C][C]0.347161[/C][/ROW]
[ROW][C]28[/C][C]0.083087[/C][C]0.9901[/C][C]0.161907[/C][/ROW]
[ROW][C]29[/C][C]-0.066078[/C][C]-0.7874[/C][C]0.216176[/C][/ROW]
[ROW][C]30[/C][C]-0.056888[/C][C]-0.6779[/C][C]0.24947[/C][/ROW]
[ROW][C]31[/C][C]-0.055218[/C][C]-0.658[/C][C]0.255802[/C][/ROW]
[ROW][C]32[/C][C]0.137337[/C][C]1.6366[/C][C]0.051968[/C][/ROW]
[ROW][C]33[/C][C]-0.057606[/C][C]-0.6865[/C][C]0.246772[/C][/ROW]
[ROW][C]34[/C][C]0.124028[/C][C]1.478[/C][C]0.070816[/C][/ROW]
[ROW][C]35[/C][C]-0.038149[/C][C]-0.4546[/C][C]0.325046[/C][/ROW]
[ROW][C]36[/C][C]-0.014377[/C][C]-0.1713[/C][C]0.432105[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63563&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63563&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.191006-2.27610.012168
2-0.241267-2.8750.002331
3-0.155489-1.85290.032988
4-0.343522-4.09353.5e-05
5-0.103846-1.23750.108979
6-0.156945-1.87020.031756
70.0773150.92130.179225
8-0.303402-3.61540.000208
9-0.061961-0.73830.230762
10-0.523954-6.24360
11-0.672457-8.01330
120.2308682.75110.003357
130.1140611.35920.088119
14-0.107503-1.2810.101133
15-0.045146-0.5380.295717
160.005560.06630.473633
170.1529351.82240.035247
180.0487510.58090.281102
190.0841311.00250.158895
20-0.023622-0.28150.389373
21-0.014861-0.17710.429846
22-0.01187-0.14150.443857
23-0.002958-0.03520.485965
24-0.010061-0.11990.45237
25-0.016752-0.19960.421028
26-0.088597-1.05580.146437
270.0330470.39380.347161
280.0830870.99010.161907
29-0.066078-0.78740.216176
30-0.056888-0.67790.24947
31-0.055218-0.6580.255802
320.1373371.63660.051968
33-0.057606-0.68650.246772
340.1240281.4780.070816
35-0.038149-0.45460.325046
36-0.014377-0.17130.432105



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