Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_autocorrelation.wasp
Title produced by software(Partial) Autocorrelation Function
Date of computationThu, 22 Nov 2012 07:49:26 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Nov/22/t1353588611wvkfi4d4ppg19ui.htm/, Retrieved Thu, 02 May 2024 13:06:44 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=191627, Retrieved Thu, 02 May 2024 13:06:44 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact131
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [autocorrelation c...] [2012-11-22 12:49:26] [81048bae71988e8f0b979655b8024c85] [Current]
Feedback Forum

Post a new message
Dataseries X:
2.08
2.09
2.36
2.99
2.75
1.58
1.69
1.3
1.97
1.84
1.96
1.86
2.75
2.62
2.41
3.61
2.03
1.45
1.4
1.3
1.58
2.1
2.27
2.54
2.55
2.05
2.32
2.6
2.1
1.61
1.55
1.12
1.39
2.18
1.94
2.27
2.41
2.2
2.58
2.9
2.12
1.34
1.07
0.86
1
1.54
1.29
1.44
2.6
2.77
3.31
3.2
2.07
1.42
1.43
1.28
1.59
1.68
2.01
2.52
2.74
3.06
2.69
2.32
1.67
1.04
0.98
0.86
0.97
1.3
1.82




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net

\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 & 3 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=191627&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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=191627&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=191627&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 time3 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0928430.77680.219952
2-0.038159-0.31930.37524
30.0281220.23530.407336
4-0.335924-2.81050.003204
5-0.24176-2.02270.023462
6-0.044248-0.37020.356174
7-0.259082-2.16760.016795
8-0.274671-2.29810.012275
90.1648821.37950.086066
10-0.024286-0.20320.419787
110.3121312.61150.005511
120.5102824.26933e-05
130.0679240.56830.285828
14-0.121478-1.01640.15648
150.0507060.42420.336348
16-0.21982-1.83910.035067
17-0.242359-2.02770.023198
180.0157420.13170.447797
19-0.239473-2.00360.024494
20-0.085625-0.71640.238067
210.1049820.87830.191381
22-0.000106-9e-040.499646
230.1551821.29830.099216
240.3198022.67570.00464
250.0766740.64150.261647
26-0.016389-0.13710.445664
270.0643220.53820.296087
28-0.144128-1.20590.115965
29-0.147346-1.23280.11089
30-0.009518-0.07960.468377
31-0.164531-1.37660.086517
32-0.167279-1.39960.083031
330.0582180.48710.313861
34-0.048603-0.40660.342756
350.1836311.53640.064478
360.2942192.46160.008149

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.092843 & 0.7768 & 0.219952 \tabularnewline
2 & -0.038159 & -0.3193 & 0.37524 \tabularnewline
3 & 0.028122 & 0.2353 & 0.407336 \tabularnewline
4 & -0.335924 & -2.8105 & 0.003204 \tabularnewline
5 & -0.24176 & -2.0227 & 0.023462 \tabularnewline
6 & -0.044248 & -0.3702 & 0.356174 \tabularnewline
7 & -0.259082 & -2.1676 & 0.016795 \tabularnewline
8 & -0.274671 & -2.2981 & 0.012275 \tabularnewline
9 & 0.164882 & 1.3795 & 0.086066 \tabularnewline
10 & -0.024286 & -0.2032 & 0.419787 \tabularnewline
11 & 0.312131 & 2.6115 & 0.005511 \tabularnewline
12 & 0.510282 & 4.2693 & 3e-05 \tabularnewline
13 & 0.067924 & 0.5683 & 0.285828 \tabularnewline
14 & -0.121478 & -1.0164 & 0.15648 \tabularnewline
15 & 0.050706 & 0.4242 & 0.336348 \tabularnewline
16 & -0.21982 & -1.8391 & 0.035067 \tabularnewline
17 & -0.242359 & -2.0277 & 0.023198 \tabularnewline
18 & 0.015742 & 0.1317 & 0.447797 \tabularnewline
19 & -0.239473 & -2.0036 & 0.024494 \tabularnewline
20 & -0.085625 & -0.7164 & 0.238067 \tabularnewline
21 & 0.104982 & 0.8783 & 0.191381 \tabularnewline
22 & -0.000106 & -9e-04 & 0.499646 \tabularnewline
23 & 0.155182 & 1.2983 & 0.099216 \tabularnewline
24 & 0.319802 & 2.6757 & 0.00464 \tabularnewline
25 & 0.076674 & 0.6415 & 0.261647 \tabularnewline
26 & -0.016389 & -0.1371 & 0.445664 \tabularnewline
27 & 0.064322 & 0.5382 & 0.296087 \tabularnewline
28 & -0.144128 & -1.2059 & 0.115965 \tabularnewline
29 & -0.147346 & -1.2328 & 0.11089 \tabularnewline
30 & -0.009518 & -0.0796 & 0.468377 \tabularnewline
31 & -0.164531 & -1.3766 & 0.086517 \tabularnewline
32 & -0.167279 & -1.3996 & 0.083031 \tabularnewline
33 & 0.058218 & 0.4871 & 0.313861 \tabularnewline
34 & -0.048603 & -0.4066 & 0.342756 \tabularnewline
35 & 0.183631 & 1.5364 & 0.064478 \tabularnewline
36 & 0.294219 & 2.4616 & 0.008149 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=191627&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.092843[/C][C]0.7768[/C][C]0.219952[/C][/ROW]
[ROW][C]2[/C][C]-0.038159[/C][C]-0.3193[/C][C]0.37524[/C][/ROW]
[ROW][C]3[/C][C]0.028122[/C][C]0.2353[/C][C]0.407336[/C][/ROW]
[ROW][C]4[/C][C]-0.335924[/C][C]-2.8105[/C][C]0.003204[/C][/ROW]
[ROW][C]5[/C][C]-0.24176[/C][C]-2.0227[/C][C]0.023462[/C][/ROW]
[ROW][C]6[/C][C]-0.044248[/C][C]-0.3702[/C][C]0.356174[/C][/ROW]
[ROW][C]7[/C][C]-0.259082[/C][C]-2.1676[/C][C]0.016795[/C][/ROW]
[ROW][C]8[/C][C]-0.274671[/C][C]-2.2981[/C][C]0.012275[/C][/ROW]
[ROW][C]9[/C][C]0.164882[/C][C]1.3795[/C][C]0.086066[/C][/ROW]
[ROW][C]10[/C][C]-0.024286[/C][C]-0.2032[/C][C]0.419787[/C][/ROW]
[ROW][C]11[/C][C]0.312131[/C][C]2.6115[/C][C]0.005511[/C][/ROW]
[ROW][C]12[/C][C]0.510282[/C][C]4.2693[/C][C]3e-05[/C][/ROW]
[ROW][C]13[/C][C]0.067924[/C][C]0.5683[/C][C]0.285828[/C][/ROW]
[ROW][C]14[/C][C]-0.121478[/C][C]-1.0164[/C][C]0.15648[/C][/ROW]
[ROW][C]15[/C][C]0.050706[/C][C]0.4242[/C][C]0.336348[/C][/ROW]
[ROW][C]16[/C][C]-0.21982[/C][C]-1.8391[/C][C]0.035067[/C][/ROW]
[ROW][C]17[/C][C]-0.242359[/C][C]-2.0277[/C][C]0.023198[/C][/ROW]
[ROW][C]18[/C][C]0.015742[/C][C]0.1317[/C][C]0.447797[/C][/ROW]
[ROW][C]19[/C][C]-0.239473[/C][C]-2.0036[/C][C]0.024494[/C][/ROW]
[ROW][C]20[/C][C]-0.085625[/C][C]-0.7164[/C][C]0.238067[/C][/ROW]
[ROW][C]21[/C][C]0.104982[/C][C]0.8783[/C][C]0.191381[/C][/ROW]
[ROW][C]22[/C][C]-0.000106[/C][C]-9e-04[/C][C]0.499646[/C][/ROW]
[ROW][C]23[/C][C]0.155182[/C][C]1.2983[/C][C]0.099216[/C][/ROW]
[ROW][C]24[/C][C]0.319802[/C][C]2.6757[/C][C]0.00464[/C][/ROW]
[ROW][C]25[/C][C]0.076674[/C][C]0.6415[/C][C]0.261647[/C][/ROW]
[ROW][C]26[/C][C]-0.016389[/C][C]-0.1371[/C][C]0.445664[/C][/ROW]
[ROW][C]27[/C][C]0.064322[/C][C]0.5382[/C][C]0.296087[/C][/ROW]
[ROW][C]28[/C][C]-0.144128[/C][C]-1.2059[/C][C]0.115965[/C][/ROW]
[ROW][C]29[/C][C]-0.147346[/C][C]-1.2328[/C][C]0.11089[/C][/ROW]
[ROW][C]30[/C][C]-0.009518[/C][C]-0.0796[/C][C]0.468377[/C][/ROW]
[ROW][C]31[/C][C]-0.164531[/C][C]-1.3766[/C][C]0.086517[/C][/ROW]
[ROW][C]32[/C][C]-0.167279[/C][C]-1.3996[/C][C]0.083031[/C][/ROW]
[ROW][C]33[/C][C]0.058218[/C][C]0.4871[/C][C]0.313861[/C][/ROW]
[ROW][C]34[/C][C]-0.048603[/C][C]-0.4066[/C][C]0.342756[/C][/ROW]
[ROW][C]35[/C][C]0.183631[/C][C]1.5364[/C][C]0.064478[/C][/ROW]
[ROW][C]36[/C][C]0.294219[/C][C]2.4616[/C][C]0.008149[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=191627&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=191627&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.0928430.77680.219952
2-0.038159-0.31930.37524
30.0281220.23530.407336
4-0.335924-2.81050.003204
5-0.24176-2.02270.023462
6-0.044248-0.37020.356174
7-0.259082-2.16760.016795
8-0.274671-2.29810.012275
90.1648821.37950.086066
10-0.024286-0.20320.419787
110.3121312.61150.005511
120.5102824.26933e-05
130.0679240.56830.285828
14-0.121478-1.01640.15648
150.0507060.42420.336348
16-0.21982-1.83910.035067
17-0.242359-2.02770.023198
180.0157420.13170.447797
19-0.239473-2.00360.024494
20-0.085625-0.71640.238067
210.1049820.87830.191381
22-0.000106-9e-040.499646
230.1551821.29830.099216
240.3198022.67570.00464
250.0766740.64150.261647
26-0.016389-0.13710.445664
270.0643220.53820.296087
28-0.144128-1.20590.115965
29-0.147346-1.23280.11089
30-0.009518-0.07960.468377
31-0.164531-1.37660.086517
32-0.167279-1.39960.083031
330.0582180.48710.313861
34-0.048603-0.40660.342756
350.1836311.53640.064478
360.2942192.46160.008149







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0928430.77680.219952
2-0.047186-0.39480.347102
30.0366090.30630.380144
4-0.348274-2.91390.002395
5-0.192697-1.61220.055708
6-0.057497-0.48110.315988
7-0.297044-2.48520.007669
8-0.471401-3.9449.4e-05
9-0.112949-0.9450.173956
10-0.368857-3.08610.001452
11-0.022266-0.18630.426377
120.1371921.14780.127473
130.0062970.05270.479066
14-0.281324-2.35370.010699
150.0499740.41810.338573
16-0.01465-0.12260.451399
17-0.108667-0.90920.183189
18-0.050496-0.42250.336986
190.0476440.39860.345695
200.03870.32380.373531
21-0.077336-0.6470.25986
22-0.200174-1.67480.04922
23-0.1764-1.47590.072231
24-0.173407-1.45080.075647
25-0.014951-0.12510.450407
26-0.067033-0.56080.288349
27-0.114708-0.95970.170251
28-0.019766-0.16540.434562
290.0051040.04270.483031
300.0035730.02990.48812
31-0.068466-0.57280.284299
32-0.157803-1.32030.095522
33-0.009197-0.07690.469442
34-0.098485-0.8240.206374
350.1082270.90550.184155
360.0234240.1960.422598

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.092843 & 0.7768 & 0.219952 \tabularnewline
2 & -0.047186 & -0.3948 & 0.347102 \tabularnewline
3 & 0.036609 & 0.3063 & 0.380144 \tabularnewline
4 & -0.348274 & -2.9139 & 0.002395 \tabularnewline
5 & -0.192697 & -1.6122 & 0.055708 \tabularnewline
6 & -0.057497 & -0.4811 & 0.315988 \tabularnewline
7 & -0.297044 & -2.4852 & 0.007669 \tabularnewline
8 & -0.471401 & -3.944 & 9.4e-05 \tabularnewline
9 & -0.112949 & -0.945 & 0.173956 \tabularnewline
10 & -0.368857 & -3.0861 & 0.001452 \tabularnewline
11 & -0.022266 & -0.1863 & 0.426377 \tabularnewline
12 & 0.137192 & 1.1478 & 0.127473 \tabularnewline
13 & 0.006297 & 0.0527 & 0.479066 \tabularnewline
14 & -0.281324 & -2.3537 & 0.010699 \tabularnewline
15 & 0.049974 & 0.4181 & 0.338573 \tabularnewline
16 & -0.01465 & -0.1226 & 0.451399 \tabularnewline
17 & -0.108667 & -0.9092 & 0.183189 \tabularnewline
18 & -0.050496 & -0.4225 & 0.336986 \tabularnewline
19 & 0.047644 & 0.3986 & 0.345695 \tabularnewline
20 & 0.0387 & 0.3238 & 0.373531 \tabularnewline
21 & -0.077336 & -0.647 & 0.25986 \tabularnewline
22 & -0.200174 & -1.6748 & 0.04922 \tabularnewline
23 & -0.1764 & -1.4759 & 0.072231 \tabularnewline
24 & -0.173407 & -1.4508 & 0.075647 \tabularnewline
25 & -0.014951 & -0.1251 & 0.450407 \tabularnewline
26 & -0.067033 & -0.5608 & 0.288349 \tabularnewline
27 & -0.114708 & -0.9597 & 0.170251 \tabularnewline
28 & -0.019766 & -0.1654 & 0.434562 \tabularnewline
29 & 0.005104 & 0.0427 & 0.483031 \tabularnewline
30 & 0.003573 & 0.0299 & 0.48812 \tabularnewline
31 & -0.068466 & -0.5728 & 0.284299 \tabularnewline
32 & -0.157803 & -1.3203 & 0.095522 \tabularnewline
33 & -0.009197 & -0.0769 & 0.469442 \tabularnewline
34 & -0.098485 & -0.824 & 0.206374 \tabularnewline
35 & 0.108227 & 0.9055 & 0.184155 \tabularnewline
36 & 0.023424 & 0.196 & 0.422598 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=191627&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.092843[/C][C]0.7768[/C][C]0.219952[/C][/ROW]
[ROW][C]2[/C][C]-0.047186[/C][C]-0.3948[/C][C]0.347102[/C][/ROW]
[ROW][C]3[/C][C]0.036609[/C][C]0.3063[/C][C]0.380144[/C][/ROW]
[ROW][C]4[/C][C]-0.348274[/C][C]-2.9139[/C][C]0.002395[/C][/ROW]
[ROW][C]5[/C][C]-0.192697[/C][C]-1.6122[/C][C]0.055708[/C][/ROW]
[ROW][C]6[/C][C]-0.057497[/C][C]-0.4811[/C][C]0.315988[/C][/ROW]
[ROW][C]7[/C][C]-0.297044[/C][C]-2.4852[/C][C]0.007669[/C][/ROW]
[ROW][C]8[/C][C]-0.471401[/C][C]-3.944[/C][C]9.4e-05[/C][/ROW]
[ROW][C]9[/C][C]-0.112949[/C][C]-0.945[/C][C]0.173956[/C][/ROW]
[ROW][C]10[/C][C]-0.368857[/C][C]-3.0861[/C][C]0.001452[/C][/ROW]
[ROW][C]11[/C][C]-0.022266[/C][C]-0.1863[/C][C]0.426377[/C][/ROW]
[ROW][C]12[/C][C]0.137192[/C][C]1.1478[/C][C]0.127473[/C][/ROW]
[ROW][C]13[/C][C]0.006297[/C][C]0.0527[/C][C]0.479066[/C][/ROW]
[ROW][C]14[/C][C]-0.281324[/C][C]-2.3537[/C][C]0.010699[/C][/ROW]
[ROW][C]15[/C][C]0.049974[/C][C]0.4181[/C][C]0.338573[/C][/ROW]
[ROW][C]16[/C][C]-0.01465[/C][C]-0.1226[/C][C]0.451399[/C][/ROW]
[ROW][C]17[/C][C]-0.108667[/C][C]-0.9092[/C][C]0.183189[/C][/ROW]
[ROW][C]18[/C][C]-0.050496[/C][C]-0.4225[/C][C]0.336986[/C][/ROW]
[ROW][C]19[/C][C]0.047644[/C][C]0.3986[/C][C]0.345695[/C][/ROW]
[ROW][C]20[/C][C]0.0387[/C][C]0.3238[/C][C]0.373531[/C][/ROW]
[ROW][C]21[/C][C]-0.077336[/C][C]-0.647[/C][C]0.25986[/C][/ROW]
[ROW][C]22[/C][C]-0.200174[/C][C]-1.6748[/C][C]0.04922[/C][/ROW]
[ROW][C]23[/C][C]-0.1764[/C][C]-1.4759[/C][C]0.072231[/C][/ROW]
[ROW][C]24[/C][C]-0.173407[/C][C]-1.4508[/C][C]0.075647[/C][/ROW]
[ROW][C]25[/C][C]-0.014951[/C][C]-0.1251[/C][C]0.450407[/C][/ROW]
[ROW][C]26[/C][C]-0.067033[/C][C]-0.5608[/C][C]0.288349[/C][/ROW]
[ROW][C]27[/C][C]-0.114708[/C][C]-0.9597[/C][C]0.170251[/C][/ROW]
[ROW][C]28[/C][C]-0.019766[/C][C]-0.1654[/C][C]0.434562[/C][/ROW]
[ROW][C]29[/C][C]0.005104[/C][C]0.0427[/C][C]0.483031[/C][/ROW]
[ROW][C]30[/C][C]0.003573[/C][C]0.0299[/C][C]0.48812[/C][/ROW]
[ROW][C]31[/C][C]-0.068466[/C][C]-0.5728[/C][C]0.284299[/C][/ROW]
[ROW][C]32[/C][C]-0.157803[/C][C]-1.3203[/C][C]0.095522[/C][/ROW]
[ROW][C]33[/C][C]-0.009197[/C][C]-0.0769[/C][C]0.469442[/C][/ROW]
[ROW][C]34[/C][C]-0.098485[/C][C]-0.824[/C][C]0.206374[/C][/ROW]
[ROW][C]35[/C][C]0.108227[/C][C]0.9055[/C][C]0.184155[/C][/ROW]
[ROW][C]36[/C][C]0.023424[/C][C]0.196[/C][C]0.422598[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=191627&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=191627&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.0928430.77680.219952
2-0.047186-0.39480.347102
30.0366090.30630.380144
4-0.348274-2.91390.002395
5-0.192697-1.61220.055708
6-0.057497-0.48110.315988
7-0.297044-2.48520.007669
8-0.471401-3.9449.4e-05
9-0.112949-0.9450.173956
10-0.368857-3.08610.001452
11-0.022266-0.18630.426377
120.1371921.14780.127473
130.0062970.05270.479066
14-0.281324-2.35370.010699
150.0499740.41810.338573
16-0.01465-0.12260.451399
17-0.108667-0.90920.183189
18-0.050496-0.42250.336986
190.0476440.39860.345695
200.03870.32380.373531
21-0.077336-0.6470.25986
22-0.200174-1.67480.04922
23-0.1764-1.47590.072231
24-0.173407-1.45080.075647
25-0.014951-0.12510.450407
26-0.067033-0.56080.288349
27-0.114708-0.95970.170251
28-0.019766-0.16540.434562
290.0051040.04270.483031
300.0035730.02990.48812
31-0.068466-0.57280.284299
32-0.157803-1.32030.095522
33-0.009197-0.07690.469442
34-0.098485-0.8240.206374
350.1082270.90550.184155
360.0234240.1960.422598



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