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 computationSat, 19 Dec 2009 05:07:23 -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/19/t1261224505eqog30mpuz68g6h.htm/, Retrieved Sat, 04 May 2024 02:46:57 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69538, Retrieved Sat, 04 May 2024 02:46:57 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact109
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]
-   PD    [(Partial) Autocorrelation Function] [WS9: ACF] [2009-12-04 17:46:09] [5c968c05ca472afa314d272082b56b09]
-   PD        [(Partial) Autocorrelation Function] [d=0,D=0 en lambda...] [2009-12-19 12:07:23] [91df150cd527c563f0151b3a845ecd72] [Current]
Feedback Forum

Post a new message
Dataseries X:
113
110
107
103
98
98
137
148
147
139
130
128
127
123
118
114
108
111
151
159
158
148
138
137
136
133
126
120
114
116
153
162
161
149
139
135
130
127
122
117
112
113
149
157
157
147
137
132
125
123
117
114
111
112
144
150
149
134
123
116




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69538&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.7323345.67260
20.2958362.29150.012729
3-0.090217-0.69880.243682
4-0.293002-2.26960.01342
5-0.34325-2.65880.00502
6-0.348115-2.69650.004541
7-0.32012-2.47960.007989
8-0.256534-1.98710.025741
9-0.075983-0.58860.279182
100.2209321.71130.046093
110.5432984.20844.4e-05
120.7176195.55870
130.4887463.78580.000178
140.1280440.99180.162633
15-0.186235-1.44260.07717
16-0.340227-2.63540.00534
17-0.367087-2.84340.003046
18-0.351019-2.7190.004275
19-0.313215-2.42620.009141
20-0.259092-2.00690.024635
21-0.121655-0.94230.1749
220.0989080.76610.2233
230.3362482.60460.00579
240.4679343.62460.000299
250.3017052.3370.011398
260.0347990.26950.394216
27-0.199084-1.54210.064154
28-0.306587-2.37480.010386
29-0.313856-2.43110.009028
30-0.2802-2.17040.016972
31-0.230016-1.78170.03993
32-0.175202-1.35710.089915
33-0.072739-0.56340.28762
340.0723180.56020.288723
350.2270421.75870.041867
360.313562.42880.00908

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.732334 & 5.6726 & 0 \tabularnewline
2 & 0.295836 & 2.2915 & 0.012729 \tabularnewline
3 & -0.090217 & -0.6988 & 0.243682 \tabularnewline
4 & -0.293002 & -2.2696 & 0.01342 \tabularnewline
5 & -0.34325 & -2.6588 & 0.00502 \tabularnewline
6 & -0.348115 & -2.6965 & 0.004541 \tabularnewline
7 & -0.32012 & -2.4796 & 0.007989 \tabularnewline
8 & -0.256534 & -1.9871 & 0.025741 \tabularnewline
9 & -0.075983 & -0.5886 & 0.279182 \tabularnewline
10 & 0.220932 & 1.7113 & 0.046093 \tabularnewline
11 & 0.543298 & 4.2084 & 4.4e-05 \tabularnewline
12 & 0.717619 & 5.5587 & 0 \tabularnewline
13 & 0.488746 & 3.7858 & 0.000178 \tabularnewline
14 & 0.128044 & 0.9918 & 0.162633 \tabularnewline
15 & -0.186235 & -1.4426 & 0.07717 \tabularnewline
16 & -0.340227 & -2.6354 & 0.00534 \tabularnewline
17 & -0.367087 & -2.8434 & 0.003046 \tabularnewline
18 & -0.351019 & -2.719 & 0.004275 \tabularnewline
19 & -0.313215 & -2.4262 & 0.009141 \tabularnewline
20 & -0.259092 & -2.0069 & 0.024635 \tabularnewline
21 & -0.121655 & -0.9423 & 0.1749 \tabularnewline
22 & 0.098908 & 0.7661 & 0.2233 \tabularnewline
23 & 0.336248 & 2.6046 & 0.00579 \tabularnewline
24 & 0.467934 & 3.6246 & 0.000299 \tabularnewline
25 & 0.301705 & 2.337 & 0.011398 \tabularnewline
26 & 0.034799 & 0.2695 & 0.394216 \tabularnewline
27 & -0.199084 & -1.5421 & 0.064154 \tabularnewline
28 & -0.306587 & -2.3748 & 0.010386 \tabularnewline
29 & -0.313856 & -2.4311 & 0.009028 \tabularnewline
30 & -0.2802 & -2.1704 & 0.016972 \tabularnewline
31 & -0.230016 & -1.7817 & 0.03993 \tabularnewline
32 & -0.175202 & -1.3571 & 0.089915 \tabularnewline
33 & -0.072739 & -0.5634 & 0.28762 \tabularnewline
34 & 0.072318 & 0.5602 & 0.288723 \tabularnewline
35 & 0.227042 & 1.7587 & 0.041867 \tabularnewline
36 & 0.31356 & 2.4288 & 0.00908 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69538&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.732334[/C][C]5.6726[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.295836[/C][C]2.2915[/C][C]0.012729[/C][/ROW]
[ROW][C]3[/C][C]-0.090217[/C][C]-0.6988[/C][C]0.243682[/C][/ROW]
[ROW][C]4[/C][C]-0.293002[/C][C]-2.2696[/C][C]0.01342[/C][/ROW]
[ROW][C]5[/C][C]-0.34325[/C][C]-2.6588[/C][C]0.00502[/C][/ROW]
[ROW][C]6[/C][C]-0.348115[/C][C]-2.6965[/C][C]0.004541[/C][/ROW]
[ROW][C]7[/C][C]-0.32012[/C][C]-2.4796[/C][C]0.007989[/C][/ROW]
[ROW][C]8[/C][C]-0.256534[/C][C]-1.9871[/C][C]0.025741[/C][/ROW]
[ROW][C]9[/C][C]-0.075983[/C][C]-0.5886[/C][C]0.279182[/C][/ROW]
[ROW][C]10[/C][C]0.220932[/C][C]1.7113[/C][C]0.046093[/C][/ROW]
[ROW][C]11[/C][C]0.543298[/C][C]4.2084[/C][C]4.4e-05[/C][/ROW]
[ROW][C]12[/C][C]0.717619[/C][C]5.5587[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.488746[/C][C]3.7858[/C][C]0.000178[/C][/ROW]
[ROW][C]14[/C][C]0.128044[/C][C]0.9918[/C][C]0.162633[/C][/ROW]
[ROW][C]15[/C][C]-0.186235[/C][C]-1.4426[/C][C]0.07717[/C][/ROW]
[ROW][C]16[/C][C]-0.340227[/C][C]-2.6354[/C][C]0.00534[/C][/ROW]
[ROW][C]17[/C][C]-0.367087[/C][C]-2.8434[/C][C]0.003046[/C][/ROW]
[ROW][C]18[/C][C]-0.351019[/C][C]-2.719[/C][C]0.004275[/C][/ROW]
[ROW][C]19[/C][C]-0.313215[/C][C]-2.4262[/C][C]0.009141[/C][/ROW]
[ROW][C]20[/C][C]-0.259092[/C][C]-2.0069[/C][C]0.024635[/C][/ROW]
[ROW][C]21[/C][C]-0.121655[/C][C]-0.9423[/C][C]0.1749[/C][/ROW]
[ROW][C]22[/C][C]0.098908[/C][C]0.7661[/C][C]0.2233[/C][/ROW]
[ROW][C]23[/C][C]0.336248[/C][C]2.6046[/C][C]0.00579[/C][/ROW]
[ROW][C]24[/C][C]0.467934[/C][C]3.6246[/C][C]0.000299[/C][/ROW]
[ROW][C]25[/C][C]0.301705[/C][C]2.337[/C][C]0.011398[/C][/ROW]
[ROW][C]26[/C][C]0.034799[/C][C]0.2695[/C][C]0.394216[/C][/ROW]
[ROW][C]27[/C][C]-0.199084[/C][C]-1.5421[/C][C]0.064154[/C][/ROW]
[ROW][C]28[/C][C]-0.306587[/C][C]-2.3748[/C][C]0.010386[/C][/ROW]
[ROW][C]29[/C][C]-0.313856[/C][C]-2.4311[/C][C]0.009028[/C][/ROW]
[ROW][C]30[/C][C]-0.2802[/C][C]-2.1704[/C][C]0.016972[/C][/ROW]
[ROW][C]31[/C][C]-0.230016[/C][C]-1.7817[/C][C]0.03993[/C][/ROW]
[ROW][C]32[/C][C]-0.175202[/C][C]-1.3571[/C][C]0.089915[/C][/ROW]
[ROW][C]33[/C][C]-0.072739[/C][C]-0.5634[/C][C]0.28762[/C][/ROW]
[ROW][C]34[/C][C]0.072318[/C][C]0.5602[/C][C]0.288723[/C][/ROW]
[ROW][C]35[/C][C]0.227042[/C][C]1.7587[/C][C]0.041867[/C][/ROW]
[ROW][C]36[/C][C]0.31356[/C][C]2.4288[/C][C]0.00908[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69538&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69538&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.7323345.67260
20.2958362.29150.012729
3-0.090217-0.69880.243682
4-0.293002-2.26960.01342
5-0.34325-2.65880.00502
6-0.348115-2.69650.004541
7-0.32012-2.47960.007989
8-0.256534-1.98710.025741
9-0.075983-0.58860.279182
100.2209321.71130.046093
110.5432984.20844.4e-05
120.7176195.55870
130.4887463.78580.000178
140.1280440.99180.162633
15-0.186235-1.44260.07717
16-0.340227-2.63540.00534
17-0.367087-2.84340.003046
18-0.351019-2.7190.004275
19-0.313215-2.42620.009141
20-0.259092-2.00690.024635
21-0.121655-0.94230.1749
220.0989080.76610.2233
230.3362482.60460.00579
240.4679343.62460.000299
250.3017052.3370.011398
260.0347990.26950.394216
27-0.199084-1.54210.064154
28-0.306587-2.37480.010386
29-0.313856-2.43110.009028
30-0.2802-2.17040.016972
31-0.230016-1.78170.03993
32-0.175202-1.35710.089915
33-0.072739-0.56340.28762
340.0723180.56020.288723
350.2270421.75870.041867
360.313562.42880.00908







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7323345.67260
2-0.518621-4.01728.3e-05
3-0.116305-0.90090.185624
40.0066550.05150.479529
5-0.114-0.8830.190369
6-0.221356-1.71460.045789
7-0.062998-0.4880.313672
8-0.063737-0.49370.311659
90.1870021.44850.07634
100.2769712.14540.017989
110.3280752.54130.006824
120.2024881.56850.061016
13-0.526695-4.07986.8e-05
140.2162841.67530.049537
15-0.001622-0.01260.495009
16-0.115832-0.89720.18659
17-0.050161-0.38850.349494
180.0138560.10730.457443
19-0.093683-0.72570.235433
20-0.115395-0.89380.187488
21-0.070453-0.54570.29364
22-0.031767-0.24610.403236
23-0.105843-0.81990.207771
240.0223050.17280.431706
25-0.037831-0.2930.385253
26-0.011768-0.09120.463836
27-0.031761-0.2460.403255
28-0.018665-0.14460.442764
29-0.009227-0.07150.47163
300.0178370.13820.445286
310.0063660.04930.480418
320.0198050.15340.439294
33-0.04714-0.36510.358145
34-0.065189-0.5050.307721
35-0.023955-0.18560.426711
36-0.032655-0.25290.400589

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.732334 & 5.6726 & 0 \tabularnewline
2 & -0.518621 & -4.0172 & 8.3e-05 \tabularnewline
3 & -0.116305 & -0.9009 & 0.185624 \tabularnewline
4 & 0.006655 & 0.0515 & 0.479529 \tabularnewline
5 & -0.114 & -0.883 & 0.190369 \tabularnewline
6 & -0.221356 & -1.7146 & 0.045789 \tabularnewline
7 & -0.062998 & -0.488 & 0.313672 \tabularnewline
8 & -0.063737 & -0.4937 & 0.311659 \tabularnewline
9 & 0.187002 & 1.4485 & 0.07634 \tabularnewline
10 & 0.276971 & 2.1454 & 0.017989 \tabularnewline
11 & 0.328075 & 2.5413 & 0.006824 \tabularnewline
12 & 0.202488 & 1.5685 & 0.061016 \tabularnewline
13 & -0.526695 & -4.0798 & 6.8e-05 \tabularnewline
14 & 0.216284 & 1.6753 & 0.049537 \tabularnewline
15 & -0.001622 & -0.0126 & 0.495009 \tabularnewline
16 & -0.115832 & -0.8972 & 0.18659 \tabularnewline
17 & -0.050161 & -0.3885 & 0.349494 \tabularnewline
18 & 0.013856 & 0.1073 & 0.457443 \tabularnewline
19 & -0.093683 & -0.7257 & 0.235433 \tabularnewline
20 & -0.115395 & -0.8938 & 0.187488 \tabularnewline
21 & -0.070453 & -0.5457 & 0.29364 \tabularnewline
22 & -0.031767 & -0.2461 & 0.403236 \tabularnewline
23 & -0.105843 & -0.8199 & 0.207771 \tabularnewline
24 & 0.022305 & 0.1728 & 0.431706 \tabularnewline
25 & -0.037831 & -0.293 & 0.385253 \tabularnewline
26 & -0.011768 & -0.0912 & 0.463836 \tabularnewline
27 & -0.031761 & -0.246 & 0.403255 \tabularnewline
28 & -0.018665 & -0.1446 & 0.442764 \tabularnewline
29 & -0.009227 & -0.0715 & 0.47163 \tabularnewline
30 & 0.017837 & 0.1382 & 0.445286 \tabularnewline
31 & 0.006366 & 0.0493 & 0.480418 \tabularnewline
32 & 0.019805 & 0.1534 & 0.439294 \tabularnewline
33 & -0.04714 & -0.3651 & 0.358145 \tabularnewline
34 & -0.065189 & -0.505 & 0.307721 \tabularnewline
35 & -0.023955 & -0.1856 & 0.426711 \tabularnewline
36 & -0.032655 & -0.2529 & 0.400589 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69538&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.732334[/C][C]5.6726[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.518621[/C][C]-4.0172[/C][C]8.3e-05[/C][/ROW]
[ROW][C]3[/C][C]-0.116305[/C][C]-0.9009[/C][C]0.185624[/C][/ROW]
[ROW][C]4[/C][C]0.006655[/C][C]0.0515[/C][C]0.479529[/C][/ROW]
[ROW][C]5[/C][C]-0.114[/C][C]-0.883[/C][C]0.190369[/C][/ROW]
[ROW][C]6[/C][C]-0.221356[/C][C]-1.7146[/C][C]0.045789[/C][/ROW]
[ROW][C]7[/C][C]-0.062998[/C][C]-0.488[/C][C]0.313672[/C][/ROW]
[ROW][C]8[/C][C]-0.063737[/C][C]-0.4937[/C][C]0.311659[/C][/ROW]
[ROW][C]9[/C][C]0.187002[/C][C]1.4485[/C][C]0.07634[/C][/ROW]
[ROW][C]10[/C][C]0.276971[/C][C]2.1454[/C][C]0.017989[/C][/ROW]
[ROW][C]11[/C][C]0.328075[/C][C]2.5413[/C][C]0.006824[/C][/ROW]
[ROW][C]12[/C][C]0.202488[/C][C]1.5685[/C][C]0.061016[/C][/ROW]
[ROW][C]13[/C][C]-0.526695[/C][C]-4.0798[/C][C]6.8e-05[/C][/ROW]
[ROW][C]14[/C][C]0.216284[/C][C]1.6753[/C][C]0.049537[/C][/ROW]
[ROW][C]15[/C][C]-0.001622[/C][C]-0.0126[/C][C]0.495009[/C][/ROW]
[ROW][C]16[/C][C]-0.115832[/C][C]-0.8972[/C][C]0.18659[/C][/ROW]
[ROW][C]17[/C][C]-0.050161[/C][C]-0.3885[/C][C]0.349494[/C][/ROW]
[ROW][C]18[/C][C]0.013856[/C][C]0.1073[/C][C]0.457443[/C][/ROW]
[ROW][C]19[/C][C]-0.093683[/C][C]-0.7257[/C][C]0.235433[/C][/ROW]
[ROW][C]20[/C][C]-0.115395[/C][C]-0.8938[/C][C]0.187488[/C][/ROW]
[ROW][C]21[/C][C]-0.070453[/C][C]-0.5457[/C][C]0.29364[/C][/ROW]
[ROW][C]22[/C][C]-0.031767[/C][C]-0.2461[/C][C]0.403236[/C][/ROW]
[ROW][C]23[/C][C]-0.105843[/C][C]-0.8199[/C][C]0.207771[/C][/ROW]
[ROW][C]24[/C][C]0.022305[/C][C]0.1728[/C][C]0.431706[/C][/ROW]
[ROW][C]25[/C][C]-0.037831[/C][C]-0.293[/C][C]0.385253[/C][/ROW]
[ROW][C]26[/C][C]-0.011768[/C][C]-0.0912[/C][C]0.463836[/C][/ROW]
[ROW][C]27[/C][C]-0.031761[/C][C]-0.246[/C][C]0.403255[/C][/ROW]
[ROW][C]28[/C][C]-0.018665[/C][C]-0.1446[/C][C]0.442764[/C][/ROW]
[ROW][C]29[/C][C]-0.009227[/C][C]-0.0715[/C][C]0.47163[/C][/ROW]
[ROW][C]30[/C][C]0.017837[/C][C]0.1382[/C][C]0.445286[/C][/ROW]
[ROW][C]31[/C][C]0.006366[/C][C]0.0493[/C][C]0.480418[/C][/ROW]
[ROW][C]32[/C][C]0.019805[/C][C]0.1534[/C][C]0.439294[/C][/ROW]
[ROW][C]33[/C][C]-0.04714[/C][C]-0.3651[/C][C]0.358145[/C][/ROW]
[ROW][C]34[/C][C]-0.065189[/C][C]-0.505[/C][C]0.307721[/C][/ROW]
[ROW][C]35[/C][C]-0.023955[/C][C]-0.1856[/C][C]0.426711[/C][/ROW]
[ROW][C]36[/C][C]-0.032655[/C][C]-0.2529[/C][C]0.400589[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69538&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69538&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.7323345.67260
2-0.518621-4.01728.3e-05
3-0.116305-0.90090.185624
40.0066550.05150.479529
5-0.114-0.8830.190369
6-0.221356-1.71460.045789
7-0.062998-0.4880.313672
8-0.063737-0.49370.311659
90.1870021.44850.07634
100.2769712.14540.017989
110.3280752.54130.006824
120.2024881.56850.061016
13-0.526695-4.07986.8e-05
140.2162841.67530.049537
15-0.001622-0.01260.495009
16-0.115832-0.89720.18659
17-0.050161-0.38850.349494
180.0138560.10730.457443
19-0.093683-0.72570.235433
20-0.115395-0.89380.187488
21-0.070453-0.54570.29364
22-0.031767-0.24610.403236
23-0.105843-0.81990.207771
240.0223050.17280.431706
25-0.037831-0.2930.385253
26-0.011768-0.09120.463836
27-0.031761-0.2460.403255
28-0.018665-0.14460.442764
29-0.009227-0.07150.47163
300.0178370.13820.445286
310.0063660.04930.480418
320.0198050.15340.439294
33-0.04714-0.36510.358145
34-0.065189-0.5050.307721
35-0.023955-0.18560.426711
36-0.032655-0.25290.400589



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