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, 04 Dec 2009 04:54:02 -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/04/t1259927687q3qo6cksisyz36c.htm/, Retrieved Sun, 28 Apr 2024 17:41:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63323, Retrieved Sun, 28 Apr 2024 17:41:06 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact112
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [data set] [2008-12-01 19:54:57] [b98453cac15ba1066b407e146608df68]
- RMP   [(Partial) Autocorrelation Function] [] [2009-11-27 14:47:30] [b98453cac15ba1066b407e146608df68]
-    D      [(Partial) Autocorrelation Function] [] [2009-12-04 11:54:02] [2f6049721194fa571920c3539d7b729e] [Current]
Feedback Forum

Post a new message
Dataseries X:
17
14
15
16
16
15
13
12
13
13
12
10
14
14
15
16
16
15
15
13
15
15
15
13
16
16
14
16
15
14
15
15
14
13
12
13
12
9
10
8
11
8
8
8
4
6
8
10
5
6
5
9
8
6
9
11
11
8
11
11
13




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

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.307597-2.38260.010187
2-0.082421-0.63840.262811
3-0.119723-0.92740.178724
40.2013631.55980.062039
50.1159550.89820.186339
6-0.109561-0.84870.199723
70.0115850.08970.464396
8-0.073822-0.57180.284788
90.2241131.7360.043851
10-0.196232-1.520.066881
110.0707360.54790.292891
12-0.007456-0.05780.477067
130.0255960.19830.421753
14-0.169252-1.3110.097423
150.0778710.60320.274328
160.1358791.05250.148392
17-0.273041-2.1150.019298
180.1102830.85420.198183
19-0.110122-0.8530.198525
200.0795750.61640.269986
21-0.115274-0.89290.187738
220.0657050.50890.306329
23-0.073822-0.57180.284788
24-0.082862-0.64180.261708
250.0617360.47820.317122
26-0.055242-0.42790.335128
270.0842450.65260.258266
28-0.023412-0.18130.428354
29-0.113029-0.87550.192392
300.0174380.13510.446502
310.1659451.28540.101795
32-0.117599-0.91090.182992
330.031810.24640.403107
340.0585490.45350.325906
35-0.004309-0.03340.486741
36-0.053638-0.41550.339637

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.307597 & -2.3826 & 0.010187 \tabularnewline
2 & -0.082421 & -0.6384 & 0.262811 \tabularnewline
3 & -0.119723 & -0.9274 & 0.178724 \tabularnewline
4 & 0.201363 & 1.5598 & 0.062039 \tabularnewline
5 & 0.115955 & 0.8982 & 0.186339 \tabularnewline
6 & -0.109561 & -0.8487 & 0.199723 \tabularnewline
7 & 0.011585 & 0.0897 & 0.464396 \tabularnewline
8 & -0.073822 & -0.5718 & 0.284788 \tabularnewline
9 & 0.224113 & 1.736 & 0.043851 \tabularnewline
10 & -0.196232 & -1.52 & 0.066881 \tabularnewline
11 & 0.070736 & 0.5479 & 0.292891 \tabularnewline
12 & -0.007456 & -0.0578 & 0.477067 \tabularnewline
13 & 0.025596 & 0.1983 & 0.421753 \tabularnewline
14 & -0.169252 & -1.311 & 0.097423 \tabularnewline
15 & 0.077871 & 0.6032 & 0.274328 \tabularnewline
16 & 0.135879 & 1.0525 & 0.148392 \tabularnewline
17 & -0.273041 & -2.115 & 0.019298 \tabularnewline
18 & 0.110283 & 0.8542 & 0.198183 \tabularnewline
19 & -0.110122 & -0.853 & 0.198525 \tabularnewline
20 & 0.079575 & 0.6164 & 0.269986 \tabularnewline
21 & -0.115274 & -0.8929 & 0.187738 \tabularnewline
22 & 0.065705 & 0.5089 & 0.306329 \tabularnewline
23 & -0.073822 & -0.5718 & 0.284788 \tabularnewline
24 & -0.082862 & -0.6418 & 0.261708 \tabularnewline
25 & 0.061736 & 0.4782 & 0.317122 \tabularnewline
26 & -0.055242 & -0.4279 & 0.335128 \tabularnewline
27 & 0.084245 & 0.6526 & 0.258266 \tabularnewline
28 & -0.023412 & -0.1813 & 0.428354 \tabularnewline
29 & -0.113029 & -0.8755 & 0.192392 \tabularnewline
30 & 0.017438 & 0.1351 & 0.446502 \tabularnewline
31 & 0.165945 & 1.2854 & 0.101795 \tabularnewline
32 & -0.117599 & -0.9109 & 0.182992 \tabularnewline
33 & 0.03181 & 0.2464 & 0.403107 \tabularnewline
34 & 0.058549 & 0.4535 & 0.325906 \tabularnewline
35 & -0.004309 & -0.0334 & 0.486741 \tabularnewline
36 & -0.053638 & -0.4155 & 0.339637 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63323&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.307597[/C][C]-2.3826[/C][C]0.010187[/C][/ROW]
[ROW][C]2[/C][C]-0.082421[/C][C]-0.6384[/C][C]0.262811[/C][/ROW]
[ROW][C]3[/C][C]-0.119723[/C][C]-0.9274[/C][C]0.178724[/C][/ROW]
[ROW][C]4[/C][C]0.201363[/C][C]1.5598[/C][C]0.062039[/C][/ROW]
[ROW][C]5[/C][C]0.115955[/C][C]0.8982[/C][C]0.186339[/C][/ROW]
[ROW][C]6[/C][C]-0.109561[/C][C]-0.8487[/C][C]0.199723[/C][/ROW]
[ROW][C]7[/C][C]0.011585[/C][C]0.0897[/C][C]0.464396[/C][/ROW]
[ROW][C]8[/C][C]-0.073822[/C][C]-0.5718[/C][C]0.284788[/C][/ROW]
[ROW][C]9[/C][C]0.224113[/C][C]1.736[/C][C]0.043851[/C][/ROW]
[ROW][C]10[/C][C]-0.196232[/C][C]-1.52[/C][C]0.066881[/C][/ROW]
[ROW][C]11[/C][C]0.070736[/C][C]0.5479[/C][C]0.292891[/C][/ROW]
[ROW][C]12[/C][C]-0.007456[/C][C]-0.0578[/C][C]0.477067[/C][/ROW]
[ROW][C]13[/C][C]0.025596[/C][C]0.1983[/C][C]0.421753[/C][/ROW]
[ROW][C]14[/C][C]-0.169252[/C][C]-1.311[/C][C]0.097423[/C][/ROW]
[ROW][C]15[/C][C]0.077871[/C][C]0.6032[/C][C]0.274328[/C][/ROW]
[ROW][C]16[/C][C]0.135879[/C][C]1.0525[/C][C]0.148392[/C][/ROW]
[ROW][C]17[/C][C]-0.273041[/C][C]-2.115[/C][C]0.019298[/C][/ROW]
[ROW][C]18[/C][C]0.110283[/C][C]0.8542[/C][C]0.198183[/C][/ROW]
[ROW][C]19[/C][C]-0.110122[/C][C]-0.853[/C][C]0.198525[/C][/ROW]
[ROW][C]20[/C][C]0.079575[/C][C]0.6164[/C][C]0.269986[/C][/ROW]
[ROW][C]21[/C][C]-0.115274[/C][C]-0.8929[/C][C]0.187738[/C][/ROW]
[ROW][C]22[/C][C]0.065705[/C][C]0.5089[/C][C]0.306329[/C][/ROW]
[ROW][C]23[/C][C]-0.073822[/C][C]-0.5718[/C][C]0.284788[/C][/ROW]
[ROW][C]24[/C][C]-0.082862[/C][C]-0.6418[/C][C]0.261708[/C][/ROW]
[ROW][C]25[/C][C]0.061736[/C][C]0.4782[/C][C]0.317122[/C][/ROW]
[ROW][C]26[/C][C]-0.055242[/C][C]-0.4279[/C][C]0.335128[/C][/ROW]
[ROW][C]27[/C][C]0.084245[/C][C]0.6526[/C][C]0.258266[/C][/ROW]
[ROW][C]28[/C][C]-0.023412[/C][C]-0.1813[/C][C]0.428354[/C][/ROW]
[ROW][C]29[/C][C]-0.113029[/C][C]-0.8755[/C][C]0.192392[/C][/ROW]
[ROW][C]30[/C][C]0.017438[/C][C]0.1351[/C][C]0.446502[/C][/ROW]
[ROW][C]31[/C][C]0.165945[/C][C]1.2854[/C][C]0.101795[/C][/ROW]
[ROW][C]32[/C][C]-0.117599[/C][C]-0.9109[/C][C]0.182992[/C][/ROW]
[ROW][C]33[/C][C]0.03181[/C][C]0.2464[/C][C]0.403107[/C][/ROW]
[ROW][C]34[/C][C]0.058549[/C][C]0.4535[/C][C]0.325906[/C][/ROW]
[ROW][C]35[/C][C]-0.004309[/C][C]-0.0334[/C][C]0.486741[/C][/ROW]
[ROW][C]36[/C][C]-0.053638[/C][C]-0.4155[/C][C]0.339637[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63323&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63323&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.307597-2.38260.010187
2-0.082421-0.63840.262811
3-0.119723-0.92740.178724
40.2013631.55980.062039
50.1159550.89820.186339
6-0.109561-0.84870.199723
70.0115850.08970.464396
8-0.073822-0.57180.284788
90.2241131.7360.043851
10-0.196232-1.520.066881
110.0707360.54790.292891
12-0.007456-0.05780.477067
130.0255960.19830.421753
14-0.169252-1.3110.097423
150.0778710.60320.274328
160.1358791.05250.148392
17-0.273041-2.1150.019298
180.1102830.85420.198183
19-0.110122-0.8530.198525
200.0795750.61640.269986
21-0.115274-0.89290.187738
220.0657050.50890.306329
23-0.073822-0.57180.284788
24-0.082862-0.64180.261708
250.0617360.47820.317122
26-0.055242-0.42790.335128
270.0842450.65260.258266
28-0.023412-0.18130.428354
29-0.113029-0.87550.192392
300.0174380.13510.446502
310.1659451.28540.101795
32-0.117599-0.91090.182992
330.031810.24640.403107
340.0585490.45350.325906
35-0.004309-0.03340.486741
36-0.053638-0.41550.339637







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.307597-2.38260.010187
2-0.195538-1.51460.067558
3-0.241374-1.86970.033205
40.0658590.51010.305912
50.2046941.58560.059049
60.0497710.38550.350606
70.0964350.7470.228996
8-0.058372-0.45210.326397
90.1389121.0760.143116
10-0.122761-0.95090.172734
11-0.00214-0.01660.493414
120.0297760.23060.409188
13-0.026484-0.20510.419078
14-0.214037-1.65790.051276
15-0.01236-0.09570.462023
160.1070170.8290.205209
17-0.249447-1.93220.02903
180.012290.09520.462239
19-0.038533-0.29850.383186
20-0.133049-1.03060.153433
21-0.122597-0.94960.173054
220.0664750.51490.304252
23-0.023619-0.1830.427726
24-0.219641-1.70130.047029
25-0.02224-0.17230.431902
260.057010.44160.330184
27-0.087458-0.67750.250362
280.0878080.68020.24951
29-0.020696-0.16030.436586
30-0.021353-0.16540.434592
310.0094580.07330.470921
32-0.031437-0.24350.404222
330.1241040.96130.170129
340.0278340.21560.415016
350.019740.15290.439493
36-0.068256-0.52870.29948

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.307597 & -2.3826 & 0.010187 \tabularnewline
2 & -0.195538 & -1.5146 & 0.067558 \tabularnewline
3 & -0.241374 & -1.8697 & 0.033205 \tabularnewline
4 & 0.065859 & 0.5101 & 0.305912 \tabularnewline
5 & 0.204694 & 1.5856 & 0.059049 \tabularnewline
6 & 0.049771 & 0.3855 & 0.350606 \tabularnewline
7 & 0.096435 & 0.747 & 0.228996 \tabularnewline
8 & -0.058372 & -0.4521 & 0.326397 \tabularnewline
9 & 0.138912 & 1.076 & 0.143116 \tabularnewline
10 & -0.122761 & -0.9509 & 0.172734 \tabularnewline
11 & -0.00214 & -0.0166 & 0.493414 \tabularnewline
12 & 0.029776 & 0.2306 & 0.409188 \tabularnewline
13 & -0.026484 & -0.2051 & 0.419078 \tabularnewline
14 & -0.214037 & -1.6579 & 0.051276 \tabularnewline
15 & -0.01236 & -0.0957 & 0.462023 \tabularnewline
16 & 0.107017 & 0.829 & 0.205209 \tabularnewline
17 & -0.249447 & -1.9322 & 0.02903 \tabularnewline
18 & 0.01229 & 0.0952 & 0.462239 \tabularnewline
19 & -0.038533 & -0.2985 & 0.383186 \tabularnewline
20 & -0.133049 & -1.0306 & 0.153433 \tabularnewline
21 & -0.122597 & -0.9496 & 0.173054 \tabularnewline
22 & 0.066475 & 0.5149 & 0.304252 \tabularnewline
23 & -0.023619 & -0.183 & 0.427726 \tabularnewline
24 & -0.219641 & -1.7013 & 0.047029 \tabularnewline
25 & -0.02224 & -0.1723 & 0.431902 \tabularnewline
26 & 0.05701 & 0.4416 & 0.330184 \tabularnewline
27 & -0.087458 & -0.6775 & 0.250362 \tabularnewline
28 & 0.087808 & 0.6802 & 0.24951 \tabularnewline
29 & -0.020696 & -0.1603 & 0.436586 \tabularnewline
30 & -0.021353 & -0.1654 & 0.434592 \tabularnewline
31 & 0.009458 & 0.0733 & 0.470921 \tabularnewline
32 & -0.031437 & -0.2435 & 0.404222 \tabularnewline
33 & 0.124104 & 0.9613 & 0.170129 \tabularnewline
34 & 0.027834 & 0.2156 & 0.415016 \tabularnewline
35 & 0.01974 & 0.1529 & 0.439493 \tabularnewline
36 & -0.068256 & -0.5287 & 0.29948 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63323&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.307597[/C][C]-2.3826[/C][C]0.010187[/C][/ROW]
[ROW][C]2[/C][C]-0.195538[/C][C]-1.5146[/C][C]0.067558[/C][/ROW]
[ROW][C]3[/C][C]-0.241374[/C][C]-1.8697[/C][C]0.033205[/C][/ROW]
[ROW][C]4[/C][C]0.065859[/C][C]0.5101[/C][C]0.305912[/C][/ROW]
[ROW][C]5[/C][C]0.204694[/C][C]1.5856[/C][C]0.059049[/C][/ROW]
[ROW][C]6[/C][C]0.049771[/C][C]0.3855[/C][C]0.350606[/C][/ROW]
[ROW][C]7[/C][C]0.096435[/C][C]0.747[/C][C]0.228996[/C][/ROW]
[ROW][C]8[/C][C]-0.058372[/C][C]-0.4521[/C][C]0.326397[/C][/ROW]
[ROW][C]9[/C][C]0.138912[/C][C]1.076[/C][C]0.143116[/C][/ROW]
[ROW][C]10[/C][C]-0.122761[/C][C]-0.9509[/C][C]0.172734[/C][/ROW]
[ROW][C]11[/C][C]-0.00214[/C][C]-0.0166[/C][C]0.493414[/C][/ROW]
[ROW][C]12[/C][C]0.029776[/C][C]0.2306[/C][C]0.409188[/C][/ROW]
[ROW][C]13[/C][C]-0.026484[/C][C]-0.2051[/C][C]0.419078[/C][/ROW]
[ROW][C]14[/C][C]-0.214037[/C][C]-1.6579[/C][C]0.051276[/C][/ROW]
[ROW][C]15[/C][C]-0.01236[/C][C]-0.0957[/C][C]0.462023[/C][/ROW]
[ROW][C]16[/C][C]0.107017[/C][C]0.829[/C][C]0.205209[/C][/ROW]
[ROW][C]17[/C][C]-0.249447[/C][C]-1.9322[/C][C]0.02903[/C][/ROW]
[ROW][C]18[/C][C]0.01229[/C][C]0.0952[/C][C]0.462239[/C][/ROW]
[ROW][C]19[/C][C]-0.038533[/C][C]-0.2985[/C][C]0.383186[/C][/ROW]
[ROW][C]20[/C][C]-0.133049[/C][C]-1.0306[/C][C]0.153433[/C][/ROW]
[ROW][C]21[/C][C]-0.122597[/C][C]-0.9496[/C][C]0.173054[/C][/ROW]
[ROW][C]22[/C][C]0.066475[/C][C]0.5149[/C][C]0.304252[/C][/ROW]
[ROW][C]23[/C][C]-0.023619[/C][C]-0.183[/C][C]0.427726[/C][/ROW]
[ROW][C]24[/C][C]-0.219641[/C][C]-1.7013[/C][C]0.047029[/C][/ROW]
[ROW][C]25[/C][C]-0.02224[/C][C]-0.1723[/C][C]0.431902[/C][/ROW]
[ROW][C]26[/C][C]0.05701[/C][C]0.4416[/C][C]0.330184[/C][/ROW]
[ROW][C]27[/C][C]-0.087458[/C][C]-0.6775[/C][C]0.250362[/C][/ROW]
[ROW][C]28[/C][C]0.087808[/C][C]0.6802[/C][C]0.24951[/C][/ROW]
[ROW][C]29[/C][C]-0.020696[/C][C]-0.1603[/C][C]0.436586[/C][/ROW]
[ROW][C]30[/C][C]-0.021353[/C][C]-0.1654[/C][C]0.434592[/C][/ROW]
[ROW][C]31[/C][C]0.009458[/C][C]0.0733[/C][C]0.470921[/C][/ROW]
[ROW][C]32[/C][C]-0.031437[/C][C]-0.2435[/C][C]0.404222[/C][/ROW]
[ROW][C]33[/C][C]0.124104[/C][C]0.9613[/C][C]0.170129[/C][/ROW]
[ROW][C]34[/C][C]0.027834[/C][C]0.2156[/C][C]0.415016[/C][/ROW]
[ROW][C]35[/C][C]0.01974[/C][C]0.1529[/C][C]0.439493[/C][/ROW]
[ROW][C]36[/C][C]-0.068256[/C][C]-0.5287[/C][C]0.29948[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63323&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63323&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.307597-2.38260.010187
2-0.195538-1.51460.067558
3-0.241374-1.86970.033205
40.0658590.51010.305912
50.2046941.58560.059049
60.0497710.38550.350606
70.0964350.7470.228996
8-0.058372-0.45210.326397
90.1389121.0760.143116
10-0.122761-0.95090.172734
11-0.00214-0.01660.493414
120.0297760.23060.409188
13-0.026484-0.20510.419078
14-0.214037-1.65790.051276
15-0.01236-0.09570.462023
160.1070170.8290.205209
17-0.249447-1.93220.02903
180.012290.09520.462239
19-0.038533-0.29850.383186
20-0.133049-1.03060.153433
21-0.122597-0.94960.173054
220.0664750.51490.304252
23-0.023619-0.1830.427726
24-0.219641-1.70130.047029
25-0.02224-0.17230.431902
260.057010.44160.330184
27-0.087458-0.67750.250362
280.0878080.68020.24951
29-0.020696-0.16030.436586
30-0.021353-0.16540.434592
310.0094580.07330.470921
32-0.031437-0.24350.404222
330.1241040.96130.170129
340.0278340.21560.415016
350.019740.15290.439493
36-0.068256-0.52870.29948



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