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 computationSat, 20 Nov 2010 22:53:40 +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/Nov/20/t129029353720m3wwa9zozyc5h.htm/, Retrieved Sat, 27 Apr 2024 07:54:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=98313, Retrieved Sat, 27 Apr 2024 07:54:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKDGP2W11
Estimated Impact113
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2010-11-20 22:53:40] [b831d618c4f08b1797d6e909807842bd] [Current]
Feedback Forum

Post a new message
Dataseries X:
20
25
15
15
25
25
25
21
30
25
20
40
13
30
25
20
25
20
25
20
20
15
15
12
20
5
20
15
25
22
20
22
25
20
20
35
30
25
20
20
20
25
25
15
20
35
25
25
30
23
10
22
25
25
22
30
20
25
25
22
25
25
25
22
25
12
18
20
20
22
30
25
22
20
50
30
25
20
30
22
25
30
22
25
22
22
25
25
25
20
22
15
20
30
20
25
30
35
22
12
30
15
10
30
9
25
20
20
35
25
35
30
12
25
15
25
25
20
20
6
15
40
20
40
25
25
20
15
15
22
24
22
20
25
25
25
35
40
20
22
22
20
25
25
18
25
20
25
30
20
22
35
22
25
25
25
25
22
23
35
15
25
18
22
25
25
28
30
20
25
25
30
22
30
10
10
25
20
22
25
25
15
22
25
25
28
22
30
25
20
25
25
20
30
20
30
50
19
20
28
20
25
35
25
25
15
16
20
20
25
30
20
25
25
25
20
20
25
25
30
22
20
25
25
18
18
20
25
25
30
25
20
25
20
20
20
22
18
22
20
15
25
25
20
25
15
22
25
25
15
12
25
30
22
15
22
25
12
18
30
25
25
40
24
25
15
25
20
25
25
25
20
30
20
25
30
22
25
25
25
50
19
50
25
35
20
20
20
20
20
25
25
25
20
20
20
20
25
18
25
22
22
30
30
8
20
25
30
50
22
20
10
25
25
25
25
18
25
20
25
30
18
20
25
22
22
20
20
25
20
20
20
20
25
20
10
20
25
30
25
50
30
30
50
15
25
25
22
20
22
30
25
18
22
22
30
40
25
20
10
20
9
15
20
15
20
30
12
15
12
20
15
12
25
20
25
25
25
30
20
25
15
15
22
10
15
10
20
25
20
20
38
20
20
20
40
25
25
30
25
10
20
25
12
15
25
20
22
22
20
25
25
25
15
40
20
20
16
25
15
20
25
20
30
50
20
25
20
30
30
25
25
12
25
25
25
20
20
20
15
20
25
15
25
50
30
20
20
25
12
15
20
20
35
22
15
18
30
22
12
12
20
20
15
25
15
20
20
25
18
30
20
25
25
25
20
20
25
20
22
15
15
22
20
10
25
20
20
15
12
20
5
20
15
15
25
25
25
15
25
22
25
20
18
22
25
35
25
25
25
35
30
22
30
50
15
25
24
20
25
25
25
12
15
22
25
25
25
25
15
20
20
15
35
30
20
22
65
20
25
22
20
25
25
20
25
15
20
12
15
10
25
15
30
35
25
25
25
25
25
40
40
25
25
20
25
25
22
25
30
25
25
30
25
25
30
25
25
20
22
22
20
25
22
25
22
40
25
25
25
22
20
35
20
35
25
22
25
25
25
25
25
40
25
30
25
20
25
25
30
22
22
20
15
15
25
25
20
20
15
25
15
20
22
25
15
15
18
5
15
25
18
40
25
25
20
30
20
25
25
25
22
22
25
25
30
25
25
25
25
20
20
25
25
25
25
20
30
25
22
30
20
20
30
25
25
30
20
25
25
24
25
30
18
15
22
22
25
22
22
25
15
20
22
18
35
20
20
20
25
25
30
15
25
22
26
25
20
25
25
25
22
25
25
20
22
30
15
30
25
20
25
25
35
22
20
25
20
20
18
20
22
25
10
20
25
20
20
30
25
20
15
20
25
10
20
25
22
22
25
25
15
25
20
10
25
16
25
35
25
15
25
25
30
25
10
22
20
25
20
20
25
22
18
30
19
25
20
25
20
25
20
22
12
30
12
22
25
25
25
25
30
30
10
22
22
25
20
22
20
25
20
15
25
20
25
20
30
15
40
25
20
22
22
30
20
40
20
25
20
25
20
50
50
25
25
40
30
22
30
20
25
25
30
25
25
20
18
18
28
25
22
15
40
40
12
12
18
12
25
26
18
25
22
15
25
15
15
15
25
15
12
22
20
20
25
20
12
9
15
12
15
25
20
20
15
15
30
21
25
22
22
50
15
25
15
25
22
18
50
20
50
20
20
30
25
20
22
25
50
40
25
25
25
25
30
40
25
30
20




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=98313&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]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=98313&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=98313&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'RServer@AstonUniversity' @ vre.aston.ac.uk







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.10693.2070.000694
20.1139153.41750.00033
30.1030963.09290.001022
40.0287390.86220.194409
50.0219770.65930.254935
60.0373871.12160.131162
70.0682632.04790.02043
80.0236010.7080.239559
90.0037770.11330.454906
100.0835332.5060.006193
11-0.030527-0.91580.180005
120.0048450.14530.442239
130.0488161.46450.071704
14-0.003598-0.10790.457032
150.0004390.01320.494749
160.0085450.25630.398875
170.0716032.14810.015986
18-0.002002-0.06010.476064
19-0.035711-1.07130.142151
200.0280680.8420.199997
21-0.059778-1.79330.036627
22-0.050258-1.50770.065986
230.0468441.40530.080134
24-0.051831-1.55490.060158
25-0.042627-1.27880.100649
260.0075210.22560.410764
27-0.02255-0.67650.249447
28-0.00736-0.22080.412654
29-0.010015-0.30040.381954

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.1069 & 3.207 & 0.000694 \tabularnewline
2 & 0.113915 & 3.4175 & 0.00033 \tabularnewline
3 & 0.103096 & 3.0929 & 0.001022 \tabularnewline
4 & 0.028739 & 0.8622 & 0.194409 \tabularnewline
5 & 0.021977 & 0.6593 & 0.254935 \tabularnewline
6 & 0.037387 & 1.1216 & 0.131162 \tabularnewline
7 & 0.068263 & 2.0479 & 0.02043 \tabularnewline
8 & 0.023601 & 0.708 & 0.239559 \tabularnewline
9 & 0.003777 & 0.1133 & 0.454906 \tabularnewline
10 & 0.083533 & 2.506 & 0.006193 \tabularnewline
11 & -0.030527 & -0.9158 & 0.180005 \tabularnewline
12 & 0.004845 & 0.1453 & 0.442239 \tabularnewline
13 & 0.048816 & 1.4645 & 0.071704 \tabularnewline
14 & -0.003598 & -0.1079 & 0.457032 \tabularnewline
15 & 0.000439 & 0.0132 & 0.494749 \tabularnewline
16 & 0.008545 & 0.2563 & 0.398875 \tabularnewline
17 & 0.071603 & 2.1481 & 0.015986 \tabularnewline
18 & -0.002002 & -0.0601 & 0.476064 \tabularnewline
19 & -0.035711 & -1.0713 & 0.142151 \tabularnewline
20 & 0.028068 & 0.842 & 0.199997 \tabularnewline
21 & -0.059778 & -1.7933 & 0.036627 \tabularnewline
22 & -0.050258 & -1.5077 & 0.065986 \tabularnewline
23 & 0.046844 & 1.4053 & 0.080134 \tabularnewline
24 & -0.051831 & -1.5549 & 0.060158 \tabularnewline
25 & -0.042627 & -1.2788 & 0.100649 \tabularnewline
26 & 0.007521 & 0.2256 & 0.410764 \tabularnewline
27 & -0.02255 & -0.6765 & 0.249447 \tabularnewline
28 & -0.00736 & -0.2208 & 0.412654 \tabularnewline
29 & -0.010015 & -0.3004 & 0.381954 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=98313&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.1069[/C][C]3.207[/C][C]0.000694[/C][/ROW]
[ROW][C]2[/C][C]0.113915[/C][C]3.4175[/C][C]0.00033[/C][/ROW]
[ROW][C]3[/C][C]0.103096[/C][C]3.0929[/C][C]0.001022[/C][/ROW]
[ROW][C]4[/C][C]0.028739[/C][C]0.8622[/C][C]0.194409[/C][/ROW]
[ROW][C]5[/C][C]0.021977[/C][C]0.6593[/C][C]0.254935[/C][/ROW]
[ROW][C]6[/C][C]0.037387[/C][C]1.1216[/C][C]0.131162[/C][/ROW]
[ROW][C]7[/C][C]0.068263[/C][C]2.0479[/C][C]0.02043[/C][/ROW]
[ROW][C]8[/C][C]0.023601[/C][C]0.708[/C][C]0.239559[/C][/ROW]
[ROW][C]9[/C][C]0.003777[/C][C]0.1133[/C][C]0.454906[/C][/ROW]
[ROW][C]10[/C][C]0.083533[/C][C]2.506[/C][C]0.006193[/C][/ROW]
[ROW][C]11[/C][C]-0.030527[/C][C]-0.9158[/C][C]0.180005[/C][/ROW]
[ROW][C]12[/C][C]0.004845[/C][C]0.1453[/C][C]0.442239[/C][/ROW]
[ROW][C]13[/C][C]0.048816[/C][C]1.4645[/C][C]0.071704[/C][/ROW]
[ROW][C]14[/C][C]-0.003598[/C][C]-0.1079[/C][C]0.457032[/C][/ROW]
[ROW][C]15[/C][C]0.000439[/C][C]0.0132[/C][C]0.494749[/C][/ROW]
[ROW][C]16[/C][C]0.008545[/C][C]0.2563[/C][C]0.398875[/C][/ROW]
[ROW][C]17[/C][C]0.071603[/C][C]2.1481[/C][C]0.015986[/C][/ROW]
[ROW][C]18[/C][C]-0.002002[/C][C]-0.0601[/C][C]0.476064[/C][/ROW]
[ROW][C]19[/C][C]-0.035711[/C][C]-1.0713[/C][C]0.142151[/C][/ROW]
[ROW][C]20[/C][C]0.028068[/C][C]0.842[/C][C]0.199997[/C][/ROW]
[ROW][C]21[/C][C]-0.059778[/C][C]-1.7933[/C][C]0.036627[/C][/ROW]
[ROW][C]22[/C][C]-0.050258[/C][C]-1.5077[/C][C]0.065986[/C][/ROW]
[ROW][C]23[/C][C]0.046844[/C][C]1.4053[/C][C]0.080134[/C][/ROW]
[ROW][C]24[/C][C]-0.051831[/C][C]-1.5549[/C][C]0.060158[/C][/ROW]
[ROW][C]25[/C][C]-0.042627[/C][C]-1.2788[/C][C]0.100649[/C][/ROW]
[ROW][C]26[/C][C]0.007521[/C][C]0.2256[/C][C]0.410764[/C][/ROW]
[ROW][C]27[/C][C]-0.02255[/C][C]-0.6765[/C][C]0.249447[/C][/ROW]
[ROW][C]28[/C][C]-0.00736[/C][C]-0.2208[/C][C]0.412654[/C][/ROW]
[ROW][C]29[/C][C]-0.010015[/C][C]-0.3004[/C][C]0.381954[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=98313&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=98313&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.10693.2070.000694
20.1139153.41750.00033
30.1030963.09290.001022
40.0287390.86220.194409
50.0219770.65930.254935
60.0373871.12160.131162
70.0682632.04790.02043
80.0236010.7080.239559
90.0037770.11330.454906
100.0835332.5060.006193
11-0.030527-0.91580.180005
120.0048450.14530.442239
130.0488161.46450.071704
14-0.003598-0.10790.457032
150.0004390.01320.494749
160.0085450.25630.398875
170.0716032.14810.015986
18-0.002002-0.06010.476064
19-0.035711-1.07130.142151
200.0280680.8420.199997
21-0.059778-1.79330.036627
22-0.050258-1.50770.065986
230.0468441.40530.080134
24-0.051831-1.55490.060158
25-0.042627-1.27880.100649
260.0075210.22560.410764
27-0.02255-0.67650.249447
28-0.00736-0.22080.412654
29-0.010015-0.30040.381954







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.10693.2070.000694
20.1036723.11020.000964
30.0829272.48780.006517
4-2.3e-05-7e-040.499726
50.0001610.00480.498073
60.0248740.74620.227861
70.0601621.80480.035716
80.004890.14670.441706
9-0.017283-0.51850.302123
100.0724372.17310.015016
11-0.047958-1.43870.075288
12-0.003927-0.11780.453127
130.0416361.24910.105979
14-0.010424-0.31270.377283
15-0.008396-0.25190.40059
160.0006240.01870.492537
170.0682762.04830.020411
18-0.012151-0.36450.357774
19-0.05088-1.52640.063631
200.0152940.45880.323232
21-0.050244-1.50730.066041
22-0.040004-1.20010.115205
230.0555441.66630.047999
24-0.047718-1.43160.07631
25-0.036867-1.1060.13451
260.0210830.63250.263615
27-0.018904-0.56710.285382
280.0148150.44440.328416
290.0019740.05920.476391

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.1069 & 3.207 & 0.000694 \tabularnewline
2 & 0.103672 & 3.1102 & 0.000964 \tabularnewline
3 & 0.082927 & 2.4878 & 0.006517 \tabularnewline
4 & -2.3e-05 & -7e-04 & 0.499726 \tabularnewline
5 & 0.000161 & 0.0048 & 0.498073 \tabularnewline
6 & 0.024874 & 0.7462 & 0.227861 \tabularnewline
7 & 0.060162 & 1.8048 & 0.035716 \tabularnewline
8 & 0.00489 & 0.1467 & 0.441706 \tabularnewline
9 & -0.017283 & -0.5185 & 0.302123 \tabularnewline
10 & 0.072437 & 2.1731 & 0.015016 \tabularnewline
11 & -0.047958 & -1.4387 & 0.075288 \tabularnewline
12 & -0.003927 & -0.1178 & 0.453127 \tabularnewline
13 & 0.041636 & 1.2491 & 0.105979 \tabularnewline
14 & -0.010424 & -0.3127 & 0.377283 \tabularnewline
15 & -0.008396 & -0.2519 & 0.40059 \tabularnewline
16 & 0.000624 & 0.0187 & 0.492537 \tabularnewline
17 & 0.068276 & 2.0483 & 0.020411 \tabularnewline
18 & -0.012151 & -0.3645 & 0.357774 \tabularnewline
19 & -0.05088 & -1.5264 & 0.063631 \tabularnewline
20 & 0.015294 & 0.4588 & 0.323232 \tabularnewline
21 & -0.050244 & -1.5073 & 0.066041 \tabularnewline
22 & -0.040004 & -1.2001 & 0.115205 \tabularnewline
23 & 0.055544 & 1.6663 & 0.047999 \tabularnewline
24 & -0.047718 & -1.4316 & 0.07631 \tabularnewline
25 & -0.036867 & -1.106 & 0.13451 \tabularnewline
26 & 0.021083 & 0.6325 & 0.263615 \tabularnewline
27 & -0.018904 & -0.5671 & 0.285382 \tabularnewline
28 & 0.014815 & 0.4444 & 0.328416 \tabularnewline
29 & 0.001974 & 0.0592 & 0.476391 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=98313&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.1069[/C][C]3.207[/C][C]0.000694[/C][/ROW]
[ROW][C]2[/C][C]0.103672[/C][C]3.1102[/C][C]0.000964[/C][/ROW]
[ROW][C]3[/C][C]0.082927[/C][C]2.4878[/C][C]0.006517[/C][/ROW]
[ROW][C]4[/C][C]-2.3e-05[/C][C]-7e-04[/C][C]0.499726[/C][/ROW]
[ROW][C]5[/C][C]0.000161[/C][C]0.0048[/C][C]0.498073[/C][/ROW]
[ROW][C]6[/C][C]0.024874[/C][C]0.7462[/C][C]0.227861[/C][/ROW]
[ROW][C]7[/C][C]0.060162[/C][C]1.8048[/C][C]0.035716[/C][/ROW]
[ROW][C]8[/C][C]0.00489[/C][C]0.1467[/C][C]0.441706[/C][/ROW]
[ROW][C]9[/C][C]-0.017283[/C][C]-0.5185[/C][C]0.302123[/C][/ROW]
[ROW][C]10[/C][C]0.072437[/C][C]2.1731[/C][C]0.015016[/C][/ROW]
[ROW][C]11[/C][C]-0.047958[/C][C]-1.4387[/C][C]0.075288[/C][/ROW]
[ROW][C]12[/C][C]-0.003927[/C][C]-0.1178[/C][C]0.453127[/C][/ROW]
[ROW][C]13[/C][C]0.041636[/C][C]1.2491[/C][C]0.105979[/C][/ROW]
[ROW][C]14[/C][C]-0.010424[/C][C]-0.3127[/C][C]0.377283[/C][/ROW]
[ROW][C]15[/C][C]-0.008396[/C][C]-0.2519[/C][C]0.40059[/C][/ROW]
[ROW][C]16[/C][C]0.000624[/C][C]0.0187[/C][C]0.492537[/C][/ROW]
[ROW][C]17[/C][C]0.068276[/C][C]2.0483[/C][C]0.020411[/C][/ROW]
[ROW][C]18[/C][C]-0.012151[/C][C]-0.3645[/C][C]0.357774[/C][/ROW]
[ROW][C]19[/C][C]-0.05088[/C][C]-1.5264[/C][C]0.063631[/C][/ROW]
[ROW][C]20[/C][C]0.015294[/C][C]0.4588[/C][C]0.323232[/C][/ROW]
[ROW][C]21[/C][C]-0.050244[/C][C]-1.5073[/C][C]0.066041[/C][/ROW]
[ROW][C]22[/C][C]-0.040004[/C][C]-1.2001[/C][C]0.115205[/C][/ROW]
[ROW][C]23[/C][C]0.055544[/C][C]1.6663[/C][C]0.047999[/C][/ROW]
[ROW][C]24[/C][C]-0.047718[/C][C]-1.4316[/C][C]0.07631[/C][/ROW]
[ROW][C]25[/C][C]-0.036867[/C][C]-1.106[/C][C]0.13451[/C][/ROW]
[ROW][C]26[/C][C]0.021083[/C][C]0.6325[/C][C]0.263615[/C][/ROW]
[ROW][C]27[/C][C]-0.018904[/C][C]-0.5671[/C][C]0.285382[/C][/ROW]
[ROW][C]28[/C][C]0.014815[/C][C]0.4444[/C][C]0.328416[/C][/ROW]
[ROW][C]29[/C][C]0.001974[/C][C]0.0592[/C][C]0.476391[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=98313&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=98313&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.10693.2070.000694
20.1036723.11020.000964
30.0829272.48780.006517
4-2.3e-05-7e-040.499726
50.0001610.00480.498073
60.0248740.74620.227861
70.0601621.80480.035716
80.004890.14670.441706
9-0.017283-0.51850.302123
100.0724372.17310.015016
11-0.047958-1.43870.075288
12-0.003927-0.11780.453127
130.0416361.24910.105979
14-0.010424-0.31270.377283
15-0.008396-0.25190.40059
160.0006240.01870.492537
170.0682762.04830.020411
18-0.012151-0.36450.357774
19-0.05088-1.52640.063631
200.0152940.45880.323232
21-0.050244-1.50730.066041
22-0.040004-1.20010.115205
230.0555441.66630.047999
24-0.047718-1.43160.07631
25-0.036867-1.1060.13451
260.0210830.63250.263615
27-0.018904-0.56710.285382
280.0148150.44440.328416
290.0019740.05920.476391



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