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 computationMon, 07 Dec 2009 06:35:00 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/07/t1260193911w4p0t81jdx41y9j.htm/, Retrieved Sun, 05 May 2024 04:51:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64576, Retrieved Sun, 05 May 2024 04:51:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact135
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [data set] [2008-12-01 19:54:57] [b98453cac15ba1066b407e146608df68]
- RMP   [(Partial) Autocorrelation Function] [] [2009-11-27 14:48:46] [b98453cac15ba1066b407e146608df68]
-    D    [(Partial) Autocorrelation Function] [] [2009-12-04 11:57:00] [a4642ac6536e7ce898d9b031a7452eab]
-   P         [(Partial) Autocorrelation Function] [Review workshop 5] [2009-12-07 13:35:00] [a25640248f5f3c4d92f02a597edd3aef] [Current]
Feedback Forum

Post a new message
Dataseries X:
17
14
15
16
16
15
13
12
13
13
12
10
14
14
15
16
16
15
15
13
15
15
15
13
16
16
14
16
15
14
15
15
14
13
12
13
12
9
10
8
11
8
8
8
4
6
8
10
5
6
5
9
8
6
9
11
11
8
11
11
13




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64576&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]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64576&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64576&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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.273759-2.12050.019052
2-0.106841-0.82760.205591
3-0.038567-0.29870.383085
40.1421511.10110.137626
50.0712610.5520.291504
6-0.047808-0.37030.356224
7-0.033005-0.25570.399547
8-0.050574-0.39170.348317
90.128270.99360.16221
10-0.070509-0.54620.29349
11-0.003087-0.02390.490501
120.0590030.4570.324647
13-0.000501-0.00390.498458
14-0.216519-1.67720.049358
150.1003070.7770.220114
160.1376811.06650.145241
17-0.256861-1.98960.025598
180.1217650.94320.174683
19-0.139896-1.08360.141432
200.093090.72110.236832
21-0.150831-1.16830.123647
220.1026220.79490.214901
23-0.103574-0.80230.212778
24-0.089943-0.69670.244341
250.0702390.54410.294206
26-0.080161-0.62090.2685
270.0958670.74260.230317
280.0110150.08530.466145
29-0.136498-1.05730.147304
300.0052920.0410.483719
310.1928661.49390.070217
32-0.085714-0.66390.254637
330.0129390.10020.460249
340.031180.24150.404987
350.013060.10120.459881
360.0067950.05260.479098

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.273759 & -2.1205 & 0.019052 \tabularnewline
2 & -0.106841 & -0.8276 & 0.205591 \tabularnewline
3 & -0.038567 & -0.2987 & 0.383085 \tabularnewline
4 & 0.142151 & 1.1011 & 0.137626 \tabularnewline
5 & 0.071261 & 0.552 & 0.291504 \tabularnewline
6 & -0.047808 & -0.3703 & 0.356224 \tabularnewline
7 & -0.033005 & -0.2557 & 0.399547 \tabularnewline
8 & -0.050574 & -0.3917 & 0.348317 \tabularnewline
9 & 0.12827 & 0.9936 & 0.16221 \tabularnewline
10 & -0.070509 & -0.5462 & 0.29349 \tabularnewline
11 & -0.003087 & -0.0239 & 0.490501 \tabularnewline
12 & 0.059003 & 0.457 & 0.324647 \tabularnewline
13 & -0.000501 & -0.0039 & 0.498458 \tabularnewline
14 & -0.216519 & -1.6772 & 0.049358 \tabularnewline
15 & 0.100307 & 0.777 & 0.220114 \tabularnewline
16 & 0.137681 & 1.0665 & 0.145241 \tabularnewline
17 & -0.256861 & -1.9896 & 0.025598 \tabularnewline
18 & 0.121765 & 0.9432 & 0.174683 \tabularnewline
19 & -0.139896 & -1.0836 & 0.141432 \tabularnewline
20 & 0.09309 & 0.7211 & 0.236832 \tabularnewline
21 & -0.150831 & -1.1683 & 0.123647 \tabularnewline
22 & 0.102622 & 0.7949 & 0.214901 \tabularnewline
23 & -0.103574 & -0.8023 & 0.212778 \tabularnewline
24 & -0.089943 & -0.6967 & 0.244341 \tabularnewline
25 & 0.070239 & 0.5441 & 0.294206 \tabularnewline
26 & -0.080161 & -0.6209 & 0.2685 \tabularnewline
27 & 0.095867 & 0.7426 & 0.230317 \tabularnewline
28 & 0.011015 & 0.0853 & 0.466145 \tabularnewline
29 & -0.136498 & -1.0573 & 0.147304 \tabularnewline
30 & 0.005292 & 0.041 & 0.483719 \tabularnewline
31 & 0.192866 & 1.4939 & 0.070217 \tabularnewline
32 & -0.085714 & -0.6639 & 0.254637 \tabularnewline
33 & 0.012939 & 0.1002 & 0.460249 \tabularnewline
34 & 0.03118 & 0.2415 & 0.404987 \tabularnewline
35 & 0.01306 & 0.1012 & 0.459881 \tabularnewline
36 & 0.006795 & 0.0526 & 0.479098 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64576&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.273759[/C][C]-2.1205[/C][C]0.019052[/C][/ROW]
[ROW][C]2[/C][C]-0.106841[/C][C]-0.8276[/C][C]0.205591[/C][/ROW]
[ROW][C]3[/C][C]-0.038567[/C][C]-0.2987[/C][C]0.383085[/C][/ROW]
[ROW][C]4[/C][C]0.142151[/C][C]1.1011[/C][C]0.137626[/C][/ROW]
[ROW][C]5[/C][C]0.071261[/C][C]0.552[/C][C]0.291504[/C][/ROW]
[ROW][C]6[/C][C]-0.047808[/C][C]-0.3703[/C][C]0.356224[/C][/ROW]
[ROW][C]7[/C][C]-0.033005[/C][C]-0.2557[/C][C]0.399547[/C][/ROW]
[ROW][C]8[/C][C]-0.050574[/C][C]-0.3917[/C][C]0.348317[/C][/ROW]
[ROW][C]9[/C][C]0.12827[/C][C]0.9936[/C][C]0.16221[/C][/ROW]
[ROW][C]10[/C][C]-0.070509[/C][C]-0.5462[/C][C]0.29349[/C][/ROW]
[ROW][C]11[/C][C]-0.003087[/C][C]-0.0239[/C][C]0.490501[/C][/ROW]
[ROW][C]12[/C][C]0.059003[/C][C]0.457[/C][C]0.324647[/C][/ROW]
[ROW][C]13[/C][C]-0.000501[/C][C]-0.0039[/C][C]0.498458[/C][/ROW]
[ROW][C]14[/C][C]-0.216519[/C][C]-1.6772[/C][C]0.049358[/C][/ROW]
[ROW][C]15[/C][C]0.100307[/C][C]0.777[/C][C]0.220114[/C][/ROW]
[ROW][C]16[/C][C]0.137681[/C][C]1.0665[/C][C]0.145241[/C][/ROW]
[ROW][C]17[/C][C]-0.256861[/C][C]-1.9896[/C][C]0.025598[/C][/ROW]
[ROW][C]18[/C][C]0.121765[/C][C]0.9432[/C][C]0.174683[/C][/ROW]
[ROW][C]19[/C][C]-0.139896[/C][C]-1.0836[/C][C]0.141432[/C][/ROW]
[ROW][C]20[/C][C]0.09309[/C][C]0.7211[/C][C]0.236832[/C][/ROW]
[ROW][C]21[/C][C]-0.150831[/C][C]-1.1683[/C][C]0.123647[/C][/ROW]
[ROW][C]22[/C][C]0.102622[/C][C]0.7949[/C][C]0.214901[/C][/ROW]
[ROW][C]23[/C][C]-0.103574[/C][C]-0.8023[/C][C]0.212778[/C][/ROW]
[ROW][C]24[/C][C]-0.089943[/C][C]-0.6967[/C][C]0.244341[/C][/ROW]
[ROW][C]25[/C][C]0.070239[/C][C]0.5441[/C][C]0.294206[/C][/ROW]
[ROW][C]26[/C][C]-0.080161[/C][C]-0.6209[/C][C]0.2685[/C][/ROW]
[ROW][C]27[/C][C]0.095867[/C][C]0.7426[/C][C]0.230317[/C][/ROW]
[ROW][C]28[/C][C]0.011015[/C][C]0.0853[/C][C]0.466145[/C][/ROW]
[ROW][C]29[/C][C]-0.136498[/C][C]-1.0573[/C][C]0.147304[/C][/ROW]
[ROW][C]30[/C][C]0.005292[/C][C]0.041[/C][C]0.483719[/C][/ROW]
[ROW][C]31[/C][C]0.192866[/C][C]1.4939[/C][C]0.070217[/C][/ROW]
[ROW][C]32[/C][C]-0.085714[/C][C]-0.6639[/C][C]0.254637[/C][/ROW]
[ROW][C]33[/C][C]0.012939[/C][C]0.1002[/C][C]0.460249[/C][/ROW]
[ROW][C]34[/C][C]0.03118[/C][C]0.2415[/C][C]0.404987[/C][/ROW]
[ROW][C]35[/C][C]0.01306[/C][C]0.1012[/C][C]0.459881[/C][/ROW]
[ROW][C]36[/C][C]0.006795[/C][C]0.0526[/C][C]0.479098[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64576&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64576&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.273759-2.12050.019052
2-0.106841-0.82760.205591
3-0.038567-0.29870.383085
40.1421511.10110.137626
50.0712610.5520.291504
6-0.047808-0.37030.356224
7-0.033005-0.25570.399547
8-0.050574-0.39170.348317
90.128270.99360.16221
10-0.070509-0.54620.29349
11-0.003087-0.02390.490501
120.0590030.4570.324647
13-0.000501-0.00390.498458
14-0.216519-1.67720.049358
150.1003070.7770.220114
160.1376811.06650.145241
17-0.256861-1.98960.025598
180.1217650.94320.174683
19-0.139896-1.08360.141432
200.093090.72110.236832
21-0.150831-1.16830.123647
220.1026220.79490.214901
23-0.103574-0.80230.212778
24-0.089943-0.69670.244341
250.0702390.54410.294206
26-0.080161-0.62090.2685
270.0958670.74260.230317
280.0110150.08530.466145
29-0.136498-1.05730.147304
300.0052920.0410.483719
310.1928661.49390.070217
32-0.085714-0.66390.254637
330.0129390.10020.460249
340.031180.24150.404987
350.013060.10120.459881
360.0067950.05260.479098







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.273759-2.12050.019052
2-0.196513-1.52220.066609
3-0.143209-1.10930.135865
40.0725760.56220.288046
50.1372941.06350.145915
60.0639650.49550.311038
70.0192810.14940.440889
8-0.079408-0.61510.270411
90.0546030.4230.336921
10-0.049202-0.38110.352232
11-0.010199-0.0790.468648
120.0842870.65290.258163
130.0349140.27040.393873
14-0.233297-1.80710.037879
15-0.042371-0.32820.371951
160.1046570.81070.210379
17-0.231487-1.79310.039
180.081630.63230.264797
19-0.102932-0.79730.214208
20-0.02841-0.22010.413286
21-0.189488-1.46780.073695
220.0357860.27720.391292
23-0.058781-0.45530.325262
24-0.200221-1.55090.063092
25-0.024902-0.19290.423848
26-0.039431-0.30540.380546
270.0033420.02590.489715
280.0463980.35940.360279
29-0.071188-0.55140.291697
300.0007710.0060.497627
310.0432320.33490.369445
320.0017390.01350.494648
330.0973670.75420.22684
340.0289450.22420.411679
350.037280.28880.386876
36-0.035392-0.27410.392457

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.273759 & -2.1205 & 0.019052 \tabularnewline
2 & -0.196513 & -1.5222 & 0.066609 \tabularnewline
3 & -0.143209 & -1.1093 & 0.135865 \tabularnewline
4 & 0.072576 & 0.5622 & 0.288046 \tabularnewline
5 & 0.137294 & 1.0635 & 0.145915 \tabularnewline
6 & 0.063965 & 0.4955 & 0.311038 \tabularnewline
7 & 0.019281 & 0.1494 & 0.440889 \tabularnewline
8 & -0.079408 & -0.6151 & 0.270411 \tabularnewline
9 & 0.054603 & 0.423 & 0.336921 \tabularnewline
10 & -0.049202 & -0.3811 & 0.352232 \tabularnewline
11 & -0.010199 & -0.079 & 0.468648 \tabularnewline
12 & 0.084287 & 0.6529 & 0.258163 \tabularnewline
13 & 0.034914 & 0.2704 & 0.393873 \tabularnewline
14 & -0.233297 & -1.8071 & 0.037879 \tabularnewline
15 & -0.042371 & -0.3282 & 0.371951 \tabularnewline
16 & 0.104657 & 0.8107 & 0.210379 \tabularnewline
17 & -0.231487 & -1.7931 & 0.039 \tabularnewline
18 & 0.08163 & 0.6323 & 0.264797 \tabularnewline
19 & -0.102932 & -0.7973 & 0.214208 \tabularnewline
20 & -0.02841 & -0.2201 & 0.413286 \tabularnewline
21 & -0.189488 & -1.4678 & 0.073695 \tabularnewline
22 & 0.035786 & 0.2772 & 0.391292 \tabularnewline
23 & -0.058781 & -0.4553 & 0.325262 \tabularnewline
24 & -0.200221 & -1.5509 & 0.063092 \tabularnewline
25 & -0.024902 & -0.1929 & 0.423848 \tabularnewline
26 & -0.039431 & -0.3054 & 0.380546 \tabularnewline
27 & 0.003342 & 0.0259 & 0.489715 \tabularnewline
28 & 0.046398 & 0.3594 & 0.360279 \tabularnewline
29 & -0.071188 & -0.5514 & 0.291697 \tabularnewline
30 & 0.000771 & 0.006 & 0.497627 \tabularnewline
31 & 0.043232 & 0.3349 & 0.369445 \tabularnewline
32 & 0.001739 & 0.0135 & 0.494648 \tabularnewline
33 & 0.097367 & 0.7542 & 0.22684 \tabularnewline
34 & 0.028945 & 0.2242 & 0.411679 \tabularnewline
35 & 0.03728 & 0.2888 & 0.386876 \tabularnewline
36 & -0.035392 & -0.2741 & 0.392457 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64576&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.273759[/C][C]-2.1205[/C][C]0.019052[/C][/ROW]
[ROW][C]2[/C][C]-0.196513[/C][C]-1.5222[/C][C]0.066609[/C][/ROW]
[ROW][C]3[/C][C]-0.143209[/C][C]-1.1093[/C][C]0.135865[/C][/ROW]
[ROW][C]4[/C][C]0.072576[/C][C]0.5622[/C][C]0.288046[/C][/ROW]
[ROW][C]5[/C][C]0.137294[/C][C]1.0635[/C][C]0.145915[/C][/ROW]
[ROW][C]6[/C][C]0.063965[/C][C]0.4955[/C][C]0.311038[/C][/ROW]
[ROW][C]7[/C][C]0.019281[/C][C]0.1494[/C][C]0.440889[/C][/ROW]
[ROW][C]8[/C][C]-0.079408[/C][C]-0.6151[/C][C]0.270411[/C][/ROW]
[ROW][C]9[/C][C]0.054603[/C][C]0.423[/C][C]0.336921[/C][/ROW]
[ROW][C]10[/C][C]-0.049202[/C][C]-0.3811[/C][C]0.352232[/C][/ROW]
[ROW][C]11[/C][C]-0.010199[/C][C]-0.079[/C][C]0.468648[/C][/ROW]
[ROW][C]12[/C][C]0.084287[/C][C]0.6529[/C][C]0.258163[/C][/ROW]
[ROW][C]13[/C][C]0.034914[/C][C]0.2704[/C][C]0.393873[/C][/ROW]
[ROW][C]14[/C][C]-0.233297[/C][C]-1.8071[/C][C]0.037879[/C][/ROW]
[ROW][C]15[/C][C]-0.042371[/C][C]-0.3282[/C][C]0.371951[/C][/ROW]
[ROW][C]16[/C][C]0.104657[/C][C]0.8107[/C][C]0.210379[/C][/ROW]
[ROW][C]17[/C][C]-0.231487[/C][C]-1.7931[/C][C]0.039[/C][/ROW]
[ROW][C]18[/C][C]0.08163[/C][C]0.6323[/C][C]0.264797[/C][/ROW]
[ROW][C]19[/C][C]-0.102932[/C][C]-0.7973[/C][C]0.214208[/C][/ROW]
[ROW][C]20[/C][C]-0.02841[/C][C]-0.2201[/C][C]0.413286[/C][/ROW]
[ROW][C]21[/C][C]-0.189488[/C][C]-1.4678[/C][C]0.073695[/C][/ROW]
[ROW][C]22[/C][C]0.035786[/C][C]0.2772[/C][C]0.391292[/C][/ROW]
[ROW][C]23[/C][C]-0.058781[/C][C]-0.4553[/C][C]0.325262[/C][/ROW]
[ROW][C]24[/C][C]-0.200221[/C][C]-1.5509[/C][C]0.063092[/C][/ROW]
[ROW][C]25[/C][C]-0.024902[/C][C]-0.1929[/C][C]0.423848[/C][/ROW]
[ROW][C]26[/C][C]-0.039431[/C][C]-0.3054[/C][C]0.380546[/C][/ROW]
[ROW][C]27[/C][C]0.003342[/C][C]0.0259[/C][C]0.489715[/C][/ROW]
[ROW][C]28[/C][C]0.046398[/C][C]0.3594[/C][C]0.360279[/C][/ROW]
[ROW][C]29[/C][C]-0.071188[/C][C]-0.5514[/C][C]0.291697[/C][/ROW]
[ROW][C]30[/C][C]0.000771[/C][C]0.006[/C][C]0.497627[/C][/ROW]
[ROW][C]31[/C][C]0.043232[/C][C]0.3349[/C][C]0.369445[/C][/ROW]
[ROW][C]32[/C][C]0.001739[/C][C]0.0135[/C][C]0.494648[/C][/ROW]
[ROW][C]33[/C][C]0.097367[/C][C]0.7542[/C][C]0.22684[/C][/ROW]
[ROW][C]34[/C][C]0.028945[/C][C]0.2242[/C][C]0.411679[/C][/ROW]
[ROW][C]35[/C][C]0.03728[/C][C]0.2888[/C][C]0.386876[/C][/ROW]
[ROW][C]36[/C][C]-0.035392[/C][C]-0.2741[/C][C]0.392457[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64576&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64576&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.273759-2.12050.019052
2-0.196513-1.52220.066609
3-0.143209-1.10930.135865
40.0725760.56220.288046
50.1372941.06350.145915
60.0639650.49550.311038
70.0192810.14940.440889
8-0.079408-0.61510.270411
90.0546030.4230.336921
10-0.049202-0.38110.352232
11-0.010199-0.0790.468648
120.0842870.65290.258163
130.0349140.27040.393873
14-0.233297-1.80710.037879
15-0.042371-0.32820.371951
160.1046570.81070.210379
17-0.231487-1.79310.039
180.081630.63230.264797
19-0.102932-0.79730.214208
20-0.02841-0.22010.413286
21-0.189488-1.46780.073695
220.0357860.27720.391292
23-0.058781-0.45530.325262
24-0.200221-1.55090.063092
25-0.024902-0.19290.423848
26-0.039431-0.30540.380546
270.0033420.02590.489715
280.0463980.35940.360279
29-0.071188-0.55140.291697
300.0007710.0060.497627
310.0432320.33490.369445
320.0017390.01350.494648
330.0973670.75420.22684
340.0289450.22420.411679
350.037280.28880.386876
36-0.035392-0.27410.392457



Parameters (Session):
par1 = 36 ; par2 = 2.0 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
Parameters (R input):
par1 = 36 ; par2 = 2.0 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
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 (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
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')