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 computationWed, 19 Oct 2016 12:07:37 +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/Oct/19/t1476875277w5llckcsvj52rjr.htm/, Retrieved Tue, 30 Apr 2024 03:10:17 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Tue, 30 Apr 2024 03:10:17 +0200
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
13
15
29
31
22
36
39
30
20
18
13
11
16
20
29
31
24
40
41
25
19
19
18
10
17
25
30
32
24
38
36
26
25
26
16
12
15
21
33
32
24
41
38
28
24
30
18




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Sir Maurice George Kendall' @ kendall.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 & 1 seconds \tabularnewline
R Server & 'Sir Maurice George Kendall' @ kendall.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&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]'Sir Maurice George Kendall' @ kendall.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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'Sir Maurice George Kendall' @ kendall.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5439073.72880.000258
20.1444960.99060.163473
30.047080.32280.374154
4-0.22122-1.51660.068031
5-0.598246-4.10148.1e-05
6-0.655405-4.49322.3e-05
7-0.473557-3.24650.001079
8-0.181829-1.24660.109369
90.0487540.33420.369842
100.1773631.21590.11504
110.4625663.17120.001337
120.6682854.58151.7e-05
130.3457882.37060.010956
140.107090.73420.233245
150.0676880.4640.322378
16-0.157113-1.07710.143464
17-0.455096-3.120.001544
18-0.457125-3.13390.001485
19-0.29137-1.99750.025787
20-0.109417-0.75010.228459
21-0.008195-0.05620.477717
220.0856610.58730.279918
230.3162692.16820.017619
240.4044852.7730.003969
250.1948741.3360.093993
260.0801610.54960.292613
270.0642610.44060.330779
28-0.116692-0.80.213868
29-0.29336-2.01120.025031
30-0.233943-1.60380.057725
31-0.17104-1.17260.123435
32-0.097266-0.66680.254072
33-0.011757-0.08060.468049
340.0619670.42480.336452
350.1661291.13890.130254
360.1909721.30920.09841

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.543907 & 3.7288 & 0.000258 \tabularnewline
2 & 0.144496 & 0.9906 & 0.163473 \tabularnewline
3 & 0.04708 & 0.3228 & 0.374154 \tabularnewline
4 & -0.22122 & -1.5166 & 0.068031 \tabularnewline
5 & -0.598246 & -4.1014 & 8.1e-05 \tabularnewline
6 & -0.655405 & -4.4932 & 2.3e-05 \tabularnewline
7 & -0.473557 & -3.2465 & 0.001079 \tabularnewline
8 & -0.181829 & -1.2466 & 0.109369 \tabularnewline
9 & 0.048754 & 0.3342 & 0.369842 \tabularnewline
10 & 0.177363 & 1.2159 & 0.11504 \tabularnewline
11 & 0.462566 & 3.1712 & 0.001337 \tabularnewline
12 & 0.668285 & 4.5815 & 1.7e-05 \tabularnewline
13 & 0.345788 & 2.3706 & 0.010956 \tabularnewline
14 & 0.10709 & 0.7342 & 0.233245 \tabularnewline
15 & 0.067688 & 0.464 & 0.322378 \tabularnewline
16 & -0.157113 & -1.0771 & 0.143464 \tabularnewline
17 & -0.455096 & -3.12 & 0.001544 \tabularnewline
18 & -0.457125 & -3.1339 & 0.001485 \tabularnewline
19 & -0.29137 & -1.9975 & 0.025787 \tabularnewline
20 & -0.109417 & -0.7501 & 0.228459 \tabularnewline
21 & -0.008195 & -0.0562 & 0.477717 \tabularnewline
22 & 0.085661 & 0.5873 & 0.279918 \tabularnewline
23 & 0.316269 & 2.1682 & 0.017619 \tabularnewline
24 & 0.404485 & 2.773 & 0.003969 \tabularnewline
25 & 0.194874 & 1.336 & 0.093993 \tabularnewline
26 & 0.080161 & 0.5496 & 0.292613 \tabularnewline
27 & 0.064261 & 0.4406 & 0.330779 \tabularnewline
28 & -0.116692 & -0.8 & 0.213868 \tabularnewline
29 & -0.29336 & -2.0112 & 0.025031 \tabularnewline
30 & -0.233943 & -1.6038 & 0.057725 \tabularnewline
31 & -0.17104 & -1.1726 & 0.123435 \tabularnewline
32 & -0.097266 & -0.6668 & 0.254072 \tabularnewline
33 & -0.011757 & -0.0806 & 0.468049 \tabularnewline
34 & 0.061967 & 0.4248 & 0.336452 \tabularnewline
35 & 0.166129 & 1.1389 & 0.130254 \tabularnewline
36 & 0.190972 & 1.3092 & 0.09841 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&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.543907[/C][C]3.7288[/C][C]0.000258[/C][/ROW]
[ROW][C]2[/C][C]0.144496[/C][C]0.9906[/C][C]0.163473[/C][/ROW]
[ROW][C]3[/C][C]0.04708[/C][C]0.3228[/C][C]0.374154[/C][/ROW]
[ROW][C]4[/C][C]-0.22122[/C][C]-1.5166[/C][C]0.068031[/C][/ROW]
[ROW][C]5[/C][C]-0.598246[/C][C]-4.1014[/C][C]8.1e-05[/C][/ROW]
[ROW][C]6[/C][C]-0.655405[/C][C]-4.4932[/C][C]2.3e-05[/C][/ROW]
[ROW][C]7[/C][C]-0.473557[/C][C]-3.2465[/C][C]0.001079[/C][/ROW]
[ROW][C]8[/C][C]-0.181829[/C][C]-1.2466[/C][C]0.109369[/C][/ROW]
[ROW][C]9[/C][C]0.048754[/C][C]0.3342[/C][C]0.369842[/C][/ROW]
[ROW][C]10[/C][C]0.177363[/C][C]1.2159[/C][C]0.11504[/C][/ROW]
[ROW][C]11[/C][C]0.462566[/C][C]3.1712[/C][C]0.001337[/C][/ROW]
[ROW][C]12[/C][C]0.668285[/C][C]4.5815[/C][C]1.7e-05[/C][/ROW]
[ROW][C]13[/C][C]0.345788[/C][C]2.3706[/C][C]0.010956[/C][/ROW]
[ROW][C]14[/C][C]0.10709[/C][C]0.7342[/C][C]0.233245[/C][/ROW]
[ROW][C]15[/C][C]0.067688[/C][C]0.464[/C][C]0.322378[/C][/ROW]
[ROW][C]16[/C][C]-0.157113[/C][C]-1.0771[/C][C]0.143464[/C][/ROW]
[ROW][C]17[/C][C]-0.455096[/C][C]-3.12[/C][C]0.001544[/C][/ROW]
[ROW][C]18[/C][C]-0.457125[/C][C]-3.1339[/C][C]0.001485[/C][/ROW]
[ROW][C]19[/C][C]-0.29137[/C][C]-1.9975[/C][C]0.025787[/C][/ROW]
[ROW][C]20[/C][C]-0.109417[/C][C]-0.7501[/C][C]0.228459[/C][/ROW]
[ROW][C]21[/C][C]-0.008195[/C][C]-0.0562[/C][C]0.477717[/C][/ROW]
[ROW][C]22[/C][C]0.085661[/C][C]0.5873[/C][C]0.279918[/C][/ROW]
[ROW][C]23[/C][C]0.316269[/C][C]2.1682[/C][C]0.017619[/C][/ROW]
[ROW][C]24[/C][C]0.404485[/C][C]2.773[/C][C]0.003969[/C][/ROW]
[ROW][C]25[/C][C]0.194874[/C][C]1.336[/C][C]0.093993[/C][/ROW]
[ROW][C]26[/C][C]0.080161[/C][C]0.5496[/C][C]0.292613[/C][/ROW]
[ROW][C]27[/C][C]0.064261[/C][C]0.4406[/C][C]0.330779[/C][/ROW]
[ROW][C]28[/C][C]-0.116692[/C][C]-0.8[/C][C]0.213868[/C][/ROW]
[ROW][C]29[/C][C]-0.29336[/C][C]-2.0112[/C][C]0.025031[/C][/ROW]
[ROW][C]30[/C][C]-0.233943[/C][C]-1.6038[/C][C]0.057725[/C][/ROW]
[ROW][C]31[/C][C]-0.17104[/C][C]-1.1726[/C][C]0.123435[/C][/ROW]
[ROW][C]32[/C][C]-0.097266[/C][C]-0.6668[/C][C]0.254072[/C][/ROW]
[ROW][C]33[/C][C]-0.011757[/C][C]-0.0806[/C][C]0.468049[/C][/ROW]
[ROW][C]34[/C][C]0.061967[/C][C]0.4248[/C][C]0.336452[/C][/ROW]
[ROW][C]35[/C][C]0.166129[/C][C]1.1389[/C][C]0.130254[/C][/ROW]
[ROW][C]36[/C][C]0.190972[/C][C]1.3092[/C][C]0.09841[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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.5439073.72880.000258
20.1444960.99060.163473
30.047080.32280.374154
4-0.22122-1.51660.068031
5-0.598246-4.10148.1e-05
6-0.655405-4.49322.3e-05
7-0.473557-3.24650.001079
8-0.181829-1.24660.109369
90.0487540.33420.369842
100.1773631.21590.11504
110.4625663.17120.001337
120.6682854.58151.7e-05
130.3457882.37060.010956
140.107090.73420.233245
150.0676880.4640.322378
16-0.157113-1.07710.143464
17-0.455096-3.120.001544
18-0.457125-3.13390.001485
19-0.29137-1.99750.025787
20-0.109417-0.75010.228459
21-0.008195-0.05620.477717
220.0856610.58730.279918
230.3162692.16820.017619
240.4044852.7730.003969
250.1948741.3360.093993
260.0801610.54960.292613
270.0642610.44060.330779
28-0.116692-0.80.213868
29-0.29336-2.01120.025031
30-0.233943-1.60380.057725
31-0.17104-1.17260.123435
32-0.097266-0.66680.254072
33-0.011757-0.08060.468049
340.0619670.42480.336452
350.1661291.13890.130254
360.1909721.30920.09841







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5439073.72880.000258
2-0.214918-1.47340.073654
30.1019770.69910.243962
4-0.403271-2.76470.004057
5-0.457526-3.13660.001473
6-0.300321-2.05890.022535
7-0.219306-1.50350.069702
80.1478431.01360.157991
90.0105270.07220.471388
10-0.222253-1.52370.067144
110.117710.8070.211871
120.2196021.50550.069441
13-0.222008-1.5220.067353
140.139910.95920.171189
150.0278170.19070.424789
160.0765040.52450.301204
170.0395190.27090.393815
18-0.019777-0.13560.446365
190.0775390.53160.29876
200.1085310.74410.230274
21-0.080239-0.55010.29243
22-0.056662-0.38850.349716
23-0.01263-0.08660.465683
24-0.054379-0.37280.355486
250.0746160.51150.305685
26-0.036534-0.25050.401661
27-0.089998-0.6170.270107
28-0.059136-0.40540.343505
29-0.012296-0.08430.466588
300.1113370.76330.224553
31-0.100792-0.6910.246484
32-0.019873-0.13620.446105
330.0311480.21350.415914
34-0.044021-0.30180.38207
35-0.062193-0.42640.335892
36-0.04235-0.29030.386418

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.543907 & 3.7288 & 0.000258 \tabularnewline
2 & -0.214918 & -1.4734 & 0.073654 \tabularnewline
3 & 0.101977 & 0.6991 & 0.243962 \tabularnewline
4 & -0.403271 & -2.7647 & 0.004057 \tabularnewline
5 & -0.457526 & -3.1366 & 0.001473 \tabularnewline
6 & -0.300321 & -2.0589 & 0.022535 \tabularnewline
7 & -0.219306 & -1.5035 & 0.069702 \tabularnewline
8 & 0.147843 & 1.0136 & 0.157991 \tabularnewline
9 & 0.010527 & 0.0722 & 0.471388 \tabularnewline
10 & -0.222253 & -1.5237 & 0.067144 \tabularnewline
11 & 0.11771 & 0.807 & 0.211871 \tabularnewline
12 & 0.219602 & 1.5055 & 0.069441 \tabularnewline
13 & -0.222008 & -1.522 & 0.067353 \tabularnewline
14 & 0.13991 & 0.9592 & 0.171189 \tabularnewline
15 & 0.027817 & 0.1907 & 0.424789 \tabularnewline
16 & 0.076504 & 0.5245 & 0.301204 \tabularnewline
17 & 0.039519 & 0.2709 & 0.393815 \tabularnewline
18 & -0.019777 & -0.1356 & 0.446365 \tabularnewline
19 & 0.077539 & 0.5316 & 0.29876 \tabularnewline
20 & 0.108531 & 0.7441 & 0.230274 \tabularnewline
21 & -0.080239 & -0.5501 & 0.29243 \tabularnewline
22 & -0.056662 & -0.3885 & 0.349716 \tabularnewline
23 & -0.01263 & -0.0866 & 0.465683 \tabularnewline
24 & -0.054379 & -0.3728 & 0.355486 \tabularnewline
25 & 0.074616 & 0.5115 & 0.305685 \tabularnewline
26 & -0.036534 & -0.2505 & 0.401661 \tabularnewline
27 & -0.089998 & -0.617 & 0.270107 \tabularnewline
28 & -0.059136 & -0.4054 & 0.343505 \tabularnewline
29 & -0.012296 & -0.0843 & 0.466588 \tabularnewline
30 & 0.111337 & 0.7633 & 0.224553 \tabularnewline
31 & -0.100792 & -0.691 & 0.246484 \tabularnewline
32 & -0.019873 & -0.1362 & 0.446105 \tabularnewline
33 & 0.031148 & 0.2135 & 0.415914 \tabularnewline
34 & -0.044021 & -0.3018 & 0.38207 \tabularnewline
35 & -0.062193 & -0.4264 & 0.335892 \tabularnewline
36 & -0.04235 & -0.2903 & 0.386418 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&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.543907[/C][C]3.7288[/C][C]0.000258[/C][/ROW]
[ROW][C]2[/C][C]-0.214918[/C][C]-1.4734[/C][C]0.073654[/C][/ROW]
[ROW][C]3[/C][C]0.101977[/C][C]0.6991[/C][C]0.243962[/C][/ROW]
[ROW][C]4[/C][C]-0.403271[/C][C]-2.7647[/C][C]0.004057[/C][/ROW]
[ROW][C]5[/C][C]-0.457526[/C][C]-3.1366[/C][C]0.001473[/C][/ROW]
[ROW][C]6[/C][C]-0.300321[/C][C]-2.0589[/C][C]0.022535[/C][/ROW]
[ROW][C]7[/C][C]-0.219306[/C][C]-1.5035[/C][C]0.069702[/C][/ROW]
[ROW][C]8[/C][C]0.147843[/C][C]1.0136[/C][C]0.157991[/C][/ROW]
[ROW][C]9[/C][C]0.010527[/C][C]0.0722[/C][C]0.471388[/C][/ROW]
[ROW][C]10[/C][C]-0.222253[/C][C]-1.5237[/C][C]0.067144[/C][/ROW]
[ROW][C]11[/C][C]0.11771[/C][C]0.807[/C][C]0.211871[/C][/ROW]
[ROW][C]12[/C][C]0.219602[/C][C]1.5055[/C][C]0.069441[/C][/ROW]
[ROW][C]13[/C][C]-0.222008[/C][C]-1.522[/C][C]0.067353[/C][/ROW]
[ROW][C]14[/C][C]0.13991[/C][C]0.9592[/C][C]0.171189[/C][/ROW]
[ROW][C]15[/C][C]0.027817[/C][C]0.1907[/C][C]0.424789[/C][/ROW]
[ROW][C]16[/C][C]0.076504[/C][C]0.5245[/C][C]0.301204[/C][/ROW]
[ROW][C]17[/C][C]0.039519[/C][C]0.2709[/C][C]0.393815[/C][/ROW]
[ROW][C]18[/C][C]-0.019777[/C][C]-0.1356[/C][C]0.446365[/C][/ROW]
[ROW][C]19[/C][C]0.077539[/C][C]0.5316[/C][C]0.29876[/C][/ROW]
[ROW][C]20[/C][C]0.108531[/C][C]0.7441[/C][C]0.230274[/C][/ROW]
[ROW][C]21[/C][C]-0.080239[/C][C]-0.5501[/C][C]0.29243[/C][/ROW]
[ROW][C]22[/C][C]-0.056662[/C][C]-0.3885[/C][C]0.349716[/C][/ROW]
[ROW][C]23[/C][C]-0.01263[/C][C]-0.0866[/C][C]0.465683[/C][/ROW]
[ROW][C]24[/C][C]-0.054379[/C][C]-0.3728[/C][C]0.355486[/C][/ROW]
[ROW][C]25[/C][C]0.074616[/C][C]0.5115[/C][C]0.305685[/C][/ROW]
[ROW][C]26[/C][C]-0.036534[/C][C]-0.2505[/C][C]0.401661[/C][/ROW]
[ROW][C]27[/C][C]-0.089998[/C][C]-0.617[/C][C]0.270107[/C][/ROW]
[ROW][C]28[/C][C]-0.059136[/C][C]-0.4054[/C][C]0.343505[/C][/ROW]
[ROW][C]29[/C][C]-0.012296[/C][C]-0.0843[/C][C]0.466588[/C][/ROW]
[ROW][C]30[/C][C]0.111337[/C][C]0.7633[/C][C]0.224553[/C][/ROW]
[ROW][C]31[/C][C]-0.100792[/C][C]-0.691[/C][C]0.246484[/C][/ROW]
[ROW][C]32[/C][C]-0.019873[/C][C]-0.1362[/C][C]0.446105[/C][/ROW]
[ROW][C]33[/C][C]0.031148[/C][C]0.2135[/C][C]0.415914[/C][/ROW]
[ROW][C]34[/C][C]-0.044021[/C][C]-0.3018[/C][C]0.38207[/C][/ROW]
[ROW][C]35[/C][C]-0.062193[/C][C]-0.4264[/C][C]0.335892[/C][/ROW]
[ROW][C]36[/C][C]-0.04235[/C][C]-0.2903[/C][C]0.386418[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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.5439073.72880.000258
2-0.214918-1.47340.073654
30.1019770.69910.243962
4-0.403271-2.76470.004057
5-0.457526-3.13660.001473
6-0.300321-2.05890.022535
7-0.219306-1.50350.069702
80.1478431.01360.157991
90.0105270.07220.471388
10-0.222253-1.52370.067144
110.117710.8070.211871
120.2196021.50550.069441
13-0.222008-1.5220.067353
140.139910.95920.171189
150.0278170.19070.424789
160.0765040.52450.301204
170.0395190.27090.393815
18-0.019777-0.13560.446365
190.0775390.53160.29876
200.1085310.74410.230274
21-0.080239-0.55010.29243
22-0.056662-0.38850.349716
23-0.01263-0.08660.465683
24-0.054379-0.37280.355486
250.0746160.51150.305685
26-0.036534-0.25050.401661
27-0.089998-0.6170.270107
28-0.059136-0.40540.343505
29-0.012296-0.08430.466588
300.1113370.76330.224553
31-0.100792-0.6910.246484
32-0.019873-0.13620.446105
330.0311480.21350.415914
34-0.044021-0.30180.38207
35-0.062193-0.42640.335892
36-0.04235-0.29030.386418



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 ; 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 <- '24'
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,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')