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 computationFri, 04 Dec 2009 09:36:11 -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/04/t12599446494y7so6pzwlfxztx.htm/, Retrieved Sat, 27 Apr 2024 13:26:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63876, Retrieved Sat, 27 Apr 2024 13:26:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact119
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:46:03] [b98453cac15ba1066b407e146608df68]
-    D    [(Partial) Autocorrelation Function] [Stap 3 Workshop 5] [2009-12-04 12:32:49] [76ab39dc7a55316678260825bd5ad46c]
-    D        [(Partial) Autocorrelation Function] [stap 3] [2009-12-04 16:36:11] [986e3c28a4248c495afaef9fd432264f] [Current]
Feedback Forum

Post a new message
Dataseries X:
91.98
91.72
90.27
91.89
92.07
92.92
93.34
93.60
92.41
93.60
93.77
93.60
93.60
93.51
92.66
94.20
94.37
94.45
94.62
94.37
93.43
94.79
94.88
94.79
94.62
94.71
93.77
95.73
95.99
95.82
95.47
95.82
94.71
96.33
96.50
96.16
96.33
96.33
95.05
96.84
96.92
97.44
97.78
97.69
96.67
98.29
98.20
98.71
98.54
98.20
96.92
99.06
99.65
99.82
99.99
100.33
99.31
101.10
101.10
100.93
100.85
100.93
99.60
101.88
101.81
102.38
102.74
102.82
101.72
103.47
102.98
102.68
102.90
103.03
101.29
103.69
103.68
104.20
104.08
104.16
103.05
104.66
104.46
104.95
105.85
106.23
104.86
107.44
108.23
108.45
109.39
110.15
109.13
110.28
110.17
109.99
109.26
109.11
107.06
109.53
108.92
109.24
109.12
109.00
107.23
109.49
109.04
109.02




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63876&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
10.96464510.02490
20.9402189.7710
30.9091649.44830
40.8873419.22150
50.8598378.93570
60.8454228.78590
70.8081038.39810
80.7836848.14430
90.7539387.83510
100.7331937.61960
110.7066767.3440
120.6886697.15690
130.6465776.71940
140.6146766.38790
150.5795886.02330
160.550295.71880
170.5182215.38550
180.4982725.17821e-06
190.4600484.7813e-06
200.4319874.48939e-06
210.4029444.18752.9e-05
220.3833653.9846.2e-05
230.3586593.72730.000155
240.3440653.57560.000262
250.310763.22950.000822
260.2879632.99260.001714
270.2610162.71260.003886
280.2427812.52310.006545
290.2214542.30140.011643
300.2087472.16940.016124
310.1764411.83360.034731
320.1553391.61430.054687
330.1304211.35540.089063
340.1149811.19490.117369
350.0949220.98650.163057
360.0820510.85270.197857

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.964645 & 10.0249 & 0 \tabularnewline
2 & 0.940218 & 9.771 & 0 \tabularnewline
3 & 0.909164 & 9.4483 & 0 \tabularnewline
4 & 0.887341 & 9.2215 & 0 \tabularnewline
5 & 0.859837 & 8.9357 & 0 \tabularnewline
6 & 0.845422 & 8.7859 & 0 \tabularnewline
7 & 0.808103 & 8.3981 & 0 \tabularnewline
8 & 0.783684 & 8.1443 & 0 \tabularnewline
9 & 0.753938 & 7.8351 & 0 \tabularnewline
10 & 0.733193 & 7.6196 & 0 \tabularnewline
11 & 0.706676 & 7.344 & 0 \tabularnewline
12 & 0.688669 & 7.1569 & 0 \tabularnewline
13 & 0.646577 & 6.7194 & 0 \tabularnewline
14 & 0.614676 & 6.3879 & 0 \tabularnewline
15 & 0.579588 & 6.0233 & 0 \tabularnewline
16 & 0.55029 & 5.7188 & 0 \tabularnewline
17 & 0.518221 & 5.3855 & 0 \tabularnewline
18 & 0.498272 & 5.1782 & 1e-06 \tabularnewline
19 & 0.460048 & 4.781 & 3e-06 \tabularnewline
20 & 0.431987 & 4.4893 & 9e-06 \tabularnewline
21 & 0.402944 & 4.1875 & 2.9e-05 \tabularnewline
22 & 0.383365 & 3.984 & 6.2e-05 \tabularnewline
23 & 0.358659 & 3.7273 & 0.000155 \tabularnewline
24 & 0.344065 & 3.5756 & 0.000262 \tabularnewline
25 & 0.31076 & 3.2295 & 0.000822 \tabularnewline
26 & 0.287963 & 2.9926 & 0.001714 \tabularnewline
27 & 0.261016 & 2.7126 & 0.003886 \tabularnewline
28 & 0.242781 & 2.5231 & 0.006545 \tabularnewline
29 & 0.221454 & 2.3014 & 0.011643 \tabularnewline
30 & 0.208747 & 2.1694 & 0.016124 \tabularnewline
31 & 0.176441 & 1.8336 & 0.034731 \tabularnewline
32 & 0.155339 & 1.6143 & 0.054687 \tabularnewline
33 & 0.130421 & 1.3554 & 0.089063 \tabularnewline
34 & 0.114981 & 1.1949 & 0.117369 \tabularnewline
35 & 0.094922 & 0.9865 & 0.163057 \tabularnewline
36 & 0.082051 & 0.8527 & 0.197857 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63876&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.964645[/C][C]10.0249[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.940218[/C][C]9.771[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.909164[/C][C]9.4483[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.887341[/C][C]9.2215[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0.859837[/C][C]8.9357[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0.845422[/C][C]8.7859[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0.808103[/C][C]8.3981[/C][C]0[/C][/ROW]
[ROW][C]8[/C][C]0.783684[/C][C]8.1443[/C][C]0[/C][/ROW]
[ROW][C]9[/C][C]0.753938[/C][C]7.8351[/C][C]0[/C][/ROW]
[ROW][C]10[/C][C]0.733193[/C][C]7.6196[/C][C]0[/C][/ROW]
[ROW][C]11[/C][C]0.706676[/C][C]7.344[/C][C]0[/C][/ROW]
[ROW][C]12[/C][C]0.688669[/C][C]7.1569[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.646577[/C][C]6.7194[/C][C]0[/C][/ROW]
[ROW][C]14[/C][C]0.614676[/C][C]6.3879[/C][C]0[/C][/ROW]
[ROW][C]15[/C][C]0.579588[/C][C]6.0233[/C][C]0[/C][/ROW]
[ROW][C]16[/C][C]0.55029[/C][C]5.7188[/C][C]0[/C][/ROW]
[ROW][C]17[/C][C]0.518221[/C][C]5.3855[/C][C]0[/C][/ROW]
[ROW][C]18[/C][C]0.498272[/C][C]5.1782[/C][C]1e-06[/C][/ROW]
[ROW][C]19[/C][C]0.460048[/C][C]4.781[/C][C]3e-06[/C][/ROW]
[ROW][C]20[/C][C]0.431987[/C][C]4.4893[/C][C]9e-06[/C][/ROW]
[ROW][C]21[/C][C]0.402944[/C][C]4.1875[/C][C]2.9e-05[/C][/ROW]
[ROW][C]22[/C][C]0.383365[/C][C]3.984[/C][C]6.2e-05[/C][/ROW]
[ROW][C]23[/C][C]0.358659[/C][C]3.7273[/C][C]0.000155[/C][/ROW]
[ROW][C]24[/C][C]0.344065[/C][C]3.5756[/C][C]0.000262[/C][/ROW]
[ROW][C]25[/C][C]0.31076[/C][C]3.2295[/C][C]0.000822[/C][/ROW]
[ROW][C]26[/C][C]0.287963[/C][C]2.9926[/C][C]0.001714[/C][/ROW]
[ROW][C]27[/C][C]0.261016[/C][C]2.7126[/C][C]0.003886[/C][/ROW]
[ROW][C]28[/C][C]0.242781[/C][C]2.5231[/C][C]0.006545[/C][/ROW]
[ROW][C]29[/C][C]0.221454[/C][C]2.3014[/C][C]0.011643[/C][/ROW]
[ROW][C]30[/C][C]0.208747[/C][C]2.1694[/C][C]0.016124[/C][/ROW]
[ROW][C]31[/C][C]0.176441[/C][C]1.8336[/C][C]0.034731[/C][/ROW]
[ROW][C]32[/C][C]0.155339[/C][C]1.6143[/C][C]0.054687[/C][/ROW]
[ROW][C]33[/C][C]0.130421[/C][C]1.3554[/C][C]0.089063[/C][/ROW]
[ROW][C]34[/C][C]0.114981[/C][C]1.1949[/C][C]0.117369[/C][/ROW]
[ROW][C]35[/C][C]0.094922[/C][C]0.9865[/C][C]0.163057[/C][/ROW]
[ROW][C]36[/C][C]0.082051[/C][C]0.8527[/C][C]0.197857[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63876&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63876&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.96464510.02490
20.9402189.7710
30.9091649.44830
40.8873419.22150
50.8598378.93570
60.8454228.78590
70.8081038.39810
80.7836848.14430
90.7539387.83510
100.7331937.61960
110.7066767.3440
120.6886697.15690
130.6465776.71940
140.6146766.38790
150.5795886.02330
160.550295.71880
170.5182215.38550
180.4982725.17821e-06
190.4600484.7813e-06
200.4319874.48939e-06
210.4029444.18752.9e-05
220.3833653.9846.2e-05
230.3586593.72730.000155
240.3440653.57560.000262
250.310763.22950.000822
260.2879632.99260.001714
270.2610162.71260.003886
280.2427812.52310.006545
290.2214542.30140.011643
300.2087472.16940.016124
310.1764411.83360.034731
320.1553391.61430.054687
330.1304211.35540.089063
340.1149811.19490.117369
350.0949220.98650.163057
360.0820510.85270.197857







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.96464510.02490
20.1393281.44790.075265
3-0.085855-0.89220.187127
40.0952480.98980.162232
5-0.055489-0.57670.282684
60.1461971.51930.065802
7-0.290562-3.01960.001579
80.0867370.90140.184692
9-0.003644-0.03790.484931
100.0365410.37970.352441
11-0.014508-0.15080.440218
12-0.001533-0.01590.493659
13-0.243772-2.53340.006367
14-0.000789-0.00820.496738
150.0264780.27520.391857
16-0.038908-0.40430.343382
170.0185190.19250.423875
180.0612540.63660.262875
19-0.112097-1.1650.123303
200.0050140.05210.479271
210.0417570.4340.332594
220.0589760.61290.270618
23-0.024582-0.25550.399426
240.0270020.28060.389771
25-0.10291-1.06950.143621
260.0236160.24540.403295
27-0.019279-0.20040.420792
280.0249750.25950.397855
290.0205240.21330.41575
30-0.024885-0.25860.398212
31-0.119333-1.24020.108804
320.0172590.17940.428993
33-0.017959-0.18660.426148
340.0217610.22620.410755
35-0.004741-0.04930.480398
36-0.041304-0.42920.334302

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.964645 & 10.0249 & 0 \tabularnewline
2 & 0.139328 & 1.4479 & 0.075265 \tabularnewline
3 & -0.085855 & -0.8922 & 0.187127 \tabularnewline
4 & 0.095248 & 0.9898 & 0.162232 \tabularnewline
5 & -0.055489 & -0.5767 & 0.282684 \tabularnewline
6 & 0.146197 & 1.5193 & 0.065802 \tabularnewline
7 & -0.290562 & -3.0196 & 0.001579 \tabularnewline
8 & 0.086737 & 0.9014 & 0.184692 \tabularnewline
9 & -0.003644 & -0.0379 & 0.484931 \tabularnewline
10 & 0.036541 & 0.3797 & 0.352441 \tabularnewline
11 & -0.014508 & -0.1508 & 0.440218 \tabularnewline
12 & -0.001533 & -0.0159 & 0.493659 \tabularnewline
13 & -0.243772 & -2.5334 & 0.006367 \tabularnewline
14 & -0.000789 & -0.0082 & 0.496738 \tabularnewline
15 & 0.026478 & 0.2752 & 0.391857 \tabularnewline
16 & -0.038908 & -0.4043 & 0.343382 \tabularnewline
17 & 0.018519 & 0.1925 & 0.423875 \tabularnewline
18 & 0.061254 & 0.6366 & 0.262875 \tabularnewline
19 & -0.112097 & -1.165 & 0.123303 \tabularnewline
20 & 0.005014 & 0.0521 & 0.479271 \tabularnewline
21 & 0.041757 & 0.434 & 0.332594 \tabularnewline
22 & 0.058976 & 0.6129 & 0.270618 \tabularnewline
23 & -0.024582 & -0.2555 & 0.399426 \tabularnewline
24 & 0.027002 & 0.2806 & 0.389771 \tabularnewline
25 & -0.10291 & -1.0695 & 0.143621 \tabularnewline
26 & 0.023616 & 0.2454 & 0.403295 \tabularnewline
27 & -0.019279 & -0.2004 & 0.420792 \tabularnewline
28 & 0.024975 & 0.2595 & 0.397855 \tabularnewline
29 & 0.020524 & 0.2133 & 0.41575 \tabularnewline
30 & -0.024885 & -0.2586 & 0.398212 \tabularnewline
31 & -0.119333 & -1.2402 & 0.108804 \tabularnewline
32 & 0.017259 & 0.1794 & 0.428993 \tabularnewline
33 & -0.017959 & -0.1866 & 0.426148 \tabularnewline
34 & 0.021761 & 0.2262 & 0.410755 \tabularnewline
35 & -0.004741 & -0.0493 & 0.480398 \tabularnewline
36 & -0.041304 & -0.4292 & 0.334302 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63876&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.964645[/C][C]10.0249[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.139328[/C][C]1.4479[/C][C]0.075265[/C][/ROW]
[ROW][C]3[/C][C]-0.085855[/C][C]-0.8922[/C][C]0.187127[/C][/ROW]
[ROW][C]4[/C][C]0.095248[/C][C]0.9898[/C][C]0.162232[/C][/ROW]
[ROW][C]5[/C][C]-0.055489[/C][C]-0.5767[/C][C]0.282684[/C][/ROW]
[ROW][C]6[/C][C]0.146197[/C][C]1.5193[/C][C]0.065802[/C][/ROW]
[ROW][C]7[/C][C]-0.290562[/C][C]-3.0196[/C][C]0.001579[/C][/ROW]
[ROW][C]8[/C][C]0.086737[/C][C]0.9014[/C][C]0.184692[/C][/ROW]
[ROW][C]9[/C][C]-0.003644[/C][C]-0.0379[/C][C]0.484931[/C][/ROW]
[ROW][C]10[/C][C]0.036541[/C][C]0.3797[/C][C]0.352441[/C][/ROW]
[ROW][C]11[/C][C]-0.014508[/C][C]-0.1508[/C][C]0.440218[/C][/ROW]
[ROW][C]12[/C][C]-0.001533[/C][C]-0.0159[/C][C]0.493659[/C][/ROW]
[ROW][C]13[/C][C]-0.243772[/C][C]-2.5334[/C][C]0.006367[/C][/ROW]
[ROW][C]14[/C][C]-0.000789[/C][C]-0.0082[/C][C]0.496738[/C][/ROW]
[ROW][C]15[/C][C]0.026478[/C][C]0.2752[/C][C]0.391857[/C][/ROW]
[ROW][C]16[/C][C]-0.038908[/C][C]-0.4043[/C][C]0.343382[/C][/ROW]
[ROW][C]17[/C][C]0.018519[/C][C]0.1925[/C][C]0.423875[/C][/ROW]
[ROW][C]18[/C][C]0.061254[/C][C]0.6366[/C][C]0.262875[/C][/ROW]
[ROW][C]19[/C][C]-0.112097[/C][C]-1.165[/C][C]0.123303[/C][/ROW]
[ROW][C]20[/C][C]0.005014[/C][C]0.0521[/C][C]0.479271[/C][/ROW]
[ROW][C]21[/C][C]0.041757[/C][C]0.434[/C][C]0.332594[/C][/ROW]
[ROW][C]22[/C][C]0.058976[/C][C]0.6129[/C][C]0.270618[/C][/ROW]
[ROW][C]23[/C][C]-0.024582[/C][C]-0.2555[/C][C]0.399426[/C][/ROW]
[ROW][C]24[/C][C]0.027002[/C][C]0.2806[/C][C]0.389771[/C][/ROW]
[ROW][C]25[/C][C]-0.10291[/C][C]-1.0695[/C][C]0.143621[/C][/ROW]
[ROW][C]26[/C][C]0.023616[/C][C]0.2454[/C][C]0.403295[/C][/ROW]
[ROW][C]27[/C][C]-0.019279[/C][C]-0.2004[/C][C]0.420792[/C][/ROW]
[ROW][C]28[/C][C]0.024975[/C][C]0.2595[/C][C]0.397855[/C][/ROW]
[ROW][C]29[/C][C]0.020524[/C][C]0.2133[/C][C]0.41575[/C][/ROW]
[ROW][C]30[/C][C]-0.024885[/C][C]-0.2586[/C][C]0.398212[/C][/ROW]
[ROW][C]31[/C][C]-0.119333[/C][C]-1.2402[/C][C]0.108804[/C][/ROW]
[ROW][C]32[/C][C]0.017259[/C][C]0.1794[/C][C]0.428993[/C][/ROW]
[ROW][C]33[/C][C]-0.017959[/C][C]-0.1866[/C][C]0.426148[/C][/ROW]
[ROW][C]34[/C][C]0.021761[/C][C]0.2262[/C][C]0.410755[/C][/ROW]
[ROW][C]35[/C][C]-0.004741[/C][C]-0.0493[/C][C]0.480398[/C][/ROW]
[ROW][C]36[/C][C]-0.041304[/C][C]-0.4292[/C][C]0.334302[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63876&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63876&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.96464510.02490
20.1393281.44790.075265
3-0.085855-0.89220.187127
40.0952480.98980.162232
5-0.055489-0.57670.282684
60.1461971.51930.065802
7-0.290562-3.01960.001579
80.0867370.90140.184692
9-0.003644-0.03790.484931
100.0365410.37970.352441
11-0.014508-0.15080.440218
12-0.001533-0.01590.493659
13-0.243772-2.53340.006367
14-0.000789-0.00820.496738
150.0264780.27520.391857
16-0.038908-0.40430.343382
170.0185190.19250.423875
180.0612540.63660.262875
19-0.112097-1.1650.123303
200.0050140.05210.479271
210.0417570.4340.332594
220.0589760.61290.270618
23-0.024582-0.25550.399426
240.0270020.28060.389771
25-0.10291-1.06950.143621
260.0236160.24540.403295
27-0.019279-0.20040.420792
280.0249750.25950.397855
290.0205240.21330.41575
30-0.024885-0.25860.398212
31-0.119333-1.24020.108804
320.0172590.17940.428993
33-0.017959-0.18660.426148
340.0217610.22620.410755
35-0.004741-0.04930.480398
36-0.041304-0.42920.334302



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