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, 27 Nov 2009 09:21:39 -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/27/t1259338923lmaza9l93vtdm5g.htm/, Retrieved Sun, 28 Apr 2024 23:25:44 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60952, Retrieved Sun, 28 Apr 2024 23:25:44 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact117
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]
-   PD          [(Partial) Autocorrelation Function] [WS8: acf 3] [2009-11-27 16:21:39] [b090d569c0a4c77894e0b029f4429f19] [Current]
Feedback Forum

Post a new message
Dataseries X:
13.4
14
14.7
16.1
16.3
16.1
16.5
19
18.7
17.7
17.2
16.6
17.4
15.5
12.4
11.1
11.1
13.7
12.1
11.3
9.9
10.9
13.2
14.2
16.8
17
19.6
18.3
20.6
17.7
19.6
17.4
17.6
19
17.8
17
15.7
16
17.1
17
15.7
15.6
16.1
17.4
16
15
14.3
14.5
14.3
16.2
14.8
16.3
14
15.4
13.4
12.9
14.3
11.9
8.6
5.5
0.8




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60952&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.647655-4.97473e-06
20.3689682.83410.003141
3-0.366769-2.81720.00329
40.1726861.32640.094905
50.0663570.50970.306083
6-0.016915-0.12990.448533
7-0.014357-0.11030.45628
8-0.104037-0.79910.213713
90.0980110.75280.227271
10-0.026068-0.20020.420994
110.0863070.66290.254977
12-0.182053-1.39840.083617
130.1070770.82250.207059
14-0.05273-0.4050.343461
150.0155370.11930.452705
160.0600480.46120.323163
17-0.037182-0.28560.388092
180.0026010.020.492064
190.0356680.2740.392531
20-0.189444-1.45510.075465
210.3399832.61150.005707
22-0.36059-2.76970.003744
230.3491122.68160.004744
24-0.353246-2.71330.004359
250.1997061.5340.065191
26-0.016158-0.12410.450826
270.0561530.43130.333904
28-0.09207-0.70720.241113
29-0.021525-0.16530.434623
300.0389560.29920.382908
310.005640.04330.482796
320.0897310.68920.246689
33-0.137965-1.05970.146794
340.1041720.80020.213413
35-0.075643-0.5810.281719
360.0626930.48160.315952

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.647655 & -4.9747 & 3e-06 \tabularnewline
2 & 0.368968 & 2.8341 & 0.003141 \tabularnewline
3 & -0.366769 & -2.8172 & 0.00329 \tabularnewline
4 & 0.172686 & 1.3264 & 0.094905 \tabularnewline
5 & 0.066357 & 0.5097 & 0.306083 \tabularnewline
6 & -0.016915 & -0.1299 & 0.448533 \tabularnewline
7 & -0.014357 & -0.1103 & 0.45628 \tabularnewline
8 & -0.104037 & -0.7991 & 0.213713 \tabularnewline
9 & 0.098011 & 0.7528 & 0.227271 \tabularnewline
10 & -0.026068 & -0.2002 & 0.420994 \tabularnewline
11 & 0.086307 & 0.6629 & 0.254977 \tabularnewline
12 & -0.182053 & -1.3984 & 0.083617 \tabularnewline
13 & 0.107077 & 0.8225 & 0.207059 \tabularnewline
14 & -0.05273 & -0.405 & 0.343461 \tabularnewline
15 & 0.015537 & 0.1193 & 0.452705 \tabularnewline
16 & 0.060048 & 0.4612 & 0.323163 \tabularnewline
17 & -0.037182 & -0.2856 & 0.388092 \tabularnewline
18 & 0.002601 & 0.02 & 0.492064 \tabularnewline
19 & 0.035668 & 0.274 & 0.392531 \tabularnewline
20 & -0.189444 & -1.4551 & 0.075465 \tabularnewline
21 & 0.339983 & 2.6115 & 0.005707 \tabularnewline
22 & -0.36059 & -2.7697 & 0.003744 \tabularnewline
23 & 0.349112 & 2.6816 & 0.004744 \tabularnewline
24 & -0.353246 & -2.7133 & 0.004359 \tabularnewline
25 & 0.199706 & 1.534 & 0.065191 \tabularnewline
26 & -0.016158 & -0.1241 & 0.450826 \tabularnewline
27 & 0.056153 & 0.4313 & 0.333904 \tabularnewline
28 & -0.09207 & -0.7072 & 0.241113 \tabularnewline
29 & -0.021525 & -0.1653 & 0.434623 \tabularnewline
30 & 0.038956 & 0.2992 & 0.382908 \tabularnewline
31 & 0.00564 & 0.0433 & 0.482796 \tabularnewline
32 & 0.089731 & 0.6892 & 0.246689 \tabularnewline
33 & -0.137965 & -1.0597 & 0.146794 \tabularnewline
34 & 0.104172 & 0.8002 & 0.213413 \tabularnewline
35 & -0.075643 & -0.581 & 0.281719 \tabularnewline
36 & 0.062693 & 0.4816 & 0.315952 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60952&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.647655[/C][C]-4.9747[/C][C]3e-06[/C][/ROW]
[ROW][C]2[/C][C]0.368968[/C][C]2.8341[/C][C]0.003141[/C][/ROW]
[ROW][C]3[/C][C]-0.366769[/C][C]-2.8172[/C][C]0.00329[/C][/ROW]
[ROW][C]4[/C][C]0.172686[/C][C]1.3264[/C][C]0.094905[/C][/ROW]
[ROW][C]5[/C][C]0.066357[/C][C]0.5097[/C][C]0.306083[/C][/ROW]
[ROW][C]6[/C][C]-0.016915[/C][C]-0.1299[/C][C]0.448533[/C][/ROW]
[ROW][C]7[/C][C]-0.014357[/C][C]-0.1103[/C][C]0.45628[/C][/ROW]
[ROW][C]8[/C][C]-0.104037[/C][C]-0.7991[/C][C]0.213713[/C][/ROW]
[ROW][C]9[/C][C]0.098011[/C][C]0.7528[/C][C]0.227271[/C][/ROW]
[ROW][C]10[/C][C]-0.026068[/C][C]-0.2002[/C][C]0.420994[/C][/ROW]
[ROW][C]11[/C][C]0.086307[/C][C]0.6629[/C][C]0.254977[/C][/ROW]
[ROW][C]12[/C][C]-0.182053[/C][C]-1.3984[/C][C]0.083617[/C][/ROW]
[ROW][C]13[/C][C]0.107077[/C][C]0.8225[/C][C]0.207059[/C][/ROW]
[ROW][C]14[/C][C]-0.05273[/C][C]-0.405[/C][C]0.343461[/C][/ROW]
[ROW][C]15[/C][C]0.015537[/C][C]0.1193[/C][C]0.452705[/C][/ROW]
[ROW][C]16[/C][C]0.060048[/C][C]0.4612[/C][C]0.323163[/C][/ROW]
[ROW][C]17[/C][C]-0.037182[/C][C]-0.2856[/C][C]0.388092[/C][/ROW]
[ROW][C]18[/C][C]0.002601[/C][C]0.02[/C][C]0.492064[/C][/ROW]
[ROW][C]19[/C][C]0.035668[/C][C]0.274[/C][C]0.392531[/C][/ROW]
[ROW][C]20[/C][C]-0.189444[/C][C]-1.4551[/C][C]0.075465[/C][/ROW]
[ROW][C]21[/C][C]0.339983[/C][C]2.6115[/C][C]0.005707[/C][/ROW]
[ROW][C]22[/C][C]-0.36059[/C][C]-2.7697[/C][C]0.003744[/C][/ROW]
[ROW][C]23[/C][C]0.349112[/C][C]2.6816[/C][C]0.004744[/C][/ROW]
[ROW][C]24[/C][C]-0.353246[/C][C]-2.7133[/C][C]0.004359[/C][/ROW]
[ROW][C]25[/C][C]0.199706[/C][C]1.534[/C][C]0.065191[/C][/ROW]
[ROW][C]26[/C][C]-0.016158[/C][C]-0.1241[/C][C]0.450826[/C][/ROW]
[ROW][C]27[/C][C]0.056153[/C][C]0.4313[/C][C]0.333904[/C][/ROW]
[ROW][C]28[/C][C]-0.09207[/C][C]-0.7072[/C][C]0.241113[/C][/ROW]
[ROW][C]29[/C][C]-0.021525[/C][C]-0.1653[/C][C]0.434623[/C][/ROW]
[ROW][C]30[/C][C]0.038956[/C][C]0.2992[/C][C]0.382908[/C][/ROW]
[ROW][C]31[/C][C]0.00564[/C][C]0.0433[/C][C]0.482796[/C][/ROW]
[ROW][C]32[/C][C]0.089731[/C][C]0.6892[/C][C]0.246689[/C][/ROW]
[ROW][C]33[/C][C]-0.137965[/C][C]-1.0597[/C][C]0.146794[/C][/ROW]
[ROW][C]34[/C][C]0.104172[/C][C]0.8002[/C][C]0.213413[/C][/ROW]
[ROW][C]35[/C][C]-0.075643[/C][C]-0.581[/C][C]0.281719[/C][/ROW]
[ROW][C]36[/C][C]0.062693[/C][C]0.4816[/C][C]0.315952[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60952&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60952&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.647655-4.97473e-06
20.3689682.83410.003141
3-0.366769-2.81720.00329
40.1726861.32640.094905
50.0663570.50970.306083
6-0.016915-0.12990.448533
7-0.014357-0.11030.45628
8-0.104037-0.79910.213713
90.0980110.75280.227271
10-0.026068-0.20020.420994
110.0863070.66290.254977
12-0.182053-1.39840.083617
130.1070770.82250.207059
14-0.05273-0.4050.343461
150.0155370.11930.452705
160.0600480.46120.323163
17-0.037182-0.28560.388092
180.0026010.020.492064
190.0356680.2740.392531
20-0.189444-1.45510.075465
210.3399832.61150.005707
22-0.36059-2.76970.003744
230.3491122.68160.004744
24-0.353246-2.71330.004359
250.1997061.5340.065191
26-0.016158-0.12410.450826
270.0561530.43130.333904
28-0.09207-0.70720.241113
29-0.021525-0.16530.434623
300.0389560.29920.382908
310.005640.04330.482796
320.0897310.68920.246689
33-0.137965-1.05970.146794
340.1041720.80020.213413
35-0.075643-0.5810.281719
360.0626930.48160.315952







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.647655-4.97473e-06
2-0.086968-0.6680.253365
3-0.283516-2.17770.016718
4-0.325466-2.50.00761
50.1058180.81280.209799
60.1530611.17570.122221
70.0171630.13180.447782
8-0.061238-0.47040.319909
90.0169020.12980.448573
10-0.017253-0.13250.447511
110.0379240.29130.385921
12-0.139673-1.07280.143854
13-0.095018-0.72980.234186
140.007350.05650.477585
15-0.182652-1.4030.082932
16-0.037049-0.28460.388482
170.1934051.48560.071358
180.0607910.46690.321129
190.1398381.07410.143571
20-0.218183-1.67590.049525
210.1716531.31850.096217
22-0.092426-0.70990.240269
23-0.0718-0.55150.291684
24-0.088836-0.68240.248839
25-0.164352-1.26240.105884
260.0781760.60050.275243
270.1604011.23210.111407
28-0.042618-0.32740.372279
290.0661480.50810.306642
300.1141910.87710.19199
31-0.034155-0.26230.396983
32-0.058304-0.44780.327953
330.0662740.50910.306306
340.0146370.11240.455434
350.0738590.56730.286324
36-0.047878-0.36780.357185

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.647655 & -4.9747 & 3e-06 \tabularnewline
2 & -0.086968 & -0.668 & 0.253365 \tabularnewline
3 & -0.283516 & -2.1777 & 0.016718 \tabularnewline
4 & -0.325466 & -2.5 & 0.00761 \tabularnewline
5 & 0.105818 & 0.8128 & 0.209799 \tabularnewline
6 & 0.153061 & 1.1757 & 0.122221 \tabularnewline
7 & 0.017163 & 0.1318 & 0.447782 \tabularnewline
8 & -0.061238 & -0.4704 & 0.319909 \tabularnewline
9 & 0.016902 & 0.1298 & 0.448573 \tabularnewline
10 & -0.017253 & -0.1325 & 0.447511 \tabularnewline
11 & 0.037924 & 0.2913 & 0.385921 \tabularnewline
12 & -0.139673 & -1.0728 & 0.143854 \tabularnewline
13 & -0.095018 & -0.7298 & 0.234186 \tabularnewline
14 & 0.00735 & 0.0565 & 0.477585 \tabularnewline
15 & -0.182652 & -1.403 & 0.082932 \tabularnewline
16 & -0.037049 & -0.2846 & 0.388482 \tabularnewline
17 & 0.193405 & 1.4856 & 0.071358 \tabularnewline
18 & 0.060791 & 0.4669 & 0.321129 \tabularnewline
19 & 0.139838 & 1.0741 & 0.143571 \tabularnewline
20 & -0.218183 & -1.6759 & 0.049525 \tabularnewline
21 & 0.171653 & 1.3185 & 0.096217 \tabularnewline
22 & -0.092426 & -0.7099 & 0.240269 \tabularnewline
23 & -0.0718 & -0.5515 & 0.291684 \tabularnewline
24 & -0.088836 & -0.6824 & 0.248839 \tabularnewline
25 & -0.164352 & -1.2624 & 0.105884 \tabularnewline
26 & 0.078176 & 0.6005 & 0.275243 \tabularnewline
27 & 0.160401 & 1.2321 & 0.111407 \tabularnewline
28 & -0.042618 & -0.3274 & 0.372279 \tabularnewline
29 & 0.066148 & 0.5081 & 0.306642 \tabularnewline
30 & 0.114191 & 0.8771 & 0.19199 \tabularnewline
31 & -0.034155 & -0.2623 & 0.396983 \tabularnewline
32 & -0.058304 & -0.4478 & 0.327953 \tabularnewline
33 & 0.066274 & 0.5091 & 0.306306 \tabularnewline
34 & 0.014637 & 0.1124 & 0.455434 \tabularnewline
35 & 0.073859 & 0.5673 & 0.286324 \tabularnewline
36 & -0.047878 & -0.3678 & 0.357185 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60952&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.647655[/C][C]-4.9747[/C][C]3e-06[/C][/ROW]
[ROW][C]2[/C][C]-0.086968[/C][C]-0.668[/C][C]0.253365[/C][/ROW]
[ROW][C]3[/C][C]-0.283516[/C][C]-2.1777[/C][C]0.016718[/C][/ROW]
[ROW][C]4[/C][C]-0.325466[/C][C]-2.5[/C][C]0.00761[/C][/ROW]
[ROW][C]5[/C][C]0.105818[/C][C]0.8128[/C][C]0.209799[/C][/ROW]
[ROW][C]6[/C][C]0.153061[/C][C]1.1757[/C][C]0.122221[/C][/ROW]
[ROW][C]7[/C][C]0.017163[/C][C]0.1318[/C][C]0.447782[/C][/ROW]
[ROW][C]8[/C][C]-0.061238[/C][C]-0.4704[/C][C]0.319909[/C][/ROW]
[ROW][C]9[/C][C]0.016902[/C][C]0.1298[/C][C]0.448573[/C][/ROW]
[ROW][C]10[/C][C]-0.017253[/C][C]-0.1325[/C][C]0.447511[/C][/ROW]
[ROW][C]11[/C][C]0.037924[/C][C]0.2913[/C][C]0.385921[/C][/ROW]
[ROW][C]12[/C][C]-0.139673[/C][C]-1.0728[/C][C]0.143854[/C][/ROW]
[ROW][C]13[/C][C]-0.095018[/C][C]-0.7298[/C][C]0.234186[/C][/ROW]
[ROW][C]14[/C][C]0.00735[/C][C]0.0565[/C][C]0.477585[/C][/ROW]
[ROW][C]15[/C][C]-0.182652[/C][C]-1.403[/C][C]0.082932[/C][/ROW]
[ROW][C]16[/C][C]-0.037049[/C][C]-0.2846[/C][C]0.388482[/C][/ROW]
[ROW][C]17[/C][C]0.193405[/C][C]1.4856[/C][C]0.071358[/C][/ROW]
[ROW][C]18[/C][C]0.060791[/C][C]0.4669[/C][C]0.321129[/C][/ROW]
[ROW][C]19[/C][C]0.139838[/C][C]1.0741[/C][C]0.143571[/C][/ROW]
[ROW][C]20[/C][C]-0.218183[/C][C]-1.6759[/C][C]0.049525[/C][/ROW]
[ROW][C]21[/C][C]0.171653[/C][C]1.3185[/C][C]0.096217[/C][/ROW]
[ROW][C]22[/C][C]-0.092426[/C][C]-0.7099[/C][C]0.240269[/C][/ROW]
[ROW][C]23[/C][C]-0.0718[/C][C]-0.5515[/C][C]0.291684[/C][/ROW]
[ROW][C]24[/C][C]-0.088836[/C][C]-0.6824[/C][C]0.248839[/C][/ROW]
[ROW][C]25[/C][C]-0.164352[/C][C]-1.2624[/C][C]0.105884[/C][/ROW]
[ROW][C]26[/C][C]0.078176[/C][C]0.6005[/C][C]0.275243[/C][/ROW]
[ROW][C]27[/C][C]0.160401[/C][C]1.2321[/C][C]0.111407[/C][/ROW]
[ROW][C]28[/C][C]-0.042618[/C][C]-0.3274[/C][C]0.372279[/C][/ROW]
[ROW][C]29[/C][C]0.066148[/C][C]0.5081[/C][C]0.306642[/C][/ROW]
[ROW][C]30[/C][C]0.114191[/C][C]0.8771[/C][C]0.19199[/C][/ROW]
[ROW][C]31[/C][C]-0.034155[/C][C]-0.2623[/C][C]0.396983[/C][/ROW]
[ROW][C]32[/C][C]-0.058304[/C][C]-0.4478[/C][C]0.327953[/C][/ROW]
[ROW][C]33[/C][C]0.066274[/C][C]0.5091[/C][C]0.306306[/C][/ROW]
[ROW][C]34[/C][C]0.014637[/C][C]0.1124[/C][C]0.455434[/C][/ROW]
[ROW][C]35[/C][C]0.073859[/C][C]0.5673[/C][C]0.286324[/C][/ROW]
[ROW][C]36[/C][C]-0.047878[/C][C]-0.3678[/C][C]0.357185[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60952&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60952&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.647655-4.97473e-06
2-0.086968-0.6680.253365
3-0.283516-2.17770.016718
4-0.325466-2.50.00761
50.1058180.81280.209799
60.1530611.17570.122221
70.0171630.13180.447782
8-0.061238-0.47040.319909
90.0169020.12980.448573
10-0.017253-0.13250.447511
110.0379240.29130.385921
12-0.139673-1.07280.143854
13-0.095018-0.72980.234186
140.007350.05650.477585
15-0.182652-1.4030.082932
16-0.037049-0.28460.388482
170.1934051.48560.071358
180.0607910.46690.321129
190.1398381.07410.143571
20-0.218183-1.67590.049525
210.1716531.31850.096217
22-0.092426-0.70990.240269
23-0.0718-0.55150.291684
24-0.088836-0.68240.248839
25-0.164352-1.26240.105884
260.0781760.60050.275243
270.1604011.23210.111407
28-0.042618-0.32740.372279
290.0661480.50810.306642
300.1141910.87710.19199
31-0.034155-0.26230.396983
32-0.058304-0.44780.327953
330.0662740.50910.306306
340.0146370.11240.455434
350.0738590.56730.286324
36-0.047878-0.36780.357185



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