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:10:27 +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/t1476875447ujm3dpkdw4t2cbh.htm/, Retrieved Tue, 30 Apr 2024 04:48:47 +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 04:48:47 +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 time2 seconds
R Server'Gertrude Mary Cox' @ cox.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 & 2 seconds \tabularnewline
R Server & 'Gertrude Mary Cox' @ cox.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]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gertrude Mary Cox' @ cox.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 time2 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.029902-0.20280.420092
2-0.310168-2.10370.020453
30.2176761.47630.073332
40.1137520.77150.222176
5-0.309872-2.10170.020545
6-0.307456-2.08530.021311
7-0.146165-0.99130.163353
80.032550.22080.413127
90.0821630.55730.290028
10-0.218028-1.47870.073013
110.0775050.52570.300822
120.6476264.39243.3e-05
13-0.057955-0.39310.348041
14-0.198596-1.34690.092298
150.2274841.54290.064857
160.0804550.54570.293963
17-0.27593-1.87150.033825
18-0.225122-1.52690.066822
19-0.065437-0.44380.329628
200.0646220.43830.331615
21-0.003677-0.02490.490106
22-0.183221-1.24270.110144
230.1169620.79330.215846
240.3958932.68510.005025
25-0.075779-0.5140.304871
26-0.094827-0.64320.26166
270.2157031.4630.075138
28-6e-05-4e-040.499838
29-0.221477-1.50210.069949
30-0.050279-0.3410.367325
31-0.037076-0.25150.401289
32-0.022875-0.15510.438692
33-0.003622-0.02460.490253
34-0.086155-0.58430.280927
350.0643270.43630.332334
360.2215561.50270.06988

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.029902 & -0.2028 & 0.420092 \tabularnewline
2 & -0.310168 & -2.1037 & 0.020453 \tabularnewline
3 & 0.217676 & 1.4763 & 0.073332 \tabularnewline
4 & 0.113752 & 0.7715 & 0.222176 \tabularnewline
5 & -0.309872 & -2.1017 & 0.020545 \tabularnewline
6 & -0.307456 & -2.0853 & 0.021311 \tabularnewline
7 & -0.146165 & -0.9913 & 0.163353 \tabularnewline
8 & 0.03255 & 0.2208 & 0.413127 \tabularnewline
9 & 0.082163 & 0.5573 & 0.290028 \tabularnewline
10 & -0.218028 & -1.4787 & 0.073013 \tabularnewline
11 & 0.077505 & 0.5257 & 0.300822 \tabularnewline
12 & 0.647626 & 4.3924 & 3.3e-05 \tabularnewline
13 & -0.057955 & -0.3931 & 0.348041 \tabularnewline
14 & -0.198596 & -1.3469 & 0.092298 \tabularnewline
15 & 0.227484 & 1.5429 & 0.064857 \tabularnewline
16 & 0.080455 & 0.5457 & 0.293963 \tabularnewline
17 & -0.27593 & -1.8715 & 0.033825 \tabularnewline
18 & -0.225122 & -1.5269 & 0.066822 \tabularnewline
19 & -0.065437 & -0.4438 & 0.329628 \tabularnewline
20 & 0.064622 & 0.4383 & 0.331615 \tabularnewline
21 & -0.003677 & -0.0249 & 0.490106 \tabularnewline
22 & -0.183221 & -1.2427 & 0.110144 \tabularnewline
23 & 0.116962 & 0.7933 & 0.215846 \tabularnewline
24 & 0.395893 & 2.6851 & 0.005025 \tabularnewline
25 & -0.075779 & -0.514 & 0.304871 \tabularnewline
26 & -0.094827 & -0.6432 & 0.26166 \tabularnewline
27 & 0.215703 & 1.463 & 0.075138 \tabularnewline
28 & -6e-05 & -4e-04 & 0.499838 \tabularnewline
29 & -0.221477 & -1.5021 & 0.069949 \tabularnewline
30 & -0.050279 & -0.341 & 0.367325 \tabularnewline
31 & -0.037076 & -0.2515 & 0.401289 \tabularnewline
32 & -0.022875 & -0.1551 & 0.438692 \tabularnewline
33 & -0.003622 & -0.0246 & 0.490253 \tabularnewline
34 & -0.086155 & -0.5843 & 0.280927 \tabularnewline
35 & 0.064327 & 0.4363 & 0.332334 \tabularnewline
36 & 0.221556 & 1.5027 & 0.06988 \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.029902[/C][C]-0.2028[/C][C]0.420092[/C][/ROW]
[ROW][C]2[/C][C]-0.310168[/C][C]-2.1037[/C][C]0.020453[/C][/ROW]
[ROW][C]3[/C][C]0.217676[/C][C]1.4763[/C][C]0.073332[/C][/ROW]
[ROW][C]4[/C][C]0.113752[/C][C]0.7715[/C][C]0.222176[/C][/ROW]
[ROW][C]5[/C][C]-0.309872[/C][C]-2.1017[/C][C]0.020545[/C][/ROW]
[ROW][C]6[/C][C]-0.307456[/C][C]-2.0853[/C][C]0.021311[/C][/ROW]
[ROW][C]7[/C][C]-0.146165[/C][C]-0.9913[/C][C]0.163353[/C][/ROW]
[ROW][C]8[/C][C]0.03255[/C][C]0.2208[/C][C]0.413127[/C][/ROW]
[ROW][C]9[/C][C]0.082163[/C][C]0.5573[/C][C]0.290028[/C][/ROW]
[ROW][C]10[/C][C]-0.218028[/C][C]-1.4787[/C][C]0.073013[/C][/ROW]
[ROW][C]11[/C][C]0.077505[/C][C]0.5257[/C][C]0.300822[/C][/ROW]
[ROW][C]12[/C][C]0.647626[/C][C]4.3924[/C][C]3.3e-05[/C][/ROW]
[ROW][C]13[/C][C]-0.057955[/C][C]-0.3931[/C][C]0.348041[/C][/ROW]
[ROW][C]14[/C][C]-0.198596[/C][C]-1.3469[/C][C]0.092298[/C][/ROW]
[ROW][C]15[/C][C]0.227484[/C][C]1.5429[/C][C]0.064857[/C][/ROW]
[ROW][C]16[/C][C]0.080455[/C][C]0.5457[/C][C]0.293963[/C][/ROW]
[ROW][C]17[/C][C]-0.27593[/C][C]-1.8715[/C][C]0.033825[/C][/ROW]
[ROW][C]18[/C][C]-0.225122[/C][C]-1.5269[/C][C]0.066822[/C][/ROW]
[ROW][C]19[/C][C]-0.065437[/C][C]-0.4438[/C][C]0.329628[/C][/ROW]
[ROW][C]20[/C][C]0.064622[/C][C]0.4383[/C][C]0.331615[/C][/ROW]
[ROW][C]21[/C][C]-0.003677[/C][C]-0.0249[/C][C]0.490106[/C][/ROW]
[ROW][C]22[/C][C]-0.183221[/C][C]-1.2427[/C][C]0.110144[/C][/ROW]
[ROW][C]23[/C][C]0.116962[/C][C]0.7933[/C][C]0.215846[/C][/ROW]
[ROW][C]24[/C][C]0.395893[/C][C]2.6851[/C][C]0.005025[/C][/ROW]
[ROW][C]25[/C][C]-0.075779[/C][C]-0.514[/C][C]0.304871[/C][/ROW]
[ROW][C]26[/C][C]-0.094827[/C][C]-0.6432[/C][C]0.26166[/C][/ROW]
[ROW][C]27[/C][C]0.215703[/C][C]1.463[/C][C]0.075138[/C][/ROW]
[ROW][C]28[/C][C]-6e-05[/C][C]-4e-04[/C][C]0.499838[/C][/ROW]
[ROW][C]29[/C][C]-0.221477[/C][C]-1.5021[/C][C]0.069949[/C][/ROW]
[ROW][C]30[/C][C]-0.050279[/C][C]-0.341[/C][C]0.367325[/C][/ROW]
[ROW][C]31[/C][C]-0.037076[/C][C]-0.2515[/C][C]0.401289[/C][/ROW]
[ROW][C]32[/C][C]-0.022875[/C][C]-0.1551[/C][C]0.438692[/C][/ROW]
[ROW][C]33[/C][C]-0.003622[/C][C]-0.0246[/C][C]0.490253[/C][/ROW]
[ROW][C]34[/C][C]-0.086155[/C][C]-0.5843[/C][C]0.280927[/C][/ROW]
[ROW][C]35[/C][C]0.064327[/C][C]0.4363[/C][C]0.332334[/C][/ROW]
[ROW][C]36[/C][C]0.221556[/C][C]1.5027[/C][C]0.06988[/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
1-0.029902-0.20280.420092
2-0.310168-2.10370.020453
30.2176761.47630.073332
40.1137520.77150.222176
5-0.309872-2.10170.020545
6-0.307456-2.08530.021311
7-0.146165-0.99130.163353
80.032550.22080.413127
90.0821630.55730.290028
10-0.218028-1.47870.073013
110.0775050.52570.300822
120.6476264.39243.3e-05
13-0.057955-0.39310.348041
14-0.198596-1.34690.092298
150.2274841.54290.064857
160.0804550.54570.293963
17-0.27593-1.87150.033825
18-0.225122-1.52690.066822
19-0.065437-0.44380.329628
200.0646220.43830.331615
21-0.003677-0.02490.490106
22-0.183221-1.24270.110144
230.1169620.79330.215846
240.3958932.68510.005025
25-0.075779-0.5140.304871
26-0.094827-0.64320.26166
270.2157031.4630.075138
28-6e-05-4e-040.499838
29-0.221477-1.50210.069949
30-0.050279-0.3410.367325
31-0.037076-0.25150.401289
32-0.022875-0.15510.438692
33-0.003622-0.02460.490253
34-0.086155-0.58430.280927
350.0643270.43630.332334
360.2215561.50270.06988







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.029902-0.20280.420092
2-0.311341-2.11160.020091
30.2174591.47490.073529
40.0234170.15880.437252
5-0.209773-1.42270.080778
6-0.36696-2.48880.008248
7-0.448147-3.03950.001951
8-0.20041-1.35920.090347
90.0972570.65960.256391
10-0.227478-1.54280.064862
11-0.181596-1.23160.11217
120.3713492.51860.007662
13-0.076187-0.51670.303911
140.0554670.37620.354251
15-0.086613-0.58740.279892
16-0.072685-0.4930.312189
170.0563740.38240.351981
18-0.017347-0.11770.453427
19-0.014367-0.09740.4614
200.1383370.93820.176509
210.0018150.01230.495117
22-0.003869-0.02620.489589
23-0.055545-0.37670.354056
24-0.124959-0.84750.200548
250.0205180.13920.444966
260.0700340.4750.318519
270.0668820.45360.32612
28-0.056963-0.38630.350514
29-0.099281-0.67340.252045
300.1116760.75740.22633
310.0378920.2570.399164
32-0.038192-0.2590.398383
330.0151890.1030.459199
340.0070390.04770.481065
350.0060270.04090.483784
360.0273530.18550.426819

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.029902 & -0.2028 & 0.420092 \tabularnewline
2 & -0.311341 & -2.1116 & 0.020091 \tabularnewline
3 & 0.217459 & 1.4749 & 0.073529 \tabularnewline
4 & 0.023417 & 0.1588 & 0.437252 \tabularnewline
5 & -0.209773 & -1.4227 & 0.080778 \tabularnewline
6 & -0.36696 & -2.4888 & 0.008248 \tabularnewline
7 & -0.448147 & -3.0395 & 0.001951 \tabularnewline
8 & -0.20041 & -1.3592 & 0.090347 \tabularnewline
9 & 0.097257 & 0.6596 & 0.256391 \tabularnewline
10 & -0.227478 & -1.5428 & 0.064862 \tabularnewline
11 & -0.181596 & -1.2316 & 0.11217 \tabularnewline
12 & 0.371349 & 2.5186 & 0.007662 \tabularnewline
13 & -0.076187 & -0.5167 & 0.303911 \tabularnewline
14 & 0.055467 & 0.3762 & 0.354251 \tabularnewline
15 & -0.086613 & -0.5874 & 0.279892 \tabularnewline
16 & -0.072685 & -0.493 & 0.312189 \tabularnewline
17 & 0.056374 & 0.3824 & 0.351981 \tabularnewline
18 & -0.017347 & -0.1177 & 0.453427 \tabularnewline
19 & -0.014367 & -0.0974 & 0.4614 \tabularnewline
20 & 0.138337 & 0.9382 & 0.176509 \tabularnewline
21 & 0.001815 & 0.0123 & 0.495117 \tabularnewline
22 & -0.003869 & -0.0262 & 0.489589 \tabularnewline
23 & -0.055545 & -0.3767 & 0.354056 \tabularnewline
24 & -0.124959 & -0.8475 & 0.200548 \tabularnewline
25 & 0.020518 & 0.1392 & 0.444966 \tabularnewline
26 & 0.070034 & 0.475 & 0.318519 \tabularnewline
27 & 0.066882 & 0.4536 & 0.32612 \tabularnewline
28 & -0.056963 & -0.3863 & 0.350514 \tabularnewline
29 & -0.099281 & -0.6734 & 0.252045 \tabularnewline
30 & 0.111676 & 0.7574 & 0.22633 \tabularnewline
31 & 0.037892 & 0.257 & 0.399164 \tabularnewline
32 & -0.038192 & -0.259 & 0.398383 \tabularnewline
33 & 0.015189 & 0.103 & 0.459199 \tabularnewline
34 & 0.007039 & 0.0477 & 0.481065 \tabularnewline
35 & 0.006027 & 0.0409 & 0.483784 \tabularnewline
36 & 0.027353 & 0.1855 & 0.426819 \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.029902[/C][C]-0.2028[/C][C]0.420092[/C][/ROW]
[ROW][C]2[/C][C]-0.311341[/C][C]-2.1116[/C][C]0.020091[/C][/ROW]
[ROW][C]3[/C][C]0.217459[/C][C]1.4749[/C][C]0.073529[/C][/ROW]
[ROW][C]4[/C][C]0.023417[/C][C]0.1588[/C][C]0.437252[/C][/ROW]
[ROW][C]5[/C][C]-0.209773[/C][C]-1.4227[/C][C]0.080778[/C][/ROW]
[ROW][C]6[/C][C]-0.36696[/C][C]-2.4888[/C][C]0.008248[/C][/ROW]
[ROW][C]7[/C][C]-0.448147[/C][C]-3.0395[/C][C]0.001951[/C][/ROW]
[ROW][C]8[/C][C]-0.20041[/C][C]-1.3592[/C][C]0.090347[/C][/ROW]
[ROW][C]9[/C][C]0.097257[/C][C]0.6596[/C][C]0.256391[/C][/ROW]
[ROW][C]10[/C][C]-0.227478[/C][C]-1.5428[/C][C]0.064862[/C][/ROW]
[ROW][C]11[/C][C]-0.181596[/C][C]-1.2316[/C][C]0.11217[/C][/ROW]
[ROW][C]12[/C][C]0.371349[/C][C]2.5186[/C][C]0.007662[/C][/ROW]
[ROW][C]13[/C][C]-0.076187[/C][C]-0.5167[/C][C]0.303911[/C][/ROW]
[ROW][C]14[/C][C]0.055467[/C][C]0.3762[/C][C]0.354251[/C][/ROW]
[ROW][C]15[/C][C]-0.086613[/C][C]-0.5874[/C][C]0.279892[/C][/ROW]
[ROW][C]16[/C][C]-0.072685[/C][C]-0.493[/C][C]0.312189[/C][/ROW]
[ROW][C]17[/C][C]0.056374[/C][C]0.3824[/C][C]0.351981[/C][/ROW]
[ROW][C]18[/C][C]-0.017347[/C][C]-0.1177[/C][C]0.453427[/C][/ROW]
[ROW][C]19[/C][C]-0.014367[/C][C]-0.0974[/C][C]0.4614[/C][/ROW]
[ROW][C]20[/C][C]0.138337[/C][C]0.9382[/C][C]0.176509[/C][/ROW]
[ROW][C]21[/C][C]0.001815[/C][C]0.0123[/C][C]0.495117[/C][/ROW]
[ROW][C]22[/C][C]-0.003869[/C][C]-0.0262[/C][C]0.489589[/C][/ROW]
[ROW][C]23[/C][C]-0.055545[/C][C]-0.3767[/C][C]0.354056[/C][/ROW]
[ROW][C]24[/C][C]-0.124959[/C][C]-0.8475[/C][C]0.200548[/C][/ROW]
[ROW][C]25[/C][C]0.020518[/C][C]0.1392[/C][C]0.444966[/C][/ROW]
[ROW][C]26[/C][C]0.070034[/C][C]0.475[/C][C]0.318519[/C][/ROW]
[ROW][C]27[/C][C]0.066882[/C][C]0.4536[/C][C]0.32612[/C][/ROW]
[ROW][C]28[/C][C]-0.056963[/C][C]-0.3863[/C][C]0.350514[/C][/ROW]
[ROW][C]29[/C][C]-0.099281[/C][C]-0.6734[/C][C]0.252045[/C][/ROW]
[ROW][C]30[/C][C]0.111676[/C][C]0.7574[/C][C]0.22633[/C][/ROW]
[ROW][C]31[/C][C]0.037892[/C][C]0.257[/C][C]0.399164[/C][/ROW]
[ROW][C]32[/C][C]-0.038192[/C][C]-0.259[/C][C]0.398383[/C][/ROW]
[ROW][C]33[/C][C]0.015189[/C][C]0.103[/C][C]0.459199[/C][/ROW]
[ROW][C]34[/C][C]0.007039[/C][C]0.0477[/C][C]0.481065[/C][/ROW]
[ROW][C]35[/C][C]0.006027[/C][C]0.0409[/C][C]0.483784[/C][/ROW]
[ROW][C]36[/C][C]0.027353[/C][C]0.1855[/C][C]0.426819[/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
1-0.029902-0.20280.420092
2-0.311341-2.11160.020091
30.2174591.47490.073529
40.0234170.15880.437252
5-0.209773-1.42270.080778
6-0.36696-2.48880.008248
7-0.448147-3.03950.001951
8-0.20041-1.35920.090347
90.0972570.65960.256391
10-0.227478-1.54280.064862
11-0.181596-1.23160.11217
120.3713492.51860.007662
13-0.076187-0.51670.303911
140.0554670.37620.354251
15-0.086613-0.58740.279892
16-0.072685-0.4930.312189
170.0563740.38240.351981
18-0.017347-0.11770.453427
19-0.014367-0.09740.4614
200.1383370.93820.176509
210.0018150.01230.495117
22-0.003869-0.02620.489589
23-0.055545-0.37670.354056
24-0.124959-0.84750.200548
250.0205180.13920.444966
260.0700340.4750.318519
270.0668820.45360.32612
28-0.056963-0.38630.350514
29-0.099281-0.67340.252045
300.1116760.75740.22633
310.0378920.2570.399164
32-0.038192-0.2590.398383
330.0151890.1030.459199
340.0070390.04770.481065
350.0060270.04090.483784
360.0273530.18550.426819



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)
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')