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 10:01:33 -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/t12599461156eze8kaptuvli7l.htm/, Retrieved Sun, 28 Apr 2024 06:11:58 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63907, Retrieved Sun, 28 Apr 2024 06:11:58 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact132
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 PD    [(Partial) Autocorrelation Function] [] [2009-12-01 17:18:57] [ee35698a38947a6c6c039b1e3deafc05]
- R PD        [(Partial) Autocorrelation Function] [] [2009-12-04 17:01:33] [c5f9f441970441f2f938cd843072158d] [Current]
-   PD          [(Partial) Autocorrelation Function] [ARMA model] [2009-12-19 14:21:19] [eba9b8a72d680086d9ebbb043233c887]
Feedback Forum

Post a new message
Dataseries X:
14.9
18.6
19.1
18.8
18.2
18
19
20.7
21.2
20.7
19.6
18.6
18.7
23.8
24.9
24.8
23.8
22.3
21.7
20.7
19.7
18.4
17.4
17
18
23.8
25.5
25.6
23.7
22
21.3
20.7
20.4
20.3
20.4
19.8
19.5
23.1
23.5
23.5
22.9
21.9
21.5
20.5
20.2
19.4
19.2
18.8
18.8
22.6
23.3
23
21.4
19.9
18.8
18.6
18.4
18.6
19.9
19.2
18.4




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63907&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.2063311.41450.081898
2-0.070775-0.48520.314891
3-0.335151-2.29770.013039
4-0.388803-2.66550.005252
5-0.288095-1.97510.027074
60.0111370.07630.469733
70.1279630.87730.192402
80.2399181.64480.053343
90.333412.28570.013412
100.0997080.68360.248803
11-0.016052-0.110.456419
12-0.334477-2.29310.013182
13-0.223325-1.5310.066232
14-0.128133-0.87840.192087
150.0396680.2720.393425
160.1100190.75430.22723
170.3124132.14180.018712
180.2137371.46530.074748
190.0123320.08450.466493
20-0.132126-0.90580.184829
21-0.406807-2.78890.003806
22-0.23335-1.59980.058176
230.0569370.39030.349025
240.3451952.36650.011064
250.113720.77960.21976
260.102660.70380.242515
27-0.063198-0.43330.333402
28-0.067261-0.46110.323421
29-0.1296-0.88850.1894
30-0.092316-0.63290.264937
31-0.01514-0.10380.458888
320.0397930.27280.393097
330.1496661.02610.155058
340.1170090.80220.213245
350.0787820.54010.295838
36-0.122025-0.83660.203536

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.206331 & 1.4145 & 0.081898 \tabularnewline
2 & -0.070775 & -0.4852 & 0.314891 \tabularnewline
3 & -0.335151 & -2.2977 & 0.013039 \tabularnewline
4 & -0.388803 & -2.6655 & 0.005252 \tabularnewline
5 & -0.288095 & -1.9751 & 0.027074 \tabularnewline
6 & 0.011137 & 0.0763 & 0.469733 \tabularnewline
7 & 0.127963 & 0.8773 & 0.192402 \tabularnewline
8 & 0.239918 & 1.6448 & 0.053343 \tabularnewline
9 & 0.33341 & 2.2857 & 0.013412 \tabularnewline
10 & 0.099708 & 0.6836 & 0.248803 \tabularnewline
11 & -0.016052 & -0.11 & 0.456419 \tabularnewline
12 & -0.334477 & -2.2931 & 0.013182 \tabularnewline
13 & -0.223325 & -1.531 & 0.066232 \tabularnewline
14 & -0.128133 & -0.8784 & 0.192087 \tabularnewline
15 & 0.039668 & 0.272 & 0.393425 \tabularnewline
16 & 0.110019 & 0.7543 & 0.22723 \tabularnewline
17 & 0.312413 & 2.1418 & 0.018712 \tabularnewline
18 & 0.213737 & 1.4653 & 0.074748 \tabularnewline
19 & 0.012332 & 0.0845 & 0.466493 \tabularnewline
20 & -0.132126 & -0.9058 & 0.184829 \tabularnewline
21 & -0.406807 & -2.7889 & 0.003806 \tabularnewline
22 & -0.23335 & -1.5998 & 0.058176 \tabularnewline
23 & 0.056937 & 0.3903 & 0.349025 \tabularnewline
24 & 0.345195 & 2.3665 & 0.011064 \tabularnewline
25 & 0.11372 & 0.7796 & 0.21976 \tabularnewline
26 & 0.10266 & 0.7038 & 0.242515 \tabularnewline
27 & -0.063198 & -0.4333 & 0.333402 \tabularnewline
28 & -0.067261 & -0.4611 & 0.323421 \tabularnewline
29 & -0.1296 & -0.8885 & 0.1894 \tabularnewline
30 & -0.092316 & -0.6329 & 0.264937 \tabularnewline
31 & -0.01514 & -0.1038 & 0.458888 \tabularnewline
32 & 0.039793 & 0.2728 & 0.393097 \tabularnewline
33 & 0.149666 & 1.0261 & 0.155058 \tabularnewline
34 & 0.117009 & 0.8022 & 0.213245 \tabularnewline
35 & 0.078782 & 0.5401 & 0.295838 \tabularnewline
36 & -0.122025 & -0.8366 & 0.203536 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63907&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.206331[/C][C]1.4145[/C][C]0.081898[/C][/ROW]
[ROW][C]2[/C][C]-0.070775[/C][C]-0.4852[/C][C]0.314891[/C][/ROW]
[ROW][C]3[/C][C]-0.335151[/C][C]-2.2977[/C][C]0.013039[/C][/ROW]
[ROW][C]4[/C][C]-0.388803[/C][C]-2.6655[/C][C]0.005252[/C][/ROW]
[ROW][C]5[/C][C]-0.288095[/C][C]-1.9751[/C][C]0.027074[/C][/ROW]
[ROW][C]6[/C][C]0.011137[/C][C]0.0763[/C][C]0.469733[/C][/ROW]
[ROW][C]7[/C][C]0.127963[/C][C]0.8773[/C][C]0.192402[/C][/ROW]
[ROW][C]8[/C][C]0.239918[/C][C]1.6448[/C][C]0.053343[/C][/ROW]
[ROW][C]9[/C][C]0.33341[/C][C]2.2857[/C][C]0.013412[/C][/ROW]
[ROW][C]10[/C][C]0.099708[/C][C]0.6836[/C][C]0.248803[/C][/ROW]
[ROW][C]11[/C][C]-0.016052[/C][C]-0.11[/C][C]0.456419[/C][/ROW]
[ROW][C]12[/C][C]-0.334477[/C][C]-2.2931[/C][C]0.013182[/C][/ROW]
[ROW][C]13[/C][C]-0.223325[/C][C]-1.531[/C][C]0.066232[/C][/ROW]
[ROW][C]14[/C][C]-0.128133[/C][C]-0.8784[/C][C]0.192087[/C][/ROW]
[ROW][C]15[/C][C]0.039668[/C][C]0.272[/C][C]0.393425[/C][/ROW]
[ROW][C]16[/C][C]0.110019[/C][C]0.7543[/C][C]0.22723[/C][/ROW]
[ROW][C]17[/C][C]0.312413[/C][C]2.1418[/C][C]0.018712[/C][/ROW]
[ROW][C]18[/C][C]0.213737[/C][C]1.4653[/C][C]0.074748[/C][/ROW]
[ROW][C]19[/C][C]0.012332[/C][C]0.0845[/C][C]0.466493[/C][/ROW]
[ROW][C]20[/C][C]-0.132126[/C][C]-0.9058[/C][C]0.184829[/C][/ROW]
[ROW][C]21[/C][C]-0.406807[/C][C]-2.7889[/C][C]0.003806[/C][/ROW]
[ROW][C]22[/C][C]-0.23335[/C][C]-1.5998[/C][C]0.058176[/C][/ROW]
[ROW][C]23[/C][C]0.056937[/C][C]0.3903[/C][C]0.349025[/C][/ROW]
[ROW][C]24[/C][C]0.345195[/C][C]2.3665[/C][C]0.011064[/C][/ROW]
[ROW][C]25[/C][C]0.11372[/C][C]0.7796[/C][C]0.21976[/C][/ROW]
[ROW][C]26[/C][C]0.10266[/C][C]0.7038[/C][C]0.242515[/C][/ROW]
[ROW][C]27[/C][C]-0.063198[/C][C]-0.4333[/C][C]0.333402[/C][/ROW]
[ROW][C]28[/C][C]-0.067261[/C][C]-0.4611[/C][C]0.323421[/C][/ROW]
[ROW][C]29[/C][C]-0.1296[/C][C]-0.8885[/C][C]0.1894[/C][/ROW]
[ROW][C]30[/C][C]-0.092316[/C][C]-0.6329[/C][C]0.264937[/C][/ROW]
[ROW][C]31[/C][C]-0.01514[/C][C]-0.1038[/C][C]0.458888[/C][/ROW]
[ROW][C]32[/C][C]0.039793[/C][C]0.2728[/C][C]0.393097[/C][/ROW]
[ROW][C]33[/C][C]0.149666[/C][C]1.0261[/C][C]0.155058[/C][/ROW]
[ROW][C]34[/C][C]0.117009[/C][C]0.8022[/C][C]0.213245[/C][/ROW]
[ROW][C]35[/C][C]0.078782[/C][C]0.5401[/C][C]0.295838[/C][/ROW]
[ROW][C]36[/C][C]-0.122025[/C][C]-0.8366[/C][C]0.203536[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63907&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63907&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.2063311.41450.081898
2-0.070775-0.48520.314891
3-0.335151-2.29770.013039
4-0.388803-2.66550.005252
5-0.288095-1.97510.027074
60.0111370.07630.469733
70.1279630.87730.192402
80.2399181.64480.053343
90.333412.28570.013412
100.0997080.68360.248803
11-0.016052-0.110.456419
12-0.334477-2.29310.013182
13-0.223325-1.5310.066232
14-0.128133-0.87840.192087
150.0396680.2720.393425
160.1100190.75430.22723
170.3124132.14180.018712
180.2137371.46530.074748
190.0123320.08450.466493
20-0.132126-0.90580.184829
21-0.406807-2.78890.003806
22-0.23335-1.59980.058176
230.0569370.39030.349025
240.3451952.36650.011064
250.113720.77960.21976
260.102660.70380.242515
27-0.063198-0.43330.333402
28-0.067261-0.46110.323421
29-0.1296-0.88850.1894
30-0.092316-0.63290.264937
31-0.01514-0.10380.458888
320.0397930.27280.393097
330.1496661.02610.155058
340.1170090.80220.213245
350.0787820.54010.295838
36-0.122025-0.83660.203536







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2063311.41450.081898
2-0.118387-0.81160.21055
3-0.311853-2.1380.018875
4-0.308353-2.1140.019926
5-0.291366-1.99750.025789
6-0.125956-0.86350.196121
7-0.191025-1.30960.098348
8-0.105602-0.7240.236336
90.1336660.91640.182076
100.0058090.03980.4842
110.1259230.86330.196182
12-0.157249-1.0780.143258
130.0549190.37650.354116
140.0134060.09190.46358
15-0.053674-0.3680.357274
16-0.081527-0.55890.289434
170.1404780.96310.170222
180.1315830.90210.185806
190.0134330.09210.463508
200.0257280.17640.430374
21-0.194442-1.3330.094474
22-0.055105-0.37780.353647
230.0929070.63690.263628
240.2003661.37360.088035
25-0.182657-1.25220.108341
26-0.110231-0.75570.226798
27-0.043742-0.29990.382794
280.0270340.18530.426882
29-0.017493-0.11990.452526
300.0057940.03970.484242
310.071320.48890.313576
320.0168340.11540.454306
33-0.010466-0.07170.471553
340.0287480.19710.422306
350.0990030.67870.250318
360.0349590.23970.405816

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.206331 & 1.4145 & 0.081898 \tabularnewline
2 & -0.118387 & -0.8116 & 0.21055 \tabularnewline
3 & -0.311853 & -2.138 & 0.018875 \tabularnewline
4 & -0.308353 & -2.114 & 0.019926 \tabularnewline
5 & -0.291366 & -1.9975 & 0.025789 \tabularnewline
6 & -0.125956 & -0.8635 & 0.196121 \tabularnewline
7 & -0.191025 & -1.3096 & 0.098348 \tabularnewline
8 & -0.105602 & -0.724 & 0.236336 \tabularnewline
9 & 0.133666 & 0.9164 & 0.182076 \tabularnewline
10 & 0.005809 & 0.0398 & 0.4842 \tabularnewline
11 & 0.125923 & 0.8633 & 0.196182 \tabularnewline
12 & -0.157249 & -1.078 & 0.143258 \tabularnewline
13 & 0.054919 & 0.3765 & 0.354116 \tabularnewline
14 & 0.013406 & 0.0919 & 0.46358 \tabularnewline
15 & -0.053674 & -0.368 & 0.357274 \tabularnewline
16 & -0.081527 & -0.5589 & 0.289434 \tabularnewline
17 & 0.140478 & 0.9631 & 0.170222 \tabularnewline
18 & 0.131583 & 0.9021 & 0.185806 \tabularnewline
19 & 0.013433 & 0.0921 & 0.463508 \tabularnewline
20 & 0.025728 & 0.1764 & 0.430374 \tabularnewline
21 & -0.194442 & -1.333 & 0.094474 \tabularnewline
22 & -0.055105 & -0.3778 & 0.353647 \tabularnewline
23 & 0.092907 & 0.6369 & 0.263628 \tabularnewline
24 & 0.200366 & 1.3736 & 0.088035 \tabularnewline
25 & -0.182657 & -1.2522 & 0.108341 \tabularnewline
26 & -0.110231 & -0.7557 & 0.226798 \tabularnewline
27 & -0.043742 & -0.2999 & 0.382794 \tabularnewline
28 & 0.027034 & 0.1853 & 0.426882 \tabularnewline
29 & -0.017493 & -0.1199 & 0.452526 \tabularnewline
30 & 0.005794 & 0.0397 & 0.484242 \tabularnewline
31 & 0.07132 & 0.4889 & 0.313576 \tabularnewline
32 & 0.016834 & 0.1154 & 0.454306 \tabularnewline
33 & -0.010466 & -0.0717 & 0.471553 \tabularnewline
34 & 0.028748 & 0.1971 & 0.422306 \tabularnewline
35 & 0.099003 & 0.6787 & 0.250318 \tabularnewline
36 & 0.034959 & 0.2397 & 0.405816 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63907&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.206331[/C][C]1.4145[/C][C]0.081898[/C][/ROW]
[ROW][C]2[/C][C]-0.118387[/C][C]-0.8116[/C][C]0.21055[/C][/ROW]
[ROW][C]3[/C][C]-0.311853[/C][C]-2.138[/C][C]0.018875[/C][/ROW]
[ROW][C]4[/C][C]-0.308353[/C][C]-2.114[/C][C]0.019926[/C][/ROW]
[ROW][C]5[/C][C]-0.291366[/C][C]-1.9975[/C][C]0.025789[/C][/ROW]
[ROW][C]6[/C][C]-0.125956[/C][C]-0.8635[/C][C]0.196121[/C][/ROW]
[ROW][C]7[/C][C]-0.191025[/C][C]-1.3096[/C][C]0.098348[/C][/ROW]
[ROW][C]8[/C][C]-0.105602[/C][C]-0.724[/C][C]0.236336[/C][/ROW]
[ROW][C]9[/C][C]0.133666[/C][C]0.9164[/C][C]0.182076[/C][/ROW]
[ROW][C]10[/C][C]0.005809[/C][C]0.0398[/C][C]0.4842[/C][/ROW]
[ROW][C]11[/C][C]0.125923[/C][C]0.8633[/C][C]0.196182[/C][/ROW]
[ROW][C]12[/C][C]-0.157249[/C][C]-1.078[/C][C]0.143258[/C][/ROW]
[ROW][C]13[/C][C]0.054919[/C][C]0.3765[/C][C]0.354116[/C][/ROW]
[ROW][C]14[/C][C]0.013406[/C][C]0.0919[/C][C]0.46358[/C][/ROW]
[ROW][C]15[/C][C]-0.053674[/C][C]-0.368[/C][C]0.357274[/C][/ROW]
[ROW][C]16[/C][C]-0.081527[/C][C]-0.5589[/C][C]0.289434[/C][/ROW]
[ROW][C]17[/C][C]0.140478[/C][C]0.9631[/C][C]0.170222[/C][/ROW]
[ROW][C]18[/C][C]0.131583[/C][C]0.9021[/C][C]0.185806[/C][/ROW]
[ROW][C]19[/C][C]0.013433[/C][C]0.0921[/C][C]0.463508[/C][/ROW]
[ROW][C]20[/C][C]0.025728[/C][C]0.1764[/C][C]0.430374[/C][/ROW]
[ROW][C]21[/C][C]-0.194442[/C][C]-1.333[/C][C]0.094474[/C][/ROW]
[ROW][C]22[/C][C]-0.055105[/C][C]-0.3778[/C][C]0.353647[/C][/ROW]
[ROW][C]23[/C][C]0.092907[/C][C]0.6369[/C][C]0.263628[/C][/ROW]
[ROW][C]24[/C][C]0.200366[/C][C]1.3736[/C][C]0.088035[/C][/ROW]
[ROW][C]25[/C][C]-0.182657[/C][C]-1.2522[/C][C]0.108341[/C][/ROW]
[ROW][C]26[/C][C]-0.110231[/C][C]-0.7557[/C][C]0.226798[/C][/ROW]
[ROW][C]27[/C][C]-0.043742[/C][C]-0.2999[/C][C]0.382794[/C][/ROW]
[ROW][C]28[/C][C]0.027034[/C][C]0.1853[/C][C]0.426882[/C][/ROW]
[ROW][C]29[/C][C]-0.017493[/C][C]-0.1199[/C][C]0.452526[/C][/ROW]
[ROW][C]30[/C][C]0.005794[/C][C]0.0397[/C][C]0.484242[/C][/ROW]
[ROW][C]31[/C][C]0.07132[/C][C]0.4889[/C][C]0.313576[/C][/ROW]
[ROW][C]32[/C][C]0.016834[/C][C]0.1154[/C][C]0.454306[/C][/ROW]
[ROW][C]33[/C][C]-0.010466[/C][C]-0.0717[/C][C]0.471553[/C][/ROW]
[ROW][C]34[/C][C]0.028748[/C][C]0.1971[/C][C]0.422306[/C][/ROW]
[ROW][C]35[/C][C]0.099003[/C][C]0.6787[/C][C]0.250318[/C][/ROW]
[ROW][C]36[/C][C]0.034959[/C][C]0.2397[/C][C]0.405816[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63907&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63907&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.2063311.41450.081898
2-0.118387-0.81160.21055
3-0.311853-2.1380.018875
4-0.308353-2.1140.019926
5-0.291366-1.99750.025789
6-0.125956-0.86350.196121
7-0.191025-1.30960.098348
8-0.105602-0.7240.236336
90.1336660.91640.182076
100.0058090.03980.4842
110.1259230.86330.196182
12-0.157249-1.0780.143258
130.0549190.37650.354116
140.0134060.09190.46358
15-0.053674-0.3680.357274
16-0.081527-0.55890.289434
170.1404780.96310.170222
180.1315830.90210.185806
190.0134330.09210.463508
200.0257280.17640.430374
21-0.194442-1.3330.094474
22-0.055105-0.37780.353647
230.0929070.63690.263628
240.2003661.37360.088035
25-0.182657-1.25220.108341
26-0.110231-0.75570.226798
27-0.043742-0.29990.382794
280.0270340.18530.426882
29-0.017493-0.11990.452526
300.0057940.03970.484242
310.071320.48890.313576
320.0168340.11540.454306
33-0.010466-0.07170.471553
340.0287480.19710.422306
350.0990030.67870.250318
360.0349590.23970.405816



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