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, 04 Dec 2009 12:39:14 -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/04/t12599556287p9obqvxauljvit.htm/, Retrieved Sun, 28 Apr 2024 05:22:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64085, Retrieved Sun, 28 Apr 2024 05:22:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWS.5
Estimated Impact129
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]
-    D    [(Partial) Autocorrelation Function] [WS 9] [2009-12-02 18:24:33] [3e19a07d230ba260a720e0e03e0f40f2]
-    D        [(Partial) Autocorrelation Function] [WS 9] [2009-12-04 19:39:14] [682632737e024f9e62885141c5f654cd] [Current]
Feedback Forum

Post a new message
Dataseries X:
126.51
131.02
136.51
138.04
132.92
129.61
122.96
124.04
121.29
124.56
118.53
113.14
114.15
122.17
129.23
131.19
129.12
128.28
126.83
138.13
140.52
146.83
135.14
131.84
125.7
128.98
133.25
136.76
133.24
128.54
121.08
120.23
119.08
125.75
126.89
126.6
121.89
123.44
126.46
129.49
127.78
125.29
119.02
119.96
122.86
131.89
132.73
135.01
136.71
142.73
144.43
144.93
138.75
130.22
122.19
128.4
140.43
153.5
149.33
142.97




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64085&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.3201842.45940.008434
2-0.069311-0.53240.298229
3-0.628913-4.83085e-06
4-0.244498-1.8780.032661
5-0.010641-0.08170.467567
60.3573082.74450.004008
70.1294840.99460.162
8-0.072081-0.55370.29095
9-0.420161-3.22730.001021
10-0.094117-0.72290.23629
110.0629450.48350.315269
120.4213033.23610.000994
130.0374360.28760.387348
14-0.041019-0.31510.37691
15-0.381994-2.93410.002379
16-0.108582-0.8340.203812
170.0057790.04440.482371
180.2941592.25950.013781
190.1055790.8110.210322
20-0.002285-0.01750.493029
21-0.246073-1.89010.031828
22-0.035939-0.27610.391736
230.0153380.11780.453308
240.2685482.06280.021773
250.0518340.39810.34598
26-0.027265-0.20940.417419
27-0.286986-2.20440.015705
28-0.120881-0.92850.178464
290.0157630.12110.452019
300.2767972.12610.018844
310.1882471.4460.07674
320.0436090.3350.369418
33-0.257528-1.97810.026296
34-0.175774-1.35010.091064
35-0.049762-0.38220.351832
360.2548451.95750.027512

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.320184 & 2.4594 & 0.008434 \tabularnewline
2 & -0.069311 & -0.5324 & 0.298229 \tabularnewline
3 & -0.628913 & -4.8308 & 5e-06 \tabularnewline
4 & -0.244498 & -1.878 & 0.032661 \tabularnewline
5 & -0.010641 & -0.0817 & 0.467567 \tabularnewline
6 & 0.357308 & 2.7445 & 0.004008 \tabularnewline
7 & 0.129484 & 0.9946 & 0.162 \tabularnewline
8 & -0.072081 & -0.5537 & 0.29095 \tabularnewline
9 & -0.420161 & -3.2273 & 0.001021 \tabularnewline
10 & -0.094117 & -0.7229 & 0.23629 \tabularnewline
11 & 0.062945 & 0.4835 & 0.315269 \tabularnewline
12 & 0.421303 & 3.2361 & 0.000994 \tabularnewline
13 & 0.037436 & 0.2876 & 0.387348 \tabularnewline
14 & -0.041019 & -0.3151 & 0.37691 \tabularnewline
15 & -0.381994 & -2.9341 & 0.002379 \tabularnewline
16 & -0.108582 & -0.834 & 0.203812 \tabularnewline
17 & 0.005779 & 0.0444 & 0.482371 \tabularnewline
18 & 0.294159 & 2.2595 & 0.013781 \tabularnewline
19 & 0.105579 & 0.811 & 0.210322 \tabularnewline
20 & -0.002285 & -0.0175 & 0.493029 \tabularnewline
21 & -0.246073 & -1.8901 & 0.031828 \tabularnewline
22 & -0.035939 & -0.2761 & 0.391736 \tabularnewline
23 & 0.015338 & 0.1178 & 0.453308 \tabularnewline
24 & 0.268548 & 2.0628 & 0.021773 \tabularnewline
25 & 0.051834 & 0.3981 & 0.34598 \tabularnewline
26 & -0.027265 & -0.2094 & 0.417419 \tabularnewline
27 & -0.286986 & -2.2044 & 0.015705 \tabularnewline
28 & -0.120881 & -0.9285 & 0.178464 \tabularnewline
29 & 0.015763 & 0.1211 & 0.452019 \tabularnewline
30 & 0.276797 & 2.1261 & 0.018844 \tabularnewline
31 & 0.188247 & 1.446 & 0.07674 \tabularnewline
32 & 0.043609 & 0.335 & 0.369418 \tabularnewline
33 & -0.257528 & -1.9781 & 0.026296 \tabularnewline
34 & -0.175774 & -1.3501 & 0.091064 \tabularnewline
35 & -0.049762 & -0.3822 & 0.351832 \tabularnewline
36 & 0.254845 & 1.9575 & 0.027512 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64085&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.320184[/C][C]2.4594[/C][C]0.008434[/C][/ROW]
[ROW][C]2[/C][C]-0.069311[/C][C]-0.5324[/C][C]0.298229[/C][/ROW]
[ROW][C]3[/C][C]-0.628913[/C][C]-4.8308[/C][C]5e-06[/C][/ROW]
[ROW][C]4[/C][C]-0.244498[/C][C]-1.878[/C][C]0.032661[/C][/ROW]
[ROW][C]5[/C][C]-0.010641[/C][C]-0.0817[/C][C]0.467567[/C][/ROW]
[ROW][C]6[/C][C]0.357308[/C][C]2.7445[/C][C]0.004008[/C][/ROW]
[ROW][C]7[/C][C]0.129484[/C][C]0.9946[/C][C]0.162[/C][/ROW]
[ROW][C]8[/C][C]-0.072081[/C][C]-0.5537[/C][C]0.29095[/C][/ROW]
[ROW][C]9[/C][C]-0.420161[/C][C]-3.2273[/C][C]0.001021[/C][/ROW]
[ROW][C]10[/C][C]-0.094117[/C][C]-0.7229[/C][C]0.23629[/C][/ROW]
[ROW][C]11[/C][C]0.062945[/C][C]0.4835[/C][C]0.315269[/C][/ROW]
[ROW][C]12[/C][C]0.421303[/C][C]3.2361[/C][C]0.000994[/C][/ROW]
[ROW][C]13[/C][C]0.037436[/C][C]0.2876[/C][C]0.387348[/C][/ROW]
[ROW][C]14[/C][C]-0.041019[/C][C]-0.3151[/C][C]0.37691[/C][/ROW]
[ROW][C]15[/C][C]-0.381994[/C][C]-2.9341[/C][C]0.002379[/C][/ROW]
[ROW][C]16[/C][C]-0.108582[/C][C]-0.834[/C][C]0.203812[/C][/ROW]
[ROW][C]17[/C][C]0.005779[/C][C]0.0444[/C][C]0.482371[/C][/ROW]
[ROW][C]18[/C][C]0.294159[/C][C]2.2595[/C][C]0.013781[/C][/ROW]
[ROW][C]19[/C][C]0.105579[/C][C]0.811[/C][C]0.210322[/C][/ROW]
[ROW][C]20[/C][C]-0.002285[/C][C]-0.0175[/C][C]0.493029[/C][/ROW]
[ROW][C]21[/C][C]-0.246073[/C][C]-1.8901[/C][C]0.031828[/C][/ROW]
[ROW][C]22[/C][C]-0.035939[/C][C]-0.2761[/C][C]0.391736[/C][/ROW]
[ROW][C]23[/C][C]0.015338[/C][C]0.1178[/C][C]0.453308[/C][/ROW]
[ROW][C]24[/C][C]0.268548[/C][C]2.0628[/C][C]0.021773[/C][/ROW]
[ROW][C]25[/C][C]0.051834[/C][C]0.3981[/C][C]0.34598[/C][/ROW]
[ROW][C]26[/C][C]-0.027265[/C][C]-0.2094[/C][C]0.417419[/C][/ROW]
[ROW][C]27[/C][C]-0.286986[/C][C]-2.2044[/C][C]0.015705[/C][/ROW]
[ROW][C]28[/C][C]-0.120881[/C][C]-0.9285[/C][C]0.178464[/C][/ROW]
[ROW][C]29[/C][C]0.015763[/C][C]0.1211[/C][C]0.452019[/C][/ROW]
[ROW][C]30[/C][C]0.276797[/C][C]2.1261[/C][C]0.018844[/C][/ROW]
[ROW][C]31[/C][C]0.188247[/C][C]1.446[/C][C]0.07674[/C][/ROW]
[ROW][C]32[/C][C]0.043609[/C][C]0.335[/C][C]0.369418[/C][/ROW]
[ROW][C]33[/C][C]-0.257528[/C][C]-1.9781[/C][C]0.026296[/C][/ROW]
[ROW][C]34[/C][C]-0.175774[/C][C]-1.3501[/C][C]0.091064[/C][/ROW]
[ROW][C]35[/C][C]-0.049762[/C][C]-0.3822[/C][C]0.351832[/C][/ROW]
[ROW][C]36[/C][C]0.254845[/C][C]1.9575[/C][C]0.027512[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64085&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64085&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.3201842.45940.008434
2-0.069311-0.53240.298229
3-0.628913-4.83085e-06
4-0.244498-1.8780.032661
5-0.010641-0.08170.467567
60.3573082.74450.004008
70.1294840.99460.162
8-0.072081-0.55370.29095
9-0.420161-3.22730.001021
10-0.094117-0.72290.23629
110.0629450.48350.315269
120.4213033.23610.000994
130.0374360.28760.387348
14-0.041019-0.31510.37691
15-0.381994-2.93410.002379
16-0.108582-0.8340.203812
170.0057790.04440.482371
180.2941592.25950.013781
190.1055790.8110.210322
20-0.002285-0.01750.493029
21-0.246073-1.89010.031828
22-0.035939-0.27610.391736
230.0153380.11780.453308
240.2685482.06280.021773
250.0518340.39810.34598
26-0.027265-0.20940.417419
27-0.286986-2.20440.015705
28-0.120881-0.92850.178464
290.0157630.12110.452019
300.2767972.12610.018844
310.1882471.4460.07674
320.0436090.3350.369418
33-0.257528-1.97810.026296
34-0.175774-1.35010.091064
35-0.049762-0.38220.351832
360.2548451.95750.027512







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3201842.45940.008434
2-0.191456-1.47060.073356
3-0.625932-4.80795e-06
40.2353311.80760.037883
5-0.021933-0.16850.433396
6-0.082682-0.63510.263912
7-0.034692-0.26650.3954
8-0.160341-1.23160.111492
9-0.294395-2.26130.013721
100.2827142.17160.01696
11-0.133438-1.0250.154784
120.0280870.21570.414968
13-0.141172-1.08440.141308
140.0172180.13230.447618
15-0.114024-0.87580.192336
16-0.101559-0.78010.219228
170.0358240.27520.392075
18-0.092754-0.71250.239495
19-0.053986-0.41470.339943
200.0263160.20210.420252
21-0.083287-0.63970.26241
22-0.000844-0.00650.497423
230.02890.2220.412546
24-0.02189-0.16810.433525
250.0297850.22880.409913
26-0.143974-1.10590.136632
27-0.006703-0.05150.479555
28-0.071362-0.54810.29283
290.0170750.13120.448048
300.0797580.61260.271237
310.0363530.27920.390523
32-0.062109-0.47710.317538
33-0.063455-0.48740.313888
340.0332690.25550.399597
350.0606770.46610.321441
36-0.008014-0.06160.475562

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.320184 & 2.4594 & 0.008434 \tabularnewline
2 & -0.191456 & -1.4706 & 0.073356 \tabularnewline
3 & -0.625932 & -4.8079 & 5e-06 \tabularnewline
4 & 0.235331 & 1.8076 & 0.037883 \tabularnewline
5 & -0.021933 & -0.1685 & 0.433396 \tabularnewline
6 & -0.082682 & -0.6351 & 0.263912 \tabularnewline
7 & -0.034692 & -0.2665 & 0.3954 \tabularnewline
8 & -0.160341 & -1.2316 & 0.111492 \tabularnewline
9 & -0.294395 & -2.2613 & 0.013721 \tabularnewline
10 & 0.282714 & 2.1716 & 0.01696 \tabularnewline
11 & -0.133438 & -1.025 & 0.154784 \tabularnewline
12 & 0.028087 & 0.2157 & 0.414968 \tabularnewline
13 & -0.141172 & -1.0844 & 0.141308 \tabularnewline
14 & 0.017218 & 0.1323 & 0.447618 \tabularnewline
15 & -0.114024 & -0.8758 & 0.192336 \tabularnewline
16 & -0.101559 & -0.7801 & 0.219228 \tabularnewline
17 & 0.035824 & 0.2752 & 0.392075 \tabularnewline
18 & -0.092754 & -0.7125 & 0.239495 \tabularnewline
19 & -0.053986 & -0.4147 & 0.339943 \tabularnewline
20 & 0.026316 & 0.2021 & 0.420252 \tabularnewline
21 & -0.083287 & -0.6397 & 0.26241 \tabularnewline
22 & -0.000844 & -0.0065 & 0.497423 \tabularnewline
23 & 0.0289 & 0.222 & 0.412546 \tabularnewline
24 & -0.02189 & -0.1681 & 0.433525 \tabularnewline
25 & 0.029785 & 0.2288 & 0.409913 \tabularnewline
26 & -0.143974 & -1.1059 & 0.136632 \tabularnewline
27 & -0.006703 & -0.0515 & 0.479555 \tabularnewline
28 & -0.071362 & -0.5481 & 0.29283 \tabularnewline
29 & 0.017075 & 0.1312 & 0.448048 \tabularnewline
30 & 0.079758 & 0.6126 & 0.271237 \tabularnewline
31 & 0.036353 & 0.2792 & 0.390523 \tabularnewline
32 & -0.062109 & -0.4771 & 0.317538 \tabularnewline
33 & -0.063455 & -0.4874 & 0.313888 \tabularnewline
34 & 0.033269 & 0.2555 & 0.399597 \tabularnewline
35 & 0.060677 & 0.4661 & 0.321441 \tabularnewline
36 & -0.008014 & -0.0616 & 0.475562 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64085&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.320184[/C][C]2.4594[/C][C]0.008434[/C][/ROW]
[ROW][C]2[/C][C]-0.191456[/C][C]-1.4706[/C][C]0.073356[/C][/ROW]
[ROW][C]3[/C][C]-0.625932[/C][C]-4.8079[/C][C]5e-06[/C][/ROW]
[ROW][C]4[/C][C]0.235331[/C][C]1.8076[/C][C]0.037883[/C][/ROW]
[ROW][C]5[/C][C]-0.021933[/C][C]-0.1685[/C][C]0.433396[/C][/ROW]
[ROW][C]6[/C][C]-0.082682[/C][C]-0.6351[/C][C]0.263912[/C][/ROW]
[ROW][C]7[/C][C]-0.034692[/C][C]-0.2665[/C][C]0.3954[/C][/ROW]
[ROW][C]8[/C][C]-0.160341[/C][C]-1.2316[/C][C]0.111492[/C][/ROW]
[ROW][C]9[/C][C]-0.294395[/C][C]-2.2613[/C][C]0.013721[/C][/ROW]
[ROW][C]10[/C][C]0.282714[/C][C]2.1716[/C][C]0.01696[/C][/ROW]
[ROW][C]11[/C][C]-0.133438[/C][C]-1.025[/C][C]0.154784[/C][/ROW]
[ROW][C]12[/C][C]0.028087[/C][C]0.2157[/C][C]0.414968[/C][/ROW]
[ROW][C]13[/C][C]-0.141172[/C][C]-1.0844[/C][C]0.141308[/C][/ROW]
[ROW][C]14[/C][C]0.017218[/C][C]0.1323[/C][C]0.447618[/C][/ROW]
[ROW][C]15[/C][C]-0.114024[/C][C]-0.8758[/C][C]0.192336[/C][/ROW]
[ROW][C]16[/C][C]-0.101559[/C][C]-0.7801[/C][C]0.219228[/C][/ROW]
[ROW][C]17[/C][C]0.035824[/C][C]0.2752[/C][C]0.392075[/C][/ROW]
[ROW][C]18[/C][C]-0.092754[/C][C]-0.7125[/C][C]0.239495[/C][/ROW]
[ROW][C]19[/C][C]-0.053986[/C][C]-0.4147[/C][C]0.339943[/C][/ROW]
[ROW][C]20[/C][C]0.026316[/C][C]0.2021[/C][C]0.420252[/C][/ROW]
[ROW][C]21[/C][C]-0.083287[/C][C]-0.6397[/C][C]0.26241[/C][/ROW]
[ROW][C]22[/C][C]-0.000844[/C][C]-0.0065[/C][C]0.497423[/C][/ROW]
[ROW][C]23[/C][C]0.0289[/C][C]0.222[/C][C]0.412546[/C][/ROW]
[ROW][C]24[/C][C]-0.02189[/C][C]-0.1681[/C][C]0.433525[/C][/ROW]
[ROW][C]25[/C][C]0.029785[/C][C]0.2288[/C][C]0.409913[/C][/ROW]
[ROW][C]26[/C][C]-0.143974[/C][C]-1.1059[/C][C]0.136632[/C][/ROW]
[ROW][C]27[/C][C]-0.006703[/C][C]-0.0515[/C][C]0.479555[/C][/ROW]
[ROW][C]28[/C][C]-0.071362[/C][C]-0.5481[/C][C]0.29283[/C][/ROW]
[ROW][C]29[/C][C]0.017075[/C][C]0.1312[/C][C]0.448048[/C][/ROW]
[ROW][C]30[/C][C]0.079758[/C][C]0.6126[/C][C]0.271237[/C][/ROW]
[ROW][C]31[/C][C]0.036353[/C][C]0.2792[/C][C]0.390523[/C][/ROW]
[ROW][C]32[/C][C]-0.062109[/C][C]-0.4771[/C][C]0.317538[/C][/ROW]
[ROW][C]33[/C][C]-0.063455[/C][C]-0.4874[/C][C]0.313888[/C][/ROW]
[ROW][C]34[/C][C]0.033269[/C][C]0.2555[/C][C]0.399597[/C][/ROW]
[ROW][C]35[/C][C]0.060677[/C][C]0.4661[/C][C]0.321441[/C][/ROW]
[ROW][C]36[/C][C]-0.008014[/C][C]-0.0616[/C][C]0.475562[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64085&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64085&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.3201842.45940.008434
2-0.191456-1.47060.073356
3-0.625932-4.80795e-06
40.2353311.80760.037883
5-0.021933-0.16850.433396
6-0.082682-0.63510.263912
7-0.034692-0.26650.3954
8-0.160341-1.23160.111492
9-0.294395-2.26130.013721
100.2827142.17160.01696
11-0.133438-1.0250.154784
120.0280870.21570.414968
13-0.141172-1.08440.141308
140.0172180.13230.447618
15-0.114024-0.87580.192336
16-0.101559-0.78010.219228
170.0358240.27520.392075
18-0.092754-0.71250.239495
19-0.053986-0.41470.339943
200.0263160.20210.420252
21-0.083287-0.63970.26241
22-0.000844-0.00650.497423
230.02890.2220.412546
24-0.02189-0.16810.433525
250.0297850.22880.409913
26-0.143974-1.10590.136632
27-0.006703-0.05150.479555
28-0.071362-0.54810.29283
290.0170750.13120.448048
300.0797580.61260.271237
310.0363530.27920.390523
32-0.062109-0.47710.317538
33-0.063455-0.48740.313888
340.0332690.25550.399597
350.0606770.46610.321441
36-0.008014-0.06160.475562



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