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 computationThu, 26 Nov 2009 11:03:42 -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/Nov/26/t1259259095hidevmguanv6jpl.htm/, Retrieved Sun, 28 Apr 2024 19:10:42 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60216, Retrieved Sun, 28 Apr 2024 19:10:42 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact100
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:16:10] [b98453cac15ba1066b407e146608df68]
-   PD          [(Partial) Autocorrelation Function] [cs.shw.ws8.v1] [2009-11-26 18:03:42] [47f146dd9fb230449e079c6cbc92f5f5] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.9
9
9
9
9
9
9
9
9
9
9
9.1
9
9
9.1
9
9
9
9
8.9
8.9
8.9
8.9
8.8
8.8
8.7
8.7
8.5
8.5
8.4
8.2
8.2
8.1
8.1
8
7.9
7.8
7.7
7.6
7.5
7.5
7.5
7.5
7.5
7.4
7.4
7.3
7.3
7.3
7.2
7.2
7.3
7.4
7.4
7.5
7.6
7.7
7.9
8
8.2




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60216&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.9854557.63330
20.9631097.46020
30.9333237.22950
40.8965576.94470
50.8545056.6190
60.8075266.25510
70.7574175.86690
80.7026395.44261e-06
90.6450884.99683e-06
100.5851264.53241.4e-05
110.5230084.05127.4e-05
120.4574543.54340.000386
130.3923623.03920.001755
140.3279872.54060.006836
150.2608952.02090.023881
160.1953411.51310.067751
170.1314821.01850.156276
180.0669040.51820.303101
190.0044810.03470.486215
20-0.054967-0.42580.335898
21-0.11226-0.86960.194002
22-0.166422-1.28910.101156
23-0.217453-1.68440.048651
24-0.263815-2.04350.0227
25-0.307046-2.37840.010295
26-0.344531-2.66870.004889
27-0.379603-2.94040.002325
28-0.406929-3.15210.001265
29-0.430765-3.33670.00073
30-0.448752-3.4760.000476
31-0.459197-3.55690.00037
32-0.467948-3.62470.000299
33-0.471568-3.65280.000273
34-0.472878-3.66290.000265
35-0.470854-3.64720.000278
36-0.464519-3.59820.000325

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.985455 & 7.6333 & 0 \tabularnewline
2 & 0.963109 & 7.4602 & 0 \tabularnewline
3 & 0.933323 & 7.2295 & 0 \tabularnewline
4 & 0.896557 & 6.9447 & 0 \tabularnewline
5 & 0.854505 & 6.619 & 0 \tabularnewline
6 & 0.807526 & 6.2551 & 0 \tabularnewline
7 & 0.757417 & 5.8669 & 0 \tabularnewline
8 & 0.702639 & 5.4426 & 1e-06 \tabularnewline
9 & 0.645088 & 4.9968 & 3e-06 \tabularnewline
10 & 0.585126 & 4.5324 & 1.4e-05 \tabularnewline
11 & 0.523008 & 4.0512 & 7.4e-05 \tabularnewline
12 & 0.457454 & 3.5434 & 0.000386 \tabularnewline
13 & 0.392362 & 3.0392 & 0.001755 \tabularnewline
14 & 0.327987 & 2.5406 & 0.006836 \tabularnewline
15 & 0.260895 & 2.0209 & 0.023881 \tabularnewline
16 & 0.195341 & 1.5131 & 0.067751 \tabularnewline
17 & 0.131482 & 1.0185 & 0.156276 \tabularnewline
18 & 0.066904 & 0.5182 & 0.303101 \tabularnewline
19 & 0.004481 & 0.0347 & 0.486215 \tabularnewline
20 & -0.054967 & -0.4258 & 0.335898 \tabularnewline
21 & -0.11226 & -0.8696 & 0.194002 \tabularnewline
22 & -0.166422 & -1.2891 & 0.101156 \tabularnewline
23 & -0.217453 & -1.6844 & 0.048651 \tabularnewline
24 & -0.263815 & -2.0435 & 0.0227 \tabularnewline
25 & -0.307046 & -2.3784 & 0.010295 \tabularnewline
26 & -0.344531 & -2.6687 & 0.004889 \tabularnewline
27 & -0.379603 & -2.9404 & 0.002325 \tabularnewline
28 & -0.406929 & -3.1521 & 0.001265 \tabularnewline
29 & -0.430765 & -3.3367 & 0.00073 \tabularnewline
30 & -0.448752 & -3.476 & 0.000476 \tabularnewline
31 & -0.459197 & -3.5569 & 0.00037 \tabularnewline
32 & -0.467948 & -3.6247 & 0.000299 \tabularnewline
33 & -0.471568 & -3.6528 & 0.000273 \tabularnewline
34 & -0.472878 & -3.6629 & 0.000265 \tabularnewline
35 & -0.470854 & -3.6472 & 0.000278 \tabularnewline
36 & -0.464519 & -3.5982 & 0.000325 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60216&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.985455[/C][C]7.6333[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.963109[/C][C]7.4602[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.933323[/C][C]7.2295[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.896557[/C][C]6.9447[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0.854505[/C][C]6.619[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0.807526[/C][C]6.2551[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0.757417[/C][C]5.8669[/C][C]0[/C][/ROW]
[ROW][C]8[/C][C]0.702639[/C][C]5.4426[/C][C]1e-06[/C][/ROW]
[ROW][C]9[/C][C]0.645088[/C][C]4.9968[/C][C]3e-06[/C][/ROW]
[ROW][C]10[/C][C]0.585126[/C][C]4.5324[/C][C]1.4e-05[/C][/ROW]
[ROW][C]11[/C][C]0.523008[/C][C]4.0512[/C][C]7.4e-05[/C][/ROW]
[ROW][C]12[/C][C]0.457454[/C][C]3.5434[/C][C]0.000386[/C][/ROW]
[ROW][C]13[/C][C]0.392362[/C][C]3.0392[/C][C]0.001755[/C][/ROW]
[ROW][C]14[/C][C]0.327987[/C][C]2.5406[/C][C]0.006836[/C][/ROW]
[ROW][C]15[/C][C]0.260895[/C][C]2.0209[/C][C]0.023881[/C][/ROW]
[ROW][C]16[/C][C]0.195341[/C][C]1.5131[/C][C]0.067751[/C][/ROW]
[ROW][C]17[/C][C]0.131482[/C][C]1.0185[/C][C]0.156276[/C][/ROW]
[ROW][C]18[/C][C]0.066904[/C][C]0.5182[/C][C]0.303101[/C][/ROW]
[ROW][C]19[/C][C]0.004481[/C][C]0.0347[/C][C]0.486215[/C][/ROW]
[ROW][C]20[/C][C]-0.054967[/C][C]-0.4258[/C][C]0.335898[/C][/ROW]
[ROW][C]21[/C][C]-0.11226[/C][C]-0.8696[/C][C]0.194002[/C][/ROW]
[ROW][C]22[/C][C]-0.166422[/C][C]-1.2891[/C][C]0.101156[/C][/ROW]
[ROW][C]23[/C][C]-0.217453[/C][C]-1.6844[/C][C]0.048651[/C][/ROW]
[ROW][C]24[/C][C]-0.263815[/C][C]-2.0435[/C][C]0.0227[/C][/ROW]
[ROW][C]25[/C][C]-0.307046[/C][C]-2.3784[/C][C]0.010295[/C][/ROW]
[ROW][C]26[/C][C]-0.344531[/C][C]-2.6687[/C][C]0.004889[/C][/ROW]
[ROW][C]27[/C][C]-0.379603[/C][C]-2.9404[/C][C]0.002325[/C][/ROW]
[ROW][C]28[/C][C]-0.406929[/C][C]-3.1521[/C][C]0.001265[/C][/ROW]
[ROW][C]29[/C][C]-0.430765[/C][C]-3.3367[/C][C]0.00073[/C][/ROW]
[ROW][C]30[/C][C]-0.448752[/C][C]-3.476[/C][C]0.000476[/C][/ROW]
[ROW][C]31[/C][C]-0.459197[/C][C]-3.5569[/C][C]0.00037[/C][/ROW]
[ROW][C]32[/C][C]-0.467948[/C][C]-3.6247[/C][C]0.000299[/C][/ROW]
[ROW][C]33[/C][C]-0.471568[/C][C]-3.6528[/C][C]0.000273[/C][/ROW]
[ROW][C]34[/C][C]-0.472878[/C][C]-3.6629[/C][C]0.000265[/C][/ROW]
[ROW][C]35[/C][C]-0.470854[/C][C]-3.6472[/C][C]0.000278[/C][/ROW]
[ROW][C]36[/C][C]-0.464519[/C][C]-3.5982[/C][C]0.000325[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60216&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60216&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.9854557.63330
20.9631097.46020
30.9333237.22950
40.8965576.94470
50.8545056.6190
60.8075266.25510
70.7574175.86690
80.7026395.44261e-06
90.6450884.99683e-06
100.5851264.53241.4e-05
110.5230084.05127.4e-05
120.4574543.54340.000386
130.3923623.03920.001755
140.3279872.54060.006836
150.2608952.02090.023881
160.1953411.51310.067751
170.1314821.01850.156276
180.0669040.51820.303101
190.0044810.03470.486215
20-0.054967-0.42580.335898
21-0.11226-0.86960.194002
22-0.166422-1.28910.101156
23-0.217453-1.68440.048651
24-0.263815-2.04350.0227
25-0.307046-2.37840.010295
26-0.344531-2.66870.004889
27-0.379603-2.94040.002325
28-0.406929-3.15210.001265
29-0.430765-3.33670.00073
30-0.448752-3.4760.000476
31-0.459197-3.55690.00037
32-0.467948-3.62470.000299
33-0.471568-3.65280.000273
34-0.472878-3.66290.000265
35-0.470854-3.64720.000278
36-0.464519-3.59820.000325







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9854557.63330
2-0.277417-2.14890.017845
3-0.213537-1.65410.05167
4-0.170314-1.31920.096049
5-0.091814-0.71120.239862
6-0.08895-0.6890.246739
7-0.027545-0.21340.415882
8-0.118902-0.9210.180366
9-0.041582-0.32210.374251
10-0.047588-0.36860.356857
11-0.049215-0.38120.352195
12-0.125564-0.97260.167325
130.0471520.36520.35811
140.0130130.10080.460023
15-0.154192-1.19440.118517
160.0275490.21340.41587
170.0150310.11640.453851
18-0.125456-0.97180.167532
190.0230330.17840.429499
200.0281370.2180.414104
21-0.056325-0.43630.332097
220.0143650.11130.455886
23-0.007529-0.05830.476843
240.0100170.07760.469205
25-0.037175-0.2880.387187
260.1057890.81940.20789
27-0.143381-1.11060.135581
280.1606581.24440.109087
29-0.038222-0.29610.384101
300.0243290.18850.425579
310.0840030.65070.258868
32-0.108761-0.84250.201438
33-0.011276-0.08730.465346
34-0.068019-0.52690.300113
35-0.003397-0.02630.489546
360.0436940.33850.368102

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.985455 & 7.6333 & 0 \tabularnewline
2 & -0.277417 & -2.1489 & 0.017845 \tabularnewline
3 & -0.213537 & -1.6541 & 0.05167 \tabularnewline
4 & -0.170314 & -1.3192 & 0.096049 \tabularnewline
5 & -0.091814 & -0.7112 & 0.239862 \tabularnewline
6 & -0.08895 & -0.689 & 0.246739 \tabularnewline
7 & -0.027545 & -0.2134 & 0.415882 \tabularnewline
8 & -0.118902 & -0.921 & 0.180366 \tabularnewline
9 & -0.041582 & -0.3221 & 0.374251 \tabularnewline
10 & -0.047588 & -0.3686 & 0.356857 \tabularnewline
11 & -0.049215 & -0.3812 & 0.352195 \tabularnewline
12 & -0.125564 & -0.9726 & 0.167325 \tabularnewline
13 & 0.047152 & 0.3652 & 0.35811 \tabularnewline
14 & 0.013013 & 0.1008 & 0.460023 \tabularnewline
15 & -0.154192 & -1.1944 & 0.118517 \tabularnewline
16 & 0.027549 & 0.2134 & 0.41587 \tabularnewline
17 & 0.015031 & 0.1164 & 0.453851 \tabularnewline
18 & -0.125456 & -0.9718 & 0.167532 \tabularnewline
19 & 0.023033 & 0.1784 & 0.429499 \tabularnewline
20 & 0.028137 & 0.218 & 0.414104 \tabularnewline
21 & -0.056325 & -0.4363 & 0.332097 \tabularnewline
22 & 0.014365 & 0.1113 & 0.455886 \tabularnewline
23 & -0.007529 & -0.0583 & 0.476843 \tabularnewline
24 & 0.010017 & 0.0776 & 0.469205 \tabularnewline
25 & -0.037175 & -0.288 & 0.387187 \tabularnewline
26 & 0.105789 & 0.8194 & 0.20789 \tabularnewline
27 & -0.143381 & -1.1106 & 0.135581 \tabularnewline
28 & 0.160658 & 1.2444 & 0.109087 \tabularnewline
29 & -0.038222 & -0.2961 & 0.384101 \tabularnewline
30 & 0.024329 & 0.1885 & 0.425579 \tabularnewline
31 & 0.084003 & 0.6507 & 0.258868 \tabularnewline
32 & -0.108761 & -0.8425 & 0.201438 \tabularnewline
33 & -0.011276 & -0.0873 & 0.465346 \tabularnewline
34 & -0.068019 & -0.5269 & 0.300113 \tabularnewline
35 & -0.003397 & -0.0263 & 0.489546 \tabularnewline
36 & 0.043694 & 0.3385 & 0.368102 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60216&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.985455[/C][C]7.6333[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.277417[/C][C]-2.1489[/C][C]0.017845[/C][/ROW]
[ROW][C]3[/C][C]-0.213537[/C][C]-1.6541[/C][C]0.05167[/C][/ROW]
[ROW][C]4[/C][C]-0.170314[/C][C]-1.3192[/C][C]0.096049[/C][/ROW]
[ROW][C]5[/C][C]-0.091814[/C][C]-0.7112[/C][C]0.239862[/C][/ROW]
[ROW][C]6[/C][C]-0.08895[/C][C]-0.689[/C][C]0.246739[/C][/ROW]
[ROW][C]7[/C][C]-0.027545[/C][C]-0.2134[/C][C]0.415882[/C][/ROW]
[ROW][C]8[/C][C]-0.118902[/C][C]-0.921[/C][C]0.180366[/C][/ROW]
[ROW][C]9[/C][C]-0.041582[/C][C]-0.3221[/C][C]0.374251[/C][/ROW]
[ROW][C]10[/C][C]-0.047588[/C][C]-0.3686[/C][C]0.356857[/C][/ROW]
[ROW][C]11[/C][C]-0.049215[/C][C]-0.3812[/C][C]0.352195[/C][/ROW]
[ROW][C]12[/C][C]-0.125564[/C][C]-0.9726[/C][C]0.167325[/C][/ROW]
[ROW][C]13[/C][C]0.047152[/C][C]0.3652[/C][C]0.35811[/C][/ROW]
[ROW][C]14[/C][C]0.013013[/C][C]0.1008[/C][C]0.460023[/C][/ROW]
[ROW][C]15[/C][C]-0.154192[/C][C]-1.1944[/C][C]0.118517[/C][/ROW]
[ROW][C]16[/C][C]0.027549[/C][C]0.2134[/C][C]0.41587[/C][/ROW]
[ROW][C]17[/C][C]0.015031[/C][C]0.1164[/C][C]0.453851[/C][/ROW]
[ROW][C]18[/C][C]-0.125456[/C][C]-0.9718[/C][C]0.167532[/C][/ROW]
[ROW][C]19[/C][C]0.023033[/C][C]0.1784[/C][C]0.429499[/C][/ROW]
[ROW][C]20[/C][C]0.028137[/C][C]0.218[/C][C]0.414104[/C][/ROW]
[ROW][C]21[/C][C]-0.056325[/C][C]-0.4363[/C][C]0.332097[/C][/ROW]
[ROW][C]22[/C][C]0.014365[/C][C]0.1113[/C][C]0.455886[/C][/ROW]
[ROW][C]23[/C][C]-0.007529[/C][C]-0.0583[/C][C]0.476843[/C][/ROW]
[ROW][C]24[/C][C]0.010017[/C][C]0.0776[/C][C]0.469205[/C][/ROW]
[ROW][C]25[/C][C]-0.037175[/C][C]-0.288[/C][C]0.387187[/C][/ROW]
[ROW][C]26[/C][C]0.105789[/C][C]0.8194[/C][C]0.20789[/C][/ROW]
[ROW][C]27[/C][C]-0.143381[/C][C]-1.1106[/C][C]0.135581[/C][/ROW]
[ROW][C]28[/C][C]0.160658[/C][C]1.2444[/C][C]0.109087[/C][/ROW]
[ROW][C]29[/C][C]-0.038222[/C][C]-0.2961[/C][C]0.384101[/C][/ROW]
[ROW][C]30[/C][C]0.024329[/C][C]0.1885[/C][C]0.425579[/C][/ROW]
[ROW][C]31[/C][C]0.084003[/C][C]0.6507[/C][C]0.258868[/C][/ROW]
[ROW][C]32[/C][C]-0.108761[/C][C]-0.8425[/C][C]0.201438[/C][/ROW]
[ROW][C]33[/C][C]-0.011276[/C][C]-0.0873[/C][C]0.465346[/C][/ROW]
[ROW][C]34[/C][C]-0.068019[/C][C]-0.5269[/C][C]0.300113[/C][/ROW]
[ROW][C]35[/C][C]-0.003397[/C][C]-0.0263[/C][C]0.489546[/C][/ROW]
[ROW][C]36[/C][C]0.043694[/C][C]0.3385[/C][C]0.368102[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60216&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60216&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.9854557.63330
2-0.277417-2.14890.017845
3-0.213537-1.65410.05167
4-0.170314-1.31920.096049
5-0.091814-0.71120.239862
6-0.08895-0.6890.246739
7-0.027545-0.21340.415882
8-0.118902-0.9210.180366
9-0.041582-0.32210.374251
10-0.047588-0.36860.356857
11-0.049215-0.38120.352195
12-0.125564-0.97260.167325
130.0471520.36520.35811
140.0130130.10080.460023
15-0.154192-1.19440.118517
160.0275490.21340.41587
170.0150310.11640.453851
18-0.125456-0.97180.167532
190.0230330.17840.429499
200.0281370.2180.414104
21-0.056325-0.43630.332097
220.0143650.11130.455886
23-0.007529-0.05830.476843
240.0100170.07760.469205
25-0.037175-0.2880.387187
260.1057890.81940.20789
27-0.143381-1.11060.135581
280.1606581.24440.109087
29-0.038222-0.29610.384101
300.0243290.18850.425579
310.0840030.65070.258868
32-0.108761-0.84250.201438
33-0.011276-0.08730.465346
34-0.068019-0.52690.300113
35-0.003397-0.02630.489546
360.0436940.33850.368102



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