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 computationWed, 25 Nov 2009 13:46:25 -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/Nov/25/t12591820430lx79qt44fk1a2g.htm/, Retrieved Tue, 07 May 2024 08:33:19 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59635, Retrieved Tue, 07 May 2024 08:33:19 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact211
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [Partiële autocorr...] [2009-11-21 19:59:09] [e2a6b1b31bd881219e1879835b4c60d0]
- R P     [(Partial) Autocorrelation Function] [Partiële autocorr...] [2009-11-25 20:46:25] [2622964eb3e61db9b0dfd11950e3a18c] [Current]
Feedback Forum

Post a new message
Dataseries X:
5560
3922
3759
4138
4634
3996
4308
4429
5219
4929
5755
5592
4163
4962
5208
4755
4491
5732
5731
5040
6102
4904
5369
5578
4619
4731
5011
5299
4146
4625
4736
4219
5116
4205
4121
5103
4300
4578
3809
5526
4247
3830
4394
4826
4409
4569
4106
4794
3914
3793
4405
4022
4100
4788
3163
3585
3903
4178
3863
4187




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

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.332096-2.27670.013699
2-0.296166-2.03040.023997
30.2469671.69310.048526
40.0626740.42970.334699
5-0.106958-0.73330.233519
6-0.03588-0.2460.403384
70.1286520.8820.191134
8-0.099995-0.68550.248189
9-0.136634-0.93670.176846
100.2565281.75870.042572
11-0.099043-0.6790.250233
12-0.201336-1.38030.087014
130.2568961.76120.042355
14-0.052207-0.35790.361006
15-0.121016-0.82960.205466
160.0072330.04960.480332
170.0029890.02050.49187
18-0.016257-0.11150.455867
190.0494610.33910.368028
20-0.013607-0.09330.463036
21-0.123024-0.84340.201636
220.1664681.14120.129774
230.0637090.43680.332141
24-0.22736-1.55870.062888
250.0501350.34370.3663
260.2532851.73640.044519
27-0.190285-1.30450.099203
28-0.033741-0.23130.409035
290.0860650.590.278998
300.0606270.41560.339782
31-0.162222-1.11210.135868
320.0856680.58730.279903
330.1001010.68630.247961
34-0.181853-1.24670.109339
350.0811870.55660.290225
360.074670.51190.305555

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.332096 & -2.2767 & 0.013699 \tabularnewline
2 & -0.296166 & -2.0304 & 0.023997 \tabularnewline
3 & 0.246967 & 1.6931 & 0.048526 \tabularnewline
4 & 0.062674 & 0.4297 & 0.334699 \tabularnewline
5 & -0.106958 & -0.7333 & 0.233519 \tabularnewline
6 & -0.03588 & -0.246 & 0.403384 \tabularnewline
7 & 0.128652 & 0.882 & 0.191134 \tabularnewline
8 & -0.099995 & -0.6855 & 0.248189 \tabularnewline
9 & -0.136634 & -0.9367 & 0.176846 \tabularnewline
10 & 0.256528 & 1.7587 & 0.042572 \tabularnewline
11 & -0.099043 & -0.679 & 0.250233 \tabularnewline
12 & -0.201336 & -1.3803 & 0.087014 \tabularnewline
13 & 0.256896 & 1.7612 & 0.042355 \tabularnewline
14 & -0.052207 & -0.3579 & 0.361006 \tabularnewline
15 & -0.121016 & -0.8296 & 0.205466 \tabularnewline
16 & 0.007233 & 0.0496 & 0.480332 \tabularnewline
17 & 0.002989 & 0.0205 & 0.49187 \tabularnewline
18 & -0.016257 & -0.1115 & 0.455867 \tabularnewline
19 & 0.049461 & 0.3391 & 0.368028 \tabularnewline
20 & -0.013607 & -0.0933 & 0.463036 \tabularnewline
21 & -0.123024 & -0.8434 & 0.201636 \tabularnewline
22 & 0.166468 & 1.1412 & 0.129774 \tabularnewline
23 & 0.063709 & 0.4368 & 0.332141 \tabularnewline
24 & -0.22736 & -1.5587 & 0.062888 \tabularnewline
25 & 0.050135 & 0.3437 & 0.3663 \tabularnewline
26 & 0.253285 & 1.7364 & 0.044519 \tabularnewline
27 & -0.190285 & -1.3045 & 0.099203 \tabularnewline
28 & -0.033741 & -0.2313 & 0.409035 \tabularnewline
29 & 0.086065 & 0.59 & 0.278998 \tabularnewline
30 & 0.060627 & 0.4156 & 0.339782 \tabularnewline
31 & -0.162222 & -1.1121 & 0.135868 \tabularnewline
32 & 0.085668 & 0.5873 & 0.279903 \tabularnewline
33 & 0.100101 & 0.6863 & 0.247961 \tabularnewline
34 & -0.181853 & -1.2467 & 0.109339 \tabularnewline
35 & 0.081187 & 0.5566 & 0.290225 \tabularnewline
36 & 0.07467 & 0.5119 & 0.305555 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59635&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.332096[/C][C]-2.2767[/C][C]0.013699[/C][/ROW]
[ROW][C]2[/C][C]-0.296166[/C][C]-2.0304[/C][C]0.023997[/C][/ROW]
[ROW][C]3[/C][C]0.246967[/C][C]1.6931[/C][C]0.048526[/C][/ROW]
[ROW][C]4[/C][C]0.062674[/C][C]0.4297[/C][C]0.334699[/C][/ROW]
[ROW][C]5[/C][C]-0.106958[/C][C]-0.7333[/C][C]0.233519[/C][/ROW]
[ROW][C]6[/C][C]-0.03588[/C][C]-0.246[/C][C]0.403384[/C][/ROW]
[ROW][C]7[/C][C]0.128652[/C][C]0.882[/C][C]0.191134[/C][/ROW]
[ROW][C]8[/C][C]-0.099995[/C][C]-0.6855[/C][C]0.248189[/C][/ROW]
[ROW][C]9[/C][C]-0.136634[/C][C]-0.9367[/C][C]0.176846[/C][/ROW]
[ROW][C]10[/C][C]0.256528[/C][C]1.7587[/C][C]0.042572[/C][/ROW]
[ROW][C]11[/C][C]-0.099043[/C][C]-0.679[/C][C]0.250233[/C][/ROW]
[ROW][C]12[/C][C]-0.201336[/C][C]-1.3803[/C][C]0.087014[/C][/ROW]
[ROW][C]13[/C][C]0.256896[/C][C]1.7612[/C][C]0.042355[/C][/ROW]
[ROW][C]14[/C][C]-0.052207[/C][C]-0.3579[/C][C]0.361006[/C][/ROW]
[ROW][C]15[/C][C]-0.121016[/C][C]-0.8296[/C][C]0.205466[/C][/ROW]
[ROW][C]16[/C][C]0.007233[/C][C]0.0496[/C][C]0.480332[/C][/ROW]
[ROW][C]17[/C][C]0.002989[/C][C]0.0205[/C][C]0.49187[/C][/ROW]
[ROW][C]18[/C][C]-0.016257[/C][C]-0.1115[/C][C]0.455867[/C][/ROW]
[ROW][C]19[/C][C]0.049461[/C][C]0.3391[/C][C]0.368028[/C][/ROW]
[ROW][C]20[/C][C]-0.013607[/C][C]-0.0933[/C][C]0.463036[/C][/ROW]
[ROW][C]21[/C][C]-0.123024[/C][C]-0.8434[/C][C]0.201636[/C][/ROW]
[ROW][C]22[/C][C]0.166468[/C][C]1.1412[/C][C]0.129774[/C][/ROW]
[ROW][C]23[/C][C]0.063709[/C][C]0.4368[/C][C]0.332141[/C][/ROW]
[ROW][C]24[/C][C]-0.22736[/C][C]-1.5587[/C][C]0.062888[/C][/ROW]
[ROW][C]25[/C][C]0.050135[/C][C]0.3437[/C][C]0.3663[/C][/ROW]
[ROW][C]26[/C][C]0.253285[/C][C]1.7364[/C][C]0.044519[/C][/ROW]
[ROW][C]27[/C][C]-0.190285[/C][C]-1.3045[/C][C]0.099203[/C][/ROW]
[ROW][C]28[/C][C]-0.033741[/C][C]-0.2313[/C][C]0.409035[/C][/ROW]
[ROW][C]29[/C][C]0.086065[/C][C]0.59[/C][C]0.278998[/C][/ROW]
[ROW][C]30[/C][C]0.060627[/C][C]0.4156[/C][C]0.339782[/C][/ROW]
[ROW][C]31[/C][C]-0.162222[/C][C]-1.1121[/C][C]0.135868[/C][/ROW]
[ROW][C]32[/C][C]0.085668[/C][C]0.5873[/C][C]0.279903[/C][/ROW]
[ROW][C]33[/C][C]0.100101[/C][C]0.6863[/C][C]0.247961[/C][/ROW]
[ROW][C]34[/C][C]-0.181853[/C][C]-1.2467[/C][C]0.109339[/C][/ROW]
[ROW][C]35[/C][C]0.081187[/C][C]0.5566[/C][C]0.290225[/C][/ROW]
[ROW][C]36[/C][C]0.07467[/C][C]0.5119[/C][C]0.305555[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59635&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59635&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.332096-2.27670.013699
2-0.296166-2.03040.023997
30.2469671.69310.048526
40.0626740.42970.334699
5-0.106958-0.73330.233519
6-0.03588-0.2460.403384
70.1286520.8820.191134
8-0.099995-0.68550.248189
9-0.136634-0.93670.176846
100.2565281.75870.042572
11-0.099043-0.6790.250233
12-0.201336-1.38030.087014
130.2568961.76120.042355
14-0.052207-0.35790.361006
15-0.121016-0.82960.205466
160.0072330.04960.480332
170.0029890.02050.49187
18-0.016257-0.11150.455867
190.0494610.33910.368028
20-0.013607-0.09330.463036
21-0.123024-0.84340.201636
220.1664681.14120.129774
230.0637090.43680.332141
24-0.22736-1.55870.062888
250.0501350.34370.3663
260.2532851.73640.044519
27-0.190285-1.30450.099203
28-0.033741-0.23130.409035
290.0860650.590.278998
300.0606270.41560.339782
31-0.162222-1.11210.135868
320.0856680.58730.279903
330.1001010.68630.247961
34-0.181853-1.24670.109339
350.0811870.55660.290225
360.074670.51190.305555







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.332096-2.27670.013699
2-0.456837-3.13190.001493
3-0.068228-0.46770.321063
40.031570.21640.414794
50.0534710.36660.35779
6-0.028014-0.19210.424265
70.0754870.51750.303613
8-0.068769-0.47150.319749
9-0.191161-1.31050.098191
100.0837140.57390.28438
11-0.038295-0.26250.397026
12-0.139028-0.95310.172701
130.093690.64230.261897
14-0.041895-0.28720.387605
15-0.022645-0.15520.438647
16-0.10032-0.68780.247493
17-0.197698-1.35540.090892
18-0.151636-1.03960.15193
190.0603430.41370.340492
20-0.031696-0.21730.41446
21-0.138117-0.94690.174271
220.156931.07590.143742
230.0609990.41820.338857
24-0.152269-1.04390.150934
25-0.078451-0.53780.296615
260.1181860.81020.210943
27-0.035005-0.240.405693
280.0826420.56660.286854
29-0.058098-0.39830.346106
300.0677870.46470.322138
31-0.027548-0.18890.425508
32-0.07415-0.50830.306793
33-0.071008-0.48680.314329
340.0322220.22090.413061
350.0687030.4710.319908
36-0.072214-0.49510.311428

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.332096 & -2.2767 & 0.013699 \tabularnewline
2 & -0.456837 & -3.1319 & 0.001493 \tabularnewline
3 & -0.068228 & -0.4677 & 0.321063 \tabularnewline
4 & 0.03157 & 0.2164 & 0.414794 \tabularnewline
5 & 0.053471 & 0.3666 & 0.35779 \tabularnewline
6 & -0.028014 & -0.1921 & 0.424265 \tabularnewline
7 & 0.075487 & 0.5175 & 0.303613 \tabularnewline
8 & -0.068769 & -0.4715 & 0.319749 \tabularnewline
9 & -0.191161 & -1.3105 & 0.098191 \tabularnewline
10 & 0.083714 & 0.5739 & 0.28438 \tabularnewline
11 & -0.038295 & -0.2625 & 0.397026 \tabularnewline
12 & -0.139028 & -0.9531 & 0.172701 \tabularnewline
13 & 0.09369 & 0.6423 & 0.261897 \tabularnewline
14 & -0.041895 & -0.2872 & 0.387605 \tabularnewline
15 & -0.022645 & -0.1552 & 0.438647 \tabularnewline
16 & -0.10032 & -0.6878 & 0.247493 \tabularnewline
17 & -0.197698 & -1.3554 & 0.090892 \tabularnewline
18 & -0.151636 & -1.0396 & 0.15193 \tabularnewline
19 & 0.060343 & 0.4137 & 0.340492 \tabularnewline
20 & -0.031696 & -0.2173 & 0.41446 \tabularnewline
21 & -0.138117 & -0.9469 & 0.174271 \tabularnewline
22 & 0.15693 & 1.0759 & 0.143742 \tabularnewline
23 & 0.060999 & 0.4182 & 0.338857 \tabularnewline
24 & -0.152269 & -1.0439 & 0.150934 \tabularnewline
25 & -0.078451 & -0.5378 & 0.296615 \tabularnewline
26 & 0.118186 & 0.8102 & 0.210943 \tabularnewline
27 & -0.035005 & -0.24 & 0.405693 \tabularnewline
28 & 0.082642 & 0.5666 & 0.286854 \tabularnewline
29 & -0.058098 & -0.3983 & 0.346106 \tabularnewline
30 & 0.067787 & 0.4647 & 0.322138 \tabularnewline
31 & -0.027548 & -0.1889 & 0.425508 \tabularnewline
32 & -0.07415 & -0.5083 & 0.306793 \tabularnewline
33 & -0.071008 & -0.4868 & 0.314329 \tabularnewline
34 & 0.032222 & 0.2209 & 0.413061 \tabularnewline
35 & 0.068703 & 0.471 & 0.319908 \tabularnewline
36 & -0.072214 & -0.4951 & 0.311428 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59635&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.332096[/C][C]-2.2767[/C][C]0.013699[/C][/ROW]
[ROW][C]2[/C][C]-0.456837[/C][C]-3.1319[/C][C]0.001493[/C][/ROW]
[ROW][C]3[/C][C]-0.068228[/C][C]-0.4677[/C][C]0.321063[/C][/ROW]
[ROW][C]4[/C][C]0.03157[/C][C]0.2164[/C][C]0.414794[/C][/ROW]
[ROW][C]5[/C][C]0.053471[/C][C]0.3666[/C][C]0.35779[/C][/ROW]
[ROW][C]6[/C][C]-0.028014[/C][C]-0.1921[/C][C]0.424265[/C][/ROW]
[ROW][C]7[/C][C]0.075487[/C][C]0.5175[/C][C]0.303613[/C][/ROW]
[ROW][C]8[/C][C]-0.068769[/C][C]-0.4715[/C][C]0.319749[/C][/ROW]
[ROW][C]9[/C][C]-0.191161[/C][C]-1.3105[/C][C]0.098191[/C][/ROW]
[ROW][C]10[/C][C]0.083714[/C][C]0.5739[/C][C]0.28438[/C][/ROW]
[ROW][C]11[/C][C]-0.038295[/C][C]-0.2625[/C][C]0.397026[/C][/ROW]
[ROW][C]12[/C][C]-0.139028[/C][C]-0.9531[/C][C]0.172701[/C][/ROW]
[ROW][C]13[/C][C]0.09369[/C][C]0.6423[/C][C]0.261897[/C][/ROW]
[ROW][C]14[/C][C]-0.041895[/C][C]-0.2872[/C][C]0.387605[/C][/ROW]
[ROW][C]15[/C][C]-0.022645[/C][C]-0.1552[/C][C]0.438647[/C][/ROW]
[ROW][C]16[/C][C]-0.10032[/C][C]-0.6878[/C][C]0.247493[/C][/ROW]
[ROW][C]17[/C][C]-0.197698[/C][C]-1.3554[/C][C]0.090892[/C][/ROW]
[ROW][C]18[/C][C]-0.151636[/C][C]-1.0396[/C][C]0.15193[/C][/ROW]
[ROW][C]19[/C][C]0.060343[/C][C]0.4137[/C][C]0.340492[/C][/ROW]
[ROW][C]20[/C][C]-0.031696[/C][C]-0.2173[/C][C]0.41446[/C][/ROW]
[ROW][C]21[/C][C]-0.138117[/C][C]-0.9469[/C][C]0.174271[/C][/ROW]
[ROW][C]22[/C][C]0.15693[/C][C]1.0759[/C][C]0.143742[/C][/ROW]
[ROW][C]23[/C][C]0.060999[/C][C]0.4182[/C][C]0.338857[/C][/ROW]
[ROW][C]24[/C][C]-0.152269[/C][C]-1.0439[/C][C]0.150934[/C][/ROW]
[ROW][C]25[/C][C]-0.078451[/C][C]-0.5378[/C][C]0.296615[/C][/ROW]
[ROW][C]26[/C][C]0.118186[/C][C]0.8102[/C][C]0.210943[/C][/ROW]
[ROW][C]27[/C][C]-0.035005[/C][C]-0.24[/C][C]0.405693[/C][/ROW]
[ROW][C]28[/C][C]0.082642[/C][C]0.5666[/C][C]0.286854[/C][/ROW]
[ROW][C]29[/C][C]-0.058098[/C][C]-0.3983[/C][C]0.346106[/C][/ROW]
[ROW][C]30[/C][C]0.067787[/C][C]0.4647[/C][C]0.322138[/C][/ROW]
[ROW][C]31[/C][C]-0.027548[/C][C]-0.1889[/C][C]0.425508[/C][/ROW]
[ROW][C]32[/C][C]-0.07415[/C][C]-0.5083[/C][C]0.306793[/C][/ROW]
[ROW][C]33[/C][C]-0.071008[/C][C]-0.4868[/C][C]0.314329[/C][/ROW]
[ROW][C]34[/C][C]0.032222[/C][C]0.2209[/C][C]0.413061[/C][/ROW]
[ROW][C]35[/C][C]0.068703[/C][C]0.471[/C][C]0.319908[/C][/ROW]
[ROW][C]36[/C][C]-0.072214[/C][C]-0.4951[/C][C]0.311428[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59635&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59635&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.332096-2.27670.013699
2-0.456837-3.13190.001493
3-0.068228-0.46770.321063
40.031570.21640.414794
50.0534710.36660.35779
6-0.028014-0.19210.424265
70.0754870.51750.303613
8-0.068769-0.47150.319749
9-0.191161-1.31050.098191
100.0837140.57390.28438
11-0.038295-0.26250.397026
12-0.139028-0.95310.172701
130.093690.64230.261897
14-0.041895-0.28720.387605
15-0.022645-0.15520.438647
16-0.10032-0.68780.247493
17-0.197698-1.35540.090892
18-0.151636-1.03960.15193
190.0603430.41370.340492
20-0.031696-0.21730.41446
21-0.138117-0.94690.174271
220.156931.07590.143742
230.0609990.41820.338857
24-0.152269-1.04390.150934
25-0.078451-0.53780.296615
260.1181860.81020.210943
27-0.035005-0.240.405693
280.0826420.56660.286854
29-0.058098-0.39830.346106
300.0677870.46470.322138
31-0.027548-0.18890.425508
32-0.07415-0.50830.306793
33-0.071008-0.48680.314329
340.0322220.22090.413061
350.0687030.4710.319908
36-0.072214-0.49510.311428



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