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 computationTue, 28 Dec 2010 14:02:29 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/28/t1293544830snyrwcjiiny2cv0.htm/, Retrieved Sat, 04 May 2024 20:21:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=116366, Retrieved Sat, 04 May 2024 20:21:46 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact104
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [Autocorrelatie2] [2010-12-28 14:02:29] [a35bd1e3fb5b4b301d5250bc2f7eb297] [Current]
Feedback Forum

Post a new message
Dataseries X:
5
0
-2
6
11
9
17
21
21
41
57
65
68
73
71
71
70
69
65
57
57
57
55
65
65
64
60
43
47
40
31
27
24
23
17
16




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116366&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]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116366&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116366&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'George Udny Yule' @ 72.249.76.132







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3804182.25060.015399
20.269041.59170.060227
30.3656292.16310.018724
40.0836030.49460.311985
50.1161910.68740.248182
60.0616450.36470.358767
70.0652390.3860.350931
8-0.034813-0.2060.419008
9-0.158584-0.93820.177286
10-0.053807-0.31830.376064
110.0041710.02470.490227
120.0215730.12760.449588
130.0810680.47960.317247
140.0681840.40340.344562
15-0.0459-0.27150.393782
16-0.128802-0.7620.225582
17-0.14927-0.88310.191605
18-0.21902-1.29570.101773
19-0.074787-0.44240.330445
20-0.204143-1.20770.117625
21-0.260913-1.54360.065842
22-0.124781-0.73820.232652
23-0.208269-1.23210.113056
24-0.183024-1.08280.143153
25-0.067129-0.39710.346837
26-0.036558-0.21630.415012
27-0.072247-0.42740.335846
28-0.023284-0.13780.445614
290.0195250.11550.454349
30-0.003649-0.02160.491449
31-0.020532-0.12150.452006
320.0069360.0410.483752
330.0220790.13060.448411
340.0042140.02490.490127
35NANANA
36NANANA

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.380418 & 2.2506 & 0.015399 \tabularnewline
2 & 0.26904 & 1.5917 & 0.060227 \tabularnewline
3 & 0.365629 & 2.1631 & 0.018724 \tabularnewline
4 & 0.083603 & 0.4946 & 0.311985 \tabularnewline
5 & 0.116191 & 0.6874 & 0.248182 \tabularnewline
6 & 0.061645 & 0.3647 & 0.358767 \tabularnewline
7 & 0.065239 & 0.386 & 0.350931 \tabularnewline
8 & -0.034813 & -0.206 & 0.419008 \tabularnewline
9 & -0.158584 & -0.9382 & 0.177286 \tabularnewline
10 & -0.053807 & -0.3183 & 0.376064 \tabularnewline
11 & 0.004171 & 0.0247 & 0.490227 \tabularnewline
12 & 0.021573 & 0.1276 & 0.449588 \tabularnewline
13 & 0.081068 & 0.4796 & 0.317247 \tabularnewline
14 & 0.068184 & 0.4034 & 0.344562 \tabularnewline
15 & -0.0459 & -0.2715 & 0.393782 \tabularnewline
16 & -0.128802 & -0.762 & 0.225582 \tabularnewline
17 & -0.14927 & -0.8831 & 0.191605 \tabularnewline
18 & -0.21902 & -1.2957 & 0.101773 \tabularnewline
19 & -0.074787 & -0.4424 & 0.330445 \tabularnewline
20 & -0.204143 & -1.2077 & 0.117625 \tabularnewline
21 & -0.260913 & -1.5436 & 0.065842 \tabularnewline
22 & -0.124781 & -0.7382 & 0.232652 \tabularnewline
23 & -0.208269 & -1.2321 & 0.113056 \tabularnewline
24 & -0.183024 & -1.0828 & 0.143153 \tabularnewline
25 & -0.067129 & -0.3971 & 0.346837 \tabularnewline
26 & -0.036558 & -0.2163 & 0.415012 \tabularnewline
27 & -0.072247 & -0.4274 & 0.335846 \tabularnewline
28 & -0.023284 & -0.1378 & 0.445614 \tabularnewline
29 & 0.019525 & 0.1155 & 0.454349 \tabularnewline
30 & -0.003649 & -0.0216 & 0.491449 \tabularnewline
31 & -0.020532 & -0.1215 & 0.452006 \tabularnewline
32 & 0.006936 & 0.041 & 0.483752 \tabularnewline
33 & 0.022079 & 0.1306 & 0.448411 \tabularnewline
34 & 0.004214 & 0.0249 & 0.490127 \tabularnewline
35 & NA & NA & NA \tabularnewline
36 & NA & NA & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116366&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.380418[/C][C]2.2506[/C][C]0.015399[/C][/ROW]
[ROW][C]2[/C][C]0.26904[/C][C]1.5917[/C][C]0.060227[/C][/ROW]
[ROW][C]3[/C][C]0.365629[/C][C]2.1631[/C][C]0.018724[/C][/ROW]
[ROW][C]4[/C][C]0.083603[/C][C]0.4946[/C][C]0.311985[/C][/ROW]
[ROW][C]5[/C][C]0.116191[/C][C]0.6874[/C][C]0.248182[/C][/ROW]
[ROW][C]6[/C][C]0.061645[/C][C]0.3647[/C][C]0.358767[/C][/ROW]
[ROW][C]7[/C][C]0.065239[/C][C]0.386[/C][C]0.350931[/C][/ROW]
[ROW][C]8[/C][C]-0.034813[/C][C]-0.206[/C][C]0.419008[/C][/ROW]
[ROW][C]9[/C][C]-0.158584[/C][C]-0.9382[/C][C]0.177286[/C][/ROW]
[ROW][C]10[/C][C]-0.053807[/C][C]-0.3183[/C][C]0.376064[/C][/ROW]
[ROW][C]11[/C][C]0.004171[/C][C]0.0247[/C][C]0.490227[/C][/ROW]
[ROW][C]12[/C][C]0.021573[/C][C]0.1276[/C][C]0.449588[/C][/ROW]
[ROW][C]13[/C][C]0.081068[/C][C]0.4796[/C][C]0.317247[/C][/ROW]
[ROW][C]14[/C][C]0.068184[/C][C]0.4034[/C][C]0.344562[/C][/ROW]
[ROW][C]15[/C][C]-0.0459[/C][C]-0.2715[/C][C]0.393782[/C][/ROW]
[ROW][C]16[/C][C]-0.128802[/C][C]-0.762[/C][C]0.225582[/C][/ROW]
[ROW][C]17[/C][C]-0.14927[/C][C]-0.8831[/C][C]0.191605[/C][/ROW]
[ROW][C]18[/C][C]-0.21902[/C][C]-1.2957[/C][C]0.101773[/C][/ROW]
[ROW][C]19[/C][C]-0.074787[/C][C]-0.4424[/C][C]0.330445[/C][/ROW]
[ROW][C]20[/C][C]-0.204143[/C][C]-1.2077[/C][C]0.117625[/C][/ROW]
[ROW][C]21[/C][C]-0.260913[/C][C]-1.5436[/C][C]0.065842[/C][/ROW]
[ROW][C]22[/C][C]-0.124781[/C][C]-0.7382[/C][C]0.232652[/C][/ROW]
[ROW][C]23[/C][C]-0.208269[/C][C]-1.2321[/C][C]0.113056[/C][/ROW]
[ROW][C]24[/C][C]-0.183024[/C][C]-1.0828[/C][C]0.143153[/C][/ROW]
[ROW][C]25[/C][C]-0.067129[/C][C]-0.3971[/C][C]0.346837[/C][/ROW]
[ROW][C]26[/C][C]-0.036558[/C][C]-0.2163[/C][C]0.415012[/C][/ROW]
[ROW][C]27[/C][C]-0.072247[/C][C]-0.4274[/C][C]0.335846[/C][/ROW]
[ROW][C]28[/C][C]-0.023284[/C][C]-0.1378[/C][C]0.445614[/C][/ROW]
[ROW][C]29[/C][C]0.019525[/C][C]0.1155[/C][C]0.454349[/C][/ROW]
[ROW][C]30[/C][C]-0.003649[/C][C]-0.0216[/C][C]0.491449[/C][/ROW]
[ROW][C]31[/C][C]-0.020532[/C][C]-0.1215[/C][C]0.452006[/C][/ROW]
[ROW][C]32[/C][C]0.006936[/C][C]0.041[/C][C]0.483752[/C][/ROW]
[ROW][C]33[/C][C]0.022079[/C][C]0.1306[/C][C]0.448411[/C][/ROW]
[ROW][C]34[/C][C]0.004214[/C][C]0.0249[/C][C]0.490127[/C][/ROW]
[ROW][C]35[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]36[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116366&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116366&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.3804182.25060.015399
20.269041.59170.060227
30.3656292.16310.018724
40.0836030.49460.311985
50.1161910.68740.248182
60.0616450.36470.358767
70.0652390.3860.350931
8-0.034813-0.2060.419008
9-0.158584-0.93820.177286
10-0.053807-0.31830.376064
110.0041710.02470.490227
120.0215730.12760.449588
130.0810680.47960.317247
140.0681840.40340.344562
15-0.0459-0.27150.393782
16-0.128802-0.7620.225582
17-0.14927-0.88310.191605
18-0.21902-1.29570.101773
19-0.074787-0.44240.330445
20-0.204143-1.20770.117625
21-0.260913-1.54360.065842
22-0.124781-0.73820.232652
23-0.208269-1.23210.113056
24-0.183024-1.08280.143153
25-0.067129-0.39710.346837
26-0.036558-0.21630.415012
27-0.072247-0.42740.335846
28-0.023284-0.13780.445614
290.0195250.11550.454349
30-0.003649-0.02160.491449
31-0.020532-0.12150.452006
320.0069360.0410.483752
330.0220790.13060.448411
340.0042140.02490.490127
35NANANA
36NANANA







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3804182.25060.015399
20.1453580.860.197834
30.2661961.57480.062146
4-0.177675-1.05110.150199
50.0600640.35530.362232
6-0.08878-0.52520.301368
70.1228030.72650.236177
8-0.170844-1.01070.159542
9-0.122016-0.72190.237588
100.0031220.01850.492685
110.1723461.01960.157455
120.0838570.49610.311462
130.0487130.28820.38745
14-0.043279-0.2560.399709
15-0.136838-0.80950.211836
16-0.163969-0.97010.169338
17-0.128556-0.76050.226011
18-0.161049-0.95280.173619
190.1903851.12630.133844
20-0.13678-0.80920.211933
21-0.009035-0.05350.478838
22-0.004718-0.02790.488945
230.043630.25810.398914
24-0.147289-0.87140.194744
25-0.010918-0.06460.474434
26-0.067759-0.40090.345476
27-0.023085-0.13660.446076
280.0884620.52330.302015
290.0806650.47720.318087
300.0227060.13430.446956
31-0.019475-0.11520.454466
32-0.061599-0.36440.358866
33-0.0489-0.28930.387031
34-0.00409-0.02420.490417
35NANANA
36NANANA

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.380418 & 2.2506 & 0.015399 \tabularnewline
2 & 0.145358 & 0.86 & 0.197834 \tabularnewline
3 & 0.266196 & 1.5748 & 0.062146 \tabularnewline
4 & -0.177675 & -1.0511 & 0.150199 \tabularnewline
5 & 0.060064 & 0.3553 & 0.362232 \tabularnewline
6 & -0.08878 & -0.5252 & 0.301368 \tabularnewline
7 & 0.122803 & 0.7265 & 0.236177 \tabularnewline
8 & -0.170844 & -1.0107 & 0.159542 \tabularnewline
9 & -0.122016 & -0.7219 & 0.237588 \tabularnewline
10 & 0.003122 & 0.0185 & 0.492685 \tabularnewline
11 & 0.172346 & 1.0196 & 0.157455 \tabularnewline
12 & 0.083857 & 0.4961 & 0.311462 \tabularnewline
13 & 0.048713 & 0.2882 & 0.38745 \tabularnewline
14 & -0.043279 & -0.256 & 0.399709 \tabularnewline
15 & -0.136838 & -0.8095 & 0.211836 \tabularnewline
16 & -0.163969 & -0.9701 & 0.169338 \tabularnewline
17 & -0.128556 & -0.7605 & 0.226011 \tabularnewline
18 & -0.161049 & -0.9528 & 0.173619 \tabularnewline
19 & 0.190385 & 1.1263 & 0.133844 \tabularnewline
20 & -0.13678 & -0.8092 & 0.211933 \tabularnewline
21 & -0.009035 & -0.0535 & 0.478838 \tabularnewline
22 & -0.004718 & -0.0279 & 0.488945 \tabularnewline
23 & 0.04363 & 0.2581 & 0.398914 \tabularnewline
24 & -0.147289 & -0.8714 & 0.194744 \tabularnewline
25 & -0.010918 & -0.0646 & 0.474434 \tabularnewline
26 & -0.067759 & -0.4009 & 0.345476 \tabularnewline
27 & -0.023085 & -0.1366 & 0.446076 \tabularnewline
28 & 0.088462 & 0.5233 & 0.302015 \tabularnewline
29 & 0.080665 & 0.4772 & 0.318087 \tabularnewline
30 & 0.022706 & 0.1343 & 0.446956 \tabularnewline
31 & -0.019475 & -0.1152 & 0.454466 \tabularnewline
32 & -0.061599 & -0.3644 & 0.358866 \tabularnewline
33 & -0.0489 & -0.2893 & 0.387031 \tabularnewline
34 & -0.00409 & -0.0242 & 0.490417 \tabularnewline
35 & NA & NA & NA \tabularnewline
36 & NA & NA & NA \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116366&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.380418[/C][C]2.2506[/C][C]0.015399[/C][/ROW]
[ROW][C]2[/C][C]0.145358[/C][C]0.86[/C][C]0.197834[/C][/ROW]
[ROW][C]3[/C][C]0.266196[/C][C]1.5748[/C][C]0.062146[/C][/ROW]
[ROW][C]4[/C][C]-0.177675[/C][C]-1.0511[/C][C]0.150199[/C][/ROW]
[ROW][C]5[/C][C]0.060064[/C][C]0.3553[/C][C]0.362232[/C][/ROW]
[ROW][C]6[/C][C]-0.08878[/C][C]-0.5252[/C][C]0.301368[/C][/ROW]
[ROW][C]7[/C][C]0.122803[/C][C]0.7265[/C][C]0.236177[/C][/ROW]
[ROW][C]8[/C][C]-0.170844[/C][C]-1.0107[/C][C]0.159542[/C][/ROW]
[ROW][C]9[/C][C]-0.122016[/C][C]-0.7219[/C][C]0.237588[/C][/ROW]
[ROW][C]10[/C][C]0.003122[/C][C]0.0185[/C][C]0.492685[/C][/ROW]
[ROW][C]11[/C][C]0.172346[/C][C]1.0196[/C][C]0.157455[/C][/ROW]
[ROW][C]12[/C][C]0.083857[/C][C]0.4961[/C][C]0.311462[/C][/ROW]
[ROW][C]13[/C][C]0.048713[/C][C]0.2882[/C][C]0.38745[/C][/ROW]
[ROW][C]14[/C][C]-0.043279[/C][C]-0.256[/C][C]0.399709[/C][/ROW]
[ROW][C]15[/C][C]-0.136838[/C][C]-0.8095[/C][C]0.211836[/C][/ROW]
[ROW][C]16[/C][C]-0.163969[/C][C]-0.9701[/C][C]0.169338[/C][/ROW]
[ROW][C]17[/C][C]-0.128556[/C][C]-0.7605[/C][C]0.226011[/C][/ROW]
[ROW][C]18[/C][C]-0.161049[/C][C]-0.9528[/C][C]0.173619[/C][/ROW]
[ROW][C]19[/C][C]0.190385[/C][C]1.1263[/C][C]0.133844[/C][/ROW]
[ROW][C]20[/C][C]-0.13678[/C][C]-0.8092[/C][C]0.211933[/C][/ROW]
[ROW][C]21[/C][C]-0.009035[/C][C]-0.0535[/C][C]0.478838[/C][/ROW]
[ROW][C]22[/C][C]-0.004718[/C][C]-0.0279[/C][C]0.488945[/C][/ROW]
[ROW][C]23[/C][C]0.04363[/C][C]0.2581[/C][C]0.398914[/C][/ROW]
[ROW][C]24[/C][C]-0.147289[/C][C]-0.8714[/C][C]0.194744[/C][/ROW]
[ROW][C]25[/C][C]-0.010918[/C][C]-0.0646[/C][C]0.474434[/C][/ROW]
[ROW][C]26[/C][C]-0.067759[/C][C]-0.4009[/C][C]0.345476[/C][/ROW]
[ROW][C]27[/C][C]-0.023085[/C][C]-0.1366[/C][C]0.446076[/C][/ROW]
[ROW][C]28[/C][C]0.088462[/C][C]0.5233[/C][C]0.302015[/C][/ROW]
[ROW][C]29[/C][C]0.080665[/C][C]0.4772[/C][C]0.318087[/C][/ROW]
[ROW][C]30[/C][C]0.022706[/C][C]0.1343[/C][C]0.446956[/C][/ROW]
[ROW][C]31[/C][C]-0.019475[/C][C]-0.1152[/C][C]0.454466[/C][/ROW]
[ROW][C]32[/C][C]-0.061599[/C][C]-0.3644[/C][C]0.358866[/C][/ROW]
[ROW][C]33[/C][C]-0.0489[/C][C]-0.2893[/C][C]0.387031[/C][/ROW]
[ROW][C]34[/C][C]-0.00409[/C][C]-0.0242[/C][C]0.490417[/C][/ROW]
[ROW][C]35[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[ROW][C]36[/C][C]NA[/C][C]NA[/C][C]NA[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116366&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116366&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.3804182.25060.015399
20.1453580.860.197834
30.2661961.57480.062146
4-0.177675-1.05110.150199
50.0600640.35530.362232
6-0.08878-0.52520.301368
70.1228030.72650.236177
8-0.170844-1.01070.159542
9-0.122016-0.72190.237588
100.0031220.01850.492685
110.1723461.01960.157455
120.0838570.49610.311462
130.0487130.28820.38745
14-0.043279-0.2560.399709
15-0.136838-0.80950.211836
16-0.163969-0.97010.169338
17-0.128556-0.76050.226011
18-0.161049-0.95280.173619
190.1903851.12630.133844
20-0.13678-0.80920.211933
21-0.009035-0.05350.478838
22-0.004718-0.02790.488945
230.043630.25810.398914
24-0.147289-0.87140.194744
25-0.010918-0.06460.474434
26-0.067759-0.40090.345476
27-0.023085-0.13660.446076
280.0884620.52330.302015
290.0806650.47720.318087
300.0227060.13430.446956
31-0.019475-0.11520.454466
32-0.061599-0.36440.358866
33-0.0489-0.28930.387031
34-0.00409-0.02420.490417
35NANANA
36NANANA



Parameters (Session):
par1 = 1 ; par2 = 1 ; par3 = 0 ; par4 = 12 ;
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):
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')