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, 15 Dec 2009 09:36:36 -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/15/t1260895059ma9fmj7ro2258j8.htm/, Retrieved Wed, 08 May 2024 10:32:42 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68029, Retrieved Wed, 08 May 2024 10:32:42 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact87
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]
-    D          [(Partial) Autocorrelation Function] [] [2009-12-15 16:36:36] [4672b66a35a4d755714bdcf00037725e] [Current]
Feedback Forum

Post a new message
Dataseries X:
117,09
116,77
119,39
122,49
124,08
118,29
112,94
113,79
114,43
118,70
120,36
118,27
118,34
117,82
117,65
118,18
121,02
124,78
131,16
130,14
131,75
134,73
135,35
140,32
136,35
131,60
128,90
133,89
138,25
146,23
144,76
149,30
156,80
159,08
165,12
163,14
153,43
151,01
154,72
154,58
155,63
161,67
163,51
162,91
164,80
164,98
154,54
148,60
149,19
150,61




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68029&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.95366.7430
20.88996.29250
30.8341785.89850
40.7820655.531e-06
50.7306935.16682e-06
60.6762234.78168e-06
70.6134874.3383.5e-05
80.554643.92190.000134
90.5059573.57770.000391
100.4646663.28570.000932
110.4121252.91420.002661
120.336922.38240.010522
130.2623091.85480.034763
140.1851971.30950.098169
150.09790.69230.245989
160.0139580.09870.460886
17-0.059042-0.41750.339054
18-0.119314-0.84370.201434
19-0.157627-1.11460.135178
20-0.191548-1.35440.090841
21-0.230386-1.62910.054791
22-0.262988-1.85960.034415
23-0.293652-2.07640.021507
24-0.310606-2.19630.016367
25-0.33589-2.37510.01071
26-0.375524-2.65540.0053
27-0.418529-2.95940.00235
28-0.445413-3.14950.001379
29-0.459657-3.25030.001033
30-0.456549-3.22830.001101
31-0.456594-3.22860.0011
32-0.4573-3.23360.001084
33-0.443719-3.13760.001427
34-0.42081-2.97560.002248
35-0.385642-2.72690.004397
36-0.352746-2.49430.007986

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.9536 & 6.743 & 0 \tabularnewline
2 & 0.8899 & 6.2925 & 0 \tabularnewline
3 & 0.834178 & 5.8985 & 0 \tabularnewline
4 & 0.782065 & 5.53 & 1e-06 \tabularnewline
5 & 0.730693 & 5.1668 & 2e-06 \tabularnewline
6 & 0.676223 & 4.7816 & 8e-06 \tabularnewline
7 & 0.613487 & 4.338 & 3.5e-05 \tabularnewline
8 & 0.55464 & 3.9219 & 0.000134 \tabularnewline
9 & 0.505957 & 3.5777 & 0.000391 \tabularnewline
10 & 0.464666 & 3.2857 & 0.000932 \tabularnewline
11 & 0.412125 & 2.9142 & 0.002661 \tabularnewline
12 & 0.33692 & 2.3824 & 0.010522 \tabularnewline
13 & 0.262309 & 1.8548 & 0.034763 \tabularnewline
14 & 0.185197 & 1.3095 & 0.098169 \tabularnewline
15 & 0.0979 & 0.6923 & 0.245989 \tabularnewline
16 & 0.013958 & 0.0987 & 0.460886 \tabularnewline
17 & -0.059042 & -0.4175 & 0.339054 \tabularnewline
18 & -0.119314 & -0.8437 & 0.201434 \tabularnewline
19 & -0.157627 & -1.1146 & 0.135178 \tabularnewline
20 & -0.191548 & -1.3544 & 0.090841 \tabularnewline
21 & -0.230386 & -1.6291 & 0.054791 \tabularnewline
22 & -0.262988 & -1.8596 & 0.034415 \tabularnewline
23 & -0.293652 & -2.0764 & 0.021507 \tabularnewline
24 & -0.310606 & -2.1963 & 0.016367 \tabularnewline
25 & -0.33589 & -2.3751 & 0.01071 \tabularnewline
26 & -0.375524 & -2.6554 & 0.0053 \tabularnewline
27 & -0.418529 & -2.9594 & 0.00235 \tabularnewline
28 & -0.445413 & -3.1495 & 0.001379 \tabularnewline
29 & -0.459657 & -3.2503 & 0.001033 \tabularnewline
30 & -0.456549 & -3.2283 & 0.001101 \tabularnewline
31 & -0.456594 & -3.2286 & 0.0011 \tabularnewline
32 & -0.4573 & -3.2336 & 0.001084 \tabularnewline
33 & -0.443719 & -3.1376 & 0.001427 \tabularnewline
34 & -0.42081 & -2.9756 & 0.002248 \tabularnewline
35 & -0.385642 & -2.7269 & 0.004397 \tabularnewline
36 & -0.352746 & -2.4943 & 0.007986 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68029&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.9536[/C][C]6.743[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.8899[/C][C]6.2925[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.834178[/C][C]5.8985[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.782065[/C][C]5.53[/C][C]1e-06[/C][/ROW]
[ROW][C]5[/C][C]0.730693[/C][C]5.1668[/C][C]2e-06[/C][/ROW]
[ROW][C]6[/C][C]0.676223[/C][C]4.7816[/C][C]8e-06[/C][/ROW]
[ROW][C]7[/C][C]0.613487[/C][C]4.338[/C][C]3.5e-05[/C][/ROW]
[ROW][C]8[/C][C]0.55464[/C][C]3.9219[/C][C]0.000134[/C][/ROW]
[ROW][C]9[/C][C]0.505957[/C][C]3.5777[/C][C]0.000391[/C][/ROW]
[ROW][C]10[/C][C]0.464666[/C][C]3.2857[/C][C]0.000932[/C][/ROW]
[ROW][C]11[/C][C]0.412125[/C][C]2.9142[/C][C]0.002661[/C][/ROW]
[ROW][C]12[/C][C]0.33692[/C][C]2.3824[/C][C]0.010522[/C][/ROW]
[ROW][C]13[/C][C]0.262309[/C][C]1.8548[/C][C]0.034763[/C][/ROW]
[ROW][C]14[/C][C]0.185197[/C][C]1.3095[/C][C]0.098169[/C][/ROW]
[ROW][C]15[/C][C]0.0979[/C][C]0.6923[/C][C]0.245989[/C][/ROW]
[ROW][C]16[/C][C]0.013958[/C][C]0.0987[/C][C]0.460886[/C][/ROW]
[ROW][C]17[/C][C]-0.059042[/C][C]-0.4175[/C][C]0.339054[/C][/ROW]
[ROW][C]18[/C][C]-0.119314[/C][C]-0.8437[/C][C]0.201434[/C][/ROW]
[ROW][C]19[/C][C]-0.157627[/C][C]-1.1146[/C][C]0.135178[/C][/ROW]
[ROW][C]20[/C][C]-0.191548[/C][C]-1.3544[/C][C]0.090841[/C][/ROW]
[ROW][C]21[/C][C]-0.230386[/C][C]-1.6291[/C][C]0.054791[/C][/ROW]
[ROW][C]22[/C][C]-0.262988[/C][C]-1.8596[/C][C]0.034415[/C][/ROW]
[ROW][C]23[/C][C]-0.293652[/C][C]-2.0764[/C][C]0.021507[/C][/ROW]
[ROW][C]24[/C][C]-0.310606[/C][C]-2.1963[/C][C]0.016367[/C][/ROW]
[ROW][C]25[/C][C]-0.33589[/C][C]-2.3751[/C][C]0.01071[/C][/ROW]
[ROW][C]26[/C][C]-0.375524[/C][C]-2.6554[/C][C]0.0053[/C][/ROW]
[ROW][C]27[/C][C]-0.418529[/C][C]-2.9594[/C][C]0.00235[/C][/ROW]
[ROW][C]28[/C][C]-0.445413[/C][C]-3.1495[/C][C]0.001379[/C][/ROW]
[ROW][C]29[/C][C]-0.459657[/C][C]-3.2503[/C][C]0.001033[/C][/ROW]
[ROW][C]30[/C][C]-0.456549[/C][C]-3.2283[/C][C]0.001101[/C][/ROW]
[ROW][C]31[/C][C]-0.456594[/C][C]-3.2286[/C][C]0.0011[/C][/ROW]
[ROW][C]32[/C][C]-0.4573[/C][C]-3.2336[/C][C]0.001084[/C][/ROW]
[ROW][C]33[/C][C]-0.443719[/C][C]-3.1376[/C][C]0.001427[/C][/ROW]
[ROW][C]34[/C][C]-0.42081[/C][C]-2.9756[/C][C]0.002248[/C][/ROW]
[ROW][C]35[/C][C]-0.385642[/C][C]-2.7269[/C][C]0.004397[/C][/ROW]
[ROW][C]36[/C][C]-0.352746[/C][C]-2.4943[/C][C]0.007986[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68029&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68029&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.95366.7430
20.88996.29250
30.8341785.89850
40.7820655.531e-06
50.7306935.16682e-06
60.6762234.78168e-06
70.6134874.3383.5e-05
80.554643.92190.000134
90.5059573.57770.000391
100.4646663.28570.000932
110.4121252.91420.002661
120.336922.38240.010522
130.2623091.85480.034763
140.1851971.30950.098169
150.09790.69230.245989
160.0139580.09870.460886
17-0.059042-0.41750.339054
18-0.119314-0.84370.201434
19-0.157627-1.11460.135178
20-0.191548-1.35440.090841
21-0.230386-1.62910.054791
22-0.262988-1.85960.034415
23-0.293652-2.07640.021507
24-0.310606-2.19630.016367
25-0.33589-2.37510.01071
26-0.375524-2.65540.0053
27-0.418529-2.95940.00235
28-0.445413-3.14950.001379
29-0.459657-3.25030.001033
30-0.456549-3.22830.001101
31-0.456594-3.22860.0011
32-0.4573-3.23360.001084
33-0.443719-3.13760.001427
34-0.42081-2.97560.002248
35-0.385642-2.72690.004397
36-0.352746-2.49430.007986







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.95366.7430
2-0.214597-1.51740.067728
30.0936830.66240.255366
4-0.031378-0.22190.412658
5-0.017662-0.12490.450555
6-0.065389-0.46240.32291
7-0.11292-0.79850.214189
80.0362810.25650.399292
90.0389820.27560.391979
100.0237230.16770.43373
11-0.171584-1.21330.115361
12-0.23748-1.67920.049673
130.0255840.18090.428586
14-0.167611-1.18520.120773
15-0.191828-1.35640.090528
16-0.018287-0.12930.448815
170.0515940.36480.358389
180.0898950.63570.263951
190.1458161.03110.153734
20-0.082849-0.58580.280312
21-0.069875-0.49410.311704
220.0826310.58430.280827
23-0.082601-0.58410.280897
240.1045950.73960.2315
25-0.164782-1.16520.124737
26-0.06802-0.4810.316317
27-0.069241-0.48960.313276
280.0883350.62460.26753
29-0.058318-0.41240.340915
300.0410360.29020.386443
31-0.101353-0.71670.238456
32-0.004116-0.02910.488448
330.075660.5350.297513
340.002820.01990.492086
350.1406190.99430.162426
360.0172340.12190.451749

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.9536 & 6.743 & 0 \tabularnewline
2 & -0.214597 & -1.5174 & 0.067728 \tabularnewline
3 & 0.093683 & 0.6624 & 0.255366 \tabularnewline
4 & -0.031378 & -0.2219 & 0.412658 \tabularnewline
5 & -0.017662 & -0.1249 & 0.450555 \tabularnewline
6 & -0.065389 & -0.4624 & 0.32291 \tabularnewline
7 & -0.11292 & -0.7985 & 0.214189 \tabularnewline
8 & 0.036281 & 0.2565 & 0.399292 \tabularnewline
9 & 0.038982 & 0.2756 & 0.391979 \tabularnewline
10 & 0.023723 & 0.1677 & 0.43373 \tabularnewline
11 & -0.171584 & -1.2133 & 0.115361 \tabularnewline
12 & -0.23748 & -1.6792 & 0.049673 \tabularnewline
13 & 0.025584 & 0.1809 & 0.428586 \tabularnewline
14 & -0.167611 & -1.1852 & 0.120773 \tabularnewline
15 & -0.191828 & -1.3564 & 0.090528 \tabularnewline
16 & -0.018287 & -0.1293 & 0.448815 \tabularnewline
17 & 0.051594 & 0.3648 & 0.358389 \tabularnewline
18 & 0.089895 & 0.6357 & 0.263951 \tabularnewline
19 & 0.145816 & 1.0311 & 0.153734 \tabularnewline
20 & -0.082849 & -0.5858 & 0.280312 \tabularnewline
21 & -0.069875 & -0.4941 & 0.311704 \tabularnewline
22 & 0.082631 & 0.5843 & 0.280827 \tabularnewline
23 & -0.082601 & -0.5841 & 0.280897 \tabularnewline
24 & 0.104595 & 0.7396 & 0.2315 \tabularnewline
25 & -0.164782 & -1.1652 & 0.124737 \tabularnewline
26 & -0.06802 & -0.481 & 0.316317 \tabularnewline
27 & -0.069241 & -0.4896 & 0.313276 \tabularnewline
28 & 0.088335 & 0.6246 & 0.26753 \tabularnewline
29 & -0.058318 & -0.4124 & 0.340915 \tabularnewline
30 & 0.041036 & 0.2902 & 0.386443 \tabularnewline
31 & -0.101353 & -0.7167 & 0.238456 \tabularnewline
32 & -0.004116 & -0.0291 & 0.488448 \tabularnewline
33 & 0.07566 & 0.535 & 0.297513 \tabularnewline
34 & 0.00282 & 0.0199 & 0.492086 \tabularnewline
35 & 0.140619 & 0.9943 & 0.162426 \tabularnewline
36 & 0.017234 & 0.1219 & 0.451749 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68029&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.9536[/C][C]6.743[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.214597[/C][C]-1.5174[/C][C]0.067728[/C][/ROW]
[ROW][C]3[/C][C]0.093683[/C][C]0.6624[/C][C]0.255366[/C][/ROW]
[ROW][C]4[/C][C]-0.031378[/C][C]-0.2219[/C][C]0.412658[/C][/ROW]
[ROW][C]5[/C][C]-0.017662[/C][C]-0.1249[/C][C]0.450555[/C][/ROW]
[ROW][C]6[/C][C]-0.065389[/C][C]-0.4624[/C][C]0.32291[/C][/ROW]
[ROW][C]7[/C][C]-0.11292[/C][C]-0.7985[/C][C]0.214189[/C][/ROW]
[ROW][C]8[/C][C]0.036281[/C][C]0.2565[/C][C]0.399292[/C][/ROW]
[ROW][C]9[/C][C]0.038982[/C][C]0.2756[/C][C]0.391979[/C][/ROW]
[ROW][C]10[/C][C]0.023723[/C][C]0.1677[/C][C]0.43373[/C][/ROW]
[ROW][C]11[/C][C]-0.171584[/C][C]-1.2133[/C][C]0.115361[/C][/ROW]
[ROW][C]12[/C][C]-0.23748[/C][C]-1.6792[/C][C]0.049673[/C][/ROW]
[ROW][C]13[/C][C]0.025584[/C][C]0.1809[/C][C]0.428586[/C][/ROW]
[ROW][C]14[/C][C]-0.167611[/C][C]-1.1852[/C][C]0.120773[/C][/ROW]
[ROW][C]15[/C][C]-0.191828[/C][C]-1.3564[/C][C]0.090528[/C][/ROW]
[ROW][C]16[/C][C]-0.018287[/C][C]-0.1293[/C][C]0.448815[/C][/ROW]
[ROW][C]17[/C][C]0.051594[/C][C]0.3648[/C][C]0.358389[/C][/ROW]
[ROW][C]18[/C][C]0.089895[/C][C]0.6357[/C][C]0.263951[/C][/ROW]
[ROW][C]19[/C][C]0.145816[/C][C]1.0311[/C][C]0.153734[/C][/ROW]
[ROW][C]20[/C][C]-0.082849[/C][C]-0.5858[/C][C]0.280312[/C][/ROW]
[ROW][C]21[/C][C]-0.069875[/C][C]-0.4941[/C][C]0.311704[/C][/ROW]
[ROW][C]22[/C][C]0.082631[/C][C]0.5843[/C][C]0.280827[/C][/ROW]
[ROW][C]23[/C][C]-0.082601[/C][C]-0.5841[/C][C]0.280897[/C][/ROW]
[ROW][C]24[/C][C]0.104595[/C][C]0.7396[/C][C]0.2315[/C][/ROW]
[ROW][C]25[/C][C]-0.164782[/C][C]-1.1652[/C][C]0.124737[/C][/ROW]
[ROW][C]26[/C][C]-0.06802[/C][C]-0.481[/C][C]0.316317[/C][/ROW]
[ROW][C]27[/C][C]-0.069241[/C][C]-0.4896[/C][C]0.313276[/C][/ROW]
[ROW][C]28[/C][C]0.088335[/C][C]0.6246[/C][C]0.26753[/C][/ROW]
[ROW][C]29[/C][C]-0.058318[/C][C]-0.4124[/C][C]0.340915[/C][/ROW]
[ROW][C]30[/C][C]0.041036[/C][C]0.2902[/C][C]0.386443[/C][/ROW]
[ROW][C]31[/C][C]-0.101353[/C][C]-0.7167[/C][C]0.238456[/C][/ROW]
[ROW][C]32[/C][C]-0.004116[/C][C]-0.0291[/C][C]0.488448[/C][/ROW]
[ROW][C]33[/C][C]0.07566[/C][C]0.535[/C][C]0.297513[/C][/ROW]
[ROW][C]34[/C][C]0.00282[/C][C]0.0199[/C][C]0.492086[/C][/ROW]
[ROW][C]35[/C][C]0.140619[/C][C]0.9943[/C][C]0.162426[/C][/ROW]
[ROW][C]36[/C][C]0.017234[/C][C]0.1219[/C][C]0.451749[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68029&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68029&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.95366.7430
2-0.214597-1.51740.067728
30.0936830.66240.255366
4-0.031378-0.22190.412658
5-0.017662-0.12490.450555
6-0.065389-0.46240.32291
7-0.11292-0.79850.214189
80.0362810.25650.399292
90.0389820.27560.391979
100.0237230.16770.43373
11-0.171584-1.21330.115361
12-0.23748-1.67920.049673
130.0255840.18090.428586
14-0.167611-1.18520.120773
15-0.191828-1.35640.090528
16-0.018287-0.12930.448815
170.0515940.36480.358389
180.0898950.63570.263951
190.1458161.03110.153734
20-0.082849-0.58580.280312
21-0.069875-0.49410.311704
220.0826310.58430.280827
23-0.082601-0.58410.280897
240.1045950.73960.2315
25-0.164782-1.16520.124737
26-0.06802-0.4810.316317
27-0.069241-0.48960.313276
280.0883350.62460.26753
29-0.058318-0.41240.340915
300.0410360.29020.386443
31-0.101353-0.71670.238456
32-0.004116-0.02910.488448
330.075660.5350.297513
340.002820.01990.492086
350.1406190.99430.162426
360.0172340.12190.451749



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