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 computationWed, 09 Dec 2009 11:15:27 -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/09/t1260382623a203r0dh8cvy1vg.htm/, Retrieved Mon, 29 Apr 2024 14:05:28 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=65110, Retrieved Mon, 29 Apr 2024 14:05:28 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact93
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:19:56] [b98453cac15ba1066b407e146608df68]
-    D          [(Partial) Autocorrelation Function] [] [2009-12-09 18:15:27] [faa1ded5041cd5a0e2be04844f08502a] [Current]
Feedback Forum

Post a new message
Dataseries X:
24
22
25
24
29
26
26
21
23
22
21
16
19
16
25
27
23
22
23
20
24
23
20
21
22
17
21
19
23
22
15
23
21
18
18
18
18
10
13
10
9
9
6
11
9
10
9
16
10
7
7
14
11
10
6
8
13
12
15
16
16




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

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5801324.06098.8e-05
20.549443.84610.000173
30.4610963.22770.001114
40.4010322.80720.003576
50.3217452.25220.014411
60.2146761.50270.069663
70.1022920.7160.238682
80.0231020.16170.436099
9-0.026042-0.18230.428051
10-0.152992-1.07090.14472
11-0.161699-1.13190.131594
12-0.352533-2.46770.008569
13-0.259634-1.81740.037634
14-0.275921-1.93140.029611
15-0.391148-2.7380.004296
16-0.358583-2.51010.007711
17-0.385629-2.69940.004753
18-0.363888-2.54720.007024
19-0.374651-2.62260.005799
20-0.304812-2.13370.01895
21-0.254197-1.77940.04069
22-0.173535-1.21470.115142
23-0.129665-0.90770.184252
24-0.103893-0.72720.235267
25-0.095336-0.66740.253838
26-0.067991-0.47590.318118
270.0293890.20570.41893
280.074640.52250.301844
290.070960.49670.310804
300.0251240.17590.43056
310.0639360.44760.328224
320.1210880.84760.200387
330.0885330.61970.269154
340.0967040.67690.250818
350.1058070.74060.231221
360.1288640.90210.185721

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.580132 & 4.0609 & 8.8e-05 \tabularnewline
2 & 0.54944 & 3.8461 & 0.000173 \tabularnewline
3 & 0.461096 & 3.2277 & 0.001114 \tabularnewline
4 & 0.401032 & 2.8072 & 0.003576 \tabularnewline
5 & 0.321745 & 2.2522 & 0.014411 \tabularnewline
6 & 0.214676 & 1.5027 & 0.069663 \tabularnewline
7 & 0.102292 & 0.716 & 0.238682 \tabularnewline
8 & 0.023102 & 0.1617 & 0.436099 \tabularnewline
9 & -0.026042 & -0.1823 & 0.428051 \tabularnewline
10 & -0.152992 & -1.0709 & 0.14472 \tabularnewline
11 & -0.161699 & -1.1319 & 0.131594 \tabularnewline
12 & -0.352533 & -2.4677 & 0.008569 \tabularnewline
13 & -0.259634 & -1.8174 & 0.037634 \tabularnewline
14 & -0.275921 & -1.9314 & 0.029611 \tabularnewline
15 & -0.391148 & -2.738 & 0.004296 \tabularnewline
16 & -0.358583 & -2.5101 & 0.007711 \tabularnewline
17 & -0.385629 & -2.6994 & 0.004753 \tabularnewline
18 & -0.363888 & -2.5472 & 0.007024 \tabularnewline
19 & -0.374651 & -2.6226 & 0.005799 \tabularnewline
20 & -0.304812 & -2.1337 & 0.01895 \tabularnewline
21 & -0.254197 & -1.7794 & 0.04069 \tabularnewline
22 & -0.173535 & -1.2147 & 0.115142 \tabularnewline
23 & -0.129665 & -0.9077 & 0.184252 \tabularnewline
24 & -0.103893 & -0.7272 & 0.235267 \tabularnewline
25 & -0.095336 & -0.6674 & 0.253838 \tabularnewline
26 & -0.067991 & -0.4759 & 0.318118 \tabularnewline
27 & 0.029389 & 0.2057 & 0.41893 \tabularnewline
28 & 0.07464 & 0.5225 & 0.301844 \tabularnewline
29 & 0.07096 & 0.4967 & 0.310804 \tabularnewline
30 & 0.025124 & 0.1759 & 0.43056 \tabularnewline
31 & 0.063936 & 0.4476 & 0.328224 \tabularnewline
32 & 0.121088 & 0.8476 & 0.200387 \tabularnewline
33 & 0.088533 & 0.6197 & 0.269154 \tabularnewline
34 & 0.096704 & 0.6769 & 0.250818 \tabularnewline
35 & 0.105807 & 0.7406 & 0.231221 \tabularnewline
36 & 0.128864 & 0.9021 & 0.185721 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65110&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.580132[/C][C]4.0609[/C][C]8.8e-05[/C][/ROW]
[ROW][C]2[/C][C]0.54944[/C][C]3.8461[/C][C]0.000173[/C][/ROW]
[ROW][C]3[/C][C]0.461096[/C][C]3.2277[/C][C]0.001114[/C][/ROW]
[ROW][C]4[/C][C]0.401032[/C][C]2.8072[/C][C]0.003576[/C][/ROW]
[ROW][C]5[/C][C]0.321745[/C][C]2.2522[/C][C]0.014411[/C][/ROW]
[ROW][C]6[/C][C]0.214676[/C][C]1.5027[/C][C]0.069663[/C][/ROW]
[ROW][C]7[/C][C]0.102292[/C][C]0.716[/C][C]0.238682[/C][/ROW]
[ROW][C]8[/C][C]0.023102[/C][C]0.1617[/C][C]0.436099[/C][/ROW]
[ROW][C]9[/C][C]-0.026042[/C][C]-0.1823[/C][C]0.428051[/C][/ROW]
[ROW][C]10[/C][C]-0.152992[/C][C]-1.0709[/C][C]0.14472[/C][/ROW]
[ROW][C]11[/C][C]-0.161699[/C][C]-1.1319[/C][C]0.131594[/C][/ROW]
[ROW][C]12[/C][C]-0.352533[/C][C]-2.4677[/C][C]0.008569[/C][/ROW]
[ROW][C]13[/C][C]-0.259634[/C][C]-1.8174[/C][C]0.037634[/C][/ROW]
[ROW][C]14[/C][C]-0.275921[/C][C]-1.9314[/C][C]0.029611[/C][/ROW]
[ROW][C]15[/C][C]-0.391148[/C][C]-2.738[/C][C]0.004296[/C][/ROW]
[ROW][C]16[/C][C]-0.358583[/C][C]-2.5101[/C][C]0.007711[/C][/ROW]
[ROW][C]17[/C][C]-0.385629[/C][C]-2.6994[/C][C]0.004753[/C][/ROW]
[ROW][C]18[/C][C]-0.363888[/C][C]-2.5472[/C][C]0.007024[/C][/ROW]
[ROW][C]19[/C][C]-0.374651[/C][C]-2.6226[/C][C]0.005799[/C][/ROW]
[ROW][C]20[/C][C]-0.304812[/C][C]-2.1337[/C][C]0.01895[/C][/ROW]
[ROW][C]21[/C][C]-0.254197[/C][C]-1.7794[/C][C]0.04069[/C][/ROW]
[ROW][C]22[/C][C]-0.173535[/C][C]-1.2147[/C][C]0.115142[/C][/ROW]
[ROW][C]23[/C][C]-0.129665[/C][C]-0.9077[/C][C]0.184252[/C][/ROW]
[ROW][C]24[/C][C]-0.103893[/C][C]-0.7272[/C][C]0.235267[/C][/ROW]
[ROW][C]25[/C][C]-0.095336[/C][C]-0.6674[/C][C]0.253838[/C][/ROW]
[ROW][C]26[/C][C]-0.067991[/C][C]-0.4759[/C][C]0.318118[/C][/ROW]
[ROW][C]27[/C][C]0.029389[/C][C]0.2057[/C][C]0.41893[/C][/ROW]
[ROW][C]28[/C][C]0.07464[/C][C]0.5225[/C][C]0.301844[/C][/ROW]
[ROW][C]29[/C][C]0.07096[/C][C]0.4967[/C][C]0.310804[/C][/ROW]
[ROW][C]30[/C][C]0.025124[/C][C]0.1759[/C][C]0.43056[/C][/ROW]
[ROW][C]31[/C][C]0.063936[/C][C]0.4476[/C][C]0.328224[/C][/ROW]
[ROW][C]32[/C][C]0.121088[/C][C]0.8476[/C][C]0.200387[/C][/ROW]
[ROW][C]33[/C][C]0.088533[/C][C]0.6197[/C][C]0.269154[/C][/ROW]
[ROW][C]34[/C][C]0.096704[/C][C]0.6769[/C][C]0.250818[/C][/ROW]
[ROW][C]35[/C][C]0.105807[/C][C]0.7406[/C][C]0.231221[/C][/ROW]
[ROW][C]36[/C][C]0.128864[/C][C]0.9021[/C][C]0.185721[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65110&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65110&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.5801324.06098.8e-05
20.549443.84610.000173
30.4610963.22770.001114
40.4010322.80720.003576
50.3217452.25220.014411
60.2146761.50270.069663
70.1022920.7160.238682
80.0231020.16170.436099
9-0.026042-0.18230.428051
10-0.152992-1.07090.14472
11-0.161699-1.13190.131594
12-0.352533-2.46770.008569
13-0.259634-1.81740.037634
14-0.275921-1.93140.029611
15-0.391148-2.7380.004296
16-0.358583-2.51010.007711
17-0.385629-2.69940.004753
18-0.363888-2.54720.007024
19-0.374651-2.62260.005799
20-0.304812-2.13370.01895
21-0.254197-1.77940.04069
22-0.173535-1.21470.115142
23-0.129665-0.90770.184252
24-0.103893-0.72720.235267
25-0.095336-0.66740.253838
26-0.067991-0.47590.318118
270.0293890.20570.41893
280.074640.52250.301844
290.070960.49670.310804
300.0251240.17590.43056
310.0639360.44760.328224
320.1210880.84760.200387
330.0885330.61970.269154
340.0967040.67690.250818
350.1058070.74060.231221
360.1288640.90210.185721







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5801324.06098.8e-05
20.320882.24620.014618
30.0982550.68780.247415
40.0371080.25980.398071
5-0.026418-0.18490.427024
6-0.108175-0.75720.226271
7-0.144901-1.01430.15771
8-0.095326-0.66730.253861
9-0.024816-0.17370.431405
10-0.149309-1.04520.150539
11-0.00058-0.00410.49839
12-0.267811-1.87470.033402
130.1052160.73650.232465
140.0647470.45320.326192
15-0.215705-1.50990.068741
16-0.010197-0.07140.471694
17-0.071348-0.49940.309854
18-0.058913-0.41240.340927
19-0.100295-0.70210.24298
200.0352880.2470.402964
210.096230.67360.251862
22-0.004372-0.03060.487855
230.0487110.3410.367288
24-0.125976-0.88180.191087
25-0.111561-0.78090.219302
26-0.024593-0.17210.432014
27-0.049271-0.34490.365823
280.1036360.72550.235813
29-0.061477-0.43030.334417
30-0.196372-1.37460.087754
31-0.060109-0.42080.337884
320.0948980.66430.254811
33-0.022268-0.15590.438387
34-0.060716-0.4250.336344
350.056470.39530.347171
36-0.009979-0.06980.472299

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.580132 & 4.0609 & 8.8e-05 \tabularnewline
2 & 0.32088 & 2.2462 & 0.014618 \tabularnewline
3 & 0.098255 & 0.6878 & 0.247415 \tabularnewline
4 & 0.037108 & 0.2598 & 0.398071 \tabularnewline
5 & -0.026418 & -0.1849 & 0.427024 \tabularnewline
6 & -0.108175 & -0.7572 & 0.226271 \tabularnewline
7 & -0.144901 & -1.0143 & 0.15771 \tabularnewline
8 & -0.095326 & -0.6673 & 0.253861 \tabularnewline
9 & -0.024816 & -0.1737 & 0.431405 \tabularnewline
10 & -0.149309 & -1.0452 & 0.150539 \tabularnewline
11 & -0.00058 & -0.0041 & 0.49839 \tabularnewline
12 & -0.267811 & -1.8747 & 0.033402 \tabularnewline
13 & 0.105216 & 0.7365 & 0.232465 \tabularnewline
14 & 0.064747 & 0.4532 & 0.326192 \tabularnewline
15 & -0.215705 & -1.5099 & 0.068741 \tabularnewline
16 & -0.010197 & -0.0714 & 0.471694 \tabularnewline
17 & -0.071348 & -0.4994 & 0.309854 \tabularnewline
18 & -0.058913 & -0.4124 & 0.340927 \tabularnewline
19 & -0.100295 & -0.7021 & 0.24298 \tabularnewline
20 & 0.035288 & 0.247 & 0.402964 \tabularnewline
21 & 0.09623 & 0.6736 & 0.251862 \tabularnewline
22 & -0.004372 & -0.0306 & 0.487855 \tabularnewline
23 & 0.048711 & 0.341 & 0.367288 \tabularnewline
24 & -0.125976 & -0.8818 & 0.191087 \tabularnewline
25 & -0.111561 & -0.7809 & 0.219302 \tabularnewline
26 & -0.024593 & -0.1721 & 0.432014 \tabularnewline
27 & -0.049271 & -0.3449 & 0.365823 \tabularnewline
28 & 0.103636 & 0.7255 & 0.235813 \tabularnewline
29 & -0.061477 & -0.4303 & 0.334417 \tabularnewline
30 & -0.196372 & -1.3746 & 0.087754 \tabularnewline
31 & -0.060109 & -0.4208 & 0.337884 \tabularnewline
32 & 0.094898 & 0.6643 & 0.254811 \tabularnewline
33 & -0.022268 & -0.1559 & 0.438387 \tabularnewline
34 & -0.060716 & -0.425 & 0.336344 \tabularnewline
35 & 0.05647 & 0.3953 & 0.347171 \tabularnewline
36 & -0.009979 & -0.0698 & 0.472299 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65110&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.580132[/C][C]4.0609[/C][C]8.8e-05[/C][/ROW]
[ROW][C]2[/C][C]0.32088[/C][C]2.2462[/C][C]0.014618[/C][/ROW]
[ROW][C]3[/C][C]0.098255[/C][C]0.6878[/C][C]0.247415[/C][/ROW]
[ROW][C]4[/C][C]0.037108[/C][C]0.2598[/C][C]0.398071[/C][/ROW]
[ROW][C]5[/C][C]-0.026418[/C][C]-0.1849[/C][C]0.427024[/C][/ROW]
[ROW][C]6[/C][C]-0.108175[/C][C]-0.7572[/C][C]0.226271[/C][/ROW]
[ROW][C]7[/C][C]-0.144901[/C][C]-1.0143[/C][C]0.15771[/C][/ROW]
[ROW][C]8[/C][C]-0.095326[/C][C]-0.6673[/C][C]0.253861[/C][/ROW]
[ROW][C]9[/C][C]-0.024816[/C][C]-0.1737[/C][C]0.431405[/C][/ROW]
[ROW][C]10[/C][C]-0.149309[/C][C]-1.0452[/C][C]0.150539[/C][/ROW]
[ROW][C]11[/C][C]-0.00058[/C][C]-0.0041[/C][C]0.49839[/C][/ROW]
[ROW][C]12[/C][C]-0.267811[/C][C]-1.8747[/C][C]0.033402[/C][/ROW]
[ROW][C]13[/C][C]0.105216[/C][C]0.7365[/C][C]0.232465[/C][/ROW]
[ROW][C]14[/C][C]0.064747[/C][C]0.4532[/C][C]0.326192[/C][/ROW]
[ROW][C]15[/C][C]-0.215705[/C][C]-1.5099[/C][C]0.068741[/C][/ROW]
[ROW][C]16[/C][C]-0.010197[/C][C]-0.0714[/C][C]0.471694[/C][/ROW]
[ROW][C]17[/C][C]-0.071348[/C][C]-0.4994[/C][C]0.309854[/C][/ROW]
[ROW][C]18[/C][C]-0.058913[/C][C]-0.4124[/C][C]0.340927[/C][/ROW]
[ROW][C]19[/C][C]-0.100295[/C][C]-0.7021[/C][C]0.24298[/C][/ROW]
[ROW][C]20[/C][C]0.035288[/C][C]0.247[/C][C]0.402964[/C][/ROW]
[ROW][C]21[/C][C]0.09623[/C][C]0.6736[/C][C]0.251862[/C][/ROW]
[ROW][C]22[/C][C]-0.004372[/C][C]-0.0306[/C][C]0.487855[/C][/ROW]
[ROW][C]23[/C][C]0.048711[/C][C]0.341[/C][C]0.367288[/C][/ROW]
[ROW][C]24[/C][C]-0.125976[/C][C]-0.8818[/C][C]0.191087[/C][/ROW]
[ROW][C]25[/C][C]-0.111561[/C][C]-0.7809[/C][C]0.219302[/C][/ROW]
[ROW][C]26[/C][C]-0.024593[/C][C]-0.1721[/C][C]0.432014[/C][/ROW]
[ROW][C]27[/C][C]-0.049271[/C][C]-0.3449[/C][C]0.365823[/C][/ROW]
[ROW][C]28[/C][C]0.103636[/C][C]0.7255[/C][C]0.235813[/C][/ROW]
[ROW][C]29[/C][C]-0.061477[/C][C]-0.4303[/C][C]0.334417[/C][/ROW]
[ROW][C]30[/C][C]-0.196372[/C][C]-1.3746[/C][C]0.087754[/C][/ROW]
[ROW][C]31[/C][C]-0.060109[/C][C]-0.4208[/C][C]0.337884[/C][/ROW]
[ROW][C]32[/C][C]0.094898[/C][C]0.6643[/C][C]0.254811[/C][/ROW]
[ROW][C]33[/C][C]-0.022268[/C][C]-0.1559[/C][C]0.438387[/C][/ROW]
[ROW][C]34[/C][C]-0.060716[/C][C]-0.425[/C][C]0.336344[/C][/ROW]
[ROW][C]35[/C][C]0.05647[/C][C]0.3953[/C][C]0.347171[/C][/ROW]
[ROW][C]36[/C][C]-0.009979[/C][C]-0.0698[/C][C]0.472299[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65110&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65110&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.5801324.06098.8e-05
20.320882.24620.014618
30.0982550.68780.247415
40.0371080.25980.398071
5-0.026418-0.18490.427024
6-0.108175-0.75720.226271
7-0.144901-1.01430.15771
8-0.095326-0.66730.253861
9-0.024816-0.17370.431405
10-0.149309-1.04520.150539
11-0.00058-0.00410.49839
12-0.267811-1.87470.033402
130.1052160.73650.232465
140.0647470.45320.326192
15-0.215705-1.50990.068741
16-0.010197-0.07140.471694
17-0.071348-0.49940.309854
18-0.058913-0.41240.340927
19-0.100295-0.70210.24298
200.0352880.2470.402964
210.096230.67360.251862
22-0.004372-0.03060.487855
230.0487110.3410.367288
24-0.125976-0.88180.191087
25-0.111561-0.78090.219302
26-0.024593-0.17210.432014
27-0.049271-0.34490.365823
280.1036360.72550.235813
29-0.061477-0.43030.334417
30-0.196372-1.37460.087754
31-0.060109-0.42080.337884
320.0948980.66430.254811
33-0.022268-0.15590.438387
34-0.060716-0.4250.336344
350.056470.39530.347171
36-0.009979-0.06980.472299



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