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 15:31:15 -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/t125996591392ose2d4kog9zvs.htm/, Retrieved Sat, 27 Apr 2024 18:38:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64192, Retrieved Sat, 27 Apr 2024 18:38:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact72
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]
-    D      [(Partial) Autocorrelation Function] [] [2009-12-04 22:31:15] [7cc673c2b3a8ab442a3ec6ca430f2445] [Current]
Feedback Forum

Post a new message
Dataseries X:
102.80
118.72
119.01
118.61
120.43
111.83
116.79
131.71
120.57
117.83
130.80
107.46
112.09
129.47
119.72
134.81
135.80
129.27
126.94
153.45
121.86
133.47
135.34
117.10
120.65
132.49
137.60
138.69
125.53
133.09
129.08
145.94
129.07
139.69
142.09
137.29
127.03
137.25
156.87
150.89
139.14
158.30
149.00
158.36
168.06
153.38
173.86
162.47
145.17
168.89
166.64
140.07
128.84
123.40
120.30
129.66
118.12
113.91
131.09
119.14
115.33




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64192&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
1-0.379238-2.93760.002344
2-0.203336-1.5750.060254
30.3376442.61540.005628
4-0.167125-1.29450.100219
5-0.051432-0.39840.345878
60.2648632.05160.022289
7-0.254787-1.97360.026521
80.0566250.43860.331258
90.1960821.51880.067027
10-0.302175-2.34060.011297
11-0.079426-0.61520.270363
120.4433493.43420.000542
13-0.244262-1.8920.031657
14-0.067347-0.52170.30191
150.0380620.29480.384572
160.0149360.11570.45414
17-0.007672-0.05940.476406
18-0.027119-0.21010.417166
190.029840.23110.408997
200.0477660.370.356346
21-0.111342-0.86250.195937
220.0171830.13310.44728
23-0.090251-0.69910.243601
240.1123760.87050.19376
250.1562741.21050.115419
26-0.250942-1.94380.028307
270.0020460.01580.493704
280.1777871.37710.086794
29-0.127275-0.98590.164079
30-0.025279-0.19580.422711
310.2145981.66230.050837
32-0.148865-1.15310.126721
33-0.018053-0.13980.444627
340.1412561.09420.139129
35-0.239587-1.85580.034195
360.1323811.02540.154641

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.379238 & -2.9376 & 0.002344 \tabularnewline
2 & -0.203336 & -1.575 & 0.060254 \tabularnewline
3 & 0.337644 & 2.6154 & 0.005628 \tabularnewline
4 & -0.167125 & -1.2945 & 0.100219 \tabularnewline
5 & -0.051432 & -0.3984 & 0.345878 \tabularnewline
6 & 0.264863 & 2.0516 & 0.022289 \tabularnewline
7 & -0.254787 & -1.9736 & 0.026521 \tabularnewline
8 & 0.056625 & 0.4386 & 0.331258 \tabularnewline
9 & 0.196082 & 1.5188 & 0.067027 \tabularnewline
10 & -0.302175 & -2.3406 & 0.011297 \tabularnewline
11 & -0.079426 & -0.6152 & 0.270363 \tabularnewline
12 & 0.443349 & 3.4342 & 0.000542 \tabularnewline
13 & -0.244262 & -1.892 & 0.031657 \tabularnewline
14 & -0.067347 & -0.5217 & 0.30191 \tabularnewline
15 & 0.038062 & 0.2948 & 0.384572 \tabularnewline
16 & 0.014936 & 0.1157 & 0.45414 \tabularnewline
17 & -0.007672 & -0.0594 & 0.476406 \tabularnewline
18 & -0.027119 & -0.2101 & 0.417166 \tabularnewline
19 & 0.02984 & 0.2311 & 0.408997 \tabularnewline
20 & 0.047766 & 0.37 & 0.356346 \tabularnewline
21 & -0.111342 & -0.8625 & 0.195937 \tabularnewline
22 & 0.017183 & 0.1331 & 0.44728 \tabularnewline
23 & -0.090251 & -0.6991 & 0.243601 \tabularnewline
24 & 0.112376 & 0.8705 & 0.19376 \tabularnewline
25 & 0.156274 & 1.2105 & 0.115419 \tabularnewline
26 & -0.250942 & -1.9438 & 0.028307 \tabularnewline
27 & 0.002046 & 0.0158 & 0.493704 \tabularnewline
28 & 0.177787 & 1.3771 & 0.086794 \tabularnewline
29 & -0.127275 & -0.9859 & 0.164079 \tabularnewline
30 & -0.025279 & -0.1958 & 0.422711 \tabularnewline
31 & 0.214598 & 1.6623 & 0.050837 \tabularnewline
32 & -0.148865 & -1.1531 & 0.126721 \tabularnewline
33 & -0.018053 & -0.1398 & 0.444627 \tabularnewline
34 & 0.141256 & 1.0942 & 0.139129 \tabularnewline
35 & -0.239587 & -1.8558 & 0.034195 \tabularnewline
36 & 0.132381 & 1.0254 & 0.154641 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64192&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.379238[/C][C]-2.9376[/C][C]0.002344[/C][/ROW]
[ROW][C]2[/C][C]-0.203336[/C][C]-1.575[/C][C]0.060254[/C][/ROW]
[ROW][C]3[/C][C]0.337644[/C][C]2.6154[/C][C]0.005628[/C][/ROW]
[ROW][C]4[/C][C]-0.167125[/C][C]-1.2945[/C][C]0.100219[/C][/ROW]
[ROW][C]5[/C][C]-0.051432[/C][C]-0.3984[/C][C]0.345878[/C][/ROW]
[ROW][C]6[/C][C]0.264863[/C][C]2.0516[/C][C]0.022289[/C][/ROW]
[ROW][C]7[/C][C]-0.254787[/C][C]-1.9736[/C][C]0.026521[/C][/ROW]
[ROW][C]8[/C][C]0.056625[/C][C]0.4386[/C][C]0.331258[/C][/ROW]
[ROW][C]9[/C][C]0.196082[/C][C]1.5188[/C][C]0.067027[/C][/ROW]
[ROW][C]10[/C][C]-0.302175[/C][C]-2.3406[/C][C]0.011297[/C][/ROW]
[ROW][C]11[/C][C]-0.079426[/C][C]-0.6152[/C][C]0.270363[/C][/ROW]
[ROW][C]12[/C][C]0.443349[/C][C]3.4342[/C][C]0.000542[/C][/ROW]
[ROW][C]13[/C][C]-0.244262[/C][C]-1.892[/C][C]0.031657[/C][/ROW]
[ROW][C]14[/C][C]-0.067347[/C][C]-0.5217[/C][C]0.30191[/C][/ROW]
[ROW][C]15[/C][C]0.038062[/C][C]0.2948[/C][C]0.384572[/C][/ROW]
[ROW][C]16[/C][C]0.014936[/C][C]0.1157[/C][C]0.45414[/C][/ROW]
[ROW][C]17[/C][C]-0.007672[/C][C]-0.0594[/C][C]0.476406[/C][/ROW]
[ROW][C]18[/C][C]-0.027119[/C][C]-0.2101[/C][C]0.417166[/C][/ROW]
[ROW][C]19[/C][C]0.02984[/C][C]0.2311[/C][C]0.408997[/C][/ROW]
[ROW][C]20[/C][C]0.047766[/C][C]0.37[/C][C]0.356346[/C][/ROW]
[ROW][C]21[/C][C]-0.111342[/C][C]-0.8625[/C][C]0.195937[/C][/ROW]
[ROW][C]22[/C][C]0.017183[/C][C]0.1331[/C][C]0.44728[/C][/ROW]
[ROW][C]23[/C][C]-0.090251[/C][C]-0.6991[/C][C]0.243601[/C][/ROW]
[ROW][C]24[/C][C]0.112376[/C][C]0.8705[/C][C]0.19376[/C][/ROW]
[ROW][C]25[/C][C]0.156274[/C][C]1.2105[/C][C]0.115419[/C][/ROW]
[ROW][C]26[/C][C]-0.250942[/C][C]-1.9438[/C][C]0.028307[/C][/ROW]
[ROW][C]27[/C][C]0.002046[/C][C]0.0158[/C][C]0.493704[/C][/ROW]
[ROW][C]28[/C][C]0.177787[/C][C]1.3771[/C][C]0.086794[/C][/ROW]
[ROW][C]29[/C][C]-0.127275[/C][C]-0.9859[/C][C]0.164079[/C][/ROW]
[ROW][C]30[/C][C]-0.025279[/C][C]-0.1958[/C][C]0.422711[/C][/ROW]
[ROW][C]31[/C][C]0.214598[/C][C]1.6623[/C][C]0.050837[/C][/ROW]
[ROW][C]32[/C][C]-0.148865[/C][C]-1.1531[/C][C]0.126721[/C][/ROW]
[ROW][C]33[/C][C]-0.018053[/C][C]-0.1398[/C][C]0.444627[/C][/ROW]
[ROW][C]34[/C][C]0.141256[/C][C]1.0942[/C][C]0.139129[/C][/ROW]
[ROW][C]35[/C][C]-0.239587[/C][C]-1.8558[/C][C]0.034195[/C][/ROW]
[ROW][C]36[/C][C]0.132381[/C][C]1.0254[/C][C]0.154641[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64192&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64192&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.379238-2.93760.002344
2-0.203336-1.5750.060254
30.3376442.61540.005628
4-0.167125-1.29450.100219
5-0.051432-0.39840.345878
60.2648632.05160.022289
7-0.254787-1.97360.026521
80.0566250.43860.331258
90.1960821.51880.067027
10-0.302175-2.34060.011297
11-0.079426-0.61520.270363
120.4433493.43420.000542
13-0.244262-1.8920.031657
14-0.067347-0.52170.30191
150.0380620.29480.384572
160.0149360.11570.45414
17-0.007672-0.05940.476406
18-0.027119-0.21010.417166
190.029840.23110.408997
200.0477660.370.356346
21-0.111342-0.86250.195937
220.0171830.13310.44728
23-0.090251-0.69910.243601
240.1123760.87050.19376
250.1562741.21050.115419
26-0.250942-1.94380.028307
270.0020460.01580.493704
280.1777871.37710.086794
29-0.127275-0.98590.164079
30-0.025279-0.19580.422711
310.2145981.66230.050837
32-0.148865-1.15310.126721
33-0.018053-0.13980.444627
340.1412561.09420.139129
35-0.239587-1.85580.034195
360.1323811.02540.154641







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.379238-2.93760.002344
2-0.405472-3.14080.001308
30.1055250.81740.208468
4-0.046075-0.35690.361211
5-0.013895-0.10760.457323
60.1936881.50030.069391
7-0.074633-0.57810.282679
80.0324760.25160.40112
90.1022260.79180.215786
10-0.1357-1.05110.148708
11-0.317252-2.45740.00845
120.2140251.65780.051286
130.1383221.07140.144132
140.0371930.28810.387132
15-0.275981-2.13770.018311
160.0861610.66740.253539
170.0297310.23030.409324
18-0.188742-1.4620.074481
190.1097260.84990.19937
200.1336561.03530.152344
21-0.227312-1.76080.041688
22-0.071847-0.55650.289961
230.0438620.33980.367615
24-0.069973-0.5420.294911
250.1011320.78340.218248
260.0140180.10860.456948
270.0834960.64680.260128
28-0.177814-1.37730.086762
290.0486790.37710.353729
300.0865840.67070.252499
310.0630950.48870.313406
32-0.072248-0.55960.288907
330.076380.59160.278157
340.1138620.8820.190657
35-0.156696-1.21380.114798
36-0.105701-0.81880.208084

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.379238 & -2.9376 & 0.002344 \tabularnewline
2 & -0.405472 & -3.1408 & 0.001308 \tabularnewline
3 & 0.105525 & 0.8174 & 0.208468 \tabularnewline
4 & -0.046075 & -0.3569 & 0.361211 \tabularnewline
5 & -0.013895 & -0.1076 & 0.457323 \tabularnewline
6 & 0.193688 & 1.5003 & 0.069391 \tabularnewline
7 & -0.074633 & -0.5781 & 0.282679 \tabularnewline
8 & 0.032476 & 0.2516 & 0.40112 \tabularnewline
9 & 0.102226 & 0.7918 & 0.215786 \tabularnewline
10 & -0.1357 & -1.0511 & 0.148708 \tabularnewline
11 & -0.317252 & -2.4574 & 0.00845 \tabularnewline
12 & 0.214025 & 1.6578 & 0.051286 \tabularnewline
13 & 0.138322 & 1.0714 & 0.144132 \tabularnewline
14 & 0.037193 & 0.2881 & 0.387132 \tabularnewline
15 & -0.275981 & -2.1377 & 0.018311 \tabularnewline
16 & 0.086161 & 0.6674 & 0.253539 \tabularnewline
17 & 0.029731 & 0.2303 & 0.409324 \tabularnewline
18 & -0.188742 & -1.462 & 0.074481 \tabularnewline
19 & 0.109726 & 0.8499 & 0.19937 \tabularnewline
20 & 0.133656 & 1.0353 & 0.152344 \tabularnewline
21 & -0.227312 & -1.7608 & 0.041688 \tabularnewline
22 & -0.071847 & -0.5565 & 0.289961 \tabularnewline
23 & 0.043862 & 0.3398 & 0.367615 \tabularnewline
24 & -0.069973 & -0.542 & 0.294911 \tabularnewline
25 & 0.101132 & 0.7834 & 0.218248 \tabularnewline
26 & 0.014018 & 0.1086 & 0.456948 \tabularnewline
27 & 0.083496 & 0.6468 & 0.260128 \tabularnewline
28 & -0.177814 & -1.3773 & 0.086762 \tabularnewline
29 & 0.048679 & 0.3771 & 0.353729 \tabularnewline
30 & 0.086584 & 0.6707 & 0.252499 \tabularnewline
31 & 0.063095 & 0.4887 & 0.313406 \tabularnewline
32 & -0.072248 & -0.5596 & 0.288907 \tabularnewline
33 & 0.07638 & 0.5916 & 0.278157 \tabularnewline
34 & 0.113862 & 0.882 & 0.190657 \tabularnewline
35 & -0.156696 & -1.2138 & 0.114798 \tabularnewline
36 & -0.105701 & -0.8188 & 0.208084 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64192&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.379238[/C][C]-2.9376[/C][C]0.002344[/C][/ROW]
[ROW][C]2[/C][C]-0.405472[/C][C]-3.1408[/C][C]0.001308[/C][/ROW]
[ROW][C]3[/C][C]0.105525[/C][C]0.8174[/C][C]0.208468[/C][/ROW]
[ROW][C]4[/C][C]-0.046075[/C][C]-0.3569[/C][C]0.361211[/C][/ROW]
[ROW][C]5[/C][C]-0.013895[/C][C]-0.1076[/C][C]0.457323[/C][/ROW]
[ROW][C]6[/C][C]0.193688[/C][C]1.5003[/C][C]0.069391[/C][/ROW]
[ROW][C]7[/C][C]-0.074633[/C][C]-0.5781[/C][C]0.282679[/C][/ROW]
[ROW][C]8[/C][C]0.032476[/C][C]0.2516[/C][C]0.40112[/C][/ROW]
[ROW][C]9[/C][C]0.102226[/C][C]0.7918[/C][C]0.215786[/C][/ROW]
[ROW][C]10[/C][C]-0.1357[/C][C]-1.0511[/C][C]0.148708[/C][/ROW]
[ROW][C]11[/C][C]-0.317252[/C][C]-2.4574[/C][C]0.00845[/C][/ROW]
[ROW][C]12[/C][C]0.214025[/C][C]1.6578[/C][C]0.051286[/C][/ROW]
[ROW][C]13[/C][C]0.138322[/C][C]1.0714[/C][C]0.144132[/C][/ROW]
[ROW][C]14[/C][C]0.037193[/C][C]0.2881[/C][C]0.387132[/C][/ROW]
[ROW][C]15[/C][C]-0.275981[/C][C]-2.1377[/C][C]0.018311[/C][/ROW]
[ROW][C]16[/C][C]0.086161[/C][C]0.6674[/C][C]0.253539[/C][/ROW]
[ROW][C]17[/C][C]0.029731[/C][C]0.2303[/C][C]0.409324[/C][/ROW]
[ROW][C]18[/C][C]-0.188742[/C][C]-1.462[/C][C]0.074481[/C][/ROW]
[ROW][C]19[/C][C]0.109726[/C][C]0.8499[/C][C]0.19937[/C][/ROW]
[ROW][C]20[/C][C]0.133656[/C][C]1.0353[/C][C]0.152344[/C][/ROW]
[ROW][C]21[/C][C]-0.227312[/C][C]-1.7608[/C][C]0.041688[/C][/ROW]
[ROW][C]22[/C][C]-0.071847[/C][C]-0.5565[/C][C]0.289961[/C][/ROW]
[ROW][C]23[/C][C]0.043862[/C][C]0.3398[/C][C]0.367615[/C][/ROW]
[ROW][C]24[/C][C]-0.069973[/C][C]-0.542[/C][C]0.294911[/C][/ROW]
[ROW][C]25[/C][C]0.101132[/C][C]0.7834[/C][C]0.218248[/C][/ROW]
[ROW][C]26[/C][C]0.014018[/C][C]0.1086[/C][C]0.456948[/C][/ROW]
[ROW][C]27[/C][C]0.083496[/C][C]0.6468[/C][C]0.260128[/C][/ROW]
[ROW][C]28[/C][C]-0.177814[/C][C]-1.3773[/C][C]0.086762[/C][/ROW]
[ROW][C]29[/C][C]0.048679[/C][C]0.3771[/C][C]0.353729[/C][/ROW]
[ROW][C]30[/C][C]0.086584[/C][C]0.6707[/C][C]0.252499[/C][/ROW]
[ROW][C]31[/C][C]0.063095[/C][C]0.4887[/C][C]0.313406[/C][/ROW]
[ROW][C]32[/C][C]-0.072248[/C][C]-0.5596[/C][C]0.288907[/C][/ROW]
[ROW][C]33[/C][C]0.07638[/C][C]0.5916[/C][C]0.278157[/C][/ROW]
[ROW][C]34[/C][C]0.113862[/C][C]0.882[/C][C]0.190657[/C][/ROW]
[ROW][C]35[/C][C]-0.156696[/C][C]-1.2138[/C][C]0.114798[/C][/ROW]
[ROW][C]36[/C][C]-0.105701[/C][C]-0.8188[/C][C]0.208084[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64192&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64192&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.379238-2.93760.002344
2-0.405472-3.14080.001308
30.1055250.81740.208468
4-0.046075-0.35690.361211
5-0.013895-0.10760.457323
60.1936881.50030.069391
7-0.074633-0.57810.282679
80.0324760.25160.40112
90.1022260.79180.215786
10-0.1357-1.05110.148708
11-0.317252-2.45740.00845
120.2140251.65780.051286
130.1383221.07140.144132
140.0371930.28810.387132
15-0.275981-2.13770.018311
160.0861610.66740.253539
170.0297310.23030.409324
18-0.188742-1.4620.074481
190.1097260.84990.19937
200.1336561.03530.152344
21-0.227312-1.76080.041688
22-0.071847-0.55650.289961
230.0438620.33980.367615
24-0.069973-0.5420.294911
250.1011320.78340.218248
260.0140180.10860.456948
270.0834960.64680.260128
28-0.177814-1.37730.086762
290.0486790.37710.353729
300.0865840.67070.252499
310.0630950.48870.313406
32-0.072248-0.55960.288907
330.076380.59160.278157
340.1138620.8820.190657
35-0.156696-1.21380.114798
36-0.105701-0.81880.208084



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