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:19:54 -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/t1260382905erq9pa5w9s3awav.htm/, Retrieved Mon, 29 Apr 2024 08:31:20 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=65117, Retrieved Mon, 29 Apr 2024 08:31:20 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact91
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:26:39] [b98453cac15ba1066b407e146608df68]
-    D          [(Partial) Autocorrelation Function] [] [2009-12-09 18:19:54] [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 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=65117&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=65117&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65117&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.453276-3.14040.001443
20.0311280.21570.415084
30.0061920.04290.482978
4-0.01479-0.10250.459405
50.1035290.71730.238341
6-0.019381-0.13430.446873
7-0.048778-0.33790.368439
8-0.044518-0.30840.379544
90.0814290.56420.287636
10-0.065661-0.45490.325611
110.2226011.54220.064793
12-0.324443-2.24780.01461
130.0826180.57240.284864
140.1819631.26070.10676
15-0.209885-1.45410.07621
160.1324960.9180.181615
17-0.06134-0.4250.336376
18-0.00277-0.01920.492383
19-0.042154-0.29210.385753
200.0229180.15880.437254
21-0.088922-0.61610.27038
220.04510.31250.378021
230.0119420.08270.467203
24-0.008425-0.05840.476848
25-0.04205-0.29130.386026
26-0.104786-0.7260.235689
270.0904310.62650.266971
280.0306060.2120.416485
29-0.003253-0.02250.491056
30-0.002861-0.01980.492135
31-0.107476-0.74460.230067
320.1117510.77420.221295
330.026790.18560.426768
34-0.042766-0.29630.384142
35-0.051532-0.3570.36132
36-0.031017-0.21490.415381

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.453276 & -3.1404 & 0.001443 \tabularnewline
2 & 0.031128 & 0.2157 & 0.415084 \tabularnewline
3 & 0.006192 & 0.0429 & 0.482978 \tabularnewline
4 & -0.01479 & -0.1025 & 0.459405 \tabularnewline
5 & 0.103529 & 0.7173 & 0.238341 \tabularnewline
6 & -0.019381 & -0.1343 & 0.446873 \tabularnewline
7 & -0.048778 & -0.3379 & 0.368439 \tabularnewline
8 & -0.044518 & -0.3084 & 0.379544 \tabularnewline
9 & 0.081429 & 0.5642 & 0.287636 \tabularnewline
10 & -0.065661 & -0.4549 & 0.325611 \tabularnewline
11 & 0.222601 & 1.5422 & 0.064793 \tabularnewline
12 & -0.324443 & -2.2478 & 0.01461 \tabularnewline
13 & 0.082618 & 0.5724 & 0.284864 \tabularnewline
14 & 0.181963 & 1.2607 & 0.10676 \tabularnewline
15 & -0.209885 & -1.4541 & 0.07621 \tabularnewline
16 & 0.132496 & 0.918 & 0.181615 \tabularnewline
17 & -0.06134 & -0.425 & 0.336376 \tabularnewline
18 & -0.00277 & -0.0192 & 0.492383 \tabularnewline
19 & -0.042154 & -0.2921 & 0.385753 \tabularnewline
20 & 0.022918 & 0.1588 & 0.437254 \tabularnewline
21 & -0.088922 & -0.6161 & 0.27038 \tabularnewline
22 & 0.0451 & 0.3125 & 0.378021 \tabularnewline
23 & 0.011942 & 0.0827 & 0.467203 \tabularnewline
24 & -0.008425 & -0.0584 & 0.476848 \tabularnewline
25 & -0.04205 & -0.2913 & 0.386026 \tabularnewline
26 & -0.104786 & -0.726 & 0.235689 \tabularnewline
27 & 0.090431 & 0.6265 & 0.266971 \tabularnewline
28 & 0.030606 & 0.212 & 0.416485 \tabularnewline
29 & -0.003253 & -0.0225 & 0.491056 \tabularnewline
30 & -0.002861 & -0.0198 & 0.492135 \tabularnewline
31 & -0.107476 & -0.7446 & 0.230067 \tabularnewline
32 & 0.111751 & 0.7742 & 0.221295 \tabularnewline
33 & 0.02679 & 0.1856 & 0.426768 \tabularnewline
34 & -0.042766 & -0.2963 & 0.384142 \tabularnewline
35 & -0.051532 & -0.357 & 0.36132 \tabularnewline
36 & -0.031017 & -0.2149 & 0.415381 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65117&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.453276[/C][C]-3.1404[/C][C]0.001443[/C][/ROW]
[ROW][C]2[/C][C]0.031128[/C][C]0.2157[/C][C]0.415084[/C][/ROW]
[ROW][C]3[/C][C]0.006192[/C][C]0.0429[/C][C]0.482978[/C][/ROW]
[ROW][C]4[/C][C]-0.01479[/C][C]-0.1025[/C][C]0.459405[/C][/ROW]
[ROW][C]5[/C][C]0.103529[/C][C]0.7173[/C][C]0.238341[/C][/ROW]
[ROW][C]6[/C][C]-0.019381[/C][C]-0.1343[/C][C]0.446873[/C][/ROW]
[ROW][C]7[/C][C]-0.048778[/C][C]-0.3379[/C][C]0.368439[/C][/ROW]
[ROW][C]8[/C][C]-0.044518[/C][C]-0.3084[/C][C]0.379544[/C][/ROW]
[ROW][C]9[/C][C]0.081429[/C][C]0.5642[/C][C]0.287636[/C][/ROW]
[ROW][C]10[/C][C]-0.065661[/C][C]-0.4549[/C][C]0.325611[/C][/ROW]
[ROW][C]11[/C][C]0.222601[/C][C]1.5422[/C][C]0.064793[/C][/ROW]
[ROW][C]12[/C][C]-0.324443[/C][C]-2.2478[/C][C]0.01461[/C][/ROW]
[ROW][C]13[/C][C]0.082618[/C][C]0.5724[/C][C]0.284864[/C][/ROW]
[ROW][C]14[/C][C]0.181963[/C][C]1.2607[/C][C]0.10676[/C][/ROW]
[ROW][C]15[/C][C]-0.209885[/C][C]-1.4541[/C][C]0.07621[/C][/ROW]
[ROW][C]16[/C][C]0.132496[/C][C]0.918[/C][C]0.181615[/C][/ROW]
[ROW][C]17[/C][C]-0.06134[/C][C]-0.425[/C][C]0.336376[/C][/ROW]
[ROW][C]18[/C][C]-0.00277[/C][C]-0.0192[/C][C]0.492383[/C][/ROW]
[ROW][C]19[/C][C]-0.042154[/C][C]-0.2921[/C][C]0.385753[/C][/ROW]
[ROW][C]20[/C][C]0.022918[/C][C]0.1588[/C][C]0.437254[/C][/ROW]
[ROW][C]21[/C][C]-0.088922[/C][C]-0.6161[/C][C]0.27038[/C][/ROW]
[ROW][C]22[/C][C]0.0451[/C][C]0.3125[/C][C]0.378021[/C][/ROW]
[ROW][C]23[/C][C]0.011942[/C][C]0.0827[/C][C]0.467203[/C][/ROW]
[ROW][C]24[/C][C]-0.008425[/C][C]-0.0584[/C][C]0.476848[/C][/ROW]
[ROW][C]25[/C][C]-0.04205[/C][C]-0.2913[/C][C]0.386026[/C][/ROW]
[ROW][C]26[/C][C]-0.104786[/C][C]-0.726[/C][C]0.235689[/C][/ROW]
[ROW][C]27[/C][C]0.090431[/C][C]0.6265[/C][C]0.266971[/C][/ROW]
[ROW][C]28[/C][C]0.030606[/C][C]0.212[/C][C]0.416485[/C][/ROW]
[ROW][C]29[/C][C]-0.003253[/C][C]-0.0225[/C][C]0.491056[/C][/ROW]
[ROW][C]30[/C][C]-0.002861[/C][C]-0.0198[/C][C]0.492135[/C][/ROW]
[ROW][C]31[/C][C]-0.107476[/C][C]-0.7446[/C][C]0.230067[/C][/ROW]
[ROW][C]32[/C][C]0.111751[/C][C]0.7742[/C][C]0.221295[/C][/ROW]
[ROW][C]33[/C][C]0.02679[/C][C]0.1856[/C][C]0.426768[/C][/ROW]
[ROW][C]34[/C][C]-0.042766[/C][C]-0.2963[/C][C]0.384142[/C][/ROW]
[ROW][C]35[/C][C]-0.051532[/C][C]-0.357[/C][C]0.36132[/C][/ROW]
[ROW][C]36[/C][C]-0.031017[/C][C]-0.2149[/C][C]0.415381[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65117&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65117&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.453276-3.14040.001443
20.0311280.21570.415084
30.0061920.04290.482978
4-0.01479-0.10250.459405
50.1035290.71730.238341
6-0.019381-0.13430.446873
7-0.048778-0.33790.368439
8-0.044518-0.30840.379544
90.0814290.56420.287636
10-0.065661-0.45490.325611
110.2226011.54220.064793
12-0.324443-2.24780.01461
130.0826180.57240.284864
140.1819631.26070.10676
15-0.209885-1.45410.07621
160.1324960.9180.181615
17-0.06134-0.4250.336376
18-0.00277-0.01920.492383
19-0.042154-0.29210.385753
200.0229180.15880.437254
21-0.088922-0.61610.27038
220.04510.31250.378021
230.0119420.08270.467203
24-0.008425-0.05840.476848
25-0.04205-0.29130.386026
26-0.104786-0.7260.235689
270.0904310.62650.266971
280.0306060.2120.416485
29-0.003253-0.02250.491056
30-0.002861-0.01980.492135
31-0.107476-0.74460.230067
320.1117510.77420.221295
330.026790.18560.426768
34-0.042766-0.29630.384142
35-0.051532-0.3570.36132
36-0.031017-0.21490.415381







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.453276-3.14040.001443
2-0.219411-1.52010.06752
3-0.100565-0.69670.244665
4-0.064456-0.44660.328598
50.0963230.66730.253874
60.1091560.75630.226597
70.0159730.11070.456173
8-0.089908-0.62290.268149
9-1.8e-05-1e-040.49995
10-0.062414-0.43240.333689
110.2366451.63950.053821
12-0.134535-0.93210.177979
13-0.135018-0.93540.177125
140.1489211.03180.153679
15-0.0881-0.61040.272247
16-0.002684-0.01860.492619
170.04540.31450.377238
180.0146360.10140.459828
19-0.113714-0.78780.217333
20-0.108404-0.7510.228145
21-0.142865-0.98980.163618
22-0.109495-0.75860.225899
230.0796650.55190.291776
240.0241270.16720.433973
25-0.140582-0.9740.167474
26-0.09491-0.65760.256981
27-0.154321-1.06920.14517
28-0.020341-0.14090.44426
290.1441440.99870.161484
300.1271380.88080.191398
31-0.124798-0.86460.195772
32-0.01724-0.11940.452711
330.0183550.12720.449669
34-0.070475-0.48830.313792
350.0315050.21830.41407
36-0.032238-0.22340.412104

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.453276 & -3.1404 & 0.001443 \tabularnewline
2 & -0.219411 & -1.5201 & 0.06752 \tabularnewline
3 & -0.100565 & -0.6967 & 0.244665 \tabularnewline
4 & -0.064456 & -0.4466 & 0.328598 \tabularnewline
5 & 0.096323 & 0.6673 & 0.253874 \tabularnewline
6 & 0.109156 & 0.7563 & 0.226597 \tabularnewline
7 & 0.015973 & 0.1107 & 0.456173 \tabularnewline
8 & -0.089908 & -0.6229 & 0.268149 \tabularnewline
9 & -1.8e-05 & -1e-04 & 0.49995 \tabularnewline
10 & -0.062414 & -0.4324 & 0.333689 \tabularnewline
11 & 0.236645 & 1.6395 & 0.053821 \tabularnewline
12 & -0.134535 & -0.9321 & 0.177979 \tabularnewline
13 & -0.135018 & -0.9354 & 0.177125 \tabularnewline
14 & 0.148921 & 1.0318 & 0.153679 \tabularnewline
15 & -0.0881 & -0.6104 & 0.272247 \tabularnewline
16 & -0.002684 & -0.0186 & 0.492619 \tabularnewline
17 & 0.0454 & 0.3145 & 0.377238 \tabularnewline
18 & 0.014636 & 0.1014 & 0.459828 \tabularnewline
19 & -0.113714 & -0.7878 & 0.217333 \tabularnewline
20 & -0.108404 & -0.751 & 0.228145 \tabularnewline
21 & -0.142865 & -0.9898 & 0.163618 \tabularnewline
22 & -0.109495 & -0.7586 & 0.225899 \tabularnewline
23 & 0.079665 & 0.5519 & 0.291776 \tabularnewline
24 & 0.024127 & 0.1672 & 0.433973 \tabularnewline
25 & -0.140582 & -0.974 & 0.167474 \tabularnewline
26 & -0.09491 & -0.6576 & 0.256981 \tabularnewline
27 & -0.154321 & -1.0692 & 0.14517 \tabularnewline
28 & -0.020341 & -0.1409 & 0.44426 \tabularnewline
29 & 0.144144 & 0.9987 & 0.161484 \tabularnewline
30 & 0.127138 & 0.8808 & 0.191398 \tabularnewline
31 & -0.124798 & -0.8646 & 0.195772 \tabularnewline
32 & -0.01724 & -0.1194 & 0.452711 \tabularnewline
33 & 0.018355 & 0.1272 & 0.449669 \tabularnewline
34 & -0.070475 & -0.4883 & 0.313792 \tabularnewline
35 & 0.031505 & 0.2183 & 0.41407 \tabularnewline
36 & -0.032238 & -0.2234 & 0.412104 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65117&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.453276[/C][C]-3.1404[/C][C]0.001443[/C][/ROW]
[ROW][C]2[/C][C]-0.219411[/C][C]-1.5201[/C][C]0.06752[/C][/ROW]
[ROW][C]3[/C][C]-0.100565[/C][C]-0.6967[/C][C]0.244665[/C][/ROW]
[ROW][C]4[/C][C]-0.064456[/C][C]-0.4466[/C][C]0.328598[/C][/ROW]
[ROW][C]5[/C][C]0.096323[/C][C]0.6673[/C][C]0.253874[/C][/ROW]
[ROW][C]6[/C][C]0.109156[/C][C]0.7563[/C][C]0.226597[/C][/ROW]
[ROW][C]7[/C][C]0.015973[/C][C]0.1107[/C][C]0.456173[/C][/ROW]
[ROW][C]8[/C][C]-0.089908[/C][C]-0.6229[/C][C]0.268149[/C][/ROW]
[ROW][C]9[/C][C]-1.8e-05[/C][C]-1e-04[/C][C]0.49995[/C][/ROW]
[ROW][C]10[/C][C]-0.062414[/C][C]-0.4324[/C][C]0.333689[/C][/ROW]
[ROW][C]11[/C][C]0.236645[/C][C]1.6395[/C][C]0.053821[/C][/ROW]
[ROW][C]12[/C][C]-0.134535[/C][C]-0.9321[/C][C]0.177979[/C][/ROW]
[ROW][C]13[/C][C]-0.135018[/C][C]-0.9354[/C][C]0.177125[/C][/ROW]
[ROW][C]14[/C][C]0.148921[/C][C]1.0318[/C][C]0.153679[/C][/ROW]
[ROW][C]15[/C][C]-0.0881[/C][C]-0.6104[/C][C]0.272247[/C][/ROW]
[ROW][C]16[/C][C]-0.002684[/C][C]-0.0186[/C][C]0.492619[/C][/ROW]
[ROW][C]17[/C][C]0.0454[/C][C]0.3145[/C][C]0.377238[/C][/ROW]
[ROW][C]18[/C][C]0.014636[/C][C]0.1014[/C][C]0.459828[/C][/ROW]
[ROW][C]19[/C][C]-0.113714[/C][C]-0.7878[/C][C]0.217333[/C][/ROW]
[ROW][C]20[/C][C]-0.108404[/C][C]-0.751[/C][C]0.228145[/C][/ROW]
[ROW][C]21[/C][C]-0.142865[/C][C]-0.9898[/C][C]0.163618[/C][/ROW]
[ROW][C]22[/C][C]-0.109495[/C][C]-0.7586[/C][C]0.225899[/C][/ROW]
[ROW][C]23[/C][C]0.079665[/C][C]0.5519[/C][C]0.291776[/C][/ROW]
[ROW][C]24[/C][C]0.024127[/C][C]0.1672[/C][C]0.433973[/C][/ROW]
[ROW][C]25[/C][C]-0.140582[/C][C]-0.974[/C][C]0.167474[/C][/ROW]
[ROW][C]26[/C][C]-0.09491[/C][C]-0.6576[/C][C]0.256981[/C][/ROW]
[ROW][C]27[/C][C]-0.154321[/C][C]-1.0692[/C][C]0.14517[/C][/ROW]
[ROW][C]28[/C][C]-0.020341[/C][C]-0.1409[/C][C]0.44426[/C][/ROW]
[ROW][C]29[/C][C]0.144144[/C][C]0.9987[/C][C]0.161484[/C][/ROW]
[ROW][C]30[/C][C]0.127138[/C][C]0.8808[/C][C]0.191398[/C][/ROW]
[ROW][C]31[/C][C]-0.124798[/C][C]-0.8646[/C][C]0.195772[/C][/ROW]
[ROW][C]32[/C][C]-0.01724[/C][C]-0.1194[/C][C]0.452711[/C][/ROW]
[ROW][C]33[/C][C]0.018355[/C][C]0.1272[/C][C]0.449669[/C][/ROW]
[ROW][C]34[/C][C]-0.070475[/C][C]-0.4883[/C][C]0.313792[/C][/ROW]
[ROW][C]35[/C][C]0.031505[/C][C]0.2183[/C][C]0.41407[/C][/ROW]
[ROW][C]36[/C][C]-0.032238[/C][C]-0.2234[/C][C]0.412104[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65117&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65117&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.453276-3.14040.001443
2-0.219411-1.52010.06752
3-0.100565-0.69670.244665
4-0.064456-0.44660.328598
50.0963230.66730.253874
60.1091560.75630.226597
70.0159730.11070.456173
8-0.089908-0.62290.268149
9-1.8e-05-1e-040.49995
10-0.062414-0.43240.333689
110.2366451.63950.053821
12-0.134535-0.93210.177979
13-0.135018-0.93540.177125
140.1489211.03180.153679
15-0.0881-0.61040.272247
16-0.002684-0.01860.492619
170.04540.31450.377238
180.0146360.10140.459828
19-0.113714-0.78780.217333
20-0.108404-0.7510.228145
21-0.142865-0.98980.163618
22-0.109495-0.75860.225899
230.0796650.55190.291776
240.0241270.16720.433973
25-0.140582-0.9740.167474
26-0.09491-0.65760.256981
27-0.154321-1.06920.14517
28-0.020341-0.14090.44426
290.1441440.99870.161484
300.1271380.88080.191398
31-0.124798-0.86460.195772
32-0.01724-0.11940.452711
330.0183550.12720.449669
34-0.070475-0.48830.313792
350.0315050.21830.41407
36-0.032238-0.22340.412104



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