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, 16 Dec 2009 09:40:14 -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/16/t1260981649xti3ph30e0094pi.htm/, Retrieved Tue, 30 Apr 2024 18:12:38 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68469, Retrieved Tue, 30 Apr 2024 18:12:38 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact128
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:19:56] [b98453cac15ba1066b407e146608df68]
-    D          [(Partial) Autocorrelation Function] [] [2009-12-16 16:40:14] [c88a5f1b97e332c6387d668c465455af] [Current]
Feedback Forum

Post a new message
Dataseries X:
19915
19843
19761
20858
21968
23061
22661
22269
21857
21568
21274
20987
19683
19381
19071
20772
22485
24181
23479
22782
22067
21489
20903
20330
19736
19483
19242
20334
21423
22523
21986
21462
20908
20575
20237
19904
19610
19251
18941
20450
21946
23409
22741
22069
21539
21189
20960
20704
19697
19598
19456
20316
21083
22158
21469
20892
20578
20233
19947
20049




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68469&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.8759346.06870
20.6542994.53311.9e-05
30.4374493.03070.001962
40.272721.88950.032439
50.1418490.98280.165327
60.026920.18650.426416
7-0.082722-0.57310.284621
8-0.18457-1.27870.103568
9-0.288955-2.00190.02548
10-0.437465-3.03080.001961
11-0.597859-4.14216.9e-05
12-0.691728-4.79248e-06
13-0.656982-4.55171.8e-05
14-0.549845-3.80940.000198
15-0.431586-2.99010.002195
16-0.345212-2.39170.010368
17-0.271231-1.87910.033152
18-0.18245-1.2640.106158
19-0.06714-0.46520.321959
200.0364440.25250.400869
210.1292480.89550.187506
220.2304991.59690.058421
230.3386612.34630.011568
240.4008332.77710.003901
250.3990552.76470.004029
260.3353612.32350.012219
270.2562831.77560.041071
280.2104351.45790.075685
290.1855041.28520.102443
300.1465461.01530.157527
310.0831260.57590.283682
320.0310850.21540.415199
33-0.015914-0.11030.456332
34-0.062829-0.43530.33265
35-0.120345-0.83380.20427
36-0.165987-1.150.127922

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.875934 & 6.0687 & 0 \tabularnewline
2 & 0.654299 & 4.5331 & 1.9e-05 \tabularnewline
3 & 0.437449 & 3.0307 & 0.001962 \tabularnewline
4 & 0.27272 & 1.8895 & 0.032439 \tabularnewline
5 & 0.141849 & 0.9828 & 0.165327 \tabularnewline
6 & 0.02692 & 0.1865 & 0.426416 \tabularnewline
7 & -0.082722 & -0.5731 & 0.284621 \tabularnewline
8 & -0.18457 & -1.2787 & 0.103568 \tabularnewline
9 & -0.288955 & -2.0019 & 0.02548 \tabularnewline
10 & -0.437465 & -3.0308 & 0.001961 \tabularnewline
11 & -0.597859 & -4.1421 & 6.9e-05 \tabularnewline
12 & -0.691728 & -4.7924 & 8e-06 \tabularnewline
13 & -0.656982 & -4.5517 & 1.8e-05 \tabularnewline
14 & -0.549845 & -3.8094 & 0.000198 \tabularnewline
15 & -0.431586 & -2.9901 & 0.002195 \tabularnewline
16 & -0.345212 & -2.3917 & 0.010368 \tabularnewline
17 & -0.271231 & -1.8791 & 0.033152 \tabularnewline
18 & -0.18245 & -1.264 & 0.106158 \tabularnewline
19 & -0.06714 & -0.4652 & 0.321959 \tabularnewline
20 & 0.036444 & 0.2525 & 0.400869 \tabularnewline
21 & 0.129248 & 0.8955 & 0.187506 \tabularnewline
22 & 0.230499 & 1.5969 & 0.058421 \tabularnewline
23 & 0.338661 & 2.3463 & 0.011568 \tabularnewline
24 & 0.400833 & 2.7771 & 0.003901 \tabularnewline
25 & 0.399055 & 2.7647 & 0.004029 \tabularnewline
26 & 0.335361 & 2.3235 & 0.012219 \tabularnewline
27 & 0.256283 & 1.7756 & 0.041071 \tabularnewline
28 & 0.210435 & 1.4579 & 0.075685 \tabularnewline
29 & 0.185504 & 1.2852 & 0.102443 \tabularnewline
30 & 0.146546 & 1.0153 & 0.157527 \tabularnewline
31 & 0.083126 & 0.5759 & 0.283682 \tabularnewline
32 & 0.031085 & 0.2154 & 0.415199 \tabularnewline
33 & -0.015914 & -0.1103 & 0.456332 \tabularnewline
34 & -0.062829 & -0.4353 & 0.33265 \tabularnewline
35 & -0.120345 & -0.8338 & 0.20427 \tabularnewline
36 & -0.165987 & -1.15 & 0.127922 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68469&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.875934[/C][C]6.0687[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.654299[/C][C]4.5331[/C][C]1.9e-05[/C][/ROW]
[ROW][C]3[/C][C]0.437449[/C][C]3.0307[/C][C]0.001962[/C][/ROW]
[ROW][C]4[/C][C]0.27272[/C][C]1.8895[/C][C]0.032439[/C][/ROW]
[ROW][C]5[/C][C]0.141849[/C][C]0.9828[/C][C]0.165327[/C][/ROW]
[ROW][C]6[/C][C]0.02692[/C][C]0.1865[/C][C]0.426416[/C][/ROW]
[ROW][C]7[/C][C]-0.082722[/C][C]-0.5731[/C][C]0.284621[/C][/ROW]
[ROW][C]8[/C][C]-0.18457[/C][C]-1.2787[/C][C]0.103568[/C][/ROW]
[ROW][C]9[/C][C]-0.288955[/C][C]-2.0019[/C][C]0.02548[/C][/ROW]
[ROW][C]10[/C][C]-0.437465[/C][C]-3.0308[/C][C]0.001961[/C][/ROW]
[ROW][C]11[/C][C]-0.597859[/C][C]-4.1421[/C][C]6.9e-05[/C][/ROW]
[ROW][C]12[/C][C]-0.691728[/C][C]-4.7924[/C][C]8e-06[/C][/ROW]
[ROW][C]13[/C][C]-0.656982[/C][C]-4.5517[/C][C]1.8e-05[/C][/ROW]
[ROW][C]14[/C][C]-0.549845[/C][C]-3.8094[/C][C]0.000198[/C][/ROW]
[ROW][C]15[/C][C]-0.431586[/C][C]-2.9901[/C][C]0.002195[/C][/ROW]
[ROW][C]16[/C][C]-0.345212[/C][C]-2.3917[/C][C]0.010368[/C][/ROW]
[ROW][C]17[/C][C]-0.271231[/C][C]-1.8791[/C][C]0.033152[/C][/ROW]
[ROW][C]18[/C][C]-0.18245[/C][C]-1.264[/C][C]0.106158[/C][/ROW]
[ROW][C]19[/C][C]-0.06714[/C][C]-0.4652[/C][C]0.321959[/C][/ROW]
[ROW][C]20[/C][C]0.036444[/C][C]0.2525[/C][C]0.400869[/C][/ROW]
[ROW][C]21[/C][C]0.129248[/C][C]0.8955[/C][C]0.187506[/C][/ROW]
[ROW][C]22[/C][C]0.230499[/C][C]1.5969[/C][C]0.058421[/C][/ROW]
[ROW][C]23[/C][C]0.338661[/C][C]2.3463[/C][C]0.011568[/C][/ROW]
[ROW][C]24[/C][C]0.400833[/C][C]2.7771[/C][C]0.003901[/C][/ROW]
[ROW][C]25[/C][C]0.399055[/C][C]2.7647[/C][C]0.004029[/C][/ROW]
[ROW][C]26[/C][C]0.335361[/C][C]2.3235[/C][C]0.012219[/C][/ROW]
[ROW][C]27[/C][C]0.256283[/C][C]1.7756[/C][C]0.041071[/C][/ROW]
[ROW][C]28[/C][C]0.210435[/C][C]1.4579[/C][C]0.075685[/C][/ROW]
[ROW][C]29[/C][C]0.185504[/C][C]1.2852[/C][C]0.102443[/C][/ROW]
[ROW][C]30[/C][C]0.146546[/C][C]1.0153[/C][C]0.157527[/C][/ROW]
[ROW][C]31[/C][C]0.083126[/C][C]0.5759[/C][C]0.283682[/C][/ROW]
[ROW][C]32[/C][C]0.031085[/C][C]0.2154[/C][C]0.415199[/C][/ROW]
[ROW][C]33[/C][C]-0.015914[/C][C]-0.1103[/C][C]0.456332[/C][/ROW]
[ROW][C]34[/C][C]-0.062829[/C][C]-0.4353[/C][C]0.33265[/C][/ROW]
[ROW][C]35[/C][C]-0.120345[/C][C]-0.8338[/C][C]0.20427[/C][/ROW]
[ROW][C]36[/C][C]-0.165987[/C][C]-1.15[/C][C]0.127922[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68469&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68469&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.8759346.06870
20.6542994.53311.9e-05
30.4374493.03070.001962
40.272721.88950.032439
50.1418490.98280.165327
60.026920.18650.426416
7-0.082722-0.57310.284621
8-0.18457-1.27870.103568
9-0.288955-2.00190.02548
10-0.437465-3.03080.001961
11-0.597859-4.14216.9e-05
12-0.691728-4.79248e-06
13-0.656982-4.55171.8e-05
14-0.549845-3.80940.000198
15-0.431586-2.99010.002195
16-0.345212-2.39170.010368
17-0.271231-1.87910.033152
18-0.18245-1.2640.106158
19-0.06714-0.46520.321959
200.0364440.25250.400869
210.1292480.89550.187506
220.2304991.59690.058421
230.3386612.34630.011568
240.4008332.77710.003901
250.3990552.76470.004029
260.3353612.32350.012219
270.2562831.77560.041071
280.2104351.45790.075685
290.1855041.28520.102443
300.1465461.01530.157527
310.0831260.57590.283682
320.0310850.21540.415199
33-0.015914-0.11030.456332
34-0.062829-0.43530.33265
35-0.120345-0.83380.20427
36-0.165987-1.150.127922







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8759346.06870
2-0.485362-3.36270.000762
30.0635120.440.330947
40.0343430.23790.406472
5-0.127505-0.88340.190716
6-0.070384-0.48760.314015
7-0.094982-0.65810.256823
8-0.089622-0.62090.268795
9-0.17928-1.24210.11012
10-0.406721-2.81780.0035
11-0.162379-1.1250.133093
120.0361410.25040.401675
130.1688011.16950.123992
14-0.147929-1.02490.155279
15-0.080662-0.55880.289433
16-0.124043-0.85940.197197
17-0.010422-0.07220.471369
180.0120540.08350.466896
190.0904640.62680.266895
20-0.126047-0.87330.19343
21-0.04299-0.29780.383555
22-0.088991-0.61660.270222
230.011010.07630.469758
24-0.132877-0.92060.180932
250.041530.28770.387398
26-0.201813-1.39820.08424
27-0.067182-0.46540.321858
28-0.024369-0.16880.433319
29-0.000734-0.00510.497982
30-0.064638-0.44780.328147
31-0.010507-0.07280.471136
320.0098040.06790.473065
33-0.034015-0.23570.407349
34-0.024861-0.17220.431987
350.0113240.07850.468897
36-0.022271-0.15430.43901

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.875934 & 6.0687 & 0 \tabularnewline
2 & -0.485362 & -3.3627 & 0.000762 \tabularnewline
3 & 0.063512 & 0.44 & 0.330947 \tabularnewline
4 & 0.034343 & 0.2379 & 0.406472 \tabularnewline
5 & -0.127505 & -0.8834 & 0.190716 \tabularnewline
6 & -0.070384 & -0.4876 & 0.314015 \tabularnewline
7 & -0.094982 & -0.6581 & 0.256823 \tabularnewline
8 & -0.089622 & -0.6209 & 0.268795 \tabularnewline
9 & -0.17928 & -1.2421 & 0.11012 \tabularnewline
10 & -0.406721 & -2.8178 & 0.0035 \tabularnewline
11 & -0.162379 & -1.125 & 0.133093 \tabularnewline
12 & 0.036141 & 0.2504 & 0.401675 \tabularnewline
13 & 0.168801 & 1.1695 & 0.123992 \tabularnewline
14 & -0.147929 & -1.0249 & 0.155279 \tabularnewline
15 & -0.080662 & -0.5588 & 0.289433 \tabularnewline
16 & -0.124043 & -0.8594 & 0.197197 \tabularnewline
17 & -0.010422 & -0.0722 & 0.471369 \tabularnewline
18 & 0.012054 & 0.0835 & 0.466896 \tabularnewline
19 & 0.090464 & 0.6268 & 0.266895 \tabularnewline
20 & -0.126047 & -0.8733 & 0.19343 \tabularnewline
21 & -0.04299 & -0.2978 & 0.383555 \tabularnewline
22 & -0.088991 & -0.6166 & 0.270222 \tabularnewline
23 & 0.01101 & 0.0763 & 0.469758 \tabularnewline
24 & -0.132877 & -0.9206 & 0.180932 \tabularnewline
25 & 0.04153 & 0.2877 & 0.387398 \tabularnewline
26 & -0.201813 & -1.3982 & 0.08424 \tabularnewline
27 & -0.067182 & -0.4654 & 0.321858 \tabularnewline
28 & -0.024369 & -0.1688 & 0.433319 \tabularnewline
29 & -0.000734 & -0.0051 & 0.497982 \tabularnewline
30 & -0.064638 & -0.4478 & 0.328147 \tabularnewline
31 & -0.010507 & -0.0728 & 0.471136 \tabularnewline
32 & 0.009804 & 0.0679 & 0.473065 \tabularnewline
33 & -0.034015 & -0.2357 & 0.407349 \tabularnewline
34 & -0.024861 & -0.1722 & 0.431987 \tabularnewline
35 & 0.011324 & 0.0785 & 0.468897 \tabularnewline
36 & -0.022271 & -0.1543 & 0.43901 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68469&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.875934[/C][C]6.0687[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.485362[/C][C]-3.3627[/C][C]0.000762[/C][/ROW]
[ROW][C]3[/C][C]0.063512[/C][C]0.44[/C][C]0.330947[/C][/ROW]
[ROW][C]4[/C][C]0.034343[/C][C]0.2379[/C][C]0.406472[/C][/ROW]
[ROW][C]5[/C][C]-0.127505[/C][C]-0.8834[/C][C]0.190716[/C][/ROW]
[ROW][C]6[/C][C]-0.070384[/C][C]-0.4876[/C][C]0.314015[/C][/ROW]
[ROW][C]7[/C][C]-0.094982[/C][C]-0.6581[/C][C]0.256823[/C][/ROW]
[ROW][C]8[/C][C]-0.089622[/C][C]-0.6209[/C][C]0.268795[/C][/ROW]
[ROW][C]9[/C][C]-0.17928[/C][C]-1.2421[/C][C]0.11012[/C][/ROW]
[ROW][C]10[/C][C]-0.406721[/C][C]-2.8178[/C][C]0.0035[/C][/ROW]
[ROW][C]11[/C][C]-0.162379[/C][C]-1.125[/C][C]0.133093[/C][/ROW]
[ROW][C]12[/C][C]0.036141[/C][C]0.2504[/C][C]0.401675[/C][/ROW]
[ROW][C]13[/C][C]0.168801[/C][C]1.1695[/C][C]0.123992[/C][/ROW]
[ROW][C]14[/C][C]-0.147929[/C][C]-1.0249[/C][C]0.155279[/C][/ROW]
[ROW][C]15[/C][C]-0.080662[/C][C]-0.5588[/C][C]0.289433[/C][/ROW]
[ROW][C]16[/C][C]-0.124043[/C][C]-0.8594[/C][C]0.197197[/C][/ROW]
[ROW][C]17[/C][C]-0.010422[/C][C]-0.0722[/C][C]0.471369[/C][/ROW]
[ROW][C]18[/C][C]0.012054[/C][C]0.0835[/C][C]0.466896[/C][/ROW]
[ROW][C]19[/C][C]0.090464[/C][C]0.6268[/C][C]0.266895[/C][/ROW]
[ROW][C]20[/C][C]-0.126047[/C][C]-0.8733[/C][C]0.19343[/C][/ROW]
[ROW][C]21[/C][C]-0.04299[/C][C]-0.2978[/C][C]0.383555[/C][/ROW]
[ROW][C]22[/C][C]-0.088991[/C][C]-0.6166[/C][C]0.270222[/C][/ROW]
[ROW][C]23[/C][C]0.01101[/C][C]0.0763[/C][C]0.469758[/C][/ROW]
[ROW][C]24[/C][C]-0.132877[/C][C]-0.9206[/C][C]0.180932[/C][/ROW]
[ROW][C]25[/C][C]0.04153[/C][C]0.2877[/C][C]0.387398[/C][/ROW]
[ROW][C]26[/C][C]-0.201813[/C][C]-1.3982[/C][C]0.08424[/C][/ROW]
[ROW][C]27[/C][C]-0.067182[/C][C]-0.4654[/C][C]0.321858[/C][/ROW]
[ROW][C]28[/C][C]-0.024369[/C][C]-0.1688[/C][C]0.433319[/C][/ROW]
[ROW][C]29[/C][C]-0.000734[/C][C]-0.0051[/C][C]0.497982[/C][/ROW]
[ROW][C]30[/C][C]-0.064638[/C][C]-0.4478[/C][C]0.328147[/C][/ROW]
[ROW][C]31[/C][C]-0.010507[/C][C]-0.0728[/C][C]0.471136[/C][/ROW]
[ROW][C]32[/C][C]0.009804[/C][C]0.0679[/C][C]0.473065[/C][/ROW]
[ROW][C]33[/C][C]-0.034015[/C][C]-0.2357[/C][C]0.407349[/C][/ROW]
[ROW][C]34[/C][C]-0.024861[/C][C]-0.1722[/C][C]0.431987[/C][/ROW]
[ROW][C]35[/C][C]0.011324[/C][C]0.0785[/C][C]0.468897[/C][/ROW]
[ROW][C]36[/C][C]-0.022271[/C][C]-0.1543[/C][C]0.43901[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68469&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68469&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.8759346.06870
2-0.485362-3.36270.000762
30.0635120.440.330947
40.0343430.23790.406472
5-0.127505-0.88340.190716
6-0.070384-0.48760.314015
7-0.094982-0.65810.256823
8-0.089622-0.62090.268795
9-0.17928-1.24210.11012
10-0.406721-2.81780.0035
11-0.162379-1.1250.133093
120.0361410.25040.401675
130.1688011.16950.123992
14-0.147929-1.02490.155279
15-0.080662-0.55880.289433
16-0.124043-0.85940.197197
17-0.010422-0.07220.471369
180.0120540.08350.466896
190.0904640.62680.266895
20-0.126047-0.87330.19343
21-0.04299-0.29780.383555
22-0.088991-0.61660.270222
230.011010.07630.469758
24-0.132877-0.92060.180932
250.041530.28770.387398
26-0.201813-1.39820.08424
27-0.067182-0.46540.321858
28-0.024369-0.16880.433319
29-0.000734-0.00510.497982
30-0.064638-0.44780.328147
31-0.010507-0.07280.471136
320.0098040.06790.473065
33-0.034015-0.23570.407349
34-0.024861-0.17220.431987
350.0113240.07850.468897
36-0.022271-0.15430.43901



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