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 03:28:47 -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/t12599225722erd9pbsiv7t1v0.htm/, Retrieved Sat, 27 Apr 2024 21:56:29 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63251, Retrieved Sat, 27 Apr 2024 21:56:29 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact103
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:46:03] [b98453cac15ba1066b407e146608df68]
-   PD      [(Partial) Autocorrelation Function] [WS9] [2009-12-04 10:28:47] [9a1fef436e1d399a5ecd6808bfbd8489] [Current]
Feedback Forum

Post a new message
Dataseries X:
3922
3759
4138
4634
3995
4308
4143
4429
5219
4929
5755
5592
4163
4962
5208
4755
4491
5732
5731
5040
6102
4904
5369
5578
4619
4731
5011
5299
4146
4625
4736
4219
5116
4205
4121
5103
4300
4578
3809
5526
4247
3830
4394
4826
4409
4569
4106
4794
3914
3793
4405
4022
4100
4788
3163
3585
3903
4178
3863
4187




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63251&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.3769472.91980.002463
20.3491382.70440.004446
30.4773853.69780.000237
40.3467512.68590.004671
50.2828942.19130.016163
60.2343551.81530.037238
70.2342151.81420.037322
80.200361.5520.062963
90.1420991.10070.137712
100.1693191.31150.097336
11-0.02842-0.22010.413256
120.1531111.1860.12015
130.066220.51290.304939
14-0.007251-0.05620.477698
15-0.040635-0.31480.37702
16-0.047083-0.36470.358308
17-0.042565-0.32970.371384
18-0.064728-0.50140.30897
19-0.158395-1.22690.112323
20-0.125721-0.97380.167025
21-0.049438-0.38290.351555
22-0.099836-0.77330.221183
23-0.172039-1.33260.09385
24-0.076808-0.5950.277056
25-0.08459-0.65520.257412
26-0.104681-0.81090.210328
27-0.139564-1.08110.141998
28-0.170202-1.31840.096194
29-0.130221-1.00870.158587
30-0.131944-1.0220.155435
31-0.256016-1.98310.02597
32-0.210884-1.63350.053801
33-0.14895-1.15380.126586
34-0.202595-1.56930.060919
35-0.231955-1.79670.038707
36-0.160836-1.24580.108835

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.376947 & 2.9198 & 0.002463 \tabularnewline
2 & 0.349138 & 2.7044 & 0.004446 \tabularnewline
3 & 0.477385 & 3.6978 & 0.000237 \tabularnewline
4 & 0.346751 & 2.6859 & 0.004671 \tabularnewline
5 & 0.282894 & 2.1913 & 0.016163 \tabularnewline
6 & 0.234355 & 1.8153 & 0.037238 \tabularnewline
7 & 0.234215 & 1.8142 & 0.037322 \tabularnewline
8 & 0.20036 & 1.552 & 0.062963 \tabularnewline
9 & 0.142099 & 1.1007 & 0.137712 \tabularnewline
10 & 0.169319 & 1.3115 & 0.097336 \tabularnewline
11 & -0.02842 & -0.2201 & 0.413256 \tabularnewline
12 & 0.153111 & 1.186 & 0.12015 \tabularnewline
13 & 0.06622 & 0.5129 & 0.304939 \tabularnewline
14 & -0.007251 & -0.0562 & 0.477698 \tabularnewline
15 & -0.040635 & -0.3148 & 0.37702 \tabularnewline
16 & -0.047083 & -0.3647 & 0.358308 \tabularnewline
17 & -0.042565 & -0.3297 & 0.371384 \tabularnewline
18 & -0.064728 & -0.5014 & 0.30897 \tabularnewline
19 & -0.158395 & -1.2269 & 0.112323 \tabularnewline
20 & -0.125721 & -0.9738 & 0.167025 \tabularnewline
21 & -0.049438 & -0.3829 & 0.351555 \tabularnewline
22 & -0.099836 & -0.7733 & 0.221183 \tabularnewline
23 & -0.172039 & -1.3326 & 0.09385 \tabularnewline
24 & -0.076808 & -0.595 & 0.277056 \tabularnewline
25 & -0.08459 & -0.6552 & 0.257412 \tabularnewline
26 & -0.104681 & -0.8109 & 0.210328 \tabularnewline
27 & -0.139564 & -1.0811 & 0.141998 \tabularnewline
28 & -0.170202 & -1.3184 & 0.096194 \tabularnewline
29 & -0.130221 & -1.0087 & 0.158587 \tabularnewline
30 & -0.131944 & -1.022 & 0.155435 \tabularnewline
31 & -0.256016 & -1.9831 & 0.02597 \tabularnewline
32 & -0.210884 & -1.6335 & 0.053801 \tabularnewline
33 & -0.14895 & -1.1538 & 0.126586 \tabularnewline
34 & -0.202595 & -1.5693 & 0.060919 \tabularnewline
35 & -0.231955 & -1.7967 & 0.038707 \tabularnewline
36 & -0.160836 & -1.2458 & 0.108835 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63251&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.376947[/C][C]2.9198[/C][C]0.002463[/C][/ROW]
[ROW][C]2[/C][C]0.349138[/C][C]2.7044[/C][C]0.004446[/C][/ROW]
[ROW][C]3[/C][C]0.477385[/C][C]3.6978[/C][C]0.000237[/C][/ROW]
[ROW][C]4[/C][C]0.346751[/C][C]2.6859[/C][C]0.004671[/C][/ROW]
[ROW][C]5[/C][C]0.282894[/C][C]2.1913[/C][C]0.016163[/C][/ROW]
[ROW][C]6[/C][C]0.234355[/C][C]1.8153[/C][C]0.037238[/C][/ROW]
[ROW][C]7[/C][C]0.234215[/C][C]1.8142[/C][C]0.037322[/C][/ROW]
[ROW][C]8[/C][C]0.20036[/C][C]1.552[/C][C]0.062963[/C][/ROW]
[ROW][C]9[/C][C]0.142099[/C][C]1.1007[/C][C]0.137712[/C][/ROW]
[ROW][C]10[/C][C]0.169319[/C][C]1.3115[/C][C]0.097336[/C][/ROW]
[ROW][C]11[/C][C]-0.02842[/C][C]-0.2201[/C][C]0.413256[/C][/ROW]
[ROW][C]12[/C][C]0.153111[/C][C]1.186[/C][C]0.12015[/C][/ROW]
[ROW][C]13[/C][C]0.06622[/C][C]0.5129[/C][C]0.304939[/C][/ROW]
[ROW][C]14[/C][C]-0.007251[/C][C]-0.0562[/C][C]0.477698[/C][/ROW]
[ROW][C]15[/C][C]-0.040635[/C][C]-0.3148[/C][C]0.37702[/C][/ROW]
[ROW][C]16[/C][C]-0.047083[/C][C]-0.3647[/C][C]0.358308[/C][/ROW]
[ROW][C]17[/C][C]-0.042565[/C][C]-0.3297[/C][C]0.371384[/C][/ROW]
[ROW][C]18[/C][C]-0.064728[/C][C]-0.5014[/C][C]0.30897[/C][/ROW]
[ROW][C]19[/C][C]-0.158395[/C][C]-1.2269[/C][C]0.112323[/C][/ROW]
[ROW][C]20[/C][C]-0.125721[/C][C]-0.9738[/C][C]0.167025[/C][/ROW]
[ROW][C]21[/C][C]-0.049438[/C][C]-0.3829[/C][C]0.351555[/C][/ROW]
[ROW][C]22[/C][C]-0.099836[/C][C]-0.7733[/C][C]0.221183[/C][/ROW]
[ROW][C]23[/C][C]-0.172039[/C][C]-1.3326[/C][C]0.09385[/C][/ROW]
[ROW][C]24[/C][C]-0.076808[/C][C]-0.595[/C][C]0.277056[/C][/ROW]
[ROW][C]25[/C][C]-0.08459[/C][C]-0.6552[/C][C]0.257412[/C][/ROW]
[ROW][C]26[/C][C]-0.104681[/C][C]-0.8109[/C][C]0.210328[/C][/ROW]
[ROW][C]27[/C][C]-0.139564[/C][C]-1.0811[/C][C]0.141998[/C][/ROW]
[ROW][C]28[/C][C]-0.170202[/C][C]-1.3184[/C][C]0.096194[/C][/ROW]
[ROW][C]29[/C][C]-0.130221[/C][C]-1.0087[/C][C]0.158587[/C][/ROW]
[ROW][C]30[/C][C]-0.131944[/C][C]-1.022[/C][C]0.155435[/C][/ROW]
[ROW][C]31[/C][C]-0.256016[/C][C]-1.9831[/C][C]0.02597[/C][/ROW]
[ROW][C]32[/C][C]-0.210884[/C][C]-1.6335[/C][C]0.053801[/C][/ROW]
[ROW][C]33[/C][C]-0.14895[/C][C]-1.1538[/C][C]0.126586[/C][/ROW]
[ROW][C]34[/C][C]-0.202595[/C][C]-1.5693[/C][C]0.060919[/C][/ROW]
[ROW][C]35[/C][C]-0.231955[/C][C]-1.7967[/C][C]0.038707[/C][/ROW]
[ROW][C]36[/C][C]-0.160836[/C][C]-1.2458[/C][C]0.108835[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63251&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63251&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.3769472.91980.002463
20.3491382.70440.004446
30.4773853.69780.000237
40.3467512.68590.004671
50.2828942.19130.016163
60.2343551.81530.037238
70.2342151.81420.037322
80.200361.5520.062963
90.1420991.10070.137712
100.1693191.31150.097336
11-0.02842-0.22010.413256
120.1531111.1860.12015
130.066220.51290.304939
14-0.007251-0.05620.477698
15-0.040635-0.31480.37702
16-0.047083-0.36470.358308
17-0.042565-0.32970.371384
18-0.064728-0.50140.30897
19-0.158395-1.22690.112323
20-0.125721-0.97380.167025
21-0.049438-0.38290.351555
22-0.099836-0.77330.221183
23-0.172039-1.33260.09385
24-0.076808-0.5950.277056
25-0.08459-0.65520.257412
26-0.104681-0.81090.210328
27-0.139564-1.08110.141998
28-0.170202-1.31840.096194
29-0.130221-1.00870.158587
30-0.131944-1.0220.155435
31-0.256016-1.98310.02597
32-0.210884-1.63350.053801
33-0.14895-1.15380.126586
34-0.202595-1.56930.060919
35-0.231955-1.79670.038707
36-0.160836-1.24580.108835







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3769472.91980.002463
20.2413411.86940.033223
30.3546892.74740.00396
40.0970550.75180.227559
50.0163120.12630.449939
6-0.074625-0.5780.2827
70.0055790.04320.482836
80.0089710.06950.472415
9-0.014537-0.11260.455362
100.0417220.32320.373842
11-0.234701-1.8180.03703
120.1548291.19930.117563
13-0.043021-0.33320.370058
140.0255620.1980.421856
15-0.156977-1.21590.114385
16-0.051376-0.3980.346038
17-0.021918-0.16980.432877
180.052560.40710.342683
19-0.104798-0.81180.210069
20-0.06477-0.50170.308856
210.1243370.96310.16968
22-0.031763-0.2460.403248
230.0157520.1220.451648
24-0.029082-0.22530.411268
250.0214980.16650.434153
26-0.029646-0.22960.409577
27-0.039805-0.30830.379449
28-0.127847-0.99030.163003
290.0004140.00320.498727
30-0.034598-0.2680.394812
31-0.171643-1.32950.094352
320.005880.04550.481913
33-0.001275-0.00990.496077
34-0.024765-0.19180.424261
35-0.061361-0.47530.318149
360.0462510.35830.360703

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.376947 & 2.9198 & 0.002463 \tabularnewline
2 & 0.241341 & 1.8694 & 0.033223 \tabularnewline
3 & 0.354689 & 2.7474 & 0.00396 \tabularnewline
4 & 0.097055 & 0.7518 & 0.227559 \tabularnewline
5 & 0.016312 & 0.1263 & 0.449939 \tabularnewline
6 & -0.074625 & -0.578 & 0.2827 \tabularnewline
7 & 0.005579 & 0.0432 & 0.482836 \tabularnewline
8 & 0.008971 & 0.0695 & 0.472415 \tabularnewline
9 & -0.014537 & -0.1126 & 0.455362 \tabularnewline
10 & 0.041722 & 0.3232 & 0.373842 \tabularnewline
11 & -0.234701 & -1.818 & 0.03703 \tabularnewline
12 & 0.154829 & 1.1993 & 0.117563 \tabularnewline
13 & -0.043021 & -0.3332 & 0.370058 \tabularnewline
14 & 0.025562 & 0.198 & 0.421856 \tabularnewline
15 & -0.156977 & -1.2159 & 0.114385 \tabularnewline
16 & -0.051376 & -0.398 & 0.346038 \tabularnewline
17 & -0.021918 & -0.1698 & 0.432877 \tabularnewline
18 & 0.05256 & 0.4071 & 0.342683 \tabularnewline
19 & -0.104798 & -0.8118 & 0.210069 \tabularnewline
20 & -0.06477 & -0.5017 & 0.308856 \tabularnewline
21 & 0.124337 & 0.9631 & 0.16968 \tabularnewline
22 & -0.031763 & -0.246 & 0.403248 \tabularnewline
23 & 0.015752 & 0.122 & 0.451648 \tabularnewline
24 & -0.029082 & -0.2253 & 0.411268 \tabularnewline
25 & 0.021498 & 0.1665 & 0.434153 \tabularnewline
26 & -0.029646 & -0.2296 & 0.409577 \tabularnewline
27 & -0.039805 & -0.3083 & 0.379449 \tabularnewline
28 & -0.127847 & -0.9903 & 0.163003 \tabularnewline
29 & 0.000414 & 0.0032 & 0.498727 \tabularnewline
30 & -0.034598 & -0.268 & 0.394812 \tabularnewline
31 & -0.171643 & -1.3295 & 0.094352 \tabularnewline
32 & 0.00588 & 0.0455 & 0.481913 \tabularnewline
33 & -0.001275 & -0.0099 & 0.496077 \tabularnewline
34 & -0.024765 & -0.1918 & 0.424261 \tabularnewline
35 & -0.061361 & -0.4753 & 0.318149 \tabularnewline
36 & 0.046251 & 0.3583 & 0.360703 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63251&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.376947[/C][C]2.9198[/C][C]0.002463[/C][/ROW]
[ROW][C]2[/C][C]0.241341[/C][C]1.8694[/C][C]0.033223[/C][/ROW]
[ROW][C]3[/C][C]0.354689[/C][C]2.7474[/C][C]0.00396[/C][/ROW]
[ROW][C]4[/C][C]0.097055[/C][C]0.7518[/C][C]0.227559[/C][/ROW]
[ROW][C]5[/C][C]0.016312[/C][C]0.1263[/C][C]0.449939[/C][/ROW]
[ROW][C]6[/C][C]-0.074625[/C][C]-0.578[/C][C]0.2827[/C][/ROW]
[ROW][C]7[/C][C]0.005579[/C][C]0.0432[/C][C]0.482836[/C][/ROW]
[ROW][C]8[/C][C]0.008971[/C][C]0.0695[/C][C]0.472415[/C][/ROW]
[ROW][C]9[/C][C]-0.014537[/C][C]-0.1126[/C][C]0.455362[/C][/ROW]
[ROW][C]10[/C][C]0.041722[/C][C]0.3232[/C][C]0.373842[/C][/ROW]
[ROW][C]11[/C][C]-0.234701[/C][C]-1.818[/C][C]0.03703[/C][/ROW]
[ROW][C]12[/C][C]0.154829[/C][C]1.1993[/C][C]0.117563[/C][/ROW]
[ROW][C]13[/C][C]-0.043021[/C][C]-0.3332[/C][C]0.370058[/C][/ROW]
[ROW][C]14[/C][C]0.025562[/C][C]0.198[/C][C]0.421856[/C][/ROW]
[ROW][C]15[/C][C]-0.156977[/C][C]-1.2159[/C][C]0.114385[/C][/ROW]
[ROW][C]16[/C][C]-0.051376[/C][C]-0.398[/C][C]0.346038[/C][/ROW]
[ROW][C]17[/C][C]-0.021918[/C][C]-0.1698[/C][C]0.432877[/C][/ROW]
[ROW][C]18[/C][C]0.05256[/C][C]0.4071[/C][C]0.342683[/C][/ROW]
[ROW][C]19[/C][C]-0.104798[/C][C]-0.8118[/C][C]0.210069[/C][/ROW]
[ROW][C]20[/C][C]-0.06477[/C][C]-0.5017[/C][C]0.308856[/C][/ROW]
[ROW][C]21[/C][C]0.124337[/C][C]0.9631[/C][C]0.16968[/C][/ROW]
[ROW][C]22[/C][C]-0.031763[/C][C]-0.246[/C][C]0.403248[/C][/ROW]
[ROW][C]23[/C][C]0.015752[/C][C]0.122[/C][C]0.451648[/C][/ROW]
[ROW][C]24[/C][C]-0.029082[/C][C]-0.2253[/C][C]0.411268[/C][/ROW]
[ROW][C]25[/C][C]0.021498[/C][C]0.1665[/C][C]0.434153[/C][/ROW]
[ROW][C]26[/C][C]-0.029646[/C][C]-0.2296[/C][C]0.409577[/C][/ROW]
[ROW][C]27[/C][C]-0.039805[/C][C]-0.3083[/C][C]0.379449[/C][/ROW]
[ROW][C]28[/C][C]-0.127847[/C][C]-0.9903[/C][C]0.163003[/C][/ROW]
[ROW][C]29[/C][C]0.000414[/C][C]0.0032[/C][C]0.498727[/C][/ROW]
[ROW][C]30[/C][C]-0.034598[/C][C]-0.268[/C][C]0.394812[/C][/ROW]
[ROW][C]31[/C][C]-0.171643[/C][C]-1.3295[/C][C]0.094352[/C][/ROW]
[ROW][C]32[/C][C]0.00588[/C][C]0.0455[/C][C]0.481913[/C][/ROW]
[ROW][C]33[/C][C]-0.001275[/C][C]-0.0099[/C][C]0.496077[/C][/ROW]
[ROW][C]34[/C][C]-0.024765[/C][C]-0.1918[/C][C]0.424261[/C][/ROW]
[ROW][C]35[/C][C]-0.061361[/C][C]-0.4753[/C][C]0.318149[/C][/ROW]
[ROW][C]36[/C][C]0.046251[/C][C]0.3583[/C][C]0.360703[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63251&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63251&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.3769472.91980.002463
20.2413411.86940.033223
30.3546892.74740.00396
40.0970550.75180.227559
50.0163120.12630.449939
6-0.074625-0.5780.2827
70.0055790.04320.482836
80.0089710.06950.472415
9-0.014537-0.11260.455362
100.0417220.32320.373842
11-0.234701-1.8180.03703
120.1548291.19930.117563
13-0.043021-0.33320.370058
140.0255620.1980.421856
15-0.156977-1.21590.114385
16-0.051376-0.3980.346038
17-0.021918-0.16980.432877
180.052560.40710.342683
19-0.104798-0.81180.210069
20-0.06477-0.50170.308856
210.1243370.96310.16968
22-0.031763-0.2460.403248
230.0157520.1220.451648
24-0.029082-0.22530.411268
250.0214980.16650.434153
26-0.029646-0.22960.409577
27-0.039805-0.30830.379449
28-0.127847-0.99030.163003
290.0004140.00320.498727
30-0.034598-0.2680.394812
31-0.171643-1.32950.094352
320.005880.04550.481913
33-0.001275-0.00990.496077
34-0.024765-0.19180.424261
35-0.061361-0.47530.318149
360.0462510.35830.360703



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