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 08:46:52 -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/t1259941661ku7zeklh2atbjg8.htm/, Retrieved Sun, 28 Apr 2024 00:03:32 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63794, Retrieved Sun, 28 Apr 2024 00:03:32 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact97
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [Workshop 8] [2009-11-28 18:23:35] [78762f311bef5a0e45c439762ada383c]
-   PD    [(Partial) Autocorrelation Function] [Oplossing ACF d=D...] [2009-12-04 15:46:52] [d1081bd6cdf1fed9ed45c42dbd523bf1] [Current]
-   P       [(Partial) Autocorrelation Function] [oplossing ACF d=D...] [2009-12-04 15:53:40] [4395c69e961f9a13a0559fd2f0a72538]
Feedback Forum

Post a new message
Dataseries X:
102.86
102.55
102.28
102.26
102.57
103.08
102.76
102.51
102.87
103.14
103.12
103.16
102.48
102.57
102.88
102.63
102.38
101.69
101.96
102.19
101.87
101.6
101.63
101.22
101.21
101.49
101.64
101.66
101.77
101.82
101.78
101.28
101.29
101.37
101.12
101.51
102.24
102.94
103.09
103.46
103.64
104.39
104.15
105.21
105.8
105.91
105.39
105.46
104.72
103.14
102.63
102.32
101.93
100.62
100.6
99.63
98.9
98.32
99.22
98.81




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63794&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.9085597.03770
20.7984686.18490
30.6458615.00283e-06
40.4851933.75830.000195
50.3050732.36310.010691
60.1462121.13250.130955
7-0.019383-0.15010.440579
8-0.164772-1.27630.10338
9-0.301259-2.33350.011494
10-0.413518-3.20310.001089
11-0.499993-3.87290.000134
12-0.549516-4.25653.7e-05
13-0.537942-4.16695e-05
14-0.503058-3.89670.000124
15-0.445705-3.45240.000512
16-0.389723-3.01880.001861
17-0.325513-2.52140.007181
18-0.280771-2.17480.016797
19-0.224901-1.74210.04331
20-0.18503-1.43320.078491
21-0.130232-1.00880.158568
22-0.079988-0.61960.26894
23-0.037812-0.29290.385307
24-0.004531-0.03510.486058
250.0223150.17280.431676
260.0340120.26350.396551
270.0519170.40210.344503
280.0750530.58140.281587
290.0961950.74510.229552
300.1255370.97240.167376
310.1530551.18560.120235
320.183381.42050.080326
330.1968031.52440.066328
340.1971211.52690.066021
350.1903511.47450.072794
360.1771771.37240.087523

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.908559 & 7.0377 & 0 \tabularnewline
2 & 0.798468 & 6.1849 & 0 \tabularnewline
3 & 0.645861 & 5.0028 & 3e-06 \tabularnewline
4 & 0.485193 & 3.7583 & 0.000195 \tabularnewline
5 & 0.305073 & 2.3631 & 0.010691 \tabularnewline
6 & 0.146212 & 1.1325 & 0.130955 \tabularnewline
7 & -0.019383 & -0.1501 & 0.440579 \tabularnewline
8 & -0.164772 & -1.2763 & 0.10338 \tabularnewline
9 & -0.301259 & -2.3335 & 0.011494 \tabularnewline
10 & -0.413518 & -3.2031 & 0.001089 \tabularnewline
11 & -0.499993 & -3.8729 & 0.000134 \tabularnewline
12 & -0.549516 & -4.2565 & 3.7e-05 \tabularnewline
13 & -0.537942 & -4.1669 & 5e-05 \tabularnewline
14 & -0.503058 & -3.8967 & 0.000124 \tabularnewline
15 & -0.445705 & -3.4524 & 0.000512 \tabularnewline
16 & -0.389723 & -3.0188 & 0.001861 \tabularnewline
17 & -0.325513 & -2.5214 & 0.007181 \tabularnewline
18 & -0.280771 & -2.1748 & 0.016797 \tabularnewline
19 & -0.224901 & -1.7421 & 0.04331 \tabularnewline
20 & -0.18503 & -1.4332 & 0.078491 \tabularnewline
21 & -0.130232 & -1.0088 & 0.158568 \tabularnewline
22 & -0.079988 & -0.6196 & 0.26894 \tabularnewline
23 & -0.037812 & -0.2929 & 0.385307 \tabularnewline
24 & -0.004531 & -0.0351 & 0.486058 \tabularnewline
25 & 0.022315 & 0.1728 & 0.431676 \tabularnewline
26 & 0.034012 & 0.2635 & 0.396551 \tabularnewline
27 & 0.051917 & 0.4021 & 0.344503 \tabularnewline
28 & 0.075053 & 0.5814 & 0.281587 \tabularnewline
29 & 0.096195 & 0.7451 & 0.229552 \tabularnewline
30 & 0.125537 & 0.9724 & 0.167376 \tabularnewline
31 & 0.153055 & 1.1856 & 0.120235 \tabularnewline
32 & 0.18338 & 1.4205 & 0.080326 \tabularnewline
33 & 0.196803 & 1.5244 & 0.066328 \tabularnewline
34 & 0.197121 & 1.5269 & 0.066021 \tabularnewline
35 & 0.190351 & 1.4745 & 0.072794 \tabularnewline
36 & 0.177177 & 1.3724 & 0.087523 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63794&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.908559[/C][C]7.0377[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.798468[/C][C]6.1849[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.645861[/C][C]5.0028[/C][C]3e-06[/C][/ROW]
[ROW][C]4[/C][C]0.485193[/C][C]3.7583[/C][C]0.000195[/C][/ROW]
[ROW][C]5[/C][C]0.305073[/C][C]2.3631[/C][C]0.010691[/C][/ROW]
[ROW][C]6[/C][C]0.146212[/C][C]1.1325[/C][C]0.130955[/C][/ROW]
[ROW][C]7[/C][C]-0.019383[/C][C]-0.1501[/C][C]0.440579[/C][/ROW]
[ROW][C]8[/C][C]-0.164772[/C][C]-1.2763[/C][C]0.10338[/C][/ROW]
[ROW][C]9[/C][C]-0.301259[/C][C]-2.3335[/C][C]0.011494[/C][/ROW]
[ROW][C]10[/C][C]-0.413518[/C][C]-3.2031[/C][C]0.001089[/C][/ROW]
[ROW][C]11[/C][C]-0.499993[/C][C]-3.8729[/C][C]0.000134[/C][/ROW]
[ROW][C]12[/C][C]-0.549516[/C][C]-4.2565[/C][C]3.7e-05[/C][/ROW]
[ROW][C]13[/C][C]-0.537942[/C][C]-4.1669[/C][C]5e-05[/C][/ROW]
[ROW][C]14[/C][C]-0.503058[/C][C]-3.8967[/C][C]0.000124[/C][/ROW]
[ROW][C]15[/C][C]-0.445705[/C][C]-3.4524[/C][C]0.000512[/C][/ROW]
[ROW][C]16[/C][C]-0.389723[/C][C]-3.0188[/C][C]0.001861[/C][/ROW]
[ROW][C]17[/C][C]-0.325513[/C][C]-2.5214[/C][C]0.007181[/C][/ROW]
[ROW][C]18[/C][C]-0.280771[/C][C]-2.1748[/C][C]0.016797[/C][/ROW]
[ROW][C]19[/C][C]-0.224901[/C][C]-1.7421[/C][C]0.04331[/C][/ROW]
[ROW][C]20[/C][C]-0.18503[/C][C]-1.4332[/C][C]0.078491[/C][/ROW]
[ROW][C]21[/C][C]-0.130232[/C][C]-1.0088[/C][C]0.158568[/C][/ROW]
[ROW][C]22[/C][C]-0.079988[/C][C]-0.6196[/C][C]0.26894[/C][/ROW]
[ROW][C]23[/C][C]-0.037812[/C][C]-0.2929[/C][C]0.385307[/C][/ROW]
[ROW][C]24[/C][C]-0.004531[/C][C]-0.0351[/C][C]0.486058[/C][/ROW]
[ROW][C]25[/C][C]0.022315[/C][C]0.1728[/C][C]0.431676[/C][/ROW]
[ROW][C]26[/C][C]0.034012[/C][C]0.2635[/C][C]0.396551[/C][/ROW]
[ROW][C]27[/C][C]0.051917[/C][C]0.4021[/C][C]0.344503[/C][/ROW]
[ROW][C]28[/C][C]0.075053[/C][C]0.5814[/C][C]0.281587[/C][/ROW]
[ROW][C]29[/C][C]0.096195[/C][C]0.7451[/C][C]0.229552[/C][/ROW]
[ROW][C]30[/C][C]0.125537[/C][C]0.9724[/C][C]0.167376[/C][/ROW]
[ROW][C]31[/C][C]0.153055[/C][C]1.1856[/C][C]0.120235[/C][/ROW]
[ROW][C]32[/C][C]0.18338[/C][C]1.4205[/C][C]0.080326[/C][/ROW]
[ROW][C]33[/C][C]0.196803[/C][C]1.5244[/C][C]0.066328[/C][/ROW]
[ROW][C]34[/C][C]0.197121[/C][C]1.5269[/C][C]0.066021[/C][/ROW]
[ROW][C]35[/C][C]0.190351[/C][C]1.4745[/C][C]0.072794[/C][/ROW]
[ROW][C]36[/C][C]0.177177[/C][C]1.3724[/C][C]0.087523[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63794&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63794&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.9085597.03770
20.7984686.18490
30.6458615.00283e-06
40.4851933.75830.000195
50.3050732.36310.010691
60.1462121.13250.130955
7-0.019383-0.15010.440579
8-0.164772-1.27630.10338
9-0.301259-2.33350.011494
10-0.413518-3.20310.001089
11-0.499993-3.87290.000134
12-0.549516-4.25653.7e-05
13-0.537942-4.16695e-05
14-0.503058-3.89670.000124
15-0.445705-3.45240.000512
16-0.389723-3.01880.001861
17-0.325513-2.52140.007181
18-0.280771-2.17480.016797
19-0.224901-1.74210.04331
20-0.18503-1.43320.078491
21-0.130232-1.00880.158568
22-0.079988-0.61960.26894
23-0.037812-0.29290.385307
24-0.004531-0.03510.486058
250.0223150.17280.431676
260.0340120.26350.396551
270.0519170.40210.344503
280.0750530.58140.281587
290.0961950.74510.229552
300.1255370.97240.167376
310.1530551.18560.120235
320.183381.42050.080326
330.1968031.52440.066328
340.1971211.52690.066021
350.1903511.47450.072794
360.1771771.37240.087523







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9085597.03770
2-0.15478-1.19890.117636
3-0.300892-2.33070.011574
4-0.112708-0.8730.193063
5-0.184042-1.42560.079586
60.0124720.09660.461681
7-0.16268-1.26010.106253
8-0.084747-0.65640.257022
9-0.112449-0.8710.193607
10-0.09263-0.71750.237922
11-0.02727-0.21120.41671
12-0.014997-0.11620.453955
130.2054031.5910.058427
14-0.056648-0.43880.331193
15-0.07253-0.56180.288168
16-0.152966-1.18490.12037
17-0.080589-0.62420.267419
18-0.143553-1.1120.135296
19-0.02802-0.2170.414456
20-0.100358-0.77740.219998
210.0098870.07660.469603
220.0063260.0490.480542
23-0.121834-0.94370.174548
240.0065530.05080.479843
25-0.019234-0.1490.441031
26-0.068341-0.52940.299251
270.004990.03870.484648
28-0.011934-0.09240.463327
29-0.063006-0.4880.31365
30-0.022491-0.17420.431142
31-0.007617-0.0590.476573
320.014250.11040.456239
33-0.033489-0.25940.398106
34-0.095733-0.74150.230628
35-0.0169-0.13090.448143
36-0.048315-0.37420.35477

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.908559 & 7.0377 & 0 \tabularnewline
2 & -0.15478 & -1.1989 & 0.117636 \tabularnewline
3 & -0.300892 & -2.3307 & 0.011574 \tabularnewline
4 & -0.112708 & -0.873 & 0.193063 \tabularnewline
5 & -0.184042 & -1.4256 & 0.079586 \tabularnewline
6 & 0.012472 & 0.0966 & 0.461681 \tabularnewline
7 & -0.16268 & -1.2601 & 0.106253 \tabularnewline
8 & -0.084747 & -0.6564 & 0.257022 \tabularnewline
9 & -0.112449 & -0.871 & 0.193607 \tabularnewline
10 & -0.09263 & -0.7175 & 0.237922 \tabularnewline
11 & -0.02727 & -0.2112 & 0.41671 \tabularnewline
12 & -0.014997 & -0.1162 & 0.453955 \tabularnewline
13 & 0.205403 & 1.591 & 0.058427 \tabularnewline
14 & -0.056648 & -0.4388 & 0.331193 \tabularnewline
15 & -0.07253 & -0.5618 & 0.288168 \tabularnewline
16 & -0.152966 & -1.1849 & 0.12037 \tabularnewline
17 & -0.080589 & -0.6242 & 0.267419 \tabularnewline
18 & -0.143553 & -1.112 & 0.135296 \tabularnewline
19 & -0.02802 & -0.217 & 0.414456 \tabularnewline
20 & -0.100358 & -0.7774 & 0.219998 \tabularnewline
21 & 0.009887 & 0.0766 & 0.469603 \tabularnewline
22 & 0.006326 & 0.049 & 0.480542 \tabularnewline
23 & -0.121834 & -0.9437 & 0.174548 \tabularnewline
24 & 0.006553 & 0.0508 & 0.479843 \tabularnewline
25 & -0.019234 & -0.149 & 0.441031 \tabularnewline
26 & -0.068341 & -0.5294 & 0.299251 \tabularnewline
27 & 0.00499 & 0.0387 & 0.484648 \tabularnewline
28 & -0.011934 & -0.0924 & 0.463327 \tabularnewline
29 & -0.063006 & -0.488 & 0.31365 \tabularnewline
30 & -0.022491 & -0.1742 & 0.431142 \tabularnewline
31 & -0.007617 & -0.059 & 0.476573 \tabularnewline
32 & 0.01425 & 0.1104 & 0.456239 \tabularnewline
33 & -0.033489 & -0.2594 & 0.398106 \tabularnewline
34 & -0.095733 & -0.7415 & 0.230628 \tabularnewline
35 & -0.0169 & -0.1309 & 0.448143 \tabularnewline
36 & -0.048315 & -0.3742 & 0.35477 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63794&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.908559[/C][C]7.0377[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.15478[/C][C]-1.1989[/C][C]0.117636[/C][/ROW]
[ROW][C]3[/C][C]-0.300892[/C][C]-2.3307[/C][C]0.011574[/C][/ROW]
[ROW][C]4[/C][C]-0.112708[/C][C]-0.873[/C][C]0.193063[/C][/ROW]
[ROW][C]5[/C][C]-0.184042[/C][C]-1.4256[/C][C]0.079586[/C][/ROW]
[ROW][C]6[/C][C]0.012472[/C][C]0.0966[/C][C]0.461681[/C][/ROW]
[ROW][C]7[/C][C]-0.16268[/C][C]-1.2601[/C][C]0.106253[/C][/ROW]
[ROW][C]8[/C][C]-0.084747[/C][C]-0.6564[/C][C]0.257022[/C][/ROW]
[ROW][C]9[/C][C]-0.112449[/C][C]-0.871[/C][C]0.193607[/C][/ROW]
[ROW][C]10[/C][C]-0.09263[/C][C]-0.7175[/C][C]0.237922[/C][/ROW]
[ROW][C]11[/C][C]-0.02727[/C][C]-0.2112[/C][C]0.41671[/C][/ROW]
[ROW][C]12[/C][C]-0.014997[/C][C]-0.1162[/C][C]0.453955[/C][/ROW]
[ROW][C]13[/C][C]0.205403[/C][C]1.591[/C][C]0.058427[/C][/ROW]
[ROW][C]14[/C][C]-0.056648[/C][C]-0.4388[/C][C]0.331193[/C][/ROW]
[ROW][C]15[/C][C]-0.07253[/C][C]-0.5618[/C][C]0.288168[/C][/ROW]
[ROW][C]16[/C][C]-0.152966[/C][C]-1.1849[/C][C]0.12037[/C][/ROW]
[ROW][C]17[/C][C]-0.080589[/C][C]-0.6242[/C][C]0.267419[/C][/ROW]
[ROW][C]18[/C][C]-0.143553[/C][C]-1.112[/C][C]0.135296[/C][/ROW]
[ROW][C]19[/C][C]-0.02802[/C][C]-0.217[/C][C]0.414456[/C][/ROW]
[ROW][C]20[/C][C]-0.100358[/C][C]-0.7774[/C][C]0.219998[/C][/ROW]
[ROW][C]21[/C][C]0.009887[/C][C]0.0766[/C][C]0.469603[/C][/ROW]
[ROW][C]22[/C][C]0.006326[/C][C]0.049[/C][C]0.480542[/C][/ROW]
[ROW][C]23[/C][C]-0.121834[/C][C]-0.9437[/C][C]0.174548[/C][/ROW]
[ROW][C]24[/C][C]0.006553[/C][C]0.0508[/C][C]0.479843[/C][/ROW]
[ROW][C]25[/C][C]-0.019234[/C][C]-0.149[/C][C]0.441031[/C][/ROW]
[ROW][C]26[/C][C]-0.068341[/C][C]-0.5294[/C][C]0.299251[/C][/ROW]
[ROW][C]27[/C][C]0.00499[/C][C]0.0387[/C][C]0.484648[/C][/ROW]
[ROW][C]28[/C][C]-0.011934[/C][C]-0.0924[/C][C]0.463327[/C][/ROW]
[ROW][C]29[/C][C]-0.063006[/C][C]-0.488[/C][C]0.31365[/C][/ROW]
[ROW][C]30[/C][C]-0.022491[/C][C]-0.1742[/C][C]0.431142[/C][/ROW]
[ROW][C]31[/C][C]-0.007617[/C][C]-0.059[/C][C]0.476573[/C][/ROW]
[ROW][C]32[/C][C]0.01425[/C][C]0.1104[/C][C]0.456239[/C][/ROW]
[ROW][C]33[/C][C]-0.033489[/C][C]-0.2594[/C][C]0.398106[/C][/ROW]
[ROW][C]34[/C][C]-0.095733[/C][C]-0.7415[/C][C]0.230628[/C][/ROW]
[ROW][C]35[/C][C]-0.0169[/C][C]-0.1309[/C][C]0.448143[/C][/ROW]
[ROW][C]36[/C][C]-0.048315[/C][C]-0.3742[/C][C]0.35477[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63794&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63794&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.9085597.03770
2-0.15478-1.19890.117636
3-0.300892-2.33070.011574
4-0.112708-0.8730.193063
5-0.184042-1.42560.079586
60.0124720.09660.461681
7-0.16268-1.26010.106253
8-0.084747-0.65640.257022
9-0.112449-0.8710.193607
10-0.09263-0.71750.237922
11-0.02727-0.21120.41671
12-0.014997-0.11620.453955
130.2054031.5910.058427
14-0.056648-0.43880.331193
15-0.07253-0.56180.288168
16-0.152966-1.18490.12037
17-0.080589-0.62420.267419
18-0.143553-1.1120.135296
19-0.02802-0.2170.414456
20-0.100358-0.77740.219998
210.0098870.07660.469603
220.0063260.0490.480542
23-0.121834-0.94370.174548
240.0065530.05080.479843
25-0.019234-0.1490.441031
26-0.068341-0.52940.299251
270.004990.03870.484648
28-0.011934-0.09240.463327
29-0.063006-0.4880.31365
30-0.022491-0.17420.431142
31-0.007617-0.0590.476573
320.014250.11040.456239
33-0.033489-0.25940.398106
34-0.095733-0.74150.230628
35-0.0169-0.13090.448143
36-0.048315-0.37420.35477



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