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 15:32:59 -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/t1259966017299ugyjj7obub8e.htm/, Retrieved Sun, 28 Apr 2024 18:12:07 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64193, Retrieved Sun, 28 Apr 2024 18:12:07 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact71
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:48:46] [b98453cac15ba1066b407e146608df68]
-    D      [(Partial) Autocorrelation Function] [] [2009-12-04 22:32:59] [7cc673c2b3a8ab442a3ec6ca430f2445] [Current]
Feedback Forum

Post a new message
Dataseries X:
102.80 
118.72 
119.01 
118.61 
120.43 
111.83 
116.79 
131.71 
120.57 
117.83 
130.80 
107.46 
112.09 
129.47 
119.72 
134.81 
135.80 
129.27 
126.94 
153.45 
121.86 
133.47 
135.34 
117.10 
120.65 
132.49 
137.60 
138.69 
125.53 
133.09 
129.08 
145.94 
129.07 
139.69 
142.09 
137.29 
127.03 
137.25 
156.87 
150.89 
139.14 
158.30 
149.00 
158.36 
168.06 
153.38 
173.86 
162.47 
145.17 
168.89 
166.64 
140.07 
128.84 
123.40 
120.30 
129.66 
118.12 
113.91 
131.09 
119.14 
115.33




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64193&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.478551-3.31550.000874
20.0722810.50080.309409
30.3863362.67660.005073
4-0.358172-2.48150.008319
50.0956470.66270.255358
60.2558141.77230.041343
7-0.439764-3.04680.001876
80.2436521.68810.048943
9-0.004249-0.02940.488317
10-0.302681-2.0970.020641
110.2790411.93330.029558
12-0.156355-1.08330.142053
13-0.156741-1.08590.141466
140.2337051.61920.055984
15-0.139468-0.96630.169378
16-0.057354-0.39740.346432
170.1576221.0920.140134
18-0.168818-1.16960.123968
19-0.033243-0.23030.409412
200.1930951.33780.093633
21-0.237422-1.64490.053262
220.032490.22510.411429
230.2340071.62130.055758
24-0.321766-2.22930.015256
250.2702661.87250.033621
26-0.05195-0.35990.360244
27-0.096958-0.67170.252484
280.1337020.92630.179458
290.0086270.05980.476295
30-0.126912-0.87930.191817
310.1902671.31820.096845
32-0.149437-1.03530.152852
330.0459770.31850.375728
340.0387690.26860.394694
35-0.101904-0.7060.241796
360.0524910.36370.358851

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.478551 & -3.3155 & 0.000874 \tabularnewline
2 & 0.072281 & 0.5008 & 0.309409 \tabularnewline
3 & 0.386336 & 2.6766 & 0.005073 \tabularnewline
4 & -0.358172 & -2.4815 & 0.008319 \tabularnewline
5 & 0.095647 & 0.6627 & 0.255358 \tabularnewline
6 & 0.255814 & 1.7723 & 0.041343 \tabularnewline
7 & -0.439764 & -3.0468 & 0.001876 \tabularnewline
8 & 0.243652 & 1.6881 & 0.048943 \tabularnewline
9 & -0.004249 & -0.0294 & 0.488317 \tabularnewline
10 & -0.302681 & -2.097 & 0.020641 \tabularnewline
11 & 0.279041 & 1.9333 & 0.029558 \tabularnewline
12 & -0.156355 & -1.0833 & 0.142053 \tabularnewline
13 & -0.156741 & -1.0859 & 0.141466 \tabularnewline
14 & 0.233705 & 1.6192 & 0.055984 \tabularnewline
15 & -0.139468 & -0.9663 & 0.169378 \tabularnewline
16 & -0.057354 & -0.3974 & 0.346432 \tabularnewline
17 & 0.157622 & 1.092 & 0.140134 \tabularnewline
18 & -0.168818 & -1.1696 & 0.123968 \tabularnewline
19 & -0.033243 & -0.2303 & 0.409412 \tabularnewline
20 & 0.193095 & 1.3378 & 0.093633 \tabularnewline
21 & -0.237422 & -1.6449 & 0.053262 \tabularnewline
22 & 0.03249 & 0.2251 & 0.411429 \tabularnewline
23 & 0.234007 & 1.6213 & 0.055758 \tabularnewline
24 & -0.321766 & -2.2293 & 0.015256 \tabularnewline
25 & 0.270266 & 1.8725 & 0.033621 \tabularnewline
26 & -0.05195 & -0.3599 & 0.360244 \tabularnewline
27 & -0.096958 & -0.6717 & 0.252484 \tabularnewline
28 & 0.133702 & 0.9263 & 0.179458 \tabularnewline
29 & 0.008627 & 0.0598 & 0.476295 \tabularnewline
30 & -0.126912 & -0.8793 & 0.191817 \tabularnewline
31 & 0.190267 & 1.3182 & 0.096845 \tabularnewline
32 & -0.149437 & -1.0353 & 0.152852 \tabularnewline
33 & 0.045977 & 0.3185 & 0.375728 \tabularnewline
34 & 0.038769 & 0.2686 & 0.394694 \tabularnewline
35 & -0.101904 & -0.706 & 0.241796 \tabularnewline
36 & 0.052491 & 0.3637 & 0.358851 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64193&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.478551[/C][C]-3.3155[/C][C]0.000874[/C][/ROW]
[ROW][C]2[/C][C]0.072281[/C][C]0.5008[/C][C]0.309409[/C][/ROW]
[ROW][C]3[/C][C]0.386336[/C][C]2.6766[/C][C]0.005073[/C][/ROW]
[ROW][C]4[/C][C]-0.358172[/C][C]-2.4815[/C][C]0.008319[/C][/ROW]
[ROW][C]5[/C][C]0.095647[/C][C]0.6627[/C][C]0.255358[/C][/ROW]
[ROW][C]6[/C][C]0.255814[/C][C]1.7723[/C][C]0.041343[/C][/ROW]
[ROW][C]7[/C][C]-0.439764[/C][C]-3.0468[/C][C]0.001876[/C][/ROW]
[ROW][C]8[/C][C]0.243652[/C][C]1.6881[/C][C]0.048943[/C][/ROW]
[ROW][C]9[/C][C]-0.004249[/C][C]-0.0294[/C][C]0.488317[/C][/ROW]
[ROW][C]10[/C][C]-0.302681[/C][C]-2.097[/C][C]0.020641[/C][/ROW]
[ROW][C]11[/C][C]0.279041[/C][C]1.9333[/C][C]0.029558[/C][/ROW]
[ROW][C]12[/C][C]-0.156355[/C][C]-1.0833[/C][C]0.142053[/C][/ROW]
[ROW][C]13[/C][C]-0.156741[/C][C]-1.0859[/C][C]0.141466[/C][/ROW]
[ROW][C]14[/C][C]0.233705[/C][C]1.6192[/C][C]0.055984[/C][/ROW]
[ROW][C]15[/C][C]-0.139468[/C][C]-0.9663[/C][C]0.169378[/C][/ROW]
[ROW][C]16[/C][C]-0.057354[/C][C]-0.3974[/C][C]0.346432[/C][/ROW]
[ROW][C]17[/C][C]0.157622[/C][C]1.092[/C][C]0.140134[/C][/ROW]
[ROW][C]18[/C][C]-0.168818[/C][C]-1.1696[/C][C]0.123968[/C][/ROW]
[ROW][C]19[/C][C]-0.033243[/C][C]-0.2303[/C][C]0.409412[/C][/ROW]
[ROW][C]20[/C][C]0.193095[/C][C]1.3378[/C][C]0.093633[/C][/ROW]
[ROW][C]21[/C][C]-0.237422[/C][C]-1.6449[/C][C]0.053262[/C][/ROW]
[ROW][C]22[/C][C]0.03249[/C][C]0.2251[/C][C]0.411429[/C][/ROW]
[ROW][C]23[/C][C]0.234007[/C][C]1.6213[/C][C]0.055758[/C][/ROW]
[ROW][C]24[/C][C]-0.321766[/C][C]-2.2293[/C][C]0.015256[/C][/ROW]
[ROW][C]25[/C][C]0.270266[/C][C]1.8725[/C][C]0.033621[/C][/ROW]
[ROW][C]26[/C][C]-0.05195[/C][C]-0.3599[/C][C]0.360244[/C][/ROW]
[ROW][C]27[/C][C]-0.096958[/C][C]-0.6717[/C][C]0.252484[/C][/ROW]
[ROW][C]28[/C][C]0.133702[/C][C]0.9263[/C][C]0.179458[/C][/ROW]
[ROW][C]29[/C][C]0.008627[/C][C]0.0598[/C][C]0.476295[/C][/ROW]
[ROW][C]30[/C][C]-0.126912[/C][C]-0.8793[/C][C]0.191817[/C][/ROW]
[ROW][C]31[/C][C]0.190267[/C][C]1.3182[/C][C]0.096845[/C][/ROW]
[ROW][C]32[/C][C]-0.149437[/C][C]-1.0353[/C][C]0.152852[/C][/ROW]
[ROW][C]33[/C][C]0.045977[/C][C]0.3185[/C][C]0.375728[/C][/ROW]
[ROW][C]34[/C][C]0.038769[/C][C]0.2686[/C][C]0.394694[/C][/ROW]
[ROW][C]35[/C][C]-0.101904[/C][C]-0.706[/C][C]0.241796[/C][/ROW]
[ROW][C]36[/C][C]0.052491[/C][C]0.3637[/C][C]0.358851[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64193&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64193&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.478551-3.31550.000874
20.0722810.50080.309409
30.3863362.67660.005073
4-0.358172-2.48150.008319
50.0956470.66270.255358
60.2558141.77230.041343
7-0.439764-3.04680.001876
80.2436521.68810.048943
9-0.004249-0.02940.488317
10-0.302681-2.0970.020641
110.2790411.93330.029558
12-0.156355-1.08330.142053
13-0.156741-1.08590.141466
140.2337051.61920.055984
15-0.139468-0.96630.169378
16-0.057354-0.39740.346432
170.1576221.0920.140134
18-0.168818-1.16960.123968
19-0.033243-0.23030.409412
200.1930951.33780.093633
21-0.237422-1.64490.053262
220.032490.22510.411429
230.2340071.62130.055758
24-0.321766-2.22930.015256
250.2702661.87250.033621
26-0.05195-0.35990.360244
27-0.096958-0.67170.252484
280.1337020.92630.179458
290.0086270.05980.476295
30-0.126912-0.87930.191817
310.1902671.31820.096845
32-0.149437-1.03530.152852
330.0459770.31850.375728
340.0387690.26860.394694
35-0.101904-0.7060.241796
360.0524910.36370.358851







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.478551-3.31550.000874
2-0.203285-1.40840.082729
30.4473853.09960.001619
40.0665210.46090.323487
5-0.188787-1.3080.098559
60.1361970.94360.175049
7-0.156718-1.08580.141501
8-0.118489-0.82090.207877
9-0.043465-0.30110.382306
10-0.100671-0.69750.244437
110.0064720.04480.48221
12-0.048166-0.33370.370029
13-0.084752-0.58720.279918
14-0.054964-0.38080.352515
150.0988730.6850.248315
160.0183460.12710.449694
17-0.1199-0.83070.205131
18-0.073217-0.50730.307146
19-0.166043-1.15040.127844
200.0454630.3150.377073
21-0.023726-0.16440.435061
22-0.172383-1.19430.119114
230.1896731.31410.09753
24-0.00424-0.02940.488344
250.0996780.69060.246574
26-0.173763-1.20390.117273
270.0562040.38940.349355
28-0.049585-0.34350.366349
29-0.024395-0.1690.433248
300.0292980.2030.420004
31-0.092326-0.63970.26272
320.0035260.02440.490306
330.0766960.53140.298808
34-0.075337-0.52190.302054
35-0.049974-0.34620.365341
36-0.010265-0.07110.4718

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.478551 & -3.3155 & 0.000874 \tabularnewline
2 & -0.203285 & -1.4084 & 0.082729 \tabularnewline
3 & 0.447385 & 3.0996 & 0.001619 \tabularnewline
4 & 0.066521 & 0.4609 & 0.323487 \tabularnewline
5 & -0.188787 & -1.308 & 0.098559 \tabularnewline
6 & 0.136197 & 0.9436 & 0.175049 \tabularnewline
7 & -0.156718 & -1.0858 & 0.141501 \tabularnewline
8 & -0.118489 & -0.8209 & 0.207877 \tabularnewline
9 & -0.043465 & -0.3011 & 0.382306 \tabularnewline
10 & -0.100671 & -0.6975 & 0.244437 \tabularnewline
11 & 0.006472 & 0.0448 & 0.48221 \tabularnewline
12 & -0.048166 & -0.3337 & 0.370029 \tabularnewline
13 & -0.084752 & -0.5872 & 0.279918 \tabularnewline
14 & -0.054964 & -0.3808 & 0.352515 \tabularnewline
15 & 0.098873 & 0.685 & 0.248315 \tabularnewline
16 & 0.018346 & 0.1271 & 0.449694 \tabularnewline
17 & -0.1199 & -0.8307 & 0.205131 \tabularnewline
18 & -0.073217 & -0.5073 & 0.307146 \tabularnewline
19 & -0.166043 & -1.1504 & 0.127844 \tabularnewline
20 & 0.045463 & 0.315 & 0.377073 \tabularnewline
21 & -0.023726 & -0.1644 & 0.435061 \tabularnewline
22 & -0.172383 & -1.1943 & 0.119114 \tabularnewline
23 & 0.189673 & 1.3141 & 0.09753 \tabularnewline
24 & -0.00424 & -0.0294 & 0.488344 \tabularnewline
25 & 0.099678 & 0.6906 & 0.246574 \tabularnewline
26 & -0.173763 & -1.2039 & 0.117273 \tabularnewline
27 & 0.056204 & 0.3894 & 0.349355 \tabularnewline
28 & -0.049585 & -0.3435 & 0.366349 \tabularnewline
29 & -0.024395 & -0.169 & 0.433248 \tabularnewline
30 & 0.029298 & 0.203 & 0.420004 \tabularnewline
31 & -0.092326 & -0.6397 & 0.26272 \tabularnewline
32 & 0.003526 & 0.0244 & 0.490306 \tabularnewline
33 & 0.076696 & 0.5314 & 0.298808 \tabularnewline
34 & -0.075337 & -0.5219 & 0.302054 \tabularnewline
35 & -0.049974 & -0.3462 & 0.365341 \tabularnewline
36 & -0.010265 & -0.0711 & 0.4718 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64193&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.478551[/C][C]-3.3155[/C][C]0.000874[/C][/ROW]
[ROW][C]2[/C][C]-0.203285[/C][C]-1.4084[/C][C]0.082729[/C][/ROW]
[ROW][C]3[/C][C]0.447385[/C][C]3.0996[/C][C]0.001619[/C][/ROW]
[ROW][C]4[/C][C]0.066521[/C][C]0.4609[/C][C]0.323487[/C][/ROW]
[ROW][C]5[/C][C]-0.188787[/C][C]-1.308[/C][C]0.098559[/C][/ROW]
[ROW][C]6[/C][C]0.136197[/C][C]0.9436[/C][C]0.175049[/C][/ROW]
[ROW][C]7[/C][C]-0.156718[/C][C]-1.0858[/C][C]0.141501[/C][/ROW]
[ROW][C]8[/C][C]-0.118489[/C][C]-0.8209[/C][C]0.207877[/C][/ROW]
[ROW][C]9[/C][C]-0.043465[/C][C]-0.3011[/C][C]0.382306[/C][/ROW]
[ROW][C]10[/C][C]-0.100671[/C][C]-0.6975[/C][C]0.244437[/C][/ROW]
[ROW][C]11[/C][C]0.006472[/C][C]0.0448[/C][C]0.48221[/C][/ROW]
[ROW][C]12[/C][C]-0.048166[/C][C]-0.3337[/C][C]0.370029[/C][/ROW]
[ROW][C]13[/C][C]-0.084752[/C][C]-0.5872[/C][C]0.279918[/C][/ROW]
[ROW][C]14[/C][C]-0.054964[/C][C]-0.3808[/C][C]0.352515[/C][/ROW]
[ROW][C]15[/C][C]0.098873[/C][C]0.685[/C][C]0.248315[/C][/ROW]
[ROW][C]16[/C][C]0.018346[/C][C]0.1271[/C][C]0.449694[/C][/ROW]
[ROW][C]17[/C][C]-0.1199[/C][C]-0.8307[/C][C]0.205131[/C][/ROW]
[ROW][C]18[/C][C]-0.073217[/C][C]-0.5073[/C][C]0.307146[/C][/ROW]
[ROW][C]19[/C][C]-0.166043[/C][C]-1.1504[/C][C]0.127844[/C][/ROW]
[ROW][C]20[/C][C]0.045463[/C][C]0.315[/C][C]0.377073[/C][/ROW]
[ROW][C]21[/C][C]-0.023726[/C][C]-0.1644[/C][C]0.435061[/C][/ROW]
[ROW][C]22[/C][C]-0.172383[/C][C]-1.1943[/C][C]0.119114[/C][/ROW]
[ROW][C]23[/C][C]0.189673[/C][C]1.3141[/C][C]0.09753[/C][/ROW]
[ROW][C]24[/C][C]-0.00424[/C][C]-0.0294[/C][C]0.488344[/C][/ROW]
[ROW][C]25[/C][C]0.099678[/C][C]0.6906[/C][C]0.246574[/C][/ROW]
[ROW][C]26[/C][C]-0.173763[/C][C]-1.2039[/C][C]0.117273[/C][/ROW]
[ROW][C]27[/C][C]0.056204[/C][C]0.3894[/C][C]0.349355[/C][/ROW]
[ROW][C]28[/C][C]-0.049585[/C][C]-0.3435[/C][C]0.366349[/C][/ROW]
[ROW][C]29[/C][C]-0.024395[/C][C]-0.169[/C][C]0.433248[/C][/ROW]
[ROW][C]30[/C][C]0.029298[/C][C]0.203[/C][C]0.420004[/C][/ROW]
[ROW][C]31[/C][C]-0.092326[/C][C]-0.6397[/C][C]0.26272[/C][/ROW]
[ROW][C]32[/C][C]0.003526[/C][C]0.0244[/C][C]0.490306[/C][/ROW]
[ROW][C]33[/C][C]0.076696[/C][C]0.5314[/C][C]0.298808[/C][/ROW]
[ROW][C]34[/C][C]-0.075337[/C][C]-0.5219[/C][C]0.302054[/C][/ROW]
[ROW][C]35[/C][C]-0.049974[/C][C]-0.3462[/C][C]0.365341[/C][/ROW]
[ROW][C]36[/C][C]-0.010265[/C][C]-0.0711[/C][C]0.4718[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64193&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64193&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.478551-3.31550.000874
2-0.203285-1.40840.082729
30.4473853.09960.001619
40.0665210.46090.323487
5-0.188787-1.3080.098559
60.1361970.94360.175049
7-0.156718-1.08580.141501
8-0.118489-0.82090.207877
9-0.043465-0.30110.382306
10-0.100671-0.69750.244437
110.0064720.04480.48221
12-0.048166-0.33370.370029
13-0.084752-0.58720.279918
14-0.054964-0.38080.352515
150.0988730.6850.248315
160.0183460.12710.449694
17-0.1199-0.83070.205131
18-0.073217-0.50730.307146
19-0.166043-1.15040.127844
200.0454630.3150.377073
21-0.023726-0.16440.435061
22-0.172383-1.19430.119114
230.1896731.31410.09753
24-0.00424-0.02940.488344
250.0996780.69060.246574
26-0.173763-1.20390.117273
270.0562040.38940.349355
28-0.049585-0.34350.366349
29-0.024395-0.1690.433248
300.0292980.2030.420004
31-0.092326-0.63970.26272
320.0035260.02440.490306
330.0766960.53140.298808
34-0.075337-0.52190.302054
35-0.049974-0.34620.365341
36-0.010265-0.07110.4718



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