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 computationThu, 26 Nov 2009 13:23:33 -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/26/t12592670424vmiy9a13yuo05g.htm/, Retrieved Sun, 28 Apr 2024 20:05:07 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60368, Retrieved Sun, 28 Apr 2024 20:05:07 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact127
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [] [2009-11-26 18:35:46] [875a981b2b01315c1c471abd4dd66675]
-   PD  [(Partial) Autocorrelation Function] [] [2009-11-26 20:12:06] [875a981b2b01315c1c471abd4dd66675]
-   P       [(Partial) Autocorrelation Function] [] [2009-11-26 20:23:33] [8551abdd6804649d94d88b1829ac2b1a] [Current]
Feedback Forum

Post a new message
Dataseries X:
110.5
110.8
104.2
88.9
89.8
90
93.9
91.3
87.8
99.7
73.5
79.2
96.9
95.2
95.6
89.7
92.8
88
101.1
92.7
95.8
103.8
81.8
87.1
105.9
108.1
102.6
93.7
103.5
100.6
113.3
102.4
102.1
106.9
87.3
93.1
109.1
120.3
104.9
92.6
109.8
111.4
117.9
121.6
117.8
124.2
106.8
102.7
116.8
113.6
96.1
85
83.2
84.9
83
79.6
83.2
83.8
82.8
71.4




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=60368&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=60368&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60368&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.261058-1.78970.039971
20.1975681.35450.091033
30.1821821.2490.108929
4-0.162759-1.11580.135086
50.1799231.23350.111763
6-0.094374-0.6470.260392
70.0138310.09480.462429
80.0323230.22160.412795
9-0.244175-1.6740.050389
100.0913930.62660.266989
11-0.131448-0.90120.186048
12-0.069673-0.47770.317555
130.0900090.61710.270083
14-0.046351-0.31780.376035
150.1170070.80220.213248
16-0.019268-0.13210.447738
170.0229220.15710.437902
18-0.043886-0.30090.382421
190.0632990.4340.333153
20-0.130347-0.89360.18804
210.155741.06770.145555
22-0.019649-0.13470.446711
230.0891540.61120.272004
24-0.182766-1.2530.108205
250.0713390.48910.313531
260.0194480.13330.447252
27-0.090555-0.62080.268861
280.1237670.84850.200228
29-0.044967-0.30830.379617
300.0066170.04540.482004
31-0.025876-0.17740.429978
32-0.131222-0.89960.186457
330.0449020.30780.379784
34-0.145022-0.99420.162603
35-0.039619-0.27160.393554
360.0377960.25910.398339

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.261058 & -1.7897 & 0.039971 \tabularnewline
2 & 0.197568 & 1.3545 & 0.091033 \tabularnewline
3 & 0.182182 & 1.249 & 0.108929 \tabularnewline
4 & -0.162759 & -1.1158 & 0.135086 \tabularnewline
5 & 0.179923 & 1.2335 & 0.111763 \tabularnewline
6 & -0.094374 & -0.647 & 0.260392 \tabularnewline
7 & 0.013831 & 0.0948 & 0.462429 \tabularnewline
8 & 0.032323 & 0.2216 & 0.412795 \tabularnewline
9 & -0.244175 & -1.674 & 0.050389 \tabularnewline
10 & 0.091393 & 0.6266 & 0.266989 \tabularnewline
11 & -0.131448 & -0.9012 & 0.186048 \tabularnewline
12 & -0.069673 & -0.4777 & 0.317555 \tabularnewline
13 & 0.090009 & 0.6171 & 0.270083 \tabularnewline
14 & -0.046351 & -0.3178 & 0.376035 \tabularnewline
15 & 0.117007 & 0.8022 & 0.213248 \tabularnewline
16 & -0.019268 & -0.1321 & 0.447738 \tabularnewline
17 & 0.022922 & 0.1571 & 0.437902 \tabularnewline
18 & -0.043886 & -0.3009 & 0.382421 \tabularnewline
19 & 0.063299 & 0.434 & 0.333153 \tabularnewline
20 & -0.130347 & -0.8936 & 0.18804 \tabularnewline
21 & 0.15574 & 1.0677 & 0.145555 \tabularnewline
22 & -0.019649 & -0.1347 & 0.446711 \tabularnewline
23 & 0.089154 & 0.6112 & 0.272004 \tabularnewline
24 & -0.182766 & -1.253 & 0.108205 \tabularnewline
25 & 0.071339 & 0.4891 & 0.313531 \tabularnewline
26 & 0.019448 & 0.1333 & 0.447252 \tabularnewline
27 & -0.090555 & -0.6208 & 0.268861 \tabularnewline
28 & 0.123767 & 0.8485 & 0.200228 \tabularnewline
29 & -0.044967 & -0.3083 & 0.379617 \tabularnewline
30 & 0.006617 & 0.0454 & 0.482004 \tabularnewline
31 & -0.025876 & -0.1774 & 0.429978 \tabularnewline
32 & -0.131222 & -0.8996 & 0.186457 \tabularnewline
33 & 0.044902 & 0.3078 & 0.379784 \tabularnewline
34 & -0.145022 & -0.9942 & 0.162603 \tabularnewline
35 & -0.039619 & -0.2716 & 0.393554 \tabularnewline
36 & 0.037796 & 0.2591 & 0.398339 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60368&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.261058[/C][C]-1.7897[/C][C]0.039971[/C][/ROW]
[ROW][C]2[/C][C]0.197568[/C][C]1.3545[/C][C]0.091033[/C][/ROW]
[ROW][C]3[/C][C]0.182182[/C][C]1.249[/C][C]0.108929[/C][/ROW]
[ROW][C]4[/C][C]-0.162759[/C][C]-1.1158[/C][C]0.135086[/C][/ROW]
[ROW][C]5[/C][C]0.179923[/C][C]1.2335[/C][C]0.111763[/C][/ROW]
[ROW][C]6[/C][C]-0.094374[/C][C]-0.647[/C][C]0.260392[/C][/ROW]
[ROW][C]7[/C][C]0.013831[/C][C]0.0948[/C][C]0.462429[/C][/ROW]
[ROW][C]8[/C][C]0.032323[/C][C]0.2216[/C][C]0.412795[/C][/ROW]
[ROW][C]9[/C][C]-0.244175[/C][C]-1.674[/C][C]0.050389[/C][/ROW]
[ROW][C]10[/C][C]0.091393[/C][C]0.6266[/C][C]0.266989[/C][/ROW]
[ROW][C]11[/C][C]-0.131448[/C][C]-0.9012[/C][C]0.186048[/C][/ROW]
[ROW][C]12[/C][C]-0.069673[/C][C]-0.4777[/C][C]0.317555[/C][/ROW]
[ROW][C]13[/C][C]0.090009[/C][C]0.6171[/C][C]0.270083[/C][/ROW]
[ROW][C]14[/C][C]-0.046351[/C][C]-0.3178[/C][C]0.376035[/C][/ROW]
[ROW][C]15[/C][C]0.117007[/C][C]0.8022[/C][C]0.213248[/C][/ROW]
[ROW][C]16[/C][C]-0.019268[/C][C]-0.1321[/C][C]0.447738[/C][/ROW]
[ROW][C]17[/C][C]0.022922[/C][C]0.1571[/C][C]0.437902[/C][/ROW]
[ROW][C]18[/C][C]-0.043886[/C][C]-0.3009[/C][C]0.382421[/C][/ROW]
[ROW][C]19[/C][C]0.063299[/C][C]0.434[/C][C]0.333153[/C][/ROW]
[ROW][C]20[/C][C]-0.130347[/C][C]-0.8936[/C][C]0.18804[/C][/ROW]
[ROW][C]21[/C][C]0.15574[/C][C]1.0677[/C][C]0.145555[/C][/ROW]
[ROW][C]22[/C][C]-0.019649[/C][C]-0.1347[/C][C]0.446711[/C][/ROW]
[ROW][C]23[/C][C]0.089154[/C][C]0.6112[/C][C]0.272004[/C][/ROW]
[ROW][C]24[/C][C]-0.182766[/C][C]-1.253[/C][C]0.108205[/C][/ROW]
[ROW][C]25[/C][C]0.071339[/C][C]0.4891[/C][C]0.313531[/C][/ROW]
[ROW][C]26[/C][C]0.019448[/C][C]0.1333[/C][C]0.447252[/C][/ROW]
[ROW][C]27[/C][C]-0.090555[/C][C]-0.6208[/C][C]0.268861[/C][/ROW]
[ROW][C]28[/C][C]0.123767[/C][C]0.8485[/C][C]0.200228[/C][/ROW]
[ROW][C]29[/C][C]-0.044967[/C][C]-0.3083[/C][C]0.379617[/C][/ROW]
[ROW][C]30[/C][C]0.006617[/C][C]0.0454[/C][C]0.482004[/C][/ROW]
[ROW][C]31[/C][C]-0.025876[/C][C]-0.1774[/C][C]0.429978[/C][/ROW]
[ROW][C]32[/C][C]-0.131222[/C][C]-0.8996[/C][C]0.186457[/C][/ROW]
[ROW][C]33[/C][C]0.044902[/C][C]0.3078[/C][C]0.379784[/C][/ROW]
[ROW][C]34[/C][C]-0.145022[/C][C]-0.9942[/C][C]0.162603[/C][/ROW]
[ROW][C]35[/C][C]-0.039619[/C][C]-0.2716[/C][C]0.393554[/C][/ROW]
[ROW][C]36[/C][C]0.037796[/C][C]0.2591[/C][C]0.398339[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60368&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60368&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.261058-1.78970.039971
20.1975681.35450.091033
30.1821821.2490.108929
4-0.162759-1.11580.135086
50.1799231.23350.111763
6-0.094374-0.6470.260392
70.0138310.09480.462429
80.0323230.22160.412795
9-0.244175-1.6740.050389
100.0913930.62660.266989
11-0.131448-0.90120.186048
12-0.069673-0.47770.317555
130.0900090.61710.270083
14-0.046351-0.31780.376035
150.1170070.80220.213248
16-0.019268-0.13210.447738
170.0229220.15710.437902
18-0.043886-0.30090.382421
190.0632990.4340.333153
20-0.130347-0.89360.18804
210.155741.06770.145555
22-0.019649-0.13470.446711
230.0891540.61120.272004
24-0.182766-1.2530.108205
250.0713390.48910.313531
260.0194480.13330.447252
27-0.090555-0.62080.268861
280.1237670.84850.200228
29-0.044967-0.30830.379617
300.0066170.04540.482004
31-0.025876-0.17740.429978
32-0.131222-0.89960.186457
330.0449020.30780.379784
34-0.145022-0.99420.162603
35-0.039619-0.27160.393554
360.0377960.25910.398339







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.261058-1.78970.039971
20.1388820.95210.172952
30.2876241.97180.027264
4-0.095021-0.65140.258971
50.028910.19820.421873
6-0.046733-0.32040.375048
7-0.004929-0.03380.486592
8-0.000529-0.00360.49856
9-0.226758-1.55460.063378
10-0.047718-0.32710.372509
11-0.020285-0.13910.444996
12-0.028731-0.1970.422349
130.0517050.35450.362284
140.1012510.69410.245506
150.1207430.82780.205991
160.0028430.01950.492266
17-0.028164-0.19310.423862
18-0.171979-1.1790.122161
190.0462620.31720.376265
20-0.163622-1.12170.133837
210.1085870.74440.23016
220.1040990.71370.239481
230.2174111.49050.071388
24-0.25187-1.72670.045392
25-0.014442-0.0990.460775
260.0731650.50160.309148
27-0.008323-0.05710.477369
28-0.017058-0.11690.453702
29-0.072832-0.49930.309944
300.0626630.42960.334726
31-0.039193-0.26870.394671
32-0.131901-0.90430.185233
33-0.072063-0.4940.311789
34-0.016028-0.10990.456484
35-0.05624-0.38560.35078
36-0.094853-0.65030.25934

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.261058 & -1.7897 & 0.039971 \tabularnewline
2 & 0.138882 & 0.9521 & 0.172952 \tabularnewline
3 & 0.287624 & 1.9718 & 0.027264 \tabularnewline
4 & -0.095021 & -0.6514 & 0.258971 \tabularnewline
5 & 0.02891 & 0.1982 & 0.421873 \tabularnewline
6 & -0.046733 & -0.3204 & 0.375048 \tabularnewline
7 & -0.004929 & -0.0338 & 0.486592 \tabularnewline
8 & -0.000529 & -0.0036 & 0.49856 \tabularnewline
9 & -0.226758 & -1.5546 & 0.063378 \tabularnewline
10 & -0.047718 & -0.3271 & 0.372509 \tabularnewline
11 & -0.020285 & -0.1391 & 0.444996 \tabularnewline
12 & -0.028731 & -0.197 & 0.422349 \tabularnewline
13 & 0.051705 & 0.3545 & 0.362284 \tabularnewline
14 & 0.101251 & 0.6941 & 0.245506 \tabularnewline
15 & 0.120743 & 0.8278 & 0.205991 \tabularnewline
16 & 0.002843 & 0.0195 & 0.492266 \tabularnewline
17 & -0.028164 & -0.1931 & 0.423862 \tabularnewline
18 & -0.171979 & -1.179 & 0.122161 \tabularnewline
19 & 0.046262 & 0.3172 & 0.376265 \tabularnewline
20 & -0.163622 & -1.1217 & 0.133837 \tabularnewline
21 & 0.108587 & 0.7444 & 0.23016 \tabularnewline
22 & 0.104099 & 0.7137 & 0.239481 \tabularnewline
23 & 0.217411 & 1.4905 & 0.071388 \tabularnewline
24 & -0.25187 & -1.7267 & 0.045392 \tabularnewline
25 & -0.014442 & -0.099 & 0.460775 \tabularnewline
26 & 0.073165 & 0.5016 & 0.309148 \tabularnewline
27 & -0.008323 & -0.0571 & 0.477369 \tabularnewline
28 & -0.017058 & -0.1169 & 0.453702 \tabularnewline
29 & -0.072832 & -0.4993 & 0.309944 \tabularnewline
30 & 0.062663 & 0.4296 & 0.334726 \tabularnewline
31 & -0.039193 & -0.2687 & 0.394671 \tabularnewline
32 & -0.131901 & -0.9043 & 0.185233 \tabularnewline
33 & -0.072063 & -0.494 & 0.311789 \tabularnewline
34 & -0.016028 & -0.1099 & 0.456484 \tabularnewline
35 & -0.05624 & -0.3856 & 0.35078 \tabularnewline
36 & -0.094853 & -0.6503 & 0.25934 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60368&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.261058[/C][C]-1.7897[/C][C]0.039971[/C][/ROW]
[ROW][C]2[/C][C]0.138882[/C][C]0.9521[/C][C]0.172952[/C][/ROW]
[ROW][C]3[/C][C]0.287624[/C][C]1.9718[/C][C]0.027264[/C][/ROW]
[ROW][C]4[/C][C]-0.095021[/C][C]-0.6514[/C][C]0.258971[/C][/ROW]
[ROW][C]5[/C][C]0.02891[/C][C]0.1982[/C][C]0.421873[/C][/ROW]
[ROW][C]6[/C][C]-0.046733[/C][C]-0.3204[/C][C]0.375048[/C][/ROW]
[ROW][C]7[/C][C]-0.004929[/C][C]-0.0338[/C][C]0.486592[/C][/ROW]
[ROW][C]8[/C][C]-0.000529[/C][C]-0.0036[/C][C]0.49856[/C][/ROW]
[ROW][C]9[/C][C]-0.226758[/C][C]-1.5546[/C][C]0.063378[/C][/ROW]
[ROW][C]10[/C][C]-0.047718[/C][C]-0.3271[/C][C]0.372509[/C][/ROW]
[ROW][C]11[/C][C]-0.020285[/C][C]-0.1391[/C][C]0.444996[/C][/ROW]
[ROW][C]12[/C][C]-0.028731[/C][C]-0.197[/C][C]0.422349[/C][/ROW]
[ROW][C]13[/C][C]0.051705[/C][C]0.3545[/C][C]0.362284[/C][/ROW]
[ROW][C]14[/C][C]0.101251[/C][C]0.6941[/C][C]0.245506[/C][/ROW]
[ROW][C]15[/C][C]0.120743[/C][C]0.8278[/C][C]0.205991[/C][/ROW]
[ROW][C]16[/C][C]0.002843[/C][C]0.0195[/C][C]0.492266[/C][/ROW]
[ROW][C]17[/C][C]-0.028164[/C][C]-0.1931[/C][C]0.423862[/C][/ROW]
[ROW][C]18[/C][C]-0.171979[/C][C]-1.179[/C][C]0.122161[/C][/ROW]
[ROW][C]19[/C][C]0.046262[/C][C]0.3172[/C][C]0.376265[/C][/ROW]
[ROW][C]20[/C][C]-0.163622[/C][C]-1.1217[/C][C]0.133837[/C][/ROW]
[ROW][C]21[/C][C]0.108587[/C][C]0.7444[/C][C]0.23016[/C][/ROW]
[ROW][C]22[/C][C]0.104099[/C][C]0.7137[/C][C]0.239481[/C][/ROW]
[ROW][C]23[/C][C]0.217411[/C][C]1.4905[/C][C]0.071388[/C][/ROW]
[ROW][C]24[/C][C]-0.25187[/C][C]-1.7267[/C][C]0.045392[/C][/ROW]
[ROW][C]25[/C][C]-0.014442[/C][C]-0.099[/C][C]0.460775[/C][/ROW]
[ROW][C]26[/C][C]0.073165[/C][C]0.5016[/C][C]0.309148[/C][/ROW]
[ROW][C]27[/C][C]-0.008323[/C][C]-0.0571[/C][C]0.477369[/C][/ROW]
[ROW][C]28[/C][C]-0.017058[/C][C]-0.1169[/C][C]0.453702[/C][/ROW]
[ROW][C]29[/C][C]-0.072832[/C][C]-0.4993[/C][C]0.309944[/C][/ROW]
[ROW][C]30[/C][C]0.062663[/C][C]0.4296[/C][C]0.334726[/C][/ROW]
[ROW][C]31[/C][C]-0.039193[/C][C]-0.2687[/C][C]0.394671[/C][/ROW]
[ROW][C]32[/C][C]-0.131901[/C][C]-0.9043[/C][C]0.185233[/C][/ROW]
[ROW][C]33[/C][C]-0.072063[/C][C]-0.494[/C][C]0.311789[/C][/ROW]
[ROW][C]34[/C][C]-0.016028[/C][C]-0.1099[/C][C]0.456484[/C][/ROW]
[ROW][C]35[/C][C]-0.05624[/C][C]-0.3856[/C][C]0.35078[/C][/ROW]
[ROW][C]36[/C][C]-0.094853[/C][C]-0.6503[/C][C]0.25934[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60368&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60368&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.261058-1.78970.039971
20.1388820.95210.172952
30.2876241.97180.027264
4-0.095021-0.65140.258971
50.028910.19820.421873
6-0.046733-0.32040.375048
7-0.004929-0.03380.486592
8-0.000529-0.00360.49856
9-0.226758-1.55460.063378
10-0.047718-0.32710.372509
11-0.020285-0.13910.444996
12-0.028731-0.1970.422349
130.0517050.35450.362284
140.1012510.69410.245506
150.1207430.82780.205991
160.0028430.01950.492266
17-0.028164-0.19310.423862
18-0.171979-1.1790.122161
190.0462620.31720.376265
20-0.163622-1.12170.133837
210.1085870.74440.23016
220.1040990.71370.239481
230.2174111.49050.071388
24-0.25187-1.72670.045392
25-0.014442-0.0990.460775
260.0731650.50160.309148
27-0.008323-0.05710.477369
28-0.017058-0.11690.453702
29-0.072832-0.49930.309944
300.0626630.42960.334726
31-0.039193-0.26870.394671
32-0.131901-0.90430.185233
33-0.072063-0.4940.311789
34-0.016028-0.10990.456484
35-0.05624-0.38560.35078
36-0.094853-0.65030.25934



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