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, 10 Dec 2009 02:02:45 -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/10/t1260435944mi6o7npbsayydr8.htm/, Retrieved Sat, 20 Apr 2024 04:41:16 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=65240, Retrieved Sat, 20 Apr 2024 04:41:16 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact155
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-10 09:02:45] [9a3898f49d4e2f0208d1968305d88f0a] [Current]
-   P         [(Partial) Autocorrelation Function] [voedingsnijverhei...] [2009-12-11 08:42:42] [b5ed7ca2d893a9c0b68720eb2614783c]
Feedback Forum

Post a new message
Dataseries X:
46
43
59
57
44
63
52
53
55
57
62
69
60
54
56
66
67
65
63
63
70
71
66
66
70
70
67
65
75
80
76
75
77
74
81
75
79
82
77
72
81
79
76
75
71
69
69
57
74
57
61
59
67
57
55
63
61
65
58
55
50




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65240&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.432461-3.34980.000701
2-0.038661-0.29950.382809
30.0142250.11020.456313
40.0393320.30470.380839
50.0393770.3050.380706
60.0537230.41610.339398
7-0.089776-0.69540.244745
80.0334650.25920.398178
90.1275880.98830.163489
10-0.08474-0.65640.257041
11-0.042286-0.32750.372199
120.0580270.44950.327354
13-0.011343-0.08790.465138
140.103410.8010.213143
15-0.045808-0.35480.361981
16-0.009965-0.07720.469365
17-0.046327-0.35880.360484
180.047140.36510.358144
190.0294850.22840.410058
200.0028760.02230.491151
21-0.017639-0.13660.445891
22-0.053743-0.41630.339341
230.0962930.74590.229326
24-0.051941-0.40230.344434
25-0.074003-0.57320.284318
260.0650380.50380.308129
270.0725380.56190.288145
28-0.087652-0.67890.249891
290.0496550.38460.350938
30-0.101322-0.78480.217818
310.0226920.17580.430534
320.0618870.47940.316706
33-0.060324-0.46730.320999
34-0.062319-0.48270.315526
350.1115360.8640.195528
36-0.11378-0.88130.190826

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.432461 & -3.3498 & 0.000701 \tabularnewline
2 & -0.038661 & -0.2995 & 0.382809 \tabularnewline
3 & 0.014225 & 0.1102 & 0.456313 \tabularnewline
4 & 0.039332 & 0.3047 & 0.380839 \tabularnewline
5 & 0.039377 & 0.305 & 0.380706 \tabularnewline
6 & 0.053723 & 0.4161 & 0.339398 \tabularnewline
7 & -0.089776 & -0.6954 & 0.244745 \tabularnewline
8 & 0.033465 & 0.2592 & 0.398178 \tabularnewline
9 & 0.127588 & 0.9883 & 0.163489 \tabularnewline
10 & -0.08474 & -0.6564 & 0.257041 \tabularnewline
11 & -0.042286 & -0.3275 & 0.372199 \tabularnewline
12 & 0.058027 & 0.4495 & 0.327354 \tabularnewline
13 & -0.011343 & -0.0879 & 0.465138 \tabularnewline
14 & 0.10341 & 0.801 & 0.213143 \tabularnewline
15 & -0.045808 & -0.3548 & 0.361981 \tabularnewline
16 & -0.009965 & -0.0772 & 0.469365 \tabularnewline
17 & -0.046327 & -0.3588 & 0.360484 \tabularnewline
18 & 0.04714 & 0.3651 & 0.358144 \tabularnewline
19 & 0.029485 & 0.2284 & 0.410058 \tabularnewline
20 & 0.002876 & 0.0223 & 0.491151 \tabularnewline
21 & -0.017639 & -0.1366 & 0.445891 \tabularnewline
22 & -0.053743 & -0.4163 & 0.339341 \tabularnewline
23 & 0.096293 & 0.7459 & 0.229326 \tabularnewline
24 & -0.051941 & -0.4023 & 0.344434 \tabularnewline
25 & -0.074003 & -0.5732 & 0.284318 \tabularnewline
26 & 0.065038 & 0.5038 & 0.308129 \tabularnewline
27 & 0.072538 & 0.5619 & 0.288145 \tabularnewline
28 & -0.087652 & -0.6789 & 0.249891 \tabularnewline
29 & 0.049655 & 0.3846 & 0.350938 \tabularnewline
30 & -0.101322 & -0.7848 & 0.217818 \tabularnewline
31 & 0.022692 & 0.1758 & 0.430534 \tabularnewline
32 & 0.061887 & 0.4794 & 0.316706 \tabularnewline
33 & -0.060324 & -0.4673 & 0.320999 \tabularnewline
34 & -0.062319 & -0.4827 & 0.315526 \tabularnewline
35 & 0.111536 & 0.864 & 0.195528 \tabularnewline
36 & -0.11378 & -0.8813 & 0.190826 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65240&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.432461[/C][C]-3.3498[/C][C]0.000701[/C][/ROW]
[ROW][C]2[/C][C]-0.038661[/C][C]-0.2995[/C][C]0.382809[/C][/ROW]
[ROW][C]3[/C][C]0.014225[/C][C]0.1102[/C][C]0.456313[/C][/ROW]
[ROW][C]4[/C][C]0.039332[/C][C]0.3047[/C][C]0.380839[/C][/ROW]
[ROW][C]5[/C][C]0.039377[/C][C]0.305[/C][C]0.380706[/C][/ROW]
[ROW][C]6[/C][C]0.053723[/C][C]0.4161[/C][C]0.339398[/C][/ROW]
[ROW][C]7[/C][C]-0.089776[/C][C]-0.6954[/C][C]0.244745[/C][/ROW]
[ROW][C]8[/C][C]0.033465[/C][C]0.2592[/C][C]0.398178[/C][/ROW]
[ROW][C]9[/C][C]0.127588[/C][C]0.9883[/C][C]0.163489[/C][/ROW]
[ROW][C]10[/C][C]-0.08474[/C][C]-0.6564[/C][C]0.257041[/C][/ROW]
[ROW][C]11[/C][C]-0.042286[/C][C]-0.3275[/C][C]0.372199[/C][/ROW]
[ROW][C]12[/C][C]0.058027[/C][C]0.4495[/C][C]0.327354[/C][/ROW]
[ROW][C]13[/C][C]-0.011343[/C][C]-0.0879[/C][C]0.465138[/C][/ROW]
[ROW][C]14[/C][C]0.10341[/C][C]0.801[/C][C]0.213143[/C][/ROW]
[ROW][C]15[/C][C]-0.045808[/C][C]-0.3548[/C][C]0.361981[/C][/ROW]
[ROW][C]16[/C][C]-0.009965[/C][C]-0.0772[/C][C]0.469365[/C][/ROW]
[ROW][C]17[/C][C]-0.046327[/C][C]-0.3588[/C][C]0.360484[/C][/ROW]
[ROW][C]18[/C][C]0.04714[/C][C]0.3651[/C][C]0.358144[/C][/ROW]
[ROW][C]19[/C][C]0.029485[/C][C]0.2284[/C][C]0.410058[/C][/ROW]
[ROW][C]20[/C][C]0.002876[/C][C]0.0223[/C][C]0.491151[/C][/ROW]
[ROW][C]21[/C][C]-0.017639[/C][C]-0.1366[/C][C]0.445891[/C][/ROW]
[ROW][C]22[/C][C]-0.053743[/C][C]-0.4163[/C][C]0.339341[/C][/ROW]
[ROW][C]23[/C][C]0.096293[/C][C]0.7459[/C][C]0.229326[/C][/ROW]
[ROW][C]24[/C][C]-0.051941[/C][C]-0.4023[/C][C]0.344434[/C][/ROW]
[ROW][C]25[/C][C]-0.074003[/C][C]-0.5732[/C][C]0.284318[/C][/ROW]
[ROW][C]26[/C][C]0.065038[/C][C]0.5038[/C][C]0.308129[/C][/ROW]
[ROW][C]27[/C][C]0.072538[/C][C]0.5619[/C][C]0.288145[/C][/ROW]
[ROW][C]28[/C][C]-0.087652[/C][C]-0.6789[/C][C]0.249891[/C][/ROW]
[ROW][C]29[/C][C]0.049655[/C][C]0.3846[/C][C]0.350938[/C][/ROW]
[ROW][C]30[/C][C]-0.101322[/C][C]-0.7848[/C][C]0.217818[/C][/ROW]
[ROW][C]31[/C][C]0.022692[/C][C]0.1758[/C][C]0.430534[/C][/ROW]
[ROW][C]32[/C][C]0.061887[/C][C]0.4794[/C][C]0.316706[/C][/ROW]
[ROW][C]33[/C][C]-0.060324[/C][C]-0.4673[/C][C]0.320999[/C][/ROW]
[ROW][C]34[/C][C]-0.062319[/C][C]-0.4827[/C][C]0.315526[/C][/ROW]
[ROW][C]35[/C][C]0.111536[/C][C]0.864[/C][C]0.195528[/C][/ROW]
[ROW][C]36[/C][C]-0.11378[/C][C]-0.8813[/C][C]0.190826[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65240&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65240&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.432461-3.34980.000701
2-0.038661-0.29950.382809
30.0142250.11020.456313
40.0393320.30470.380839
50.0393770.3050.380706
60.0537230.41610.339398
7-0.089776-0.69540.244745
80.0334650.25920.398178
90.1275880.98830.163489
10-0.08474-0.65640.257041
11-0.042286-0.32750.372199
120.0580270.44950.327354
13-0.011343-0.08790.465138
140.103410.8010.213143
15-0.045808-0.35480.361981
16-0.009965-0.07720.469365
17-0.046327-0.35880.360484
180.047140.36510.358144
190.0294850.22840.410058
200.0028760.02230.491151
21-0.017639-0.13660.445891
22-0.053743-0.41630.339341
230.0962930.74590.229326
24-0.051941-0.40230.344434
25-0.074003-0.57320.284318
260.0650380.50380.308129
270.0725380.56190.288145
28-0.087652-0.67890.249891
290.0496550.38460.350938
30-0.101322-0.78480.217818
310.0226920.17580.430534
320.0618870.47940.316706
33-0.060324-0.46730.320999
34-0.062319-0.48270.315526
350.1115360.8640.195528
36-0.11378-0.88130.190826







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.432461-3.34980.000701
2-0.277602-2.15030.017786
3-0.169509-1.3130.097089
4-0.054611-0.4230.336899
50.0515510.39930.345541
60.1608491.24590.108817
70.0550720.42660.335604
80.0446620.3460.365295
90.1888781.4630.074338
100.089580.69390.245216
11-0.024184-0.18730.426017
12-0.003032-0.02350.49067
13-0.031944-0.24740.402707
140.0922450.71450.238835
150.0719720.55750.289633
160.077050.59680.276434
17-0.041598-0.32220.374205
18-0.068702-0.53220.298289
19-0.010076-0.0780.469025
200.0182780.14160.443943
210.0095760.07420.47056
22-0.08546-0.6620.255262
230.0041610.03220.487198
24-0.027452-0.21260.416165
25-0.126589-0.98060.165376
26-0.049933-0.38680.350145
270.0780960.60490.273754
28-0.025974-0.20120.420614
290.0415040.32150.374478
30-0.050948-0.39460.347254
31-0.054206-0.41990.338038
32-0.028029-0.21710.414429
33-0.062716-0.48580.314441
34-0.112015-0.86770.194517
350.0025690.01990.492095
36-0.081979-0.6350.263918

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.432461 & -3.3498 & 0.000701 \tabularnewline
2 & -0.277602 & -2.1503 & 0.017786 \tabularnewline
3 & -0.169509 & -1.313 & 0.097089 \tabularnewline
4 & -0.054611 & -0.423 & 0.336899 \tabularnewline
5 & 0.051551 & 0.3993 & 0.345541 \tabularnewline
6 & 0.160849 & 1.2459 & 0.108817 \tabularnewline
7 & 0.055072 & 0.4266 & 0.335604 \tabularnewline
8 & 0.044662 & 0.346 & 0.365295 \tabularnewline
9 & 0.188878 & 1.463 & 0.074338 \tabularnewline
10 & 0.08958 & 0.6939 & 0.245216 \tabularnewline
11 & -0.024184 & -0.1873 & 0.426017 \tabularnewline
12 & -0.003032 & -0.0235 & 0.49067 \tabularnewline
13 & -0.031944 & -0.2474 & 0.402707 \tabularnewline
14 & 0.092245 & 0.7145 & 0.238835 \tabularnewline
15 & 0.071972 & 0.5575 & 0.289633 \tabularnewline
16 & 0.07705 & 0.5968 & 0.276434 \tabularnewline
17 & -0.041598 & -0.3222 & 0.374205 \tabularnewline
18 & -0.068702 & -0.5322 & 0.298289 \tabularnewline
19 & -0.010076 & -0.078 & 0.469025 \tabularnewline
20 & 0.018278 & 0.1416 & 0.443943 \tabularnewline
21 & 0.009576 & 0.0742 & 0.47056 \tabularnewline
22 & -0.08546 & -0.662 & 0.255262 \tabularnewline
23 & 0.004161 & 0.0322 & 0.487198 \tabularnewline
24 & -0.027452 & -0.2126 & 0.416165 \tabularnewline
25 & -0.126589 & -0.9806 & 0.165376 \tabularnewline
26 & -0.049933 & -0.3868 & 0.350145 \tabularnewline
27 & 0.078096 & 0.6049 & 0.273754 \tabularnewline
28 & -0.025974 & -0.2012 & 0.420614 \tabularnewline
29 & 0.041504 & 0.3215 & 0.374478 \tabularnewline
30 & -0.050948 & -0.3946 & 0.347254 \tabularnewline
31 & -0.054206 & -0.4199 & 0.338038 \tabularnewline
32 & -0.028029 & -0.2171 & 0.414429 \tabularnewline
33 & -0.062716 & -0.4858 & 0.314441 \tabularnewline
34 & -0.112015 & -0.8677 & 0.194517 \tabularnewline
35 & 0.002569 & 0.0199 & 0.492095 \tabularnewline
36 & -0.081979 & -0.635 & 0.263918 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65240&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.432461[/C][C]-3.3498[/C][C]0.000701[/C][/ROW]
[ROW][C]2[/C][C]-0.277602[/C][C]-2.1503[/C][C]0.017786[/C][/ROW]
[ROW][C]3[/C][C]-0.169509[/C][C]-1.313[/C][C]0.097089[/C][/ROW]
[ROW][C]4[/C][C]-0.054611[/C][C]-0.423[/C][C]0.336899[/C][/ROW]
[ROW][C]5[/C][C]0.051551[/C][C]0.3993[/C][C]0.345541[/C][/ROW]
[ROW][C]6[/C][C]0.160849[/C][C]1.2459[/C][C]0.108817[/C][/ROW]
[ROW][C]7[/C][C]0.055072[/C][C]0.4266[/C][C]0.335604[/C][/ROW]
[ROW][C]8[/C][C]0.044662[/C][C]0.346[/C][C]0.365295[/C][/ROW]
[ROW][C]9[/C][C]0.188878[/C][C]1.463[/C][C]0.074338[/C][/ROW]
[ROW][C]10[/C][C]0.08958[/C][C]0.6939[/C][C]0.245216[/C][/ROW]
[ROW][C]11[/C][C]-0.024184[/C][C]-0.1873[/C][C]0.426017[/C][/ROW]
[ROW][C]12[/C][C]-0.003032[/C][C]-0.0235[/C][C]0.49067[/C][/ROW]
[ROW][C]13[/C][C]-0.031944[/C][C]-0.2474[/C][C]0.402707[/C][/ROW]
[ROW][C]14[/C][C]0.092245[/C][C]0.7145[/C][C]0.238835[/C][/ROW]
[ROW][C]15[/C][C]0.071972[/C][C]0.5575[/C][C]0.289633[/C][/ROW]
[ROW][C]16[/C][C]0.07705[/C][C]0.5968[/C][C]0.276434[/C][/ROW]
[ROW][C]17[/C][C]-0.041598[/C][C]-0.3222[/C][C]0.374205[/C][/ROW]
[ROW][C]18[/C][C]-0.068702[/C][C]-0.5322[/C][C]0.298289[/C][/ROW]
[ROW][C]19[/C][C]-0.010076[/C][C]-0.078[/C][C]0.469025[/C][/ROW]
[ROW][C]20[/C][C]0.018278[/C][C]0.1416[/C][C]0.443943[/C][/ROW]
[ROW][C]21[/C][C]0.009576[/C][C]0.0742[/C][C]0.47056[/C][/ROW]
[ROW][C]22[/C][C]-0.08546[/C][C]-0.662[/C][C]0.255262[/C][/ROW]
[ROW][C]23[/C][C]0.004161[/C][C]0.0322[/C][C]0.487198[/C][/ROW]
[ROW][C]24[/C][C]-0.027452[/C][C]-0.2126[/C][C]0.416165[/C][/ROW]
[ROW][C]25[/C][C]-0.126589[/C][C]-0.9806[/C][C]0.165376[/C][/ROW]
[ROW][C]26[/C][C]-0.049933[/C][C]-0.3868[/C][C]0.350145[/C][/ROW]
[ROW][C]27[/C][C]0.078096[/C][C]0.6049[/C][C]0.273754[/C][/ROW]
[ROW][C]28[/C][C]-0.025974[/C][C]-0.2012[/C][C]0.420614[/C][/ROW]
[ROW][C]29[/C][C]0.041504[/C][C]0.3215[/C][C]0.374478[/C][/ROW]
[ROW][C]30[/C][C]-0.050948[/C][C]-0.3946[/C][C]0.347254[/C][/ROW]
[ROW][C]31[/C][C]-0.054206[/C][C]-0.4199[/C][C]0.338038[/C][/ROW]
[ROW][C]32[/C][C]-0.028029[/C][C]-0.2171[/C][C]0.414429[/C][/ROW]
[ROW][C]33[/C][C]-0.062716[/C][C]-0.4858[/C][C]0.314441[/C][/ROW]
[ROW][C]34[/C][C]-0.112015[/C][C]-0.8677[/C][C]0.194517[/C][/ROW]
[ROW][C]35[/C][C]0.002569[/C][C]0.0199[/C][C]0.492095[/C][/ROW]
[ROW][C]36[/C][C]-0.081979[/C][C]-0.635[/C][C]0.263918[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65240&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65240&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.432461-3.34980.000701
2-0.277602-2.15030.017786
3-0.169509-1.3130.097089
4-0.054611-0.4230.336899
50.0515510.39930.345541
60.1608491.24590.108817
70.0550720.42660.335604
80.0446620.3460.365295
90.1888781.4630.074338
100.089580.69390.245216
11-0.024184-0.18730.426017
12-0.003032-0.02350.49067
13-0.031944-0.24740.402707
140.0922450.71450.238835
150.0719720.55750.289633
160.077050.59680.276434
17-0.041598-0.32220.374205
18-0.068702-0.53220.298289
19-0.010076-0.0780.469025
200.0182780.14160.443943
210.0095760.07420.47056
22-0.08546-0.6620.255262
230.0041610.03220.487198
24-0.027452-0.21260.416165
25-0.126589-0.98060.165376
26-0.049933-0.38680.350145
270.0780960.60490.273754
28-0.025974-0.20120.420614
290.0415040.32150.374478
30-0.050948-0.39460.347254
31-0.054206-0.41990.338038
32-0.028029-0.21710.414429
33-0.062716-0.48580.314441
34-0.112015-0.86770.194517
350.0025690.01990.492095
36-0.081979-0.6350.263918



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