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 10:27:08 -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/t1259343137jzvhrlbftn5l0kv.htm/, Retrieved Mon, 29 Apr 2024 02:58:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61038, Retrieved Mon, 29 Apr 2024 02:58:39 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact121
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] [WS8:1.1 The Long ...] [2009-11-27 17:27:08] [b8ce264f75295a954feffaf60221d1b0] [Current]
Feedback Forum

Post a new message
Dataseries X:
14,3
14,2
15,9
15,3
15,5
15,1
15
12,1
15,8
16,9
15,1
13,7
14,8
14,7
16
15,4
15
15,5
15,1
11,7
16,3
16,7
15
14,9
14,6
15,3
17,9
16,4
15,4
17,9
15,9
13,9
17,8
17,9
17,4
16,7
16
16,6
19,1
17,8
17,2
18,6
16,3
15,1
19,2
17,7
19,1
18
17,5
17,8
21,1
17,2
19,4
19,8
17,6
16,2
19,5
19,9
20
17,3




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61038&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.5149583.98889.1e-05
20.3432282.65860.005022
30.4741043.67240.000257
40.4629953.58630.000337
50.4453923.450.000516
60.6089654.7177e-06
70.370292.86830.002844
80.383592.97130.002131
90.3291612.54970.006678
100.1346011.04260.150656
110.3064192.37350.01042
120.5491144.25343.7e-05
130.1824311.41310.081396
140.0960170.74370.229968
150.1233770.95570.171535
160.0778960.60340.274266
170.1553181.20310.116835
180.2125831.64670.052428
190.0337140.26120.397435
200.0620340.48050.316306
21-0.019609-0.15190.439891
22-0.198304-1.53610.064891
23-0.009822-0.07610.469804
240.1227720.9510.172712
25-0.14404-1.11570.134493
26-0.187193-1.450.076134
27-0.202197-1.56620.06128
28-0.215435-1.66870.050189
29-0.15702-1.21630.114322
30-0.126848-0.98260.164884
31-0.23573-1.8260.036417
32-0.180751-1.40010.083318
33-0.293758-2.27540.013232
34-0.356681-2.76280.003798
35-0.223259-1.72940.044444
36-0.135702-1.05110.148704

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.514958 & 3.9888 & 9.1e-05 \tabularnewline
2 & 0.343228 & 2.6586 & 0.005022 \tabularnewline
3 & 0.474104 & 3.6724 & 0.000257 \tabularnewline
4 & 0.462995 & 3.5863 & 0.000337 \tabularnewline
5 & 0.445392 & 3.45 & 0.000516 \tabularnewline
6 & 0.608965 & 4.717 & 7e-06 \tabularnewline
7 & 0.37029 & 2.8683 & 0.002844 \tabularnewline
8 & 0.38359 & 2.9713 & 0.002131 \tabularnewline
9 & 0.329161 & 2.5497 & 0.006678 \tabularnewline
10 & 0.134601 & 1.0426 & 0.150656 \tabularnewline
11 & 0.306419 & 2.3735 & 0.01042 \tabularnewline
12 & 0.549114 & 4.2534 & 3.7e-05 \tabularnewline
13 & 0.182431 & 1.4131 & 0.081396 \tabularnewline
14 & 0.096017 & 0.7437 & 0.229968 \tabularnewline
15 & 0.123377 & 0.9557 & 0.171535 \tabularnewline
16 & 0.077896 & 0.6034 & 0.274266 \tabularnewline
17 & 0.155318 & 1.2031 & 0.116835 \tabularnewline
18 & 0.212583 & 1.6467 & 0.052428 \tabularnewline
19 & 0.033714 & 0.2612 & 0.397435 \tabularnewline
20 & 0.062034 & 0.4805 & 0.316306 \tabularnewline
21 & -0.019609 & -0.1519 & 0.439891 \tabularnewline
22 & -0.198304 & -1.5361 & 0.064891 \tabularnewline
23 & -0.009822 & -0.0761 & 0.469804 \tabularnewline
24 & 0.122772 & 0.951 & 0.172712 \tabularnewline
25 & -0.14404 & -1.1157 & 0.134493 \tabularnewline
26 & -0.187193 & -1.45 & 0.076134 \tabularnewline
27 & -0.202197 & -1.5662 & 0.06128 \tabularnewline
28 & -0.215435 & -1.6687 & 0.050189 \tabularnewline
29 & -0.15702 & -1.2163 & 0.114322 \tabularnewline
30 & -0.126848 & -0.9826 & 0.164884 \tabularnewline
31 & -0.23573 & -1.826 & 0.036417 \tabularnewline
32 & -0.180751 & -1.4001 & 0.083318 \tabularnewline
33 & -0.293758 & -2.2754 & 0.013232 \tabularnewline
34 & -0.356681 & -2.7628 & 0.003798 \tabularnewline
35 & -0.223259 & -1.7294 & 0.044444 \tabularnewline
36 & -0.135702 & -1.0511 & 0.148704 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61038&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.514958[/C][C]3.9888[/C][C]9.1e-05[/C][/ROW]
[ROW][C]2[/C][C]0.343228[/C][C]2.6586[/C][C]0.005022[/C][/ROW]
[ROW][C]3[/C][C]0.474104[/C][C]3.6724[/C][C]0.000257[/C][/ROW]
[ROW][C]4[/C][C]0.462995[/C][C]3.5863[/C][C]0.000337[/C][/ROW]
[ROW][C]5[/C][C]0.445392[/C][C]3.45[/C][C]0.000516[/C][/ROW]
[ROW][C]6[/C][C]0.608965[/C][C]4.717[/C][C]7e-06[/C][/ROW]
[ROW][C]7[/C][C]0.37029[/C][C]2.8683[/C][C]0.002844[/C][/ROW]
[ROW][C]8[/C][C]0.38359[/C][C]2.9713[/C][C]0.002131[/C][/ROW]
[ROW][C]9[/C][C]0.329161[/C][C]2.5497[/C][C]0.006678[/C][/ROW]
[ROW][C]10[/C][C]0.134601[/C][C]1.0426[/C][C]0.150656[/C][/ROW]
[ROW][C]11[/C][C]0.306419[/C][C]2.3735[/C][C]0.01042[/C][/ROW]
[ROW][C]12[/C][C]0.549114[/C][C]4.2534[/C][C]3.7e-05[/C][/ROW]
[ROW][C]13[/C][C]0.182431[/C][C]1.4131[/C][C]0.081396[/C][/ROW]
[ROW][C]14[/C][C]0.096017[/C][C]0.7437[/C][C]0.229968[/C][/ROW]
[ROW][C]15[/C][C]0.123377[/C][C]0.9557[/C][C]0.171535[/C][/ROW]
[ROW][C]16[/C][C]0.077896[/C][C]0.6034[/C][C]0.274266[/C][/ROW]
[ROW][C]17[/C][C]0.155318[/C][C]1.2031[/C][C]0.116835[/C][/ROW]
[ROW][C]18[/C][C]0.212583[/C][C]1.6467[/C][C]0.052428[/C][/ROW]
[ROW][C]19[/C][C]0.033714[/C][C]0.2612[/C][C]0.397435[/C][/ROW]
[ROW][C]20[/C][C]0.062034[/C][C]0.4805[/C][C]0.316306[/C][/ROW]
[ROW][C]21[/C][C]-0.019609[/C][C]-0.1519[/C][C]0.439891[/C][/ROW]
[ROW][C]22[/C][C]-0.198304[/C][C]-1.5361[/C][C]0.064891[/C][/ROW]
[ROW][C]23[/C][C]-0.009822[/C][C]-0.0761[/C][C]0.469804[/C][/ROW]
[ROW][C]24[/C][C]0.122772[/C][C]0.951[/C][C]0.172712[/C][/ROW]
[ROW][C]25[/C][C]-0.14404[/C][C]-1.1157[/C][C]0.134493[/C][/ROW]
[ROW][C]26[/C][C]-0.187193[/C][C]-1.45[/C][C]0.076134[/C][/ROW]
[ROW][C]27[/C][C]-0.202197[/C][C]-1.5662[/C][C]0.06128[/C][/ROW]
[ROW][C]28[/C][C]-0.215435[/C][C]-1.6687[/C][C]0.050189[/C][/ROW]
[ROW][C]29[/C][C]-0.15702[/C][C]-1.2163[/C][C]0.114322[/C][/ROW]
[ROW][C]30[/C][C]-0.126848[/C][C]-0.9826[/C][C]0.164884[/C][/ROW]
[ROW][C]31[/C][C]-0.23573[/C][C]-1.826[/C][C]0.036417[/C][/ROW]
[ROW][C]32[/C][C]-0.180751[/C][C]-1.4001[/C][C]0.083318[/C][/ROW]
[ROW][C]33[/C][C]-0.293758[/C][C]-2.2754[/C][C]0.013232[/C][/ROW]
[ROW][C]34[/C][C]-0.356681[/C][C]-2.7628[/C][C]0.003798[/C][/ROW]
[ROW][C]35[/C][C]-0.223259[/C][C]-1.7294[/C][C]0.044444[/C][/ROW]
[ROW][C]36[/C][C]-0.135702[/C][C]-1.0511[/C][C]0.148704[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61038&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61038&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.5149583.98889.1e-05
20.3432282.65860.005022
30.4741043.67240.000257
40.4629953.58630.000337
50.4453923.450.000516
60.6089654.7177e-06
70.370292.86830.002844
80.383592.97130.002131
90.3291612.54970.006678
100.1346011.04260.150656
110.3064192.37350.01042
120.5491144.25343.7e-05
130.1824311.41310.081396
140.0960170.74370.229968
150.1233770.95570.171535
160.0778960.60340.274266
170.1553181.20310.116835
180.2125831.64670.052428
190.0337140.26120.397435
200.0620340.48050.316306
21-0.019609-0.15190.439891
22-0.198304-1.53610.064891
23-0.009822-0.07610.469804
240.1227720.9510.172712
25-0.14404-1.11570.134493
26-0.187193-1.450.076134
27-0.202197-1.56620.06128
28-0.215435-1.66870.050189
29-0.15702-1.21630.114322
30-0.126848-0.98260.164884
31-0.23573-1.8260.036417
32-0.180751-1.40010.083318
33-0.293758-2.27540.013232
34-0.356681-2.76280.003798
35-0.223259-1.72940.044444
36-0.135702-1.05110.148704







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5149583.98889.1e-05
20.1062120.82270.206964
30.359842.78730.003554
40.1549381.20010.117401
50.1923831.49020.070706
60.3975773.07960.001563
7-0.190523-1.47580.072615
80.2078181.60980.05635
9-0.323083-2.50260.007535
10-0.369053-2.85870.002921
110.1830441.41790.080703
120.2025261.56880.060982
13-0.188206-1.45780.07505
14-0.063964-0.49550.311043
15-0.192635-1.49210.07045
160.0249670.19340.423652
170.0391760.30350.381297
18-0.029242-0.22650.41079
190.1157290.89640.186802
20-0.103013-0.79790.214028
210.0214820.16640.434201
22-0.168899-1.30830.097883
23-0.073664-0.57060.2852
240.0328240.25430.400086
25-0.193557-1.49930.069522
260.0477010.36950.356531
27-0.081465-0.6310.265211
280.0932240.72210.236516
29-0.09758-0.75590.226347
300.0198340.15360.439206
310.0647320.50140.308957
32-0.035064-0.27160.393429
330.0286970.22230.412422
340.0727050.56320.287708
35-0.150251-1.16380.124548
360.0327610.25380.400274

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.514958 & 3.9888 & 9.1e-05 \tabularnewline
2 & 0.106212 & 0.8227 & 0.206964 \tabularnewline
3 & 0.35984 & 2.7873 & 0.003554 \tabularnewline
4 & 0.154938 & 1.2001 & 0.117401 \tabularnewline
5 & 0.192383 & 1.4902 & 0.070706 \tabularnewline
6 & 0.397577 & 3.0796 & 0.001563 \tabularnewline
7 & -0.190523 & -1.4758 & 0.072615 \tabularnewline
8 & 0.207818 & 1.6098 & 0.05635 \tabularnewline
9 & -0.323083 & -2.5026 & 0.007535 \tabularnewline
10 & -0.369053 & -2.8587 & 0.002921 \tabularnewline
11 & 0.183044 & 1.4179 & 0.080703 \tabularnewline
12 & 0.202526 & 1.5688 & 0.060982 \tabularnewline
13 & -0.188206 & -1.4578 & 0.07505 \tabularnewline
14 & -0.063964 & -0.4955 & 0.311043 \tabularnewline
15 & -0.192635 & -1.4921 & 0.07045 \tabularnewline
16 & 0.024967 & 0.1934 & 0.423652 \tabularnewline
17 & 0.039176 & 0.3035 & 0.381297 \tabularnewline
18 & -0.029242 & -0.2265 & 0.41079 \tabularnewline
19 & 0.115729 & 0.8964 & 0.186802 \tabularnewline
20 & -0.103013 & -0.7979 & 0.214028 \tabularnewline
21 & 0.021482 & 0.1664 & 0.434201 \tabularnewline
22 & -0.168899 & -1.3083 & 0.097883 \tabularnewline
23 & -0.073664 & -0.5706 & 0.2852 \tabularnewline
24 & 0.032824 & 0.2543 & 0.400086 \tabularnewline
25 & -0.193557 & -1.4993 & 0.069522 \tabularnewline
26 & 0.047701 & 0.3695 & 0.356531 \tabularnewline
27 & -0.081465 & -0.631 & 0.265211 \tabularnewline
28 & 0.093224 & 0.7221 & 0.236516 \tabularnewline
29 & -0.09758 & -0.7559 & 0.226347 \tabularnewline
30 & 0.019834 & 0.1536 & 0.439206 \tabularnewline
31 & 0.064732 & 0.5014 & 0.308957 \tabularnewline
32 & -0.035064 & -0.2716 & 0.393429 \tabularnewline
33 & 0.028697 & 0.2223 & 0.412422 \tabularnewline
34 & 0.072705 & 0.5632 & 0.287708 \tabularnewline
35 & -0.150251 & -1.1638 & 0.124548 \tabularnewline
36 & 0.032761 & 0.2538 & 0.400274 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61038&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.514958[/C][C]3.9888[/C][C]9.1e-05[/C][/ROW]
[ROW][C]2[/C][C]0.106212[/C][C]0.8227[/C][C]0.206964[/C][/ROW]
[ROW][C]3[/C][C]0.35984[/C][C]2.7873[/C][C]0.003554[/C][/ROW]
[ROW][C]4[/C][C]0.154938[/C][C]1.2001[/C][C]0.117401[/C][/ROW]
[ROW][C]5[/C][C]0.192383[/C][C]1.4902[/C][C]0.070706[/C][/ROW]
[ROW][C]6[/C][C]0.397577[/C][C]3.0796[/C][C]0.001563[/C][/ROW]
[ROW][C]7[/C][C]-0.190523[/C][C]-1.4758[/C][C]0.072615[/C][/ROW]
[ROW][C]8[/C][C]0.207818[/C][C]1.6098[/C][C]0.05635[/C][/ROW]
[ROW][C]9[/C][C]-0.323083[/C][C]-2.5026[/C][C]0.007535[/C][/ROW]
[ROW][C]10[/C][C]-0.369053[/C][C]-2.8587[/C][C]0.002921[/C][/ROW]
[ROW][C]11[/C][C]0.183044[/C][C]1.4179[/C][C]0.080703[/C][/ROW]
[ROW][C]12[/C][C]0.202526[/C][C]1.5688[/C][C]0.060982[/C][/ROW]
[ROW][C]13[/C][C]-0.188206[/C][C]-1.4578[/C][C]0.07505[/C][/ROW]
[ROW][C]14[/C][C]-0.063964[/C][C]-0.4955[/C][C]0.311043[/C][/ROW]
[ROW][C]15[/C][C]-0.192635[/C][C]-1.4921[/C][C]0.07045[/C][/ROW]
[ROW][C]16[/C][C]0.024967[/C][C]0.1934[/C][C]0.423652[/C][/ROW]
[ROW][C]17[/C][C]0.039176[/C][C]0.3035[/C][C]0.381297[/C][/ROW]
[ROW][C]18[/C][C]-0.029242[/C][C]-0.2265[/C][C]0.41079[/C][/ROW]
[ROW][C]19[/C][C]0.115729[/C][C]0.8964[/C][C]0.186802[/C][/ROW]
[ROW][C]20[/C][C]-0.103013[/C][C]-0.7979[/C][C]0.214028[/C][/ROW]
[ROW][C]21[/C][C]0.021482[/C][C]0.1664[/C][C]0.434201[/C][/ROW]
[ROW][C]22[/C][C]-0.168899[/C][C]-1.3083[/C][C]0.097883[/C][/ROW]
[ROW][C]23[/C][C]-0.073664[/C][C]-0.5706[/C][C]0.2852[/C][/ROW]
[ROW][C]24[/C][C]0.032824[/C][C]0.2543[/C][C]0.400086[/C][/ROW]
[ROW][C]25[/C][C]-0.193557[/C][C]-1.4993[/C][C]0.069522[/C][/ROW]
[ROW][C]26[/C][C]0.047701[/C][C]0.3695[/C][C]0.356531[/C][/ROW]
[ROW][C]27[/C][C]-0.081465[/C][C]-0.631[/C][C]0.265211[/C][/ROW]
[ROW][C]28[/C][C]0.093224[/C][C]0.7221[/C][C]0.236516[/C][/ROW]
[ROW][C]29[/C][C]-0.09758[/C][C]-0.7559[/C][C]0.226347[/C][/ROW]
[ROW][C]30[/C][C]0.019834[/C][C]0.1536[/C][C]0.439206[/C][/ROW]
[ROW][C]31[/C][C]0.064732[/C][C]0.5014[/C][C]0.308957[/C][/ROW]
[ROW][C]32[/C][C]-0.035064[/C][C]-0.2716[/C][C]0.393429[/C][/ROW]
[ROW][C]33[/C][C]0.028697[/C][C]0.2223[/C][C]0.412422[/C][/ROW]
[ROW][C]34[/C][C]0.072705[/C][C]0.5632[/C][C]0.287708[/C][/ROW]
[ROW][C]35[/C][C]-0.150251[/C][C]-1.1638[/C][C]0.124548[/C][/ROW]
[ROW][C]36[/C][C]0.032761[/C][C]0.2538[/C][C]0.400274[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61038&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61038&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.5149583.98889.1e-05
20.1062120.82270.206964
30.359842.78730.003554
40.1549381.20010.117401
50.1923831.49020.070706
60.3975773.07960.001563
7-0.190523-1.47580.072615
80.2078181.60980.05635
9-0.323083-2.50260.007535
10-0.369053-2.85870.002921
110.1830441.41790.080703
120.2025261.56880.060982
13-0.188206-1.45780.07505
14-0.063964-0.49550.311043
15-0.192635-1.49210.07045
160.0249670.19340.423652
170.0391760.30350.381297
18-0.029242-0.22650.41079
190.1157290.89640.186802
20-0.103013-0.79790.214028
210.0214820.16640.434201
22-0.168899-1.30830.097883
23-0.073664-0.57060.2852
240.0328240.25430.400086
25-0.193557-1.49930.069522
260.0477010.36950.356531
27-0.081465-0.6310.265211
280.0932240.72210.236516
29-0.09758-0.75590.226347
300.0198340.15360.439206
310.0647320.50140.308957
32-0.035064-0.27160.393429
330.0286970.22230.412422
340.0727050.56320.287708
35-0.150251-1.16380.124548
360.0327610.25380.400274



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