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 computationTue, 24 Nov 2009 05:54: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/Nov/24/t1259067355g77nan4lv4x4vo9.htm/, Retrieved Sat, 20 Apr 2024 04:18:55 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59034, Retrieved Sat, 20 Apr 2024 04:18:55 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact134
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-12 13:32:37] [76963dc1903f0f612b6153510a3818cf]
- R  D  [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-17 12:14:40] [76963dc1903f0f612b6153510a3818cf]
-         [Univariate Explorative Data Analysis] [Run Sequence Plot...] [2008-12-22 18:19:51] [1ce0d16c8f4225c977b42c8fa93bc163]
- RMP       [(Partial) Autocorrelation Function] [Identifying Integ...] [2009-11-22 12:16:10] [b98453cac15ba1066b407e146608df68]
- R  D          [(Partial) Autocorrelation Function] [] [2009-11-24 12:54:58] [c60887983b0820a525cba943a935572d] [Current]
Feedback Forum

Post a new message
Dataseries X:
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
117
111
105
102
95
93
124
130
124
115
106
105
105
101
95
93
84
87
116
120
117
109
105
107
109
109
108
107
99
103
131
137
135




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59034&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.787686.10130
20.4821873.7350.00021
30.2381281.84450.035022
40.1234140.9560.171463
50.0998060.77310.221251
60.0959290.74310.230171
70.0905760.70160.242821
80.1123250.87010.193867
90.2258631.74950.042657
100.3669442.84230.003056
110.5369544.15925.2e-05
120.6041234.67958e-06
130.4015453.11040.001429
140.1375111.06520.145537
15-0.069677-0.53970.295694
16-0.160392-1.24240.109464
17-0.180628-1.39910.08346
18-0.187778-1.45450.075507
19-0.204116-1.58110.05956
20-0.196076-1.51880.067033
21-0.112975-0.87510.192505
22-0.011848-0.09180.463591
230.1137820.88140.190822
240.1561451.20950.115609
250.0130730.10130.459839
26-0.162759-1.26070.106144
27-0.283114-2.1930.016098
28-0.330943-2.56350.006444
29-0.332708-2.57710.006219
30-0.330255-2.55810.006533
31-0.329638-2.55340.006614
32-0.302825-2.34570.011158
33-0.213327-1.65240.051836
34-0.12364-0.95770.171025
35-0.028492-0.22070.413037
360.0154640.11980.452527

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.78768 & 6.1013 & 0 \tabularnewline
2 & 0.482187 & 3.735 & 0.00021 \tabularnewline
3 & 0.238128 & 1.8445 & 0.035022 \tabularnewline
4 & 0.123414 & 0.956 & 0.171463 \tabularnewline
5 & 0.099806 & 0.7731 & 0.221251 \tabularnewline
6 & 0.095929 & 0.7431 & 0.230171 \tabularnewline
7 & 0.090576 & 0.7016 & 0.242821 \tabularnewline
8 & 0.112325 & 0.8701 & 0.193867 \tabularnewline
9 & 0.225863 & 1.7495 & 0.042657 \tabularnewline
10 & 0.366944 & 2.8423 & 0.003056 \tabularnewline
11 & 0.536954 & 4.1592 & 5.2e-05 \tabularnewline
12 & 0.604123 & 4.6795 & 8e-06 \tabularnewline
13 & 0.401545 & 3.1104 & 0.001429 \tabularnewline
14 & 0.137511 & 1.0652 & 0.145537 \tabularnewline
15 & -0.069677 & -0.5397 & 0.295694 \tabularnewline
16 & -0.160392 & -1.2424 & 0.109464 \tabularnewline
17 & -0.180628 & -1.3991 & 0.08346 \tabularnewline
18 & -0.187778 & -1.4545 & 0.075507 \tabularnewline
19 & -0.204116 & -1.5811 & 0.05956 \tabularnewline
20 & -0.196076 & -1.5188 & 0.067033 \tabularnewline
21 & -0.112975 & -0.8751 & 0.192505 \tabularnewline
22 & -0.011848 & -0.0918 & 0.463591 \tabularnewline
23 & 0.113782 & 0.8814 & 0.190822 \tabularnewline
24 & 0.156145 & 1.2095 & 0.115609 \tabularnewline
25 & 0.013073 & 0.1013 & 0.459839 \tabularnewline
26 & -0.162759 & -1.2607 & 0.106144 \tabularnewline
27 & -0.283114 & -2.193 & 0.016098 \tabularnewline
28 & -0.330943 & -2.5635 & 0.006444 \tabularnewline
29 & -0.332708 & -2.5771 & 0.006219 \tabularnewline
30 & -0.330255 & -2.5581 & 0.006533 \tabularnewline
31 & -0.329638 & -2.5534 & 0.006614 \tabularnewline
32 & -0.302825 & -2.3457 & 0.011158 \tabularnewline
33 & -0.213327 & -1.6524 & 0.051836 \tabularnewline
34 & -0.12364 & -0.9577 & 0.171025 \tabularnewline
35 & -0.028492 & -0.2207 & 0.413037 \tabularnewline
36 & 0.015464 & 0.1198 & 0.452527 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59034&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.78768[/C][C]6.1013[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.482187[/C][C]3.735[/C][C]0.00021[/C][/ROW]
[ROW][C]3[/C][C]0.238128[/C][C]1.8445[/C][C]0.035022[/C][/ROW]
[ROW][C]4[/C][C]0.123414[/C][C]0.956[/C][C]0.171463[/C][/ROW]
[ROW][C]5[/C][C]0.099806[/C][C]0.7731[/C][C]0.221251[/C][/ROW]
[ROW][C]6[/C][C]0.095929[/C][C]0.7431[/C][C]0.230171[/C][/ROW]
[ROW][C]7[/C][C]0.090576[/C][C]0.7016[/C][C]0.242821[/C][/ROW]
[ROW][C]8[/C][C]0.112325[/C][C]0.8701[/C][C]0.193867[/C][/ROW]
[ROW][C]9[/C][C]0.225863[/C][C]1.7495[/C][C]0.042657[/C][/ROW]
[ROW][C]10[/C][C]0.366944[/C][C]2.8423[/C][C]0.003056[/C][/ROW]
[ROW][C]11[/C][C]0.536954[/C][C]4.1592[/C][C]5.2e-05[/C][/ROW]
[ROW][C]12[/C][C]0.604123[/C][C]4.6795[/C][C]8e-06[/C][/ROW]
[ROW][C]13[/C][C]0.401545[/C][C]3.1104[/C][C]0.001429[/C][/ROW]
[ROW][C]14[/C][C]0.137511[/C][C]1.0652[/C][C]0.145537[/C][/ROW]
[ROW][C]15[/C][C]-0.069677[/C][C]-0.5397[/C][C]0.295694[/C][/ROW]
[ROW][C]16[/C][C]-0.160392[/C][C]-1.2424[/C][C]0.109464[/C][/ROW]
[ROW][C]17[/C][C]-0.180628[/C][C]-1.3991[/C][C]0.08346[/C][/ROW]
[ROW][C]18[/C][C]-0.187778[/C][C]-1.4545[/C][C]0.075507[/C][/ROW]
[ROW][C]19[/C][C]-0.204116[/C][C]-1.5811[/C][C]0.05956[/C][/ROW]
[ROW][C]20[/C][C]-0.196076[/C][C]-1.5188[/C][C]0.067033[/C][/ROW]
[ROW][C]21[/C][C]-0.112975[/C][C]-0.8751[/C][C]0.192505[/C][/ROW]
[ROW][C]22[/C][C]-0.011848[/C][C]-0.0918[/C][C]0.463591[/C][/ROW]
[ROW][C]23[/C][C]0.113782[/C][C]0.8814[/C][C]0.190822[/C][/ROW]
[ROW][C]24[/C][C]0.156145[/C][C]1.2095[/C][C]0.115609[/C][/ROW]
[ROW][C]25[/C][C]0.013073[/C][C]0.1013[/C][C]0.459839[/C][/ROW]
[ROW][C]26[/C][C]-0.162759[/C][C]-1.2607[/C][C]0.106144[/C][/ROW]
[ROW][C]27[/C][C]-0.283114[/C][C]-2.193[/C][C]0.016098[/C][/ROW]
[ROW][C]28[/C][C]-0.330943[/C][C]-2.5635[/C][C]0.006444[/C][/ROW]
[ROW][C]29[/C][C]-0.332708[/C][C]-2.5771[/C][C]0.006219[/C][/ROW]
[ROW][C]30[/C][C]-0.330255[/C][C]-2.5581[/C][C]0.006533[/C][/ROW]
[ROW][C]31[/C][C]-0.329638[/C][C]-2.5534[/C][C]0.006614[/C][/ROW]
[ROW][C]32[/C][C]-0.302825[/C][C]-2.3457[/C][C]0.011158[/C][/ROW]
[ROW][C]33[/C][C]-0.213327[/C][C]-1.6524[/C][C]0.051836[/C][/ROW]
[ROW][C]34[/C][C]-0.12364[/C][C]-0.9577[/C][C]0.171025[/C][/ROW]
[ROW][C]35[/C][C]-0.028492[/C][C]-0.2207[/C][C]0.413037[/C][/ROW]
[ROW][C]36[/C][C]0.015464[/C][C]0.1198[/C][C]0.452527[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59034&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59034&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.787686.10130
20.4821873.7350.00021
30.2381281.84450.035022
40.1234140.9560.171463
50.0998060.77310.221251
60.0959290.74310.230171
70.0905760.70160.242821
80.1123250.87010.193867
90.2258631.74950.042657
100.3669442.84230.003056
110.5369544.15925.2e-05
120.6041234.67958e-06
130.4015453.11040.001429
140.1375111.06520.145537
15-0.069677-0.53970.295694
16-0.160392-1.24240.109464
17-0.180628-1.39910.08346
18-0.187778-1.45450.075507
19-0.204116-1.58110.05956
20-0.196076-1.51880.067033
21-0.112975-0.87510.192505
22-0.011848-0.09180.463591
230.1137820.88140.190822
240.1561451.20950.115609
250.0130730.10130.459839
26-0.162759-1.26070.106144
27-0.283114-2.1930.016098
28-0.330943-2.56350.006444
29-0.332708-2.57710.006219
30-0.330255-2.55810.006533
31-0.329638-2.55340.006614
32-0.302825-2.34570.011158
33-0.213327-1.65240.051836
34-0.12364-0.95770.171025
35-0.028492-0.22070.413037
360.0154640.11980.452527







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.787686.10130
2-0.364242-2.82140.003237
30.0209070.16190.435947
40.1085190.84060.201958
50.0297930.23080.409138
6-0.027943-0.21640.414686
70.0286230.22170.412644
80.1144290.88640.189481
90.2784492.15690.017517
100.1138310.88170.190719
110.3426272.6540.005084
120.0205340.15910.437081
13-0.522239-4.04527.6e-05
140.0670790.51960.30263
15-0.100243-0.77650.220258
16-0.165914-1.28520.101836
17-0.068853-0.53330.297887
18-0.147469-1.14230.128935
19-0.084665-0.65580.257225
20-0.172882-1.33910.092789
21-0.102688-0.79540.214753
220.0324910.25170.401076
23-0.030141-0.23350.408095
240.0441240.34180.366854
25-0.020196-0.15640.438106
260.118960.92150.18025
270.1124730.87120.193555
28-0.08828-0.68380.248362
290.1244670.96410.169429
300.0193040.14950.44082
310.0187060.14490.442639
320.0147610.11430.454675
33-0.021305-0.1650.434737
34-0.01624-0.12580.450156
35-0.136014-1.05360.148154
360.0169240.13110.448071

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.78768 & 6.1013 & 0 \tabularnewline
2 & -0.364242 & -2.8214 & 0.003237 \tabularnewline
3 & 0.020907 & 0.1619 & 0.435947 \tabularnewline
4 & 0.108519 & 0.8406 & 0.201958 \tabularnewline
5 & 0.029793 & 0.2308 & 0.409138 \tabularnewline
6 & -0.027943 & -0.2164 & 0.414686 \tabularnewline
7 & 0.028623 & 0.2217 & 0.412644 \tabularnewline
8 & 0.114429 & 0.8864 & 0.189481 \tabularnewline
9 & 0.278449 & 2.1569 & 0.017517 \tabularnewline
10 & 0.113831 & 0.8817 & 0.190719 \tabularnewline
11 & 0.342627 & 2.654 & 0.005084 \tabularnewline
12 & 0.020534 & 0.1591 & 0.437081 \tabularnewline
13 & -0.522239 & -4.0452 & 7.6e-05 \tabularnewline
14 & 0.067079 & 0.5196 & 0.30263 \tabularnewline
15 & -0.100243 & -0.7765 & 0.220258 \tabularnewline
16 & -0.165914 & -1.2852 & 0.101836 \tabularnewline
17 & -0.068853 & -0.5333 & 0.297887 \tabularnewline
18 & -0.147469 & -1.1423 & 0.128935 \tabularnewline
19 & -0.084665 & -0.6558 & 0.257225 \tabularnewline
20 & -0.172882 & -1.3391 & 0.092789 \tabularnewline
21 & -0.102688 & -0.7954 & 0.214753 \tabularnewline
22 & 0.032491 & 0.2517 & 0.401076 \tabularnewline
23 & -0.030141 & -0.2335 & 0.408095 \tabularnewline
24 & 0.044124 & 0.3418 & 0.366854 \tabularnewline
25 & -0.020196 & -0.1564 & 0.438106 \tabularnewline
26 & 0.11896 & 0.9215 & 0.18025 \tabularnewline
27 & 0.112473 & 0.8712 & 0.193555 \tabularnewline
28 & -0.08828 & -0.6838 & 0.248362 \tabularnewline
29 & 0.124467 & 0.9641 & 0.169429 \tabularnewline
30 & 0.019304 & 0.1495 & 0.44082 \tabularnewline
31 & 0.018706 & 0.1449 & 0.442639 \tabularnewline
32 & 0.014761 & 0.1143 & 0.454675 \tabularnewline
33 & -0.021305 & -0.165 & 0.434737 \tabularnewline
34 & -0.01624 & -0.1258 & 0.450156 \tabularnewline
35 & -0.136014 & -1.0536 & 0.148154 \tabularnewline
36 & 0.016924 & 0.1311 & 0.448071 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59034&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.78768[/C][C]6.1013[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.364242[/C][C]-2.8214[/C][C]0.003237[/C][/ROW]
[ROW][C]3[/C][C]0.020907[/C][C]0.1619[/C][C]0.435947[/C][/ROW]
[ROW][C]4[/C][C]0.108519[/C][C]0.8406[/C][C]0.201958[/C][/ROW]
[ROW][C]5[/C][C]0.029793[/C][C]0.2308[/C][C]0.409138[/C][/ROW]
[ROW][C]6[/C][C]-0.027943[/C][C]-0.2164[/C][C]0.414686[/C][/ROW]
[ROW][C]7[/C][C]0.028623[/C][C]0.2217[/C][C]0.412644[/C][/ROW]
[ROW][C]8[/C][C]0.114429[/C][C]0.8864[/C][C]0.189481[/C][/ROW]
[ROW][C]9[/C][C]0.278449[/C][C]2.1569[/C][C]0.017517[/C][/ROW]
[ROW][C]10[/C][C]0.113831[/C][C]0.8817[/C][C]0.190719[/C][/ROW]
[ROW][C]11[/C][C]0.342627[/C][C]2.654[/C][C]0.005084[/C][/ROW]
[ROW][C]12[/C][C]0.020534[/C][C]0.1591[/C][C]0.437081[/C][/ROW]
[ROW][C]13[/C][C]-0.522239[/C][C]-4.0452[/C][C]7.6e-05[/C][/ROW]
[ROW][C]14[/C][C]0.067079[/C][C]0.5196[/C][C]0.30263[/C][/ROW]
[ROW][C]15[/C][C]-0.100243[/C][C]-0.7765[/C][C]0.220258[/C][/ROW]
[ROW][C]16[/C][C]-0.165914[/C][C]-1.2852[/C][C]0.101836[/C][/ROW]
[ROW][C]17[/C][C]-0.068853[/C][C]-0.5333[/C][C]0.297887[/C][/ROW]
[ROW][C]18[/C][C]-0.147469[/C][C]-1.1423[/C][C]0.128935[/C][/ROW]
[ROW][C]19[/C][C]-0.084665[/C][C]-0.6558[/C][C]0.257225[/C][/ROW]
[ROW][C]20[/C][C]-0.172882[/C][C]-1.3391[/C][C]0.092789[/C][/ROW]
[ROW][C]21[/C][C]-0.102688[/C][C]-0.7954[/C][C]0.214753[/C][/ROW]
[ROW][C]22[/C][C]0.032491[/C][C]0.2517[/C][C]0.401076[/C][/ROW]
[ROW][C]23[/C][C]-0.030141[/C][C]-0.2335[/C][C]0.408095[/C][/ROW]
[ROW][C]24[/C][C]0.044124[/C][C]0.3418[/C][C]0.366854[/C][/ROW]
[ROW][C]25[/C][C]-0.020196[/C][C]-0.1564[/C][C]0.438106[/C][/ROW]
[ROW][C]26[/C][C]0.11896[/C][C]0.9215[/C][C]0.18025[/C][/ROW]
[ROW][C]27[/C][C]0.112473[/C][C]0.8712[/C][C]0.193555[/C][/ROW]
[ROW][C]28[/C][C]-0.08828[/C][C]-0.6838[/C][C]0.248362[/C][/ROW]
[ROW][C]29[/C][C]0.124467[/C][C]0.9641[/C][C]0.169429[/C][/ROW]
[ROW][C]30[/C][C]0.019304[/C][C]0.1495[/C][C]0.44082[/C][/ROW]
[ROW][C]31[/C][C]0.018706[/C][C]0.1449[/C][C]0.442639[/C][/ROW]
[ROW][C]32[/C][C]0.014761[/C][C]0.1143[/C][C]0.454675[/C][/ROW]
[ROW][C]33[/C][C]-0.021305[/C][C]-0.165[/C][C]0.434737[/C][/ROW]
[ROW][C]34[/C][C]-0.01624[/C][C]-0.1258[/C][C]0.450156[/C][/ROW]
[ROW][C]35[/C][C]-0.136014[/C][C]-1.0536[/C][C]0.148154[/C][/ROW]
[ROW][C]36[/C][C]0.016924[/C][C]0.1311[/C][C]0.448071[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59034&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59034&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.787686.10130
2-0.364242-2.82140.003237
30.0209070.16190.435947
40.1085190.84060.201958
50.0297930.23080.409138
6-0.027943-0.21640.414686
70.0286230.22170.412644
80.1144290.88640.189481
90.2784492.15690.017517
100.1138310.88170.190719
110.3426272.6540.005084
120.0205340.15910.437081
13-0.522239-4.04527.6e-05
140.0670790.51960.30263
15-0.100243-0.77650.220258
16-0.165914-1.28520.101836
17-0.068853-0.53330.297887
18-0.147469-1.14230.128935
19-0.084665-0.65580.257225
20-0.172882-1.33910.092789
21-0.102688-0.79540.214753
220.0324910.25170.401076
23-0.030141-0.23350.408095
240.0441240.34180.366854
25-0.020196-0.15640.438106
260.118960.92150.18025
270.1124730.87120.193555
28-0.08828-0.68380.248362
290.1244670.96410.169429
300.0193040.14950.44082
310.0187060.14490.442639
320.0147610.11430.454675
33-0.021305-0.1650.434737
34-0.01624-0.12580.450156
35-0.136014-1.05360.148154
360.0169240.13110.448071



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')