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, 03 Dec 2009 12:06:55 -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/03/t1259867312tbldz8hf0sxmnj9.htm/, Retrieved Fri, 19 Apr 2024 05:13:51 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63071, Retrieved Fri, 19 Apr 2024 05:13:51 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact101
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] [WS 9 (P)ACF 1] [2009-12-03 18:53:40] [83058a88a37d754675a5cd22dab372fc]
-    D        [(Partial) Autocorrelation Function] [] [2009-12-03 19:06:55] [eba9f01697e64705b70041e6f338cb22] [Current]
Feedback Forum

Post a new message
Dataseries X:
106.9
107.5
116.1
102
111.2
111.8
91.2
93
105.4
111.6
104.6
91.6
98.3
97.7
106.3
102.3
106.6
108.1
93.8
88.2
108.9
114.2
102.5
94.2
97.4
98.5
106.5
102.9
97.1
103.7
93.4
85.8
108.6
110.2
101.2
101.2
96.9
99.4
118.7
108
101.2
119.9
94.8
95.3
118
115.9
111.4
108.2
108.8
109.5
124.8
115.3
109.5
124.2
92.9
98.4
120.9
111.7
116.1
109.4
111.7
114.3
133.7
114.3
126.5
131
104
108.9
128.5
132.4
128
116.4
120.9
118.6
133.1
121.1
127.6
135.4
114.9
114.3
128.9
138.9
129.4
115
128
127
128.8
137.9
128.4
135.9
122.2
113.1
136.2
138
115.2
111




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63071&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.5977185.85640
20.4015823.93477.9e-05
30.5458965.34870
40.5247155.14111e-06
50.5863895.74540
60.6277056.15020
70.523715.13131e-06
80.460474.51179e-06
90.4092934.01026e-05
100.2748212.69270.004182
110.4528434.43691.2e-05
120.7101266.95780
130.3882063.80360.000125
140.2096692.05430.021331
150.3091183.02870.001577
160.3120013.0570.001448
170.3506573.43570.000437
180.3773113.69690.000182
190.2952472.89280.002362
200.2263462.21770.014466
210.1767571.73190.043256
220.0673390.65980.255484
230.2228742.18370.01571
240.3901243.82240.000117
250.1534231.50320.068031
26-0.011528-0.1130.455153
270.0375620.3680.35683
280.0629560.61680.269401
290.0749870.73470.232151
300.0772980.75740.225344
310.0406330.39810.345713
32-0.050742-0.49720.310104
33-0.110009-1.07790.141897
34-0.170073-1.66640.049449
35-0.074181-0.72680.234553
360.0851760.83460.203021

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.597718 & 5.8564 & 0 \tabularnewline
2 & 0.401582 & 3.9347 & 7.9e-05 \tabularnewline
3 & 0.545896 & 5.3487 & 0 \tabularnewline
4 & 0.524715 & 5.1411 & 1e-06 \tabularnewline
5 & 0.586389 & 5.7454 & 0 \tabularnewline
6 & 0.627705 & 6.1502 & 0 \tabularnewline
7 & 0.52371 & 5.1313 & 1e-06 \tabularnewline
8 & 0.46047 & 4.5117 & 9e-06 \tabularnewline
9 & 0.409293 & 4.0102 & 6e-05 \tabularnewline
10 & 0.274821 & 2.6927 & 0.004182 \tabularnewline
11 & 0.452843 & 4.4369 & 1.2e-05 \tabularnewline
12 & 0.710126 & 6.9578 & 0 \tabularnewline
13 & 0.388206 & 3.8036 & 0.000125 \tabularnewline
14 & 0.209669 & 2.0543 & 0.021331 \tabularnewline
15 & 0.309118 & 3.0287 & 0.001577 \tabularnewline
16 & 0.312001 & 3.057 & 0.001448 \tabularnewline
17 & 0.350657 & 3.4357 & 0.000437 \tabularnewline
18 & 0.377311 & 3.6969 & 0.000182 \tabularnewline
19 & 0.295247 & 2.8928 & 0.002362 \tabularnewline
20 & 0.226346 & 2.2177 & 0.014466 \tabularnewline
21 & 0.176757 & 1.7319 & 0.043256 \tabularnewline
22 & 0.067339 & 0.6598 & 0.255484 \tabularnewline
23 & 0.222874 & 2.1837 & 0.01571 \tabularnewline
24 & 0.390124 & 3.8224 & 0.000117 \tabularnewline
25 & 0.153423 & 1.5032 & 0.068031 \tabularnewline
26 & -0.011528 & -0.113 & 0.455153 \tabularnewline
27 & 0.037562 & 0.368 & 0.35683 \tabularnewline
28 & 0.062956 & 0.6168 & 0.269401 \tabularnewline
29 & 0.074987 & 0.7347 & 0.232151 \tabularnewline
30 & 0.077298 & 0.7574 & 0.225344 \tabularnewline
31 & 0.040633 & 0.3981 & 0.345713 \tabularnewline
32 & -0.050742 & -0.4972 & 0.310104 \tabularnewline
33 & -0.110009 & -1.0779 & 0.141897 \tabularnewline
34 & -0.170073 & -1.6664 & 0.049449 \tabularnewline
35 & -0.074181 & -0.7268 & 0.234553 \tabularnewline
36 & 0.085176 & 0.8346 & 0.203021 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63071&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.597718[/C][C]5.8564[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.401582[/C][C]3.9347[/C][C]7.9e-05[/C][/ROW]
[ROW][C]3[/C][C]0.545896[/C][C]5.3487[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.524715[/C][C]5.1411[/C][C]1e-06[/C][/ROW]
[ROW][C]5[/C][C]0.586389[/C][C]5.7454[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0.627705[/C][C]6.1502[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0.52371[/C][C]5.1313[/C][C]1e-06[/C][/ROW]
[ROW][C]8[/C][C]0.46047[/C][C]4.5117[/C][C]9e-06[/C][/ROW]
[ROW][C]9[/C][C]0.409293[/C][C]4.0102[/C][C]6e-05[/C][/ROW]
[ROW][C]10[/C][C]0.274821[/C][C]2.6927[/C][C]0.004182[/C][/ROW]
[ROW][C]11[/C][C]0.452843[/C][C]4.4369[/C][C]1.2e-05[/C][/ROW]
[ROW][C]12[/C][C]0.710126[/C][C]6.9578[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.388206[/C][C]3.8036[/C][C]0.000125[/C][/ROW]
[ROW][C]14[/C][C]0.209669[/C][C]2.0543[/C][C]0.021331[/C][/ROW]
[ROW][C]15[/C][C]0.309118[/C][C]3.0287[/C][C]0.001577[/C][/ROW]
[ROW][C]16[/C][C]0.312001[/C][C]3.057[/C][C]0.001448[/C][/ROW]
[ROW][C]17[/C][C]0.350657[/C][C]3.4357[/C][C]0.000437[/C][/ROW]
[ROW][C]18[/C][C]0.377311[/C][C]3.6969[/C][C]0.000182[/C][/ROW]
[ROW][C]19[/C][C]0.295247[/C][C]2.8928[/C][C]0.002362[/C][/ROW]
[ROW][C]20[/C][C]0.226346[/C][C]2.2177[/C][C]0.014466[/C][/ROW]
[ROW][C]21[/C][C]0.176757[/C][C]1.7319[/C][C]0.043256[/C][/ROW]
[ROW][C]22[/C][C]0.067339[/C][C]0.6598[/C][C]0.255484[/C][/ROW]
[ROW][C]23[/C][C]0.222874[/C][C]2.1837[/C][C]0.01571[/C][/ROW]
[ROW][C]24[/C][C]0.390124[/C][C]3.8224[/C][C]0.000117[/C][/ROW]
[ROW][C]25[/C][C]0.153423[/C][C]1.5032[/C][C]0.068031[/C][/ROW]
[ROW][C]26[/C][C]-0.011528[/C][C]-0.113[/C][C]0.455153[/C][/ROW]
[ROW][C]27[/C][C]0.037562[/C][C]0.368[/C][C]0.35683[/C][/ROW]
[ROW][C]28[/C][C]0.062956[/C][C]0.6168[/C][C]0.269401[/C][/ROW]
[ROW][C]29[/C][C]0.074987[/C][C]0.7347[/C][C]0.232151[/C][/ROW]
[ROW][C]30[/C][C]0.077298[/C][C]0.7574[/C][C]0.225344[/C][/ROW]
[ROW][C]31[/C][C]0.040633[/C][C]0.3981[/C][C]0.345713[/C][/ROW]
[ROW][C]32[/C][C]-0.050742[/C][C]-0.4972[/C][C]0.310104[/C][/ROW]
[ROW][C]33[/C][C]-0.110009[/C][C]-1.0779[/C][C]0.141897[/C][/ROW]
[ROW][C]34[/C][C]-0.170073[/C][C]-1.6664[/C][C]0.049449[/C][/ROW]
[ROW][C]35[/C][C]-0.074181[/C][C]-0.7268[/C][C]0.234553[/C][/ROW]
[ROW][C]36[/C][C]0.085176[/C][C]0.8346[/C][C]0.203021[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63071&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63071&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.5977185.85640
20.4015823.93477.9e-05
30.5458965.34870
40.5247155.14111e-06
50.5863895.74540
60.6277056.15020
70.523715.13131e-06
80.460474.51179e-06
90.4092934.01026e-05
100.2748212.69270.004182
110.4528434.43691.2e-05
120.7101266.95780
130.3882063.80360.000125
140.2096692.05430.021331
150.3091183.02870.001577
160.3120013.0570.001448
170.3506573.43570.000437
180.3773113.69690.000182
190.2952472.89280.002362
200.2263462.21770.014466
210.1767571.73190.043256
220.0673390.65980.255484
230.2228742.18370.01571
240.3901243.82240.000117
250.1534231.50320.068031
26-0.011528-0.1130.455153
270.0375620.3680.35683
280.0629560.61680.269401
290.0749870.73470.232151
300.0772980.75740.225344
310.0406330.39810.345713
32-0.050742-0.49720.310104
33-0.110009-1.07790.141897
34-0.170073-1.66640.049449
35-0.074181-0.72680.234553
360.0851760.83460.203021







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5977185.85640
20.0689490.67560.250472
30.4395984.30722e-05
40.0877120.85940.196131
50.405373.97186.9e-05
60.1916411.87770.03173
70.1296391.27020.103543
8-0.023434-0.22960.409443
9-0.167476-1.64090.052043
10-0.462179-4.52849e-06
110.1133971.11110.134658
120.5103675.00061e-06
13-0.16912-1.6570.050389
14-0.124831-1.22310.112145
15-0.178117-1.74520.042076
160.0335760.3290.371445
17-0.145456-1.42520.078675
180.014150.13860.445012
190.0266580.26120.397249
200.0003210.00310.498747
210.0627040.61440.270211
22-0.054398-0.5330.297636
23-0.018854-0.18470.426917
24-0.159686-1.56460.060484
250.0717440.70290.241894
26-0.107469-1.0530.147498
27-0.059549-0.58350.280475
28-0.067962-0.66590.253539
29-0.051061-0.50030.309007
30-0.080708-0.79080.215512
310.080250.78630.216817
32-0.045957-0.45030.326759
33-0.008421-0.08250.467206
340.0063110.06180.475413
35-0.105113-1.02990.152823
360.1369681.3420.09138

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.597718 & 5.8564 & 0 \tabularnewline
2 & 0.068949 & 0.6756 & 0.250472 \tabularnewline
3 & 0.439598 & 4.3072 & 2e-05 \tabularnewline
4 & 0.087712 & 0.8594 & 0.196131 \tabularnewline
5 & 0.40537 & 3.9718 & 6.9e-05 \tabularnewline
6 & 0.191641 & 1.8777 & 0.03173 \tabularnewline
7 & 0.129639 & 1.2702 & 0.103543 \tabularnewline
8 & -0.023434 & -0.2296 & 0.409443 \tabularnewline
9 & -0.167476 & -1.6409 & 0.052043 \tabularnewline
10 & -0.462179 & -4.5284 & 9e-06 \tabularnewline
11 & 0.113397 & 1.1111 & 0.134658 \tabularnewline
12 & 0.510367 & 5.0006 & 1e-06 \tabularnewline
13 & -0.16912 & -1.657 & 0.050389 \tabularnewline
14 & -0.124831 & -1.2231 & 0.112145 \tabularnewline
15 & -0.178117 & -1.7452 & 0.042076 \tabularnewline
16 & 0.033576 & 0.329 & 0.371445 \tabularnewline
17 & -0.145456 & -1.4252 & 0.078675 \tabularnewline
18 & 0.01415 & 0.1386 & 0.445012 \tabularnewline
19 & 0.026658 & 0.2612 & 0.397249 \tabularnewline
20 & 0.000321 & 0.0031 & 0.498747 \tabularnewline
21 & 0.062704 & 0.6144 & 0.270211 \tabularnewline
22 & -0.054398 & -0.533 & 0.297636 \tabularnewline
23 & -0.018854 & -0.1847 & 0.426917 \tabularnewline
24 & -0.159686 & -1.5646 & 0.060484 \tabularnewline
25 & 0.071744 & 0.7029 & 0.241894 \tabularnewline
26 & -0.107469 & -1.053 & 0.147498 \tabularnewline
27 & -0.059549 & -0.5835 & 0.280475 \tabularnewline
28 & -0.067962 & -0.6659 & 0.253539 \tabularnewline
29 & -0.051061 & -0.5003 & 0.309007 \tabularnewline
30 & -0.080708 & -0.7908 & 0.215512 \tabularnewline
31 & 0.08025 & 0.7863 & 0.216817 \tabularnewline
32 & -0.045957 & -0.4503 & 0.326759 \tabularnewline
33 & -0.008421 & -0.0825 & 0.467206 \tabularnewline
34 & 0.006311 & 0.0618 & 0.475413 \tabularnewline
35 & -0.105113 & -1.0299 & 0.152823 \tabularnewline
36 & 0.136968 & 1.342 & 0.09138 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63071&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.597718[/C][C]5.8564[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.068949[/C][C]0.6756[/C][C]0.250472[/C][/ROW]
[ROW][C]3[/C][C]0.439598[/C][C]4.3072[/C][C]2e-05[/C][/ROW]
[ROW][C]4[/C][C]0.087712[/C][C]0.8594[/C][C]0.196131[/C][/ROW]
[ROW][C]5[/C][C]0.40537[/C][C]3.9718[/C][C]6.9e-05[/C][/ROW]
[ROW][C]6[/C][C]0.191641[/C][C]1.8777[/C][C]0.03173[/C][/ROW]
[ROW][C]7[/C][C]0.129639[/C][C]1.2702[/C][C]0.103543[/C][/ROW]
[ROW][C]8[/C][C]-0.023434[/C][C]-0.2296[/C][C]0.409443[/C][/ROW]
[ROW][C]9[/C][C]-0.167476[/C][C]-1.6409[/C][C]0.052043[/C][/ROW]
[ROW][C]10[/C][C]-0.462179[/C][C]-4.5284[/C][C]9e-06[/C][/ROW]
[ROW][C]11[/C][C]0.113397[/C][C]1.1111[/C][C]0.134658[/C][/ROW]
[ROW][C]12[/C][C]0.510367[/C][C]5.0006[/C][C]1e-06[/C][/ROW]
[ROW][C]13[/C][C]-0.16912[/C][C]-1.657[/C][C]0.050389[/C][/ROW]
[ROW][C]14[/C][C]-0.124831[/C][C]-1.2231[/C][C]0.112145[/C][/ROW]
[ROW][C]15[/C][C]-0.178117[/C][C]-1.7452[/C][C]0.042076[/C][/ROW]
[ROW][C]16[/C][C]0.033576[/C][C]0.329[/C][C]0.371445[/C][/ROW]
[ROW][C]17[/C][C]-0.145456[/C][C]-1.4252[/C][C]0.078675[/C][/ROW]
[ROW][C]18[/C][C]0.01415[/C][C]0.1386[/C][C]0.445012[/C][/ROW]
[ROW][C]19[/C][C]0.026658[/C][C]0.2612[/C][C]0.397249[/C][/ROW]
[ROW][C]20[/C][C]0.000321[/C][C]0.0031[/C][C]0.498747[/C][/ROW]
[ROW][C]21[/C][C]0.062704[/C][C]0.6144[/C][C]0.270211[/C][/ROW]
[ROW][C]22[/C][C]-0.054398[/C][C]-0.533[/C][C]0.297636[/C][/ROW]
[ROW][C]23[/C][C]-0.018854[/C][C]-0.1847[/C][C]0.426917[/C][/ROW]
[ROW][C]24[/C][C]-0.159686[/C][C]-1.5646[/C][C]0.060484[/C][/ROW]
[ROW][C]25[/C][C]0.071744[/C][C]0.7029[/C][C]0.241894[/C][/ROW]
[ROW][C]26[/C][C]-0.107469[/C][C]-1.053[/C][C]0.147498[/C][/ROW]
[ROW][C]27[/C][C]-0.059549[/C][C]-0.5835[/C][C]0.280475[/C][/ROW]
[ROW][C]28[/C][C]-0.067962[/C][C]-0.6659[/C][C]0.253539[/C][/ROW]
[ROW][C]29[/C][C]-0.051061[/C][C]-0.5003[/C][C]0.309007[/C][/ROW]
[ROW][C]30[/C][C]-0.080708[/C][C]-0.7908[/C][C]0.215512[/C][/ROW]
[ROW][C]31[/C][C]0.08025[/C][C]0.7863[/C][C]0.216817[/C][/ROW]
[ROW][C]32[/C][C]-0.045957[/C][C]-0.4503[/C][C]0.326759[/C][/ROW]
[ROW][C]33[/C][C]-0.008421[/C][C]-0.0825[/C][C]0.467206[/C][/ROW]
[ROW][C]34[/C][C]0.006311[/C][C]0.0618[/C][C]0.475413[/C][/ROW]
[ROW][C]35[/C][C]-0.105113[/C][C]-1.0299[/C][C]0.152823[/C][/ROW]
[ROW][C]36[/C][C]0.136968[/C][C]1.342[/C][C]0.09138[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63071&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63071&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.5977185.85640
20.0689490.67560.250472
30.4395984.30722e-05
40.0877120.85940.196131
50.405373.97186.9e-05
60.1916411.87770.03173
70.1296391.27020.103543
8-0.023434-0.22960.409443
9-0.167476-1.64090.052043
10-0.462179-4.52849e-06
110.1133971.11110.134658
120.5103675.00061e-06
13-0.16912-1.6570.050389
14-0.124831-1.22310.112145
15-0.178117-1.74520.042076
160.0335760.3290.371445
17-0.145456-1.42520.078675
180.014150.13860.445012
190.0266580.26120.397249
200.0003210.00310.498747
210.0627040.61440.270211
22-0.054398-0.5330.297636
23-0.018854-0.18470.426917
24-0.159686-1.56460.060484
250.0717440.70290.241894
26-0.107469-1.0530.147498
27-0.059549-0.58350.280475
28-0.067962-0.66590.253539
29-0.051061-0.50030.309007
30-0.080708-0.79080.215512
310.080250.78630.216817
32-0.045957-0.45030.326759
33-0.008421-0.08250.467206
340.0063110.06180.475413
35-0.105113-1.02990.152823
360.1369681.3420.09138



Parameters (Session):
par1 = 36 ; par2 = 0.0 ; 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')