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, 22 Dec 2016 17:52:15 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2016/Dec/22/t14824255807d13qt1u6judggu.htm/, Retrieved Fri, 01 Nov 2024 03:33:33 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=302569, Retrieved Fri, 01 Nov 2024 03:33:33 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact126
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [Autocorrelatie fu...] [2016-12-22 16:52:15] [0c0812954c36a879765e84a6a68f060c] [Current]
Feedback Forum

Post a new message
Dataseries X:
3233.7
3097.3
3216.8
3729.6
3447.7
3384.3
3494.7
3904.2
3605.2
3674.6
3751.1
4039.5
3885.9
3906.1
3965
4411.6
4325.1
4349.2
4426.1
4915
4506.9
4497.4
4546.5
5122
4471.3
4560.6
4581.6
5186.2
4719.8
4784.1
4778.6
5494.8
4966.8
5188.2
5135.4
5690.4
5293.5
5673.8
5568.9
6094.2
5712.7
5858.7
5814.6
6616.6




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time1 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302569&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]1 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=302569&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302569&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8270945.48631e-06
20.7719125.12033e-06
30.690764.5821.9e-05
40.7114634.71931.2e-05
50.5609773.72110.00028
60.5093473.37860.000767
70.4249222.81860.003601
80.443932.94470.002574
90.3089842.04960.023198
100.2680711.77820.041142
110.2057691.36490.089609
120.2253911.49510.071016
130.100510.66670.25422
140.0673090.44650.328721
150.0233110.15460.438912
160.0468880.3110.378627
17-0.051461-0.34140.36723
18-0.071558-0.47470.318688
19-0.095529-0.63370.26479
20-0.056943-0.37770.353727
21-0.147149-0.97610.167182
22-0.173478-1.15070.128031
23-0.198847-1.3190.096996
24-0.176831-1.1730.123561
25-0.261766-1.73640.044749
26-0.29342-1.94630.029009
27-0.322762-2.1410.018928
28-0.311377-2.06540.022401
29-0.36837-2.44350.009313
30-0.37905-2.51430.007828
31-0.390826-2.59240.006443
32-0.360306-2.390.010599
33-0.388677-2.57820.006678
34-0.380183-2.52190.007684
35-0.373849-2.47980.008522
36-0.33034-2.19120.016887

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.827094 & 5.4863 & 1e-06 \tabularnewline
2 & 0.771912 & 5.1203 & 3e-06 \tabularnewline
3 & 0.69076 & 4.582 & 1.9e-05 \tabularnewline
4 & 0.711463 & 4.7193 & 1.2e-05 \tabularnewline
5 & 0.560977 & 3.7211 & 0.00028 \tabularnewline
6 & 0.509347 & 3.3786 & 0.000767 \tabularnewline
7 & 0.424922 & 2.8186 & 0.003601 \tabularnewline
8 & 0.44393 & 2.9447 & 0.002574 \tabularnewline
9 & 0.308984 & 2.0496 & 0.023198 \tabularnewline
10 & 0.268071 & 1.7782 & 0.041142 \tabularnewline
11 & 0.205769 & 1.3649 & 0.089609 \tabularnewline
12 & 0.225391 & 1.4951 & 0.071016 \tabularnewline
13 & 0.10051 & 0.6667 & 0.25422 \tabularnewline
14 & 0.067309 & 0.4465 & 0.328721 \tabularnewline
15 & 0.023311 & 0.1546 & 0.438912 \tabularnewline
16 & 0.046888 & 0.311 & 0.378627 \tabularnewline
17 & -0.051461 & -0.3414 & 0.36723 \tabularnewline
18 & -0.071558 & -0.4747 & 0.318688 \tabularnewline
19 & -0.095529 & -0.6337 & 0.26479 \tabularnewline
20 & -0.056943 & -0.3777 & 0.353727 \tabularnewline
21 & -0.147149 & -0.9761 & 0.167182 \tabularnewline
22 & -0.173478 & -1.1507 & 0.128031 \tabularnewline
23 & -0.198847 & -1.319 & 0.096996 \tabularnewline
24 & -0.176831 & -1.173 & 0.123561 \tabularnewline
25 & -0.261766 & -1.7364 & 0.044749 \tabularnewline
26 & -0.29342 & -1.9463 & 0.029009 \tabularnewline
27 & -0.322762 & -2.141 & 0.018928 \tabularnewline
28 & -0.311377 & -2.0654 & 0.022401 \tabularnewline
29 & -0.36837 & -2.4435 & 0.009313 \tabularnewline
30 & -0.37905 & -2.5143 & 0.007828 \tabularnewline
31 & -0.390826 & -2.5924 & 0.006443 \tabularnewline
32 & -0.360306 & -2.39 & 0.010599 \tabularnewline
33 & -0.388677 & -2.5782 & 0.006678 \tabularnewline
34 & -0.380183 & -2.5219 & 0.007684 \tabularnewline
35 & -0.373849 & -2.4798 & 0.008522 \tabularnewline
36 & -0.33034 & -2.1912 & 0.016887 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302569&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.827094[/C][C]5.4863[/C][C]1e-06[/C][/ROW]
[ROW][C]2[/C][C]0.771912[/C][C]5.1203[/C][C]3e-06[/C][/ROW]
[ROW][C]3[/C][C]0.69076[/C][C]4.582[/C][C]1.9e-05[/C][/ROW]
[ROW][C]4[/C][C]0.711463[/C][C]4.7193[/C][C]1.2e-05[/C][/ROW]
[ROW][C]5[/C][C]0.560977[/C][C]3.7211[/C][C]0.00028[/C][/ROW]
[ROW][C]6[/C][C]0.509347[/C][C]3.3786[/C][C]0.000767[/C][/ROW]
[ROW][C]7[/C][C]0.424922[/C][C]2.8186[/C][C]0.003601[/C][/ROW]
[ROW][C]8[/C][C]0.44393[/C][C]2.9447[/C][C]0.002574[/C][/ROW]
[ROW][C]9[/C][C]0.308984[/C][C]2.0496[/C][C]0.023198[/C][/ROW]
[ROW][C]10[/C][C]0.268071[/C][C]1.7782[/C][C]0.041142[/C][/ROW]
[ROW][C]11[/C][C]0.205769[/C][C]1.3649[/C][C]0.089609[/C][/ROW]
[ROW][C]12[/C][C]0.225391[/C][C]1.4951[/C][C]0.071016[/C][/ROW]
[ROW][C]13[/C][C]0.10051[/C][C]0.6667[/C][C]0.25422[/C][/ROW]
[ROW][C]14[/C][C]0.067309[/C][C]0.4465[/C][C]0.328721[/C][/ROW]
[ROW][C]15[/C][C]0.023311[/C][C]0.1546[/C][C]0.438912[/C][/ROW]
[ROW][C]16[/C][C]0.046888[/C][C]0.311[/C][C]0.378627[/C][/ROW]
[ROW][C]17[/C][C]-0.051461[/C][C]-0.3414[/C][C]0.36723[/C][/ROW]
[ROW][C]18[/C][C]-0.071558[/C][C]-0.4747[/C][C]0.318688[/C][/ROW]
[ROW][C]19[/C][C]-0.095529[/C][C]-0.6337[/C][C]0.26479[/C][/ROW]
[ROW][C]20[/C][C]-0.056943[/C][C]-0.3777[/C][C]0.353727[/C][/ROW]
[ROW][C]21[/C][C]-0.147149[/C][C]-0.9761[/C][C]0.167182[/C][/ROW]
[ROW][C]22[/C][C]-0.173478[/C][C]-1.1507[/C][C]0.128031[/C][/ROW]
[ROW][C]23[/C][C]-0.198847[/C][C]-1.319[/C][C]0.096996[/C][/ROW]
[ROW][C]24[/C][C]-0.176831[/C][C]-1.173[/C][C]0.123561[/C][/ROW]
[ROW][C]25[/C][C]-0.261766[/C][C]-1.7364[/C][C]0.044749[/C][/ROW]
[ROW][C]26[/C][C]-0.29342[/C][C]-1.9463[/C][C]0.029009[/C][/ROW]
[ROW][C]27[/C][C]-0.322762[/C][C]-2.141[/C][C]0.018928[/C][/ROW]
[ROW][C]28[/C][C]-0.311377[/C][C]-2.0654[/C][C]0.022401[/C][/ROW]
[ROW][C]29[/C][C]-0.36837[/C][C]-2.4435[/C][C]0.009313[/C][/ROW]
[ROW][C]30[/C][C]-0.37905[/C][C]-2.5143[/C][C]0.007828[/C][/ROW]
[ROW][C]31[/C][C]-0.390826[/C][C]-2.5924[/C][C]0.006443[/C][/ROW]
[ROW][C]32[/C][C]-0.360306[/C][C]-2.39[/C][C]0.010599[/C][/ROW]
[ROW][C]33[/C][C]-0.388677[/C][C]-2.5782[/C][C]0.006678[/C][/ROW]
[ROW][C]34[/C][C]-0.380183[/C][C]-2.5219[/C][C]0.007684[/C][/ROW]
[ROW][C]35[/C][C]-0.373849[/C][C]-2.4798[/C][C]0.008522[/C][/ROW]
[ROW][C]36[/C][C]-0.33034[/C][C]-2.1912[/C][C]0.016887[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=302569&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302569&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.8270945.48631e-06
20.7719125.12033e-06
30.690764.5821.9e-05
40.7114634.71931.2e-05
50.5609773.72110.00028
60.5093473.37860.000767
70.4249222.81860.003601
80.443932.94470.002574
90.3089842.04960.023198
100.2680711.77820.041142
110.2057691.36490.089609
120.2253911.49510.071016
130.100510.66670.25422
140.0673090.44650.328721
150.0233110.15460.438912
160.0468880.3110.378627
17-0.051461-0.34140.36723
18-0.071558-0.47470.318688
19-0.095529-0.63370.26479
20-0.056943-0.37770.353727
21-0.147149-0.97610.167182
22-0.173478-1.15070.128031
23-0.198847-1.3190.096996
24-0.176831-1.1730.123561
25-0.261766-1.73640.044749
26-0.29342-1.94630.029009
27-0.322762-2.1410.018928
28-0.311377-2.06540.022401
29-0.36837-2.44350.009313
30-0.37905-2.51430.007828
31-0.390826-2.59240.006443
32-0.360306-2.390.010599
33-0.388677-2.57820.006678
34-0.380183-2.52190.007684
35-0.373849-2.47980.008522
36-0.33034-2.19120.016887







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8270945.48631e-06
20.2780091.84410.035954
3-0.000445-0.00290.49883
40.2897151.92180.030564
5-0.398058-2.64040.005708
60.0247120.16390.435273
7-0.017493-0.1160.454078
80.1236050.81990.208346
9-0.212263-1.4080.08308
100.0056730.03760.485076
110.0519560.34460.366005
120.0054480.03610.485668
13-0.165677-1.0990.138878
14-0.005654-0.03750.485125
150.0638380.42350.337014
16-0.021064-0.13970.444758
17-0.063305-0.41990.338294
18-0.016829-0.11160.455813
190.0477380.31670.3765
200.013290.08820.465076
21-0.127964-0.84880.200288
22-0.073591-0.48810.313934
23-0.000133-9e-040.49965
24-0.052944-0.35120.363561
25-0.067063-0.44480.329306
26-0.077931-0.51690.303894
27-0.03728-0.24730.402918
28-0.064125-0.42540.336324
290.0505920.33560.369388
30-0.015567-0.10330.459112
31-0.060166-0.39910.345875
320.0122870.08150.467705
330.0418540.27760.391299
34-0.015928-0.10570.458167
35-0.060937-0.40420.344007
360.0279120.18510.426982

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.827094 & 5.4863 & 1e-06 \tabularnewline
2 & 0.278009 & 1.8441 & 0.035954 \tabularnewline
3 & -0.000445 & -0.0029 & 0.49883 \tabularnewline
4 & 0.289715 & 1.9218 & 0.030564 \tabularnewline
5 & -0.398058 & -2.6404 & 0.005708 \tabularnewline
6 & 0.024712 & 0.1639 & 0.435273 \tabularnewline
7 & -0.017493 & -0.116 & 0.454078 \tabularnewline
8 & 0.123605 & 0.8199 & 0.208346 \tabularnewline
9 & -0.212263 & -1.408 & 0.08308 \tabularnewline
10 & 0.005673 & 0.0376 & 0.485076 \tabularnewline
11 & 0.051956 & 0.3446 & 0.366005 \tabularnewline
12 & 0.005448 & 0.0361 & 0.485668 \tabularnewline
13 & -0.165677 & -1.099 & 0.138878 \tabularnewline
14 & -0.005654 & -0.0375 & 0.485125 \tabularnewline
15 & 0.063838 & 0.4235 & 0.337014 \tabularnewline
16 & -0.021064 & -0.1397 & 0.444758 \tabularnewline
17 & -0.063305 & -0.4199 & 0.338294 \tabularnewline
18 & -0.016829 & -0.1116 & 0.455813 \tabularnewline
19 & 0.047738 & 0.3167 & 0.3765 \tabularnewline
20 & 0.01329 & 0.0882 & 0.465076 \tabularnewline
21 & -0.127964 & -0.8488 & 0.200288 \tabularnewline
22 & -0.073591 & -0.4881 & 0.313934 \tabularnewline
23 & -0.000133 & -9e-04 & 0.49965 \tabularnewline
24 & -0.052944 & -0.3512 & 0.363561 \tabularnewline
25 & -0.067063 & -0.4448 & 0.329306 \tabularnewline
26 & -0.077931 & -0.5169 & 0.303894 \tabularnewline
27 & -0.03728 & -0.2473 & 0.402918 \tabularnewline
28 & -0.064125 & -0.4254 & 0.336324 \tabularnewline
29 & 0.050592 & 0.3356 & 0.369388 \tabularnewline
30 & -0.015567 & -0.1033 & 0.459112 \tabularnewline
31 & -0.060166 & -0.3991 & 0.345875 \tabularnewline
32 & 0.012287 & 0.0815 & 0.467705 \tabularnewline
33 & 0.041854 & 0.2776 & 0.391299 \tabularnewline
34 & -0.015928 & -0.1057 & 0.458167 \tabularnewline
35 & -0.060937 & -0.4042 & 0.344007 \tabularnewline
36 & 0.027912 & 0.1851 & 0.426982 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302569&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.827094[/C][C]5.4863[/C][C]1e-06[/C][/ROW]
[ROW][C]2[/C][C]0.278009[/C][C]1.8441[/C][C]0.035954[/C][/ROW]
[ROW][C]3[/C][C]-0.000445[/C][C]-0.0029[/C][C]0.49883[/C][/ROW]
[ROW][C]4[/C][C]0.289715[/C][C]1.9218[/C][C]0.030564[/C][/ROW]
[ROW][C]5[/C][C]-0.398058[/C][C]-2.6404[/C][C]0.005708[/C][/ROW]
[ROW][C]6[/C][C]0.024712[/C][C]0.1639[/C][C]0.435273[/C][/ROW]
[ROW][C]7[/C][C]-0.017493[/C][C]-0.116[/C][C]0.454078[/C][/ROW]
[ROW][C]8[/C][C]0.123605[/C][C]0.8199[/C][C]0.208346[/C][/ROW]
[ROW][C]9[/C][C]-0.212263[/C][C]-1.408[/C][C]0.08308[/C][/ROW]
[ROW][C]10[/C][C]0.005673[/C][C]0.0376[/C][C]0.485076[/C][/ROW]
[ROW][C]11[/C][C]0.051956[/C][C]0.3446[/C][C]0.366005[/C][/ROW]
[ROW][C]12[/C][C]0.005448[/C][C]0.0361[/C][C]0.485668[/C][/ROW]
[ROW][C]13[/C][C]-0.165677[/C][C]-1.099[/C][C]0.138878[/C][/ROW]
[ROW][C]14[/C][C]-0.005654[/C][C]-0.0375[/C][C]0.485125[/C][/ROW]
[ROW][C]15[/C][C]0.063838[/C][C]0.4235[/C][C]0.337014[/C][/ROW]
[ROW][C]16[/C][C]-0.021064[/C][C]-0.1397[/C][C]0.444758[/C][/ROW]
[ROW][C]17[/C][C]-0.063305[/C][C]-0.4199[/C][C]0.338294[/C][/ROW]
[ROW][C]18[/C][C]-0.016829[/C][C]-0.1116[/C][C]0.455813[/C][/ROW]
[ROW][C]19[/C][C]0.047738[/C][C]0.3167[/C][C]0.3765[/C][/ROW]
[ROW][C]20[/C][C]0.01329[/C][C]0.0882[/C][C]0.465076[/C][/ROW]
[ROW][C]21[/C][C]-0.127964[/C][C]-0.8488[/C][C]0.200288[/C][/ROW]
[ROW][C]22[/C][C]-0.073591[/C][C]-0.4881[/C][C]0.313934[/C][/ROW]
[ROW][C]23[/C][C]-0.000133[/C][C]-9e-04[/C][C]0.49965[/C][/ROW]
[ROW][C]24[/C][C]-0.052944[/C][C]-0.3512[/C][C]0.363561[/C][/ROW]
[ROW][C]25[/C][C]-0.067063[/C][C]-0.4448[/C][C]0.329306[/C][/ROW]
[ROW][C]26[/C][C]-0.077931[/C][C]-0.5169[/C][C]0.303894[/C][/ROW]
[ROW][C]27[/C][C]-0.03728[/C][C]-0.2473[/C][C]0.402918[/C][/ROW]
[ROW][C]28[/C][C]-0.064125[/C][C]-0.4254[/C][C]0.336324[/C][/ROW]
[ROW][C]29[/C][C]0.050592[/C][C]0.3356[/C][C]0.369388[/C][/ROW]
[ROW][C]30[/C][C]-0.015567[/C][C]-0.1033[/C][C]0.459112[/C][/ROW]
[ROW][C]31[/C][C]-0.060166[/C][C]-0.3991[/C][C]0.345875[/C][/ROW]
[ROW][C]32[/C][C]0.012287[/C][C]0.0815[/C][C]0.467705[/C][/ROW]
[ROW][C]33[/C][C]0.041854[/C][C]0.2776[/C][C]0.391299[/C][/ROW]
[ROW][C]34[/C][C]-0.015928[/C][C]-0.1057[/C][C]0.458167[/C][/ROW]
[ROW][C]35[/C][C]-0.060937[/C][C]-0.4042[/C][C]0.344007[/C][/ROW]
[ROW][C]36[/C][C]0.027912[/C][C]0.1851[/C][C]0.426982[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=302569&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302569&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.8270945.48631e-06
20.2780091.84410.035954
3-0.000445-0.00290.49883
40.2897151.92180.030564
5-0.398058-2.64040.005708
60.0247120.16390.435273
7-0.017493-0.1160.454078
80.1236050.81990.208346
9-0.212263-1.4080.08308
100.0056730.03760.485076
110.0519560.34460.366005
120.0054480.03610.485668
13-0.165677-1.0990.138878
14-0.005654-0.03750.485125
150.0638380.42350.337014
16-0.021064-0.13970.444758
17-0.063305-0.41990.338294
18-0.016829-0.11160.455813
190.0477380.31670.3765
200.013290.08820.465076
21-0.127964-0.84880.200288
22-0.073591-0.48810.313934
23-0.000133-9e-040.49965
24-0.052944-0.35120.363561
25-0.067063-0.44480.329306
26-0.077931-0.51690.303894
27-0.03728-0.24730.402918
28-0.064125-0.42540.336324
290.0505920.33560.369388
30-0.015567-0.10330.459112
31-0.060166-0.39910.345875
320.0122870.08150.467705
330.0418540.27760.391299
34-0.015928-0.10570.458167
35-0.060937-0.40420.344007
360.0279120.18510.426982



Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 2 ; par5 = 6 ; 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 ; par8 = ;
R code (references can be found in the software module):
par8 <- ''
par7 <- '0.95'
par6 <- 'White Noise'
par5 <- '4'
par4 <- '1'
par3 <- '1'
par2 <- '1'
par1 <- '36'
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 (par8 != '') par8 <- as.numeric(par8)
x <- na.omit(x)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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,'ACF(k)',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,'PACF(k)',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')