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 computationThu, 03 Dec 2009 12:35:20 -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/03/t1259869046qrj6xpvyvimmhs1.htm/, Retrieved Thu, 28 Mar 2024 11:57:44 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63091, Retrieved Thu, 28 Mar 2024 11:57:44 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact135
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:46:03] [b98453cac15ba1066b407e146608df68]
-   PD    [(Partial) Autocorrelation Function] [] [2009-12-03 19:10:41] [5edbdb7a459c4059b6c3b063ba86821c]
-   P         [(Partial) Autocorrelation Function] [] [2009-12-03 19:35:20] [24029b2c7217429de6ff94b5379eb52c] [Current]
Feedback Forum

Post a new message
Dataseries X:
19
18
19
19
22
23
20
14
14
14
15
11
17
16
20
24
23
20
21
19
23
23
23
23
27
26
17
24
26
24
27
27
26
24
23
23
24
17
21
19
22
22
18
16
14
12
14
16
8
3
0
5
1
1
3
6
7
8
14
14
13




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63091&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.8915936.96360
20.8116176.33890
30.7494895.85370
40.6771925.2891e-06
50.5850234.56921.2e-05
60.502873.92750.000111
70.4215323.29230.000828
80.3408512.66210.004957
90.2537091.98150.026022
100.1930531.50780.068385
110.1378951.0770.142863
120.0581030.45380.325791
13-0.012414-0.0970.461539
14-0.07236-0.56520.287022
15-0.086272-0.67380.25149
16-0.129747-1.01340.157447
17-0.18768-1.46580.073915
18-0.22211-1.73470.04392
19-0.259531-2.0270.023519
20-0.299378-2.33820.011335
21-0.348923-2.72520.004188
22-0.34443-2.69010.004601
23-0.325563-2.54270.006776
24-0.327367-2.55680.006534
25-0.327975-2.56160.006454
26-0.290942-2.27230.013302
27-0.2879-2.24860.014082
28-0.290684-2.27030.013366
29-0.288305-2.25170.013976
30-0.257574-2.01170.024336
31-0.226606-1.76980.040875
32-0.229475-1.79230.039026
33-0.212234-1.65760.051267
34-0.183034-1.42950.078975
35-0.159962-1.24930.108156
36-0.126806-0.99040.162948

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.891593 & 6.9636 & 0 \tabularnewline
2 & 0.811617 & 6.3389 & 0 \tabularnewline
3 & 0.749489 & 5.8537 & 0 \tabularnewline
4 & 0.677192 & 5.289 & 1e-06 \tabularnewline
5 & 0.585023 & 4.5692 & 1.2e-05 \tabularnewline
6 & 0.50287 & 3.9275 & 0.000111 \tabularnewline
7 & 0.421532 & 3.2923 & 0.000828 \tabularnewline
8 & 0.340851 & 2.6621 & 0.004957 \tabularnewline
9 & 0.253709 & 1.9815 & 0.026022 \tabularnewline
10 & 0.193053 & 1.5078 & 0.068385 \tabularnewline
11 & 0.137895 & 1.077 & 0.142863 \tabularnewline
12 & 0.058103 & 0.4538 & 0.325791 \tabularnewline
13 & -0.012414 & -0.097 & 0.461539 \tabularnewline
14 & -0.07236 & -0.5652 & 0.287022 \tabularnewline
15 & -0.086272 & -0.6738 & 0.25149 \tabularnewline
16 & -0.129747 & -1.0134 & 0.157447 \tabularnewline
17 & -0.18768 & -1.4658 & 0.073915 \tabularnewline
18 & -0.22211 & -1.7347 & 0.04392 \tabularnewline
19 & -0.259531 & -2.027 & 0.023519 \tabularnewline
20 & -0.299378 & -2.3382 & 0.011335 \tabularnewline
21 & -0.348923 & -2.7252 & 0.004188 \tabularnewline
22 & -0.34443 & -2.6901 & 0.004601 \tabularnewline
23 & -0.325563 & -2.5427 & 0.006776 \tabularnewline
24 & -0.327367 & -2.5568 & 0.006534 \tabularnewline
25 & -0.327975 & -2.5616 & 0.006454 \tabularnewline
26 & -0.290942 & -2.2723 & 0.013302 \tabularnewline
27 & -0.2879 & -2.2486 & 0.014082 \tabularnewline
28 & -0.290684 & -2.2703 & 0.013366 \tabularnewline
29 & -0.288305 & -2.2517 & 0.013976 \tabularnewline
30 & -0.257574 & -2.0117 & 0.024336 \tabularnewline
31 & -0.226606 & -1.7698 & 0.040875 \tabularnewline
32 & -0.229475 & -1.7923 & 0.039026 \tabularnewline
33 & -0.212234 & -1.6576 & 0.051267 \tabularnewline
34 & -0.183034 & -1.4295 & 0.078975 \tabularnewline
35 & -0.159962 & -1.2493 & 0.108156 \tabularnewline
36 & -0.126806 & -0.9904 & 0.162948 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63091&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.891593[/C][C]6.9636[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.811617[/C][C]6.3389[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.749489[/C][C]5.8537[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.677192[/C][C]5.289[/C][C]1e-06[/C][/ROW]
[ROW][C]5[/C][C]0.585023[/C][C]4.5692[/C][C]1.2e-05[/C][/ROW]
[ROW][C]6[/C][C]0.50287[/C][C]3.9275[/C][C]0.000111[/C][/ROW]
[ROW][C]7[/C][C]0.421532[/C][C]3.2923[/C][C]0.000828[/C][/ROW]
[ROW][C]8[/C][C]0.340851[/C][C]2.6621[/C][C]0.004957[/C][/ROW]
[ROW][C]9[/C][C]0.253709[/C][C]1.9815[/C][C]0.026022[/C][/ROW]
[ROW][C]10[/C][C]0.193053[/C][C]1.5078[/C][C]0.068385[/C][/ROW]
[ROW][C]11[/C][C]0.137895[/C][C]1.077[/C][C]0.142863[/C][/ROW]
[ROW][C]12[/C][C]0.058103[/C][C]0.4538[/C][C]0.325791[/C][/ROW]
[ROW][C]13[/C][C]-0.012414[/C][C]-0.097[/C][C]0.461539[/C][/ROW]
[ROW][C]14[/C][C]-0.07236[/C][C]-0.5652[/C][C]0.287022[/C][/ROW]
[ROW][C]15[/C][C]-0.086272[/C][C]-0.6738[/C][C]0.25149[/C][/ROW]
[ROW][C]16[/C][C]-0.129747[/C][C]-1.0134[/C][C]0.157447[/C][/ROW]
[ROW][C]17[/C][C]-0.18768[/C][C]-1.4658[/C][C]0.073915[/C][/ROW]
[ROW][C]18[/C][C]-0.22211[/C][C]-1.7347[/C][C]0.04392[/C][/ROW]
[ROW][C]19[/C][C]-0.259531[/C][C]-2.027[/C][C]0.023519[/C][/ROW]
[ROW][C]20[/C][C]-0.299378[/C][C]-2.3382[/C][C]0.011335[/C][/ROW]
[ROW][C]21[/C][C]-0.348923[/C][C]-2.7252[/C][C]0.004188[/C][/ROW]
[ROW][C]22[/C][C]-0.34443[/C][C]-2.6901[/C][C]0.004601[/C][/ROW]
[ROW][C]23[/C][C]-0.325563[/C][C]-2.5427[/C][C]0.006776[/C][/ROW]
[ROW][C]24[/C][C]-0.327367[/C][C]-2.5568[/C][C]0.006534[/C][/ROW]
[ROW][C]25[/C][C]-0.327975[/C][C]-2.5616[/C][C]0.006454[/C][/ROW]
[ROW][C]26[/C][C]-0.290942[/C][C]-2.2723[/C][C]0.013302[/C][/ROW]
[ROW][C]27[/C][C]-0.2879[/C][C]-2.2486[/C][C]0.014082[/C][/ROW]
[ROW][C]28[/C][C]-0.290684[/C][C]-2.2703[/C][C]0.013366[/C][/ROW]
[ROW][C]29[/C][C]-0.288305[/C][C]-2.2517[/C][C]0.013976[/C][/ROW]
[ROW][C]30[/C][C]-0.257574[/C][C]-2.0117[/C][C]0.024336[/C][/ROW]
[ROW][C]31[/C][C]-0.226606[/C][C]-1.7698[/C][C]0.040875[/C][/ROW]
[ROW][C]32[/C][C]-0.229475[/C][C]-1.7923[/C][C]0.039026[/C][/ROW]
[ROW][C]33[/C][C]-0.212234[/C][C]-1.6576[/C][C]0.051267[/C][/ROW]
[ROW][C]34[/C][C]-0.183034[/C][C]-1.4295[/C][C]0.078975[/C][/ROW]
[ROW][C]35[/C][C]-0.159962[/C][C]-1.2493[/C][C]0.108156[/C][/ROW]
[ROW][C]36[/C][C]-0.126806[/C][C]-0.9904[/C][C]0.162948[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63091&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63091&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.8915936.96360
20.8116176.33890
30.7494895.85370
40.6771925.2891e-06
50.5850234.56921.2e-05
60.502873.92750.000111
70.4215323.29230.000828
80.3408512.66210.004957
90.2537091.98150.026022
100.1930531.50780.068385
110.1378951.0770.142863
120.0581030.45380.325791
13-0.012414-0.0970.461539
14-0.07236-0.56520.287022
15-0.086272-0.67380.25149
16-0.129747-1.01340.157447
17-0.18768-1.46580.073915
18-0.22211-1.73470.04392
19-0.259531-2.0270.023519
20-0.299378-2.33820.011335
21-0.348923-2.72520.004188
22-0.34443-2.69010.004601
23-0.325563-2.54270.006776
24-0.327367-2.55680.006534
25-0.327975-2.56160.006454
26-0.290942-2.27230.013302
27-0.2879-2.24860.014082
28-0.290684-2.27030.013366
29-0.288305-2.25170.013976
30-0.257574-2.01170.024336
31-0.226606-1.76980.040875
32-0.229475-1.79230.039026
33-0.212234-1.65760.051267
34-0.183034-1.42950.078975
35-0.159962-1.24930.108156
36-0.126806-0.99040.162948







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8915936.96360
20.0813320.63520.263829
30.0598690.46760.32087
4-0.062267-0.48630.314242
5-0.142492-1.11290.13506
6-0.039865-0.31140.378296
7-0.058075-0.45360.32587
8-0.04177-0.32620.372683
9-0.083626-0.65310.25806
100.054880.42860.334853
110.0026860.0210.491667
12-0.146163-1.14160.129047
13-0.051471-0.4020.344545
14-0.052842-0.41270.340634
150.1939851.51510.06746
16-0.107173-0.8370.202916
17-0.139568-1.09010.139986
18-0.013038-0.10180.459612
19-0.087238-0.68140.249113
20-0.016661-0.13010.448446
21-0.16239-1.26830.104755
220.2033381.58810.058715
230.1245110.97250.167331
24-0.03487-0.27230.39314
25-0.077812-0.60770.272812
260.0128360.10030.460236
27-0.099463-0.77680.220129
28-0.086325-0.67420.25136
29-0.026596-0.20770.418071
300.0767580.59950.275531
310.0977370.76330.224099
32-0.122724-0.95850.170795
33-0.070678-0.5520.291479
340.0029980.02340.490699
350.0368250.28760.38731
360.1806551.4110.081668

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.891593 & 6.9636 & 0 \tabularnewline
2 & 0.081332 & 0.6352 & 0.263829 \tabularnewline
3 & 0.059869 & 0.4676 & 0.32087 \tabularnewline
4 & -0.062267 & -0.4863 & 0.314242 \tabularnewline
5 & -0.142492 & -1.1129 & 0.13506 \tabularnewline
6 & -0.039865 & -0.3114 & 0.378296 \tabularnewline
7 & -0.058075 & -0.4536 & 0.32587 \tabularnewline
8 & -0.04177 & -0.3262 & 0.372683 \tabularnewline
9 & -0.083626 & -0.6531 & 0.25806 \tabularnewline
10 & 0.05488 & 0.4286 & 0.334853 \tabularnewline
11 & 0.002686 & 0.021 & 0.491667 \tabularnewline
12 & -0.146163 & -1.1416 & 0.129047 \tabularnewline
13 & -0.051471 & -0.402 & 0.344545 \tabularnewline
14 & -0.052842 & -0.4127 & 0.340634 \tabularnewline
15 & 0.193985 & 1.5151 & 0.06746 \tabularnewline
16 & -0.107173 & -0.837 & 0.202916 \tabularnewline
17 & -0.139568 & -1.0901 & 0.139986 \tabularnewline
18 & -0.013038 & -0.1018 & 0.459612 \tabularnewline
19 & -0.087238 & -0.6814 & 0.249113 \tabularnewline
20 & -0.016661 & -0.1301 & 0.448446 \tabularnewline
21 & -0.16239 & -1.2683 & 0.104755 \tabularnewline
22 & 0.203338 & 1.5881 & 0.058715 \tabularnewline
23 & 0.124511 & 0.9725 & 0.167331 \tabularnewline
24 & -0.03487 & -0.2723 & 0.39314 \tabularnewline
25 & -0.077812 & -0.6077 & 0.272812 \tabularnewline
26 & 0.012836 & 0.1003 & 0.460236 \tabularnewline
27 & -0.099463 & -0.7768 & 0.220129 \tabularnewline
28 & -0.086325 & -0.6742 & 0.25136 \tabularnewline
29 & -0.026596 & -0.2077 & 0.418071 \tabularnewline
30 & 0.076758 & 0.5995 & 0.275531 \tabularnewline
31 & 0.097737 & 0.7633 & 0.224099 \tabularnewline
32 & -0.122724 & -0.9585 & 0.170795 \tabularnewline
33 & -0.070678 & -0.552 & 0.291479 \tabularnewline
34 & 0.002998 & 0.0234 & 0.490699 \tabularnewline
35 & 0.036825 & 0.2876 & 0.38731 \tabularnewline
36 & 0.180655 & 1.411 & 0.081668 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63091&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.891593[/C][C]6.9636[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.081332[/C][C]0.6352[/C][C]0.263829[/C][/ROW]
[ROW][C]3[/C][C]0.059869[/C][C]0.4676[/C][C]0.32087[/C][/ROW]
[ROW][C]4[/C][C]-0.062267[/C][C]-0.4863[/C][C]0.314242[/C][/ROW]
[ROW][C]5[/C][C]-0.142492[/C][C]-1.1129[/C][C]0.13506[/C][/ROW]
[ROW][C]6[/C][C]-0.039865[/C][C]-0.3114[/C][C]0.378296[/C][/ROW]
[ROW][C]7[/C][C]-0.058075[/C][C]-0.4536[/C][C]0.32587[/C][/ROW]
[ROW][C]8[/C][C]-0.04177[/C][C]-0.3262[/C][C]0.372683[/C][/ROW]
[ROW][C]9[/C][C]-0.083626[/C][C]-0.6531[/C][C]0.25806[/C][/ROW]
[ROW][C]10[/C][C]0.05488[/C][C]0.4286[/C][C]0.334853[/C][/ROW]
[ROW][C]11[/C][C]0.002686[/C][C]0.021[/C][C]0.491667[/C][/ROW]
[ROW][C]12[/C][C]-0.146163[/C][C]-1.1416[/C][C]0.129047[/C][/ROW]
[ROW][C]13[/C][C]-0.051471[/C][C]-0.402[/C][C]0.344545[/C][/ROW]
[ROW][C]14[/C][C]-0.052842[/C][C]-0.4127[/C][C]0.340634[/C][/ROW]
[ROW][C]15[/C][C]0.193985[/C][C]1.5151[/C][C]0.06746[/C][/ROW]
[ROW][C]16[/C][C]-0.107173[/C][C]-0.837[/C][C]0.202916[/C][/ROW]
[ROW][C]17[/C][C]-0.139568[/C][C]-1.0901[/C][C]0.139986[/C][/ROW]
[ROW][C]18[/C][C]-0.013038[/C][C]-0.1018[/C][C]0.459612[/C][/ROW]
[ROW][C]19[/C][C]-0.087238[/C][C]-0.6814[/C][C]0.249113[/C][/ROW]
[ROW][C]20[/C][C]-0.016661[/C][C]-0.1301[/C][C]0.448446[/C][/ROW]
[ROW][C]21[/C][C]-0.16239[/C][C]-1.2683[/C][C]0.104755[/C][/ROW]
[ROW][C]22[/C][C]0.203338[/C][C]1.5881[/C][C]0.058715[/C][/ROW]
[ROW][C]23[/C][C]0.124511[/C][C]0.9725[/C][C]0.167331[/C][/ROW]
[ROW][C]24[/C][C]-0.03487[/C][C]-0.2723[/C][C]0.39314[/C][/ROW]
[ROW][C]25[/C][C]-0.077812[/C][C]-0.6077[/C][C]0.272812[/C][/ROW]
[ROW][C]26[/C][C]0.012836[/C][C]0.1003[/C][C]0.460236[/C][/ROW]
[ROW][C]27[/C][C]-0.099463[/C][C]-0.7768[/C][C]0.220129[/C][/ROW]
[ROW][C]28[/C][C]-0.086325[/C][C]-0.6742[/C][C]0.25136[/C][/ROW]
[ROW][C]29[/C][C]-0.026596[/C][C]-0.2077[/C][C]0.418071[/C][/ROW]
[ROW][C]30[/C][C]0.076758[/C][C]0.5995[/C][C]0.275531[/C][/ROW]
[ROW][C]31[/C][C]0.097737[/C][C]0.7633[/C][C]0.224099[/C][/ROW]
[ROW][C]32[/C][C]-0.122724[/C][C]-0.9585[/C][C]0.170795[/C][/ROW]
[ROW][C]33[/C][C]-0.070678[/C][C]-0.552[/C][C]0.291479[/C][/ROW]
[ROW][C]34[/C][C]0.002998[/C][C]0.0234[/C][C]0.490699[/C][/ROW]
[ROW][C]35[/C][C]0.036825[/C][C]0.2876[/C][C]0.38731[/C][/ROW]
[ROW][C]36[/C][C]0.180655[/C][C]1.411[/C][C]0.081668[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63091&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63091&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.8915936.96360
20.0813320.63520.263829
30.0598690.46760.32087
4-0.062267-0.48630.314242
5-0.142492-1.11290.13506
6-0.039865-0.31140.378296
7-0.058075-0.45360.32587
8-0.04177-0.32620.372683
9-0.083626-0.65310.25806
100.054880.42860.334853
110.0026860.0210.491667
12-0.146163-1.14160.129047
13-0.051471-0.4020.344545
14-0.052842-0.41270.340634
150.1939851.51510.06746
16-0.107173-0.8370.202916
17-0.139568-1.09010.139986
18-0.013038-0.10180.459612
19-0.087238-0.68140.249113
20-0.016661-0.13010.448446
21-0.16239-1.26830.104755
220.2033381.58810.058715
230.1245110.97250.167331
24-0.03487-0.27230.39314
25-0.077812-0.60770.272812
260.0128360.10030.460236
27-0.099463-0.77680.220129
28-0.086325-0.67420.25136
29-0.026596-0.20770.418071
300.0767580.59950.275531
310.0977370.76330.224099
32-0.122724-0.95850.170795
33-0.070678-0.5520.291479
340.0029980.02340.490699
350.0368250.28760.38731
360.1806551.4110.081668



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