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, 11 Dec 2009 05:35:58 -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/11/t1260535028j7dv2ngncxs5oei.htm/, Retrieved Sun, 28 Apr 2024 22:10:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=66095, Retrieved Sun, 28 Apr 2024 22:10:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact113
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] [ws9-3] [2009-12-11 12:35:58] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
96.8
114.1
110.3
103.9
101.6
94.6
95.9
104.7
102.8
98.1
113.9
80.9
95.7
113.2
105.9
108.8
102.3
99
100.7
115.5
100.7
109.9
114.6
85.4
100.5
114.8
116.5
112.9
102
106
105.3
118.8
106.1
109.3
117.2
92.5
104.2
112.5
122.4
113.3
100
110.7
112.8
109.8
117.3
109.1
115.9
96
99.8
116.8
115.7
99.4
94.3
91
93.2
103.1
94.1
91.8
102.7
82.6




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 & 2 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66095&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66095&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66095&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'Gwilym Jenkins' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5194923.59910.000377
20.6147794.25934.7e-05
30.6573794.55451.8e-05
40.3536142.44990.008994
50.4038172.79770.003693
60.3372022.33620.011852
70.1166080.80790.211572
80.2029621.40620.083058
90.0380170.26340.396688
100.0276660.19170.424403
110.083910.58130.281865
12-0.063451-0.43960.331098
130.0172950.11980.452562
14-0.000655-0.00450.498198
15-0.046863-0.32470.373419
16-0.04148-0.28740.387529
17-0.030181-0.20910.417627
18-0.073082-0.50630.307473
19-0.08386-0.5810.281979
20-0.049293-0.34150.367105
21-0.116809-0.80930.211176
22-0.187491-1.2990.100079
23-0.032665-0.22630.410961
24-0.217023-1.50360.069621
25-0.141112-0.97770.166574
26-0.114024-0.790.216712
27-0.235156-1.62920.054907
28-0.176409-1.22220.1138
29-0.164057-1.13660.130669
30-0.239795-1.66130.051581
31-0.168869-1.170.123897
32-0.237948-1.64860.052885
33-0.235727-1.63320.054489
34-0.162786-1.12780.132503
35-0.253982-1.75960.042421
36-0.175518-1.2160.114961

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.519492 & 3.5991 & 0.000377 \tabularnewline
2 & 0.614779 & 4.2593 & 4.7e-05 \tabularnewline
3 & 0.657379 & 4.5545 & 1.8e-05 \tabularnewline
4 & 0.353614 & 2.4499 & 0.008994 \tabularnewline
5 & 0.403817 & 2.7977 & 0.003693 \tabularnewline
6 & 0.337202 & 2.3362 & 0.011852 \tabularnewline
7 & 0.116608 & 0.8079 & 0.211572 \tabularnewline
8 & 0.202962 & 1.4062 & 0.083058 \tabularnewline
9 & 0.038017 & 0.2634 & 0.396688 \tabularnewline
10 & 0.027666 & 0.1917 & 0.424403 \tabularnewline
11 & 0.08391 & 0.5813 & 0.281865 \tabularnewline
12 & -0.063451 & -0.4396 & 0.331098 \tabularnewline
13 & 0.017295 & 0.1198 & 0.452562 \tabularnewline
14 & -0.000655 & -0.0045 & 0.498198 \tabularnewline
15 & -0.046863 & -0.3247 & 0.373419 \tabularnewline
16 & -0.04148 & -0.2874 & 0.387529 \tabularnewline
17 & -0.030181 & -0.2091 & 0.417627 \tabularnewline
18 & -0.073082 & -0.5063 & 0.307473 \tabularnewline
19 & -0.08386 & -0.581 & 0.281979 \tabularnewline
20 & -0.049293 & -0.3415 & 0.367105 \tabularnewline
21 & -0.116809 & -0.8093 & 0.211176 \tabularnewline
22 & -0.187491 & -1.299 & 0.100079 \tabularnewline
23 & -0.032665 & -0.2263 & 0.410961 \tabularnewline
24 & -0.217023 & -1.5036 & 0.069621 \tabularnewline
25 & -0.141112 & -0.9777 & 0.166574 \tabularnewline
26 & -0.114024 & -0.79 & 0.216712 \tabularnewline
27 & -0.235156 & -1.6292 & 0.054907 \tabularnewline
28 & -0.176409 & -1.2222 & 0.1138 \tabularnewline
29 & -0.164057 & -1.1366 & 0.130669 \tabularnewline
30 & -0.239795 & -1.6613 & 0.051581 \tabularnewline
31 & -0.168869 & -1.17 & 0.123897 \tabularnewline
32 & -0.237948 & -1.6486 & 0.052885 \tabularnewline
33 & -0.235727 & -1.6332 & 0.054489 \tabularnewline
34 & -0.162786 & -1.1278 & 0.132503 \tabularnewline
35 & -0.253982 & -1.7596 & 0.042421 \tabularnewline
36 & -0.175518 & -1.216 & 0.114961 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66095&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.519492[/C][C]3.5991[/C][C]0.000377[/C][/ROW]
[ROW][C]2[/C][C]0.614779[/C][C]4.2593[/C][C]4.7e-05[/C][/ROW]
[ROW][C]3[/C][C]0.657379[/C][C]4.5545[/C][C]1.8e-05[/C][/ROW]
[ROW][C]4[/C][C]0.353614[/C][C]2.4499[/C][C]0.008994[/C][/ROW]
[ROW][C]5[/C][C]0.403817[/C][C]2.7977[/C][C]0.003693[/C][/ROW]
[ROW][C]6[/C][C]0.337202[/C][C]2.3362[/C][C]0.011852[/C][/ROW]
[ROW][C]7[/C][C]0.116608[/C][C]0.8079[/C][C]0.211572[/C][/ROW]
[ROW][C]8[/C][C]0.202962[/C][C]1.4062[/C][C]0.083058[/C][/ROW]
[ROW][C]9[/C][C]0.038017[/C][C]0.2634[/C][C]0.396688[/C][/ROW]
[ROW][C]10[/C][C]0.027666[/C][C]0.1917[/C][C]0.424403[/C][/ROW]
[ROW][C]11[/C][C]0.08391[/C][C]0.5813[/C][C]0.281865[/C][/ROW]
[ROW][C]12[/C][C]-0.063451[/C][C]-0.4396[/C][C]0.331098[/C][/ROW]
[ROW][C]13[/C][C]0.017295[/C][C]0.1198[/C][C]0.452562[/C][/ROW]
[ROW][C]14[/C][C]-0.000655[/C][C]-0.0045[/C][C]0.498198[/C][/ROW]
[ROW][C]15[/C][C]-0.046863[/C][C]-0.3247[/C][C]0.373419[/C][/ROW]
[ROW][C]16[/C][C]-0.04148[/C][C]-0.2874[/C][C]0.387529[/C][/ROW]
[ROW][C]17[/C][C]-0.030181[/C][C]-0.2091[/C][C]0.417627[/C][/ROW]
[ROW][C]18[/C][C]-0.073082[/C][C]-0.5063[/C][C]0.307473[/C][/ROW]
[ROW][C]19[/C][C]-0.08386[/C][C]-0.581[/C][C]0.281979[/C][/ROW]
[ROW][C]20[/C][C]-0.049293[/C][C]-0.3415[/C][C]0.367105[/C][/ROW]
[ROW][C]21[/C][C]-0.116809[/C][C]-0.8093[/C][C]0.211176[/C][/ROW]
[ROW][C]22[/C][C]-0.187491[/C][C]-1.299[/C][C]0.100079[/C][/ROW]
[ROW][C]23[/C][C]-0.032665[/C][C]-0.2263[/C][C]0.410961[/C][/ROW]
[ROW][C]24[/C][C]-0.217023[/C][C]-1.5036[/C][C]0.069621[/C][/ROW]
[ROW][C]25[/C][C]-0.141112[/C][C]-0.9777[/C][C]0.166574[/C][/ROW]
[ROW][C]26[/C][C]-0.114024[/C][C]-0.79[/C][C]0.216712[/C][/ROW]
[ROW][C]27[/C][C]-0.235156[/C][C]-1.6292[/C][C]0.054907[/C][/ROW]
[ROW][C]28[/C][C]-0.176409[/C][C]-1.2222[/C][C]0.1138[/C][/ROW]
[ROW][C]29[/C][C]-0.164057[/C][C]-1.1366[/C][C]0.130669[/C][/ROW]
[ROW][C]30[/C][C]-0.239795[/C][C]-1.6613[/C][C]0.051581[/C][/ROW]
[ROW][C]31[/C][C]-0.168869[/C][C]-1.17[/C][C]0.123897[/C][/ROW]
[ROW][C]32[/C][C]-0.237948[/C][C]-1.6486[/C][C]0.052885[/C][/ROW]
[ROW][C]33[/C][C]-0.235727[/C][C]-1.6332[/C][C]0.054489[/C][/ROW]
[ROW][C]34[/C][C]-0.162786[/C][C]-1.1278[/C][C]0.132503[/C][/ROW]
[ROW][C]35[/C][C]-0.253982[/C][C]-1.7596[/C][C]0.042421[/C][/ROW]
[ROW][C]36[/C][C]-0.175518[/C][C]-1.216[/C][C]0.114961[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66095&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66095&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.5194923.59910.000377
20.6147794.25934.7e-05
30.6573794.55451.8e-05
40.3536142.44990.008994
50.4038172.79770.003693
60.3372022.33620.011852
70.1166080.80790.211572
80.2029621.40620.083058
90.0380170.26340.396688
100.0276660.19170.424403
110.083910.58130.281865
12-0.063451-0.43960.331098
130.0172950.11980.452562
14-0.000655-0.00450.498198
15-0.046863-0.32470.373419
16-0.04148-0.28740.387529
17-0.030181-0.20910.417627
18-0.073082-0.50630.307473
19-0.08386-0.5810.281979
20-0.049293-0.34150.367105
21-0.116809-0.80930.211176
22-0.187491-1.2990.100079
23-0.032665-0.22630.410961
24-0.217023-1.50360.069621
25-0.141112-0.97770.166574
26-0.114024-0.790.216712
27-0.235156-1.62920.054907
28-0.176409-1.22220.1138
29-0.164057-1.13660.130669
30-0.239795-1.66130.051581
31-0.168869-1.170.123897
32-0.237948-1.64860.052885
33-0.235727-1.63320.054489
34-0.162786-1.12780.132503
35-0.253982-1.75960.042421
36-0.175518-1.2160.114961







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5194923.59910.000377
20.4723933.27280.000989
30.4292542.9740.002294
4-0.290359-2.01170.024944
5-0.217548-1.50720.069154
6-0.021898-0.15170.440025
7-0.121794-0.84380.201479
80.0496960.34430.36606
9-0.080936-0.56070.288791
100.1181030.81820.208631
110.1641341.13720.13056
12-0.061246-0.42430.336612
13-0.051503-0.35680.361394
14-0.068041-0.47140.319744
150.0635880.44060.330757
16-0.172544-1.19540.118898
17-0.012318-0.08530.466172
180.043990.30480.380929
19-0.02745-0.19020.424986
200.0902210.62510.267443
21-0.09883-0.68470.248409
22-0.244489-1.69390.048385
230.2162591.49830.070303
24-0.0509-0.35260.36295
25-0.008269-0.05730.477277
26-0.115043-0.7970.214677
27-0.000195-0.00140.499463
28-0.095732-0.66330.255171
29-0.022709-0.15730.43782
300.0582430.40350.344178
31-0.104889-0.72670.235472
32-0.017172-0.1190.452897
33-0.047026-0.32580.372994
340.0287150.19890.421574
350.0366110.25360.400426
36-0.04894-0.33910.368019

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.519492 & 3.5991 & 0.000377 \tabularnewline
2 & 0.472393 & 3.2728 & 0.000989 \tabularnewline
3 & 0.429254 & 2.974 & 0.002294 \tabularnewline
4 & -0.290359 & -2.0117 & 0.024944 \tabularnewline
5 & -0.217548 & -1.5072 & 0.069154 \tabularnewline
6 & -0.021898 & -0.1517 & 0.440025 \tabularnewline
7 & -0.121794 & -0.8438 & 0.201479 \tabularnewline
8 & 0.049696 & 0.3443 & 0.36606 \tabularnewline
9 & -0.080936 & -0.5607 & 0.288791 \tabularnewline
10 & 0.118103 & 0.8182 & 0.208631 \tabularnewline
11 & 0.164134 & 1.1372 & 0.13056 \tabularnewline
12 & -0.061246 & -0.4243 & 0.336612 \tabularnewline
13 & -0.051503 & -0.3568 & 0.361394 \tabularnewline
14 & -0.068041 & -0.4714 & 0.319744 \tabularnewline
15 & 0.063588 & 0.4406 & 0.330757 \tabularnewline
16 & -0.172544 & -1.1954 & 0.118898 \tabularnewline
17 & -0.012318 & -0.0853 & 0.466172 \tabularnewline
18 & 0.04399 & 0.3048 & 0.380929 \tabularnewline
19 & -0.02745 & -0.1902 & 0.424986 \tabularnewline
20 & 0.090221 & 0.6251 & 0.267443 \tabularnewline
21 & -0.09883 & -0.6847 & 0.248409 \tabularnewline
22 & -0.244489 & -1.6939 & 0.048385 \tabularnewline
23 & 0.216259 & 1.4983 & 0.070303 \tabularnewline
24 & -0.0509 & -0.3526 & 0.36295 \tabularnewline
25 & -0.008269 & -0.0573 & 0.477277 \tabularnewline
26 & -0.115043 & -0.797 & 0.214677 \tabularnewline
27 & -0.000195 & -0.0014 & 0.499463 \tabularnewline
28 & -0.095732 & -0.6633 & 0.255171 \tabularnewline
29 & -0.022709 & -0.1573 & 0.43782 \tabularnewline
30 & 0.058243 & 0.4035 & 0.344178 \tabularnewline
31 & -0.104889 & -0.7267 & 0.235472 \tabularnewline
32 & -0.017172 & -0.119 & 0.452897 \tabularnewline
33 & -0.047026 & -0.3258 & 0.372994 \tabularnewline
34 & 0.028715 & 0.1989 & 0.421574 \tabularnewline
35 & 0.036611 & 0.2536 & 0.400426 \tabularnewline
36 & -0.04894 & -0.3391 & 0.368019 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66095&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.519492[/C][C]3.5991[/C][C]0.000377[/C][/ROW]
[ROW][C]2[/C][C]0.472393[/C][C]3.2728[/C][C]0.000989[/C][/ROW]
[ROW][C]3[/C][C]0.429254[/C][C]2.974[/C][C]0.002294[/C][/ROW]
[ROW][C]4[/C][C]-0.290359[/C][C]-2.0117[/C][C]0.024944[/C][/ROW]
[ROW][C]5[/C][C]-0.217548[/C][C]-1.5072[/C][C]0.069154[/C][/ROW]
[ROW][C]6[/C][C]-0.021898[/C][C]-0.1517[/C][C]0.440025[/C][/ROW]
[ROW][C]7[/C][C]-0.121794[/C][C]-0.8438[/C][C]0.201479[/C][/ROW]
[ROW][C]8[/C][C]0.049696[/C][C]0.3443[/C][C]0.36606[/C][/ROW]
[ROW][C]9[/C][C]-0.080936[/C][C]-0.5607[/C][C]0.288791[/C][/ROW]
[ROW][C]10[/C][C]0.118103[/C][C]0.8182[/C][C]0.208631[/C][/ROW]
[ROW][C]11[/C][C]0.164134[/C][C]1.1372[/C][C]0.13056[/C][/ROW]
[ROW][C]12[/C][C]-0.061246[/C][C]-0.4243[/C][C]0.336612[/C][/ROW]
[ROW][C]13[/C][C]-0.051503[/C][C]-0.3568[/C][C]0.361394[/C][/ROW]
[ROW][C]14[/C][C]-0.068041[/C][C]-0.4714[/C][C]0.319744[/C][/ROW]
[ROW][C]15[/C][C]0.063588[/C][C]0.4406[/C][C]0.330757[/C][/ROW]
[ROW][C]16[/C][C]-0.172544[/C][C]-1.1954[/C][C]0.118898[/C][/ROW]
[ROW][C]17[/C][C]-0.012318[/C][C]-0.0853[/C][C]0.466172[/C][/ROW]
[ROW][C]18[/C][C]0.04399[/C][C]0.3048[/C][C]0.380929[/C][/ROW]
[ROW][C]19[/C][C]-0.02745[/C][C]-0.1902[/C][C]0.424986[/C][/ROW]
[ROW][C]20[/C][C]0.090221[/C][C]0.6251[/C][C]0.267443[/C][/ROW]
[ROW][C]21[/C][C]-0.09883[/C][C]-0.6847[/C][C]0.248409[/C][/ROW]
[ROW][C]22[/C][C]-0.244489[/C][C]-1.6939[/C][C]0.048385[/C][/ROW]
[ROW][C]23[/C][C]0.216259[/C][C]1.4983[/C][C]0.070303[/C][/ROW]
[ROW][C]24[/C][C]-0.0509[/C][C]-0.3526[/C][C]0.36295[/C][/ROW]
[ROW][C]25[/C][C]-0.008269[/C][C]-0.0573[/C][C]0.477277[/C][/ROW]
[ROW][C]26[/C][C]-0.115043[/C][C]-0.797[/C][C]0.214677[/C][/ROW]
[ROW][C]27[/C][C]-0.000195[/C][C]-0.0014[/C][C]0.499463[/C][/ROW]
[ROW][C]28[/C][C]-0.095732[/C][C]-0.6633[/C][C]0.255171[/C][/ROW]
[ROW][C]29[/C][C]-0.022709[/C][C]-0.1573[/C][C]0.43782[/C][/ROW]
[ROW][C]30[/C][C]0.058243[/C][C]0.4035[/C][C]0.344178[/C][/ROW]
[ROW][C]31[/C][C]-0.104889[/C][C]-0.7267[/C][C]0.235472[/C][/ROW]
[ROW][C]32[/C][C]-0.017172[/C][C]-0.119[/C][C]0.452897[/C][/ROW]
[ROW][C]33[/C][C]-0.047026[/C][C]-0.3258[/C][C]0.372994[/C][/ROW]
[ROW][C]34[/C][C]0.028715[/C][C]0.1989[/C][C]0.421574[/C][/ROW]
[ROW][C]35[/C][C]0.036611[/C][C]0.2536[/C][C]0.400426[/C][/ROW]
[ROW][C]36[/C][C]-0.04894[/C][C]-0.3391[/C][C]0.368019[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66095&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66095&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.5194923.59910.000377
20.4723933.27280.000989
30.4292542.9740.002294
4-0.290359-2.01170.024944
5-0.217548-1.50720.069154
6-0.021898-0.15170.440025
7-0.121794-0.84380.201479
80.0496960.34430.36606
9-0.080936-0.56070.288791
100.1181030.81820.208631
110.1641341.13720.13056
12-0.061246-0.42430.336612
13-0.051503-0.35680.361394
14-0.068041-0.47140.319744
150.0635880.44060.330757
16-0.172544-1.19540.118898
17-0.012318-0.08530.466172
180.043990.30480.380929
19-0.02745-0.19020.424986
200.0902210.62510.267443
21-0.09883-0.68470.248409
22-0.244489-1.69390.048385
230.2162591.49830.070303
24-0.0509-0.35260.36295
25-0.008269-0.05730.477277
26-0.115043-0.7970.214677
27-0.000195-0.00140.499463
28-0.095732-0.66330.255171
29-0.022709-0.15730.43782
300.0582430.40350.344178
31-0.104889-0.72670.235472
32-0.017172-0.1190.452897
33-0.047026-0.32580.372994
340.0287150.19890.421574
350.0366110.25360.400426
36-0.04894-0.33910.368019



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