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, 08 Dec 2009 04:33:40 -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/08/t12602721597hikrjlpmc2jeb6.htm/, Retrieved Sat, 27 Apr 2024 16:23:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64688, Retrieved Sat, 27 Apr 2024 16:23:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact155
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:47:30] [b98453cac15ba1066b407e146608df68]
-   PD      [(Partial) Autocorrelation Function] [] [2009-12-08 11:33:40] [90c9838c596c9c0a7d0d4c412ffe5b98] [Current]
-   P         [(Partial) Autocorrelation Function] [] [2009-12-08 11:39:10] [0e3da40906c04c6abfe5eb434331b3f1]
Feedback Forum

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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64688&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
1-0.184068-1.540.064032
2-0.169789-1.42060.079943
3-0.169988-1.42220.079701
4-0.134895-1.12860.131458
50.1122830.93940.175371
60.0908720.76030.224816
70.0938790.78540.217421
8-0.124679-1.04310.150237
9-0.136526-1.14230.12862
10-0.147434-1.23350.110754
11-0.120269-1.00620.158883
120.7996446.69030
13-0.153033-1.28040.102321
14-0.124074-1.03810.151403
15-0.156877-1.31250.096814
16-0.10344-0.86540.194876
170.0979960.81990.207529
180.0582750.48760.313691
190.0730250.6110.271599
20-0.093364-0.78110.218676
21-0.112022-0.93720.175929
22-0.093983-0.78630.217168
23-0.110044-0.92070.180185
240.6322375.28971e-06
25-0.119388-0.99890.160649
26-0.095541-0.79940.213395
27-0.140136-1.17250.122493
28-0.070747-0.59190.277909
290.0828870.69350.245151
300.0344210.2880.387105
310.0617390.51650.303551
32-0.082864-0.69330.24521
33-0.055807-0.46690.321006
34-0.088967-0.74440.229578
35-0.075773-0.6340.264085
360.4728273.9569e-05

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.184068 & -1.54 & 0.064032 \tabularnewline
2 & -0.169789 & -1.4206 & 0.079943 \tabularnewline
3 & -0.169988 & -1.4222 & 0.079701 \tabularnewline
4 & -0.134895 & -1.1286 & 0.131458 \tabularnewline
5 & 0.112283 & 0.9394 & 0.175371 \tabularnewline
6 & 0.090872 & 0.7603 & 0.224816 \tabularnewline
7 & 0.093879 & 0.7854 & 0.217421 \tabularnewline
8 & -0.124679 & -1.0431 & 0.150237 \tabularnewline
9 & -0.136526 & -1.1423 & 0.12862 \tabularnewline
10 & -0.147434 & -1.2335 & 0.110754 \tabularnewline
11 & -0.120269 & -1.0062 & 0.158883 \tabularnewline
12 & 0.799644 & 6.6903 & 0 \tabularnewline
13 & -0.153033 & -1.2804 & 0.102321 \tabularnewline
14 & -0.124074 & -1.0381 & 0.151403 \tabularnewline
15 & -0.156877 & -1.3125 & 0.096814 \tabularnewline
16 & -0.10344 & -0.8654 & 0.194876 \tabularnewline
17 & 0.097996 & 0.8199 & 0.207529 \tabularnewline
18 & 0.058275 & 0.4876 & 0.313691 \tabularnewline
19 & 0.073025 & 0.611 & 0.271599 \tabularnewline
20 & -0.093364 & -0.7811 & 0.218676 \tabularnewline
21 & -0.112022 & -0.9372 & 0.175929 \tabularnewline
22 & -0.093983 & -0.7863 & 0.217168 \tabularnewline
23 & -0.110044 & -0.9207 & 0.180185 \tabularnewline
24 & 0.632237 & 5.2897 & 1e-06 \tabularnewline
25 & -0.119388 & -0.9989 & 0.160649 \tabularnewline
26 & -0.095541 & -0.7994 & 0.213395 \tabularnewline
27 & -0.140136 & -1.1725 & 0.122493 \tabularnewline
28 & -0.070747 & -0.5919 & 0.277909 \tabularnewline
29 & 0.082887 & 0.6935 & 0.245151 \tabularnewline
30 & 0.034421 & 0.288 & 0.387105 \tabularnewline
31 & 0.061739 & 0.5165 & 0.303551 \tabularnewline
32 & -0.082864 & -0.6933 & 0.24521 \tabularnewline
33 & -0.055807 & -0.4669 & 0.321006 \tabularnewline
34 & -0.088967 & -0.7444 & 0.229578 \tabularnewline
35 & -0.075773 & -0.634 & 0.264085 \tabularnewline
36 & 0.472827 & 3.956 & 9e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64688&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.184068[/C][C]-1.54[/C][C]0.064032[/C][/ROW]
[ROW][C]2[/C][C]-0.169789[/C][C]-1.4206[/C][C]0.079943[/C][/ROW]
[ROW][C]3[/C][C]-0.169988[/C][C]-1.4222[/C][C]0.079701[/C][/ROW]
[ROW][C]4[/C][C]-0.134895[/C][C]-1.1286[/C][C]0.131458[/C][/ROW]
[ROW][C]5[/C][C]0.112283[/C][C]0.9394[/C][C]0.175371[/C][/ROW]
[ROW][C]6[/C][C]0.090872[/C][C]0.7603[/C][C]0.224816[/C][/ROW]
[ROW][C]7[/C][C]0.093879[/C][C]0.7854[/C][C]0.217421[/C][/ROW]
[ROW][C]8[/C][C]-0.124679[/C][C]-1.0431[/C][C]0.150237[/C][/ROW]
[ROW][C]9[/C][C]-0.136526[/C][C]-1.1423[/C][C]0.12862[/C][/ROW]
[ROW][C]10[/C][C]-0.147434[/C][C]-1.2335[/C][C]0.110754[/C][/ROW]
[ROW][C]11[/C][C]-0.120269[/C][C]-1.0062[/C][C]0.158883[/C][/ROW]
[ROW][C]12[/C][C]0.799644[/C][C]6.6903[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]-0.153033[/C][C]-1.2804[/C][C]0.102321[/C][/ROW]
[ROW][C]14[/C][C]-0.124074[/C][C]-1.0381[/C][C]0.151403[/C][/ROW]
[ROW][C]15[/C][C]-0.156877[/C][C]-1.3125[/C][C]0.096814[/C][/ROW]
[ROW][C]16[/C][C]-0.10344[/C][C]-0.8654[/C][C]0.194876[/C][/ROW]
[ROW][C]17[/C][C]0.097996[/C][C]0.8199[/C][C]0.207529[/C][/ROW]
[ROW][C]18[/C][C]0.058275[/C][C]0.4876[/C][C]0.313691[/C][/ROW]
[ROW][C]19[/C][C]0.073025[/C][C]0.611[/C][C]0.271599[/C][/ROW]
[ROW][C]20[/C][C]-0.093364[/C][C]-0.7811[/C][C]0.218676[/C][/ROW]
[ROW][C]21[/C][C]-0.112022[/C][C]-0.9372[/C][C]0.175929[/C][/ROW]
[ROW][C]22[/C][C]-0.093983[/C][C]-0.7863[/C][C]0.217168[/C][/ROW]
[ROW][C]23[/C][C]-0.110044[/C][C]-0.9207[/C][C]0.180185[/C][/ROW]
[ROW][C]24[/C][C]0.632237[/C][C]5.2897[/C][C]1e-06[/C][/ROW]
[ROW][C]25[/C][C]-0.119388[/C][C]-0.9989[/C][C]0.160649[/C][/ROW]
[ROW][C]26[/C][C]-0.095541[/C][C]-0.7994[/C][C]0.213395[/C][/ROW]
[ROW][C]27[/C][C]-0.140136[/C][C]-1.1725[/C][C]0.122493[/C][/ROW]
[ROW][C]28[/C][C]-0.070747[/C][C]-0.5919[/C][C]0.277909[/C][/ROW]
[ROW][C]29[/C][C]0.082887[/C][C]0.6935[/C][C]0.245151[/C][/ROW]
[ROW][C]30[/C][C]0.034421[/C][C]0.288[/C][C]0.387105[/C][/ROW]
[ROW][C]31[/C][C]0.061739[/C][C]0.5165[/C][C]0.303551[/C][/ROW]
[ROW][C]32[/C][C]-0.082864[/C][C]-0.6933[/C][C]0.24521[/C][/ROW]
[ROW][C]33[/C][C]-0.055807[/C][C]-0.4669[/C][C]0.321006[/C][/ROW]
[ROW][C]34[/C][C]-0.088967[/C][C]-0.7444[/C][C]0.229578[/C][/ROW]
[ROW][C]35[/C][C]-0.075773[/C][C]-0.634[/C][C]0.264085[/C][/ROW]
[ROW][C]36[/C][C]0.472827[/C][C]3.956[/C][C]9e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64688&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64688&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
1-0.184068-1.540.064032
2-0.169789-1.42060.079943
3-0.169988-1.42220.079701
4-0.134895-1.12860.131458
50.1122830.93940.175371
60.0908720.76030.224816
70.0938790.78540.217421
8-0.124679-1.04310.150237
9-0.136526-1.14230.12862
10-0.147434-1.23350.110754
11-0.120269-1.00620.158883
120.7996446.69030
13-0.153033-1.28040.102321
14-0.124074-1.03810.151403
15-0.156877-1.31250.096814
16-0.10344-0.86540.194876
170.0979960.81990.207529
180.0582750.48760.313691
190.0730250.6110.271599
20-0.093364-0.78110.218676
21-0.112022-0.93720.175929
22-0.093983-0.78630.217168
23-0.110044-0.92070.180185
240.6322375.28971e-06
25-0.119388-0.99890.160649
26-0.095541-0.79940.213395
27-0.140136-1.17250.122493
28-0.070747-0.59190.277909
290.0828870.69350.245151
300.0344210.2880.387105
310.0617390.51650.303551
32-0.082864-0.69330.24521
33-0.055807-0.46690.321006
34-0.088967-0.74440.229578
35-0.075773-0.6340.264085
360.4728273.9569e-05







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.184068-1.540.064032
2-0.210812-1.76380.041066
3-0.267155-2.23520.014299
4-0.323613-2.70750.004256
5-0.153921-1.28780.101029
6-0.108285-0.9060.184029
7-0.004644-0.03890.484558
8-0.13838-1.15780.125446
9-0.205361-1.71820.045093
10-0.391444-3.27510.000822
11-0.760253-6.36070
120.2322951.94350.027987
13-0.153117-1.28110.102199
14-0.095821-0.80170.21272
15-0.058207-0.4870.313892
160.0626580.52420.300885
170.0234560.19620.422494
18-0.028988-0.24250.404539
19-0.038409-0.32140.374449
200.0155880.13040.448306
21-0.034345-0.28730.387347
220.0976810.81730.208277
23-0.016223-0.13570.446213
240.0097590.08170.467578
250.0245680.20550.418871
26-0.00628-0.05250.479125
27-0.044591-0.37310.355109
28-0.026705-0.22340.411927
29-0.038377-0.32110.374552
30-0.036865-0.30840.379334
31-0.032643-0.27310.392787
32-0.064824-0.54240.294649
330.0698680.58460.280362
34-0.05138-0.42990.334304
350.0940160.78660.217086
36-0.021811-0.18250.427864

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.184068 & -1.54 & 0.064032 \tabularnewline
2 & -0.210812 & -1.7638 & 0.041066 \tabularnewline
3 & -0.267155 & -2.2352 & 0.014299 \tabularnewline
4 & -0.323613 & -2.7075 & 0.004256 \tabularnewline
5 & -0.153921 & -1.2878 & 0.101029 \tabularnewline
6 & -0.108285 & -0.906 & 0.184029 \tabularnewline
7 & -0.004644 & -0.0389 & 0.484558 \tabularnewline
8 & -0.13838 & -1.1578 & 0.125446 \tabularnewline
9 & -0.205361 & -1.7182 & 0.045093 \tabularnewline
10 & -0.391444 & -3.2751 & 0.000822 \tabularnewline
11 & -0.760253 & -6.3607 & 0 \tabularnewline
12 & 0.232295 & 1.9435 & 0.027987 \tabularnewline
13 & -0.153117 & -1.2811 & 0.102199 \tabularnewline
14 & -0.095821 & -0.8017 & 0.21272 \tabularnewline
15 & -0.058207 & -0.487 & 0.313892 \tabularnewline
16 & 0.062658 & 0.5242 & 0.300885 \tabularnewline
17 & 0.023456 & 0.1962 & 0.422494 \tabularnewline
18 & -0.028988 & -0.2425 & 0.404539 \tabularnewline
19 & -0.038409 & -0.3214 & 0.374449 \tabularnewline
20 & 0.015588 & 0.1304 & 0.448306 \tabularnewline
21 & -0.034345 & -0.2873 & 0.387347 \tabularnewline
22 & 0.097681 & 0.8173 & 0.208277 \tabularnewline
23 & -0.016223 & -0.1357 & 0.446213 \tabularnewline
24 & 0.009759 & 0.0817 & 0.467578 \tabularnewline
25 & 0.024568 & 0.2055 & 0.418871 \tabularnewline
26 & -0.00628 & -0.0525 & 0.479125 \tabularnewline
27 & -0.044591 & -0.3731 & 0.355109 \tabularnewline
28 & -0.026705 & -0.2234 & 0.411927 \tabularnewline
29 & -0.038377 & -0.3211 & 0.374552 \tabularnewline
30 & -0.036865 & -0.3084 & 0.379334 \tabularnewline
31 & -0.032643 & -0.2731 & 0.392787 \tabularnewline
32 & -0.064824 & -0.5424 & 0.294649 \tabularnewline
33 & 0.069868 & 0.5846 & 0.280362 \tabularnewline
34 & -0.05138 & -0.4299 & 0.334304 \tabularnewline
35 & 0.094016 & 0.7866 & 0.217086 \tabularnewline
36 & -0.021811 & -0.1825 & 0.427864 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64688&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.184068[/C][C]-1.54[/C][C]0.064032[/C][/ROW]
[ROW][C]2[/C][C]-0.210812[/C][C]-1.7638[/C][C]0.041066[/C][/ROW]
[ROW][C]3[/C][C]-0.267155[/C][C]-2.2352[/C][C]0.014299[/C][/ROW]
[ROW][C]4[/C][C]-0.323613[/C][C]-2.7075[/C][C]0.004256[/C][/ROW]
[ROW][C]5[/C][C]-0.153921[/C][C]-1.2878[/C][C]0.101029[/C][/ROW]
[ROW][C]6[/C][C]-0.108285[/C][C]-0.906[/C][C]0.184029[/C][/ROW]
[ROW][C]7[/C][C]-0.004644[/C][C]-0.0389[/C][C]0.484558[/C][/ROW]
[ROW][C]8[/C][C]-0.13838[/C][C]-1.1578[/C][C]0.125446[/C][/ROW]
[ROW][C]9[/C][C]-0.205361[/C][C]-1.7182[/C][C]0.045093[/C][/ROW]
[ROW][C]10[/C][C]-0.391444[/C][C]-3.2751[/C][C]0.000822[/C][/ROW]
[ROW][C]11[/C][C]-0.760253[/C][C]-6.3607[/C][C]0[/C][/ROW]
[ROW][C]12[/C][C]0.232295[/C][C]1.9435[/C][C]0.027987[/C][/ROW]
[ROW][C]13[/C][C]-0.153117[/C][C]-1.2811[/C][C]0.102199[/C][/ROW]
[ROW][C]14[/C][C]-0.095821[/C][C]-0.8017[/C][C]0.21272[/C][/ROW]
[ROW][C]15[/C][C]-0.058207[/C][C]-0.487[/C][C]0.313892[/C][/ROW]
[ROW][C]16[/C][C]0.062658[/C][C]0.5242[/C][C]0.300885[/C][/ROW]
[ROW][C]17[/C][C]0.023456[/C][C]0.1962[/C][C]0.422494[/C][/ROW]
[ROW][C]18[/C][C]-0.028988[/C][C]-0.2425[/C][C]0.404539[/C][/ROW]
[ROW][C]19[/C][C]-0.038409[/C][C]-0.3214[/C][C]0.374449[/C][/ROW]
[ROW][C]20[/C][C]0.015588[/C][C]0.1304[/C][C]0.448306[/C][/ROW]
[ROW][C]21[/C][C]-0.034345[/C][C]-0.2873[/C][C]0.387347[/C][/ROW]
[ROW][C]22[/C][C]0.097681[/C][C]0.8173[/C][C]0.208277[/C][/ROW]
[ROW][C]23[/C][C]-0.016223[/C][C]-0.1357[/C][C]0.446213[/C][/ROW]
[ROW][C]24[/C][C]0.009759[/C][C]0.0817[/C][C]0.467578[/C][/ROW]
[ROW][C]25[/C][C]0.024568[/C][C]0.2055[/C][C]0.418871[/C][/ROW]
[ROW][C]26[/C][C]-0.00628[/C][C]-0.0525[/C][C]0.479125[/C][/ROW]
[ROW][C]27[/C][C]-0.044591[/C][C]-0.3731[/C][C]0.355109[/C][/ROW]
[ROW][C]28[/C][C]-0.026705[/C][C]-0.2234[/C][C]0.411927[/C][/ROW]
[ROW][C]29[/C][C]-0.038377[/C][C]-0.3211[/C][C]0.374552[/C][/ROW]
[ROW][C]30[/C][C]-0.036865[/C][C]-0.3084[/C][C]0.379334[/C][/ROW]
[ROW][C]31[/C][C]-0.032643[/C][C]-0.2731[/C][C]0.392787[/C][/ROW]
[ROW][C]32[/C][C]-0.064824[/C][C]-0.5424[/C][C]0.294649[/C][/ROW]
[ROW][C]33[/C][C]0.069868[/C][C]0.5846[/C][C]0.280362[/C][/ROW]
[ROW][C]34[/C][C]-0.05138[/C][C]-0.4299[/C][C]0.334304[/C][/ROW]
[ROW][C]35[/C][C]0.094016[/C][C]0.7866[/C][C]0.217086[/C][/ROW]
[ROW][C]36[/C][C]-0.021811[/C][C]-0.1825[/C][C]0.427864[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64688&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64688&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
1-0.184068-1.540.064032
2-0.210812-1.76380.041066
3-0.267155-2.23520.014299
4-0.323613-2.70750.004256
5-0.153921-1.28780.101029
6-0.108285-0.9060.184029
7-0.004644-0.03890.484558
8-0.13838-1.15780.125446
9-0.205361-1.71820.045093
10-0.391444-3.27510.000822
11-0.760253-6.36070
120.2322951.94350.027987
13-0.153117-1.28110.102199
14-0.095821-0.80170.21272
15-0.058207-0.4870.313892
160.0626580.52420.300885
170.0234560.19620.422494
18-0.028988-0.24250.404539
19-0.038409-0.32140.374449
200.0155880.13040.448306
21-0.034345-0.28730.387347
220.0976810.81730.208277
23-0.016223-0.13570.446213
240.0097590.08170.467578
250.0245680.20550.418871
26-0.00628-0.05250.479125
27-0.044591-0.37310.355109
28-0.026705-0.22340.411927
29-0.038377-0.32110.374552
30-0.036865-0.30840.379334
31-0.032643-0.27310.392787
32-0.064824-0.54240.294649
330.0698680.58460.280362
34-0.05138-0.42990.334304
350.0940160.78660.217086
36-0.021811-0.18250.427864



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