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, 11 Dec 2009 07:36:09 -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/11/t12605422387ay6rp3jx5dlxnh.htm/, Retrieved Sun, 28 Apr 2024 22:22:36 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=66251, Retrieved Sun, 28 Apr 2024 22:22:36 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsacfpacfd1D1
Estimated Impact109
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Bivariate Explorative Data Analysis] [shw-ws4p1] [2009-10-28 17:17:04] [2663058f2a5dda519058ac6b2228468f]
- RMPD    [(Partial) Autocorrelation Function] [Paper: ACF en PACF] [2009-12-11 14:36:09] [682632737e024f9e62885141c5f654cd] [Current]
-   P       [(Partial) Autocorrelation Function] [Paper: ACF & PACF] [2009-12-11 14:56:52] [786e067c4f7cec17385c4742b96b6dfa]
Feedback Forum

Post a new message
Dataseries X:
128.6
128.9
129.06
129.23
129.27
129.33
129.35
129.31
129.4
129.49
129.47
129.46
129.45
129.28
129.2
129.25
129.14
129.11
129.02
129.08
128.99
129.11
129.08
129.19
129.23
129.25
129.31
129.33
129.39
129.55
129.43
129.45
129.57
129.76
129.92
130.08
130.41
130.84
131.24
131.49
131.74
132.34
133.5
134.43
136.5
137.41
138.02
138.15
138.24
138.2
138.31
138.65
139.3
139.8
140.52
141.57
141.77
141.66
141.36
141.17




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66251&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
10.6204694.25375e-05
20.5180663.55170.000441
30.245381.68220.049578
40.0676650.46390.322435
50.0080870.05540.478011
60.0389930.26730.395194
70.1232930.84530.201126
80.1521631.04320.151101
90.0793830.54420.29443
10-0.034322-0.23530.4075
11-0.140349-0.96220.170441
12-0.37782-2.59020.006366
13-0.323511-2.21790.015716
14-0.369852-2.53560.007306
15-0.244247-1.67450.05034
16-0.148916-1.02090.15626
17-0.096375-0.66070.256011
18-0.06102-0.41830.338805
19-0.074209-0.50880.306654
20-0.096789-0.66360.25511
21-0.075437-0.51720.303731
22-0.093067-0.6380.263273
23-0.055587-0.38110.352428
24-0.106875-0.73270.233691
25-0.064981-0.44550.329006
26-0.060015-0.41140.341309
27-0.067288-0.46130.323353
28-0.104021-0.71310.239645
29-0.097774-0.67030.252972
30-0.095429-0.65420.258076
31-0.105631-0.72420.236276
32-0.037372-0.25620.399454
33-0.018136-0.12430.450791
340.0198530.13610.44616
350.020420.140.444631
360.0600790.41190.34115

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.620469 & 4.2537 & 5e-05 \tabularnewline
2 & 0.518066 & 3.5517 & 0.000441 \tabularnewline
3 & 0.24538 & 1.6822 & 0.049578 \tabularnewline
4 & 0.067665 & 0.4639 & 0.322435 \tabularnewline
5 & 0.008087 & 0.0554 & 0.478011 \tabularnewline
6 & 0.038993 & 0.2673 & 0.395194 \tabularnewline
7 & 0.123293 & 0.8453 & 0.201126 \tabularnewline
8 & 0.152163 & 1.0432 & 0.151101 \tabularnewline
9 & 0.079383 & 0.5442 & 0.29443 \tabularnewline
10 & -0.034322 & -0.2353 & 0.4075 \tabularnewline
11 & -0.140349 & -0.9622 & 0.170441 \tabularnewline
12 & -0.37782 & -2.5902 & 0.006366 \tabularnewline
13 & -0.323511 & -2.2179 & 0.015716 \tabularnewline
14 & -0.369852 & -2.5356 & 0.007306 \tabularnewline
15 & -0.244247 & -1.6745 & 0.05034 \tabularnewline
16 & -0.148916 & -1.0209 & 0.15626 \tabularnewline
17 & -0.096375 & -0.6607 & 0.256011 \tabularnewline
18 & -0.06102 & -0.4183 & 0.338805 \tabularnewline
19 & -0.074209 & -0.5088 & 0.306654 \tabularnewline
20 & -0.096789 & -0.6636 & 0.25511 \tabularnewline
21 & -0.075437 & -0.5172 & 0.303731 \tabularnewline
22 & -0.093067 & -0.638 & 0.263273 \tabularnewline
23 & -0.055587 & -0.3811 & 0.352428 \tabularnewline
24 & -0.106875 & -0.7327 & 0.233691 \tabularnewline
25 & -0.064981 & -0.4455 & 0.329006 \tabularnewline
26 & -0.060015 & -0.4114 & 0.341309 \tabularnewline
27 & -0.067288 & -0.4613 & 0.323353 \tabularnewline
28 & -0.104021 & -0.7131 & 0.239645 \tabularnewline
29 & -0.097774 & -0.6703 & 0.252972 \tabularnewline
30 & -0.095429 & -0.6542 & 0.258076 \tabularnewline
31 & -0.105631 & -0.7242 & 0.236276 \tabularnewline
32 & -0.037372 & -0.2562 & 0.399454 \tabularnewline
33 & -0.018136 & -0.1243 & 0.450791 \tabularnewline
34 & 0.019853 & 0.1361 & 0.44616 \tabularnewline
35 & 0.02042 & 0.14 & 0.444631 \tabularnewline
36 & 0.060079 & 0.4119 & 0.34115 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66251&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.620469[/C][C]4.2537[/C][C]5e-05[/C][/ROW]
[ROW][C]2[/C][C]0.518066[/C][C]3.5517[/C][C]0.000441[/C][/ROW]
[ROW][C]3[/C][C]0.24538[/C][C]1.6822[/C][C]0.049578[/C][/ROW]
[ROW][C]4[/C][C]0.067665[/C][C]0.4639[/C][C]0.322435[/C][/ROW]
[ROW][C]5[/C][C]0.008087[/C][C]0.0554[/C][C]0.478011[/C][/ROW]
[ROW][C]6[/C][C]0.038993[/C][C]0.2673[/C][C]0.395194[/C][/ROW]
[ROW][C]7[/C][C]0.123293[/C][C]0.8453[/C][C]0.201126[/C][/ROW]
[ROW][C]8[/C][C]0.152163[/C][C]1.0432[/C][C]0.151101[/C][/ROW]
[ROW][C]9[/C][C]0.079383[/C][C]0.5442[/C][C]0.29443[/C][/ROW]
[ROW][C]10[/C][C]-0.034322[/C][C]-0.2353[/C][C]0.4075[/C][/ROW]
[ROW][C]11[/C][C]-0.140349[/C][C]-0.9622[/C][C]0.170441[/C][/ROW]
[ROW][C]12[/C][C]-0.37782[/C][C]-2.5902[/C][C]0.006366[/C][/ROW]
[ROW][C]13[/C][C]-0.323511[/C][C]-2.2179[/C][C]0.015716[/C][/ROW]
[ROW][C]14[/C][C]-0.369852[/C][C]-2.5356[/C][C]0.007306[/C][/ROW]
[ROW][C]15[/C][C]-0.244247[/C][C]-1.6745[/C][C]0.05034[/C][/ROW]
[ROW][C]16[/C][C]-0.148916[/C][C]-1.0209[/C][C]0.15626[/C][/ROW]
[ROW][C]17[/C][C]-0.096375[/C][C]-0.6607[/C][C]0.256011[/C][/ROW]
[ROW][C]18[/C][C]-0.06102[/C][C]-0.4183[/C][C]0.338805[/C][/ROW]
[ROW][C]19[/C][C]-0.074209[/C][C]-0.5088[/C][C]0.306654[/C][/ROW]
[ROW][C]20[/C][C]-0.096789[/C][C]-0.6636[/C][C]0.25511[/C][/ROW]
[ROW][C]21[/C][C]-0.075437[/C][C]-0.5172[/C][C]0.303731[/C][/ROW]
[ROW][C]22[/C][C]-0.093067[/C][C]-0.638[/C][C]0.263273[/C][/ROW]
[ROW][C]23[/C][C]-0.055587[/C][C]-0.3811[/C][C]0.352428[/C][/ROW]
[ROW][C]24[/C][C]-0.106875[/C][C]-0.7327[/C][C]0.233691[/C][/ROW]
[ROW][C]25[/C][C]-0.064981[/C][C]-0.4455[/C][C]0.329006[/C][/ROW]
[ROW][C]26[/C][C]-0.060015[/C][C]-0.4114[/C][C]0.341309[/C][/ROW]
[ROW][C]27[/C][C]-0.067288[/C][C]-0.4613[/C][C]0.323353[/C][/ROW]
[ROW][C]28[/C][C]-0.104021[/C][C]-0.7131[/C][C]0.239645[/C][/ROW]
[ROW][C]29[/C][C]-0.097774[/C][C]-0.6703[/C][C]0.252972[/C][/ROW]
[ROW][C]30[/C][C]-0.095429[/C][C]-0.6542[/C][C]0.258076[/C][/ROW]
[ROW][C]31[/C][C]-0.105631[/C][C]-0.7242[/C][C]0.236276[/C][/ROW]
[ROW][C]32[/C][C]-0.037372[/C][C]-0.2562[/C][C]0.399454[/C][/ROW]
[ROW][C]33[/C][C]-0.018136[/C][C]-0.1243[/C][C]0.450791[/C][/ROW]
[ROW][C]34[/C][C]0.019853[/C][C]0.1361[/C][C]0.44616[/C][/ROW]
[ROW][C]35[/C][C]0.02042[/C][C]0.14[/C][C]0.444631[/C][/ROW]
[ROW][C]36[/C][C]0.060079[/C][C]0.4119[/C][C]0.34115[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66251&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66251&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.6204694.25375e-05
20.5180663.55170.000441
30.245381.68220.049578
40.0676650.46390.322435
50.0080870.05540.478011
60.0389930.26730.395194
70.1232930.84530.201126
80.1521631.04320.151101
90.0793830.54420.29443
10-0.034322-0.23530.4075
11-0.140349-0.96220.170441
12-0.37782-2.59020.006366
13-0.323511-2.21790.015716
14-0.369852-2.53560.007306
15-0.244247-1.67450.05034
16-0.148916-1.02090.15626
17-0.096375-0.66070.256011
18-0.06102-0.41830.338805
19-0.074209-0.50880.306654
20-0.096789-0.66360.25511
21-0.075437-0.51720.303731
22-0.093067-0.6380.263273
23-0.055587-0.38110.352428
24-0.106875-0.73270.233691
25-0.064981-0.44550.329006
26-0.060015-0.41140.341309
27-0.067288-0.46130.323353
28-0.104021-0.71310.239645
29-0.097774-0.67030.252972
30-0.095429-0.65420.258076
31-0.105631-0.72420.236276
32-0.037372-0.25620.399454
33-0.018136-0.12430.450791
340.0198530.13610.44616
350.020420.140.444631
360.0600790.41190.34115







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6204694.25375e-05
20.2163911.48350.072308
3-0.240132-1.64630.053191
4-0.159276-1.09190.140212
50.1083120.74250.230725
60.1861821.27640.104043
70.117140.80310.212987
8-0.066252-0.45420.325887
9-0.224871-1.54160.064934
10-0.153144-1.04990.149566
110.0271750.18630.426504
12-0.297374-2.03870.023564
130.0717190.49170.312616
14-0.037783-0.2590.398374
150.0008440.00580.497704
160.0226070.1550.438748
17-0.052208-0.35790.361003
18-0.003003-0.02060.491831
190.0818480.56110.288691
200.03620.24820.40254
210.0079580.05460.478361
22-0.11322-0.77620.220761
23-0.040935-0.28060.390112
24-0.306398-2.10060.020536
250.0820820.56270.288149
26-0.004344-0.02980.488184
27-0.08112-0.55610.29038
28-0.189448-1.29880.100176
29-0.055875-0.38310.351702
300.0862540.59130.278568
310.0185810.12740.449589
320.0972740.66690.254055
330.0133120.09130.463835
34-0.054054-0.37060.356309
350.073640.50480.308012
36-0.093402-0.64030.262534

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.620469 & 4.2537 & 5e-05 \tabularnewline
2 & 0.216391 & 1.4835 & 0.072308 \tabularnewline
3 & -0.240132 & -1.6463 & 0.053191 \tabularnewline
4 & -0.159276 & -1.0919 & 0.140212 \tabularnewline
5 & 0.108312 & 0.7425 & 0.230725 \tabularnewline
6 & 0.186182 & 1.2764 & 0.104043 \tabularnewline
7 & 0.11714 & 0.8031 & 0.212987 \tabularnewline
8 & -0.066252 & -0.4542 & 0.325887 \tabularnewline
9 & -0.224871 & -1.5416 & 0.064934 \tabularnewline
10 & -0.153144 & -1.0499 & 0.149566 \tabularnewline
11 & 0.027175 & 0.1863 & 0.426504 \tabularnewline
12 & -0.297374 & -2.0387 & 0.023564 \tabularnewline
13 & 0.071719 & 0.4917 & 0.312616 \tabularnewline
14 & -0.037783 & -0.259 & 0.398374 \tabularnewline
15 & 0.000844 & 0.0058 & 0.497704 \tabularnewline
16 & 0.022607 & 0.155 & 0.438748 \tabularnewline
17 & -0.052208 & -0.3579 & 0.361003 \tabularnewline
18 & -0.003003 & -0.0206 & 0.491831 \tabularnewline
19 & 0.081848 & 0.5611 & 0.288691 \tabularnewline
20 & 0.0362 & 0.2482 & 0.40254 \tabularnewline
21 & 0.007958 & 0.0546 & 0.478361 \tabularnewline
22 & -0.11322 & -0.7762 & 0.220761 \tabularnewline
23 & -0.040935 & -0.2806 & 0.390112 \tabularnewline
24 & -0.306398 & -2.1006 & 0.020536 \tabularnewline
25 & 0.082082 & 0.5627 & 0.288149 \tabularnewline
26 & -0.004344 & -0.0298 & 0.488184 \tabularnewline
27 & -0.08112 & -0.5561 & 0.29038 \tabularnewline
28 & -0.189448 & -1.2988 & 0.100176 \tabularnewline
29 & -0.055875 & -0.3831 & 0.351702 \tabularnewline
30 & 0.086254 & 0.5913 & 0.278568 \tabularnewline
31 & 0.018581 & 0.1274 & 0.449589 \tabularnewline
32 & 0.097274 & 0.6669 & 0.254055 \tabularnewline
33 & 0.013312 & 0.0913 & 0.463835 \tabularnewline
34 & -0.054054 & -0.3706 & 0.356309 \tabularnewline
35 & 0.07364 & 0.5048 & 0.308012 \tabularnewline
36 & -0.093402 & -0.6403 & 0.262534 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66251&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.620469[/C][C]4.2537[/C][C]5e-05[/C][/ROW]
[ROW][C]2[/C][C]0.216391[/C][C]1.4835[/C][C]0.072308[/C][/ROW]
[ROW][C]3[/C][C]-0.240132[/C][C]-1.6463[/C][C]0.053191[/C][/ROW]
[ROW][C]4[/C][C]-0.159276[/C][C]-1.0919[/C][C]0.140212[/C][/ROW]
[ROW][C]5[/C][C]0.108312[/C][C]0.7425[/C][C]0.230725[/C][/ROW]
[ROW][C]6[/C][C]0.186182[/C][C]1.2764[/C][C]0.104043[/C][/ROW]
[ROW][C]7[/C][C]0.11714[/C][C]0.8031[/C][C]0.212987[/C][/ROW]
[ROW][C]8[/C][C]-0.066252[/C][C]-0.4542[/C][C]0.325887[/C][/ROW]
[ROW][C]9[/C][C]-0.224871[/C][C]-1.5416[/C][C]0.064934[/C][/ROW]
[ROW][C]10[/C][C]-0.153144[/C][C]-1.0499[/C][C]0.149566[/C][/ROW]
[ROW][C]11[/C][C]0.027175[/C][C]0.1863[/C][C]0.426504[/C][/ROW]
[ROW][C]12[/C][C]-0.297374[/C][C]-2.0387[/C][C]0.023564[/C][/ROW]
[ROW][C]13[/C][C]0.071719[/C][C]0.4917[/C][C]0.312616[/C][/ROW]
[ROW][C]14[/C][C]-0.037783[/C][C]-0.259[/C][C]0.398374[/C][/ROW]
[ROW][C]15[/C][C]0.000844[/C][C]0.0058[/C][C]0.497704[/C][/ROW]
[ROW][C]16[/C][C]0.022607[/C][C]0.155[/C][C]0.438748[/C][/ROW]
[ROW][C]17[/C][C]-0.052208[/C][C]-0.3579[/C][C]0.361003[/C][/ROW]
[ROW][C]18[/C][C]-0.003003[/C][C]-0.0206[/C][C]0.491831[/C][/ROW]
[ROW][C]19[/C][C]0.081848[/C][C]0.5611[/C][C]0.288691[/C][/ROW]
[ROW][C]20[/C][C]0.0362[/C][C]0.2482[/C][C]0.40254[/C][/ROW]
[ROW][C]21[/C][C]0.007958[/C][C]0.0546[/C][C]0.478361[/C][/ROW]
[ROW][C]22[/C][C]-0.11322[/C][C]-0.7762[/C][C]0.220761[/C][/ROW]
[ROW][C]23[/C][C]-0.040935[/C][C]-0.2806[/C][C]0.390112[/C][/ROW]
[ROW][C]24[/C][C]-0.306398[/C][C]-2.1006[/C][C]0.020536[/C][/ROW]
[ROW][C]25[/C][C]0.082082[/C][C]0.5627[/C][C]0.288149[/C][/ROW]
[ROW][C]26[/C][C]-0.004344[/C][C]-0.0298[/C][C]0.488184[/C][/ROW]
[ROW][C]27[/C][C]-0.08112[/C][C]-0.5561[/C][C]0.29038[/C][/ROW]
[ROW][C]28[/C][C]-0.189448[/C][C]-1.2988[/C][C]0.100176[/C][/ROW]
[ROW][C]29[/C][C]-0.055875[/C][C]-0.3831[/C][C]0.351702[/C][/ROW]
[ROW][C]30[/C][C]0.086254[/C][C]0.5913[/C][C]0.278568[/C][/ROW]
[ROW][C]31[/C][C]0.018581[/C][C]0.1274[/C][C]0.449589[/C][/ROW]
[ROW][C]32[/C][C]0.097274[/C][C]0.6669[/C][C]0.254055[/C][/ROW]
[ROW][C]33[/C][C]0.013312[/C][C]0.0913[/C][C]0.463835[/C][/ROW]
[ROW][C]34[/C][C]-0.054054[/C][C]-0.3706[/C][C]0.356309[/C][/ROW]
[ROW][C]35[/C][C]0.07364[/C][C]0.5048[/C][C]0.308012[/C][/ROW]
[ROW][C]36[/C][C]-0.093402[/C][C]-0.6403[/C][C]0.262534[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66251&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66251&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.6204694.25375e-05
20.2163911.48350.072308
3-0.240132-1.64630.053191
4-0.159276-1.09190.140212
50.1083120.74250.230725
60.1861821.27640.104043
70.117140.80310.212987
8-0.066252-0.45420.325887
9-0.224871-1.54160.064934
10-0.153144-1.04990.149566
110.0271750.18630.426504
12-0.297374-2.03870.023564
130.0717190.49170.312616
14-0.037783-0.2590.398374
150.0008440.00580.497704
160.0226070.1550.438748
17-0.052208-0.35790.361003
18-0.003003-0.02060.491831
190.0818480.56110.288691
200.03620.24820.40254
210.0079580.05460.478361
22-0.11322-0.77620.220761
23-0.040935-0.28060.390112
24-0.306398-2.10060.020536
250.0820820.56270.288149
26-0.004344-0.02980.488184
27-0.08112-0.55610.29038
28-0.189448-1.29880.100176
29-0.055875-0.38310.351702
300.0862540.59130.278568
310.0185810.12740.449589
320.0972740.66690.254055
330.0133120.09130.463835
34-0.054054-0.37060.356309
350.073640.50480.308012
36-0.093402-0.64030.262534



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