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 18:01: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/t1260493390i4dxz5pifgmszff.htm/, Retrieved Mon, 29 Apr 2024 05:28:36 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=65856, Retrieved Mon, 29 Apr 2024 05:28:36 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact167
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]
-    D    [(Partial) Autocorrelation Function] [WS9] [2009-12-03 23:38:41] [37a8d600db9abe09a2528d150ccff095]
-   PD        [(Partial) Autocorrelation Function] [gedifferentieerde...] [2009-12-11 01:01:09] [557d56ec4b06cd0135c259898de8ce95] [Current]
Feedback Forum

Post a new message
Dataseries X:
17,8
17,9
17,4
16,7
16
16,6
19,1
17,8
17,2
18,6
16,3
15,1
19,2
17,7
19,1
18
17,5
17,8
21,1
17,2
19,4
19,8
17,6
16,2
19,5
19,9
20
17,3
18,9
18,6
21,4
18,6
19,8
20,8
19,6
17,7
19,8
22,2
20,7
17,9
20,9
21,2
21,4
23
21,3
23,9
22,4
18,3
22,8
22,3
17,8
16,4
16
16,4
17,7
16,6
16,2
18,3
17,6
15,1




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

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.310514-2.38510.010153
2-0.300295-2.30660.012303
30.1526131.17220.122905
40.1025250.78750.217069
5-0.123981-0.95230.172412
60.1436221.10320.137214
7-0.262263-2.01450.024262
80.2878622.21110.015458
90.0105160.08080.467946
10-0.273878-2.10370.019839
11-0.106017-0.81430.209366
120.5118273.93140.000112
13-0.127142-0.97660.166377
14-0.231154-1.77550.040484
150.0120730.09270.463215
160.1945931.49470.070161
17-0.114814-0.88190.190705
18-0.026112-0.20060.420863
190.0033590.02580.489752
200.1264260.97110.167732
21-0.084366-0.6480.25974
22-0.103921-0.79820.213969
23-0.064286-0.49380.311643
240.2211451.69860.047327
250.0755330.58020.282002
26-0.267702-2.05630.022095
27-0.00839-0.06440.474416
280.2444231.87750.032701
29-0.150878-1.15890.12558
30-0.054318-0.41720.339015
310.1575431.21010.115532
32-0.075274-0.57820.282669
33-0.028737-0.22070.413032
340.0384330.29520.384436
35-0.166597-1.27970.102838
360.1683771.29330.10047

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.310514 & -2.3851 & 0.010153 \tabularnewline
2 & -0.300295 & -2.3066 & 0.012303 \tabularnewline
3 & 0.152613 & 1.1722 & 0.122905 \tabularnewline
4 & 0.102525 & 0.7875 & 0.217069 \tabularnewline
5 & -0.123981 & -0.9523 & 0.172412 \tabularnewline
6 & 0.143622 & 1.1032 & 0.137214 \tabularnewline
7 & -0.262263 & -2.0145 & 0.024262 \tabularnewline
8 & 0.287862 & 2.2111 & 0.015458 \tabularnewline
9 & 0.010516 & 0.0808 & 0.467946 \tabularnewline
10 & -0.273878 & -2.1037 & 0.019839 \tabularnewline
11 & -0.106017 & -0.8143 & 0.209366 \tabularnewline
12 & 0.511827 & 3.9314 & 0.000112 \tabularnewline
13 & -0.127142 & -0.9766 & 0.166377 \tabularnewline
14 & -0.231154 & -1.7755 & 0.040484 \tabularnewline
15 & 0.012073 & 0.0927 & 0.463215 \tabularnewline
16 & 0.194593 & 1.4947 & 0.070161 \tabularnewline
17 & -0.114814 & -0.8819 & 0.190705 \tabularnewline
18 & -0.026112 & -0.2006 & 0.420863 \tabularnewline
19 & 0.003359 & 0.0258 & 0.489752 \tabularnewline
20 & 0.126426 & 0.9711 & 0.167732 \tabularnewline
21 & -0.084366 & -0.648 & 0.25974 \tabularnewline
22 & -0.103921 & -0.7982 & 0.213969 \tabularnewline
23 & -0.064286 & -0.4938 & 0.311643 \tabularnewline
24 & 0.221145 & 1.6986 & 0.047327 \tabularnewline
25 & 0.075533 & 0.5802 & 0.282002 \tabularnewline
26 & -0.267702 & -2.0563 & 0.022095 \tabularnewline
27 & -0.00839 & -0.0644 & 0.474416 \tabularnewline
28 & 0.244423 & 1.8775 & 0.032701 \tabularnewline
29 & -0.150878 & -1.1589 & 0.12558 \tabularnewline
30 & -0.054318 & -0.4172 & 0.339015 \tabularnewline
31 & 0.157543 & 1.2101 & 0.115532 \tabularnewline
32 & -0.075274 & -0.5782 & 0.282669 \tabularnewline
33 & -0.028737 & -0.2207 & 0.413032 \tabularnewline
34 & 0.038433 & 0.2952 & 0.384436 \tabularnewline
35 & -0.166597 & -1.2797 & 0.102838 \tabularnewline
36 & 0.168377 & 1.2933 & 0.10047 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65856&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.310514[/C][C]-2.3851[/C][C]0.010153[/C][/ROW]
[ROW][C]2[/C][C]-0.300295[/C][C]-2.3066[/C][C]0.012303[/C][/ROW]
[ROW][C]3[/C][C]0.152613[/C][C]1.1722[/C][C]0.122905[/C][/ROW]
[ROW][C]4[/C][C]0.102525[/C][C]0.7875[/C][C]0.217069[/C][/ROW]
[ROW][C]5[/C][C]-0.123981[/C][C]-0.9523[/C][C]0.172412[/C][/ROW]
[ROW][C]6[/C][C]0.143622[/C][C]1.1032[/C][C]0.137214[/C][/ROW]
[ROW][C]7[/C][C]-0.262263[/C][C]-2.0145[/C][C]0.024262[/C][/ROW]
[ROW][C]8[/C][C]0.287862[/C][C]2.2111[/C][C]0.015458[/C][/ROW]
[ROW][C]9[/C][C]0.010516[/C][C]0.0808[/C][C]0.467946[/C][/ROW]
[ROW][C]10[/C][C]-0.273878[/C][C]-2.1037[/C][C]0.019839[/C][/ROW]
[ROW][C]11[/C][C]-0.106017[/C][C]-0.8143[/C][C]0.209366[/C][/ROW]
[ROW][C]12[/C][C]0.511827[/C][C]3.9314[/C][C]0.000112[/C][/ROW]
[ROW][C]13[/C][C]-0.127142[/C][C]-0.9766[/C][C]0.166377[/C][/ROW]
[ROW][C]14[/C][C]-0.231154[/C][C]-1.7755[/C][C]0.040484[/C][/ROW]
[ROW][C]15[/C][C]0.012073[/C][C]0.0927[/C][C]0.463215[/C][/ROW]
[ROW][C]16[/C][C]0.194593[/C][C]1.4947[/C][C]0.070161[/C][/ROW]
[ROW][C]17[/C][C]-0.114814[/C][C]-0.8819[/C][C]0.190705[/C][/ROW]
[ROW][C]18[/C][C]-0.026112[/C][C]-0.2006[/C][C]0.420863[/C][/ROW]
[ROW][C]19[/C][C]0.003359[/C][C]0.0258[/C][C]0.489752[/C][/ROW]
[ROW][C]20[/C][C]0.126426[/C][C]0.9711[/C][C]0.167732[/C][/ROW]
[ROW][C]21[/C][C]-0.084366[/C][C]-0.648[/C][C]0.25974[/C][/ROW]
[ROW][C]22[/C][C]-0.103921[/C][C]-0.7982[/C][C]0.213969[/C][/ROW]
[ROW][C]23[/C][C]-0.064286[/C][C]-0.4938[/C][C]0.311643[/C][/ROW]
[ROW][C]24[/C][C]0.221145[/C][C]1.6986[/C][C]0.047327[/C][/ROW]
[ROW][C]25[/C][C]0.075533[/C][C]0.5802[/C][C]0.282002[/C][/ROW]
[ROW][C]26[/C][C]-0.267702[/C][C]-2.0563[/C][C]0.022095[/C][/ROW]
[ROW][C]27[/C][C]-0.00839[/C][C]-0.0644[/C][C]0.474416[/C][/ROW]
[ROW][C]28[/C][C]0.244423[/C][C]1.8775[/C][C]0.032701[/C][/ROW]
[ROW][C]29[/C][C]-0.150878[/C][C]-1.1589[/C][C]0.12558[/C][/ROW]
[ROW][C]30[/C][C]-0.054318[/C][C]-0.4172[/C][C]0.339015[/C][/ROW]
[ROW][C]31[/C][C]0.157543[/C][C]1.2101[/C][C]0.115532[/C][/ROW]
[ROW][C]32[/C][C]-0.075274[/C][C]-0.5782[/C][C]0.282669[/C][/ROW]
[ROW][C]33[/C][C]-0.028737[/C][C]-0.2207[/C][C]0.413032[/C][/ROW]
[ROW][C]34[/C][C]0.038433[/C][C]0.2952[/C][C]0.384436[/C][/ROW]
[ROW][C]35[/C][C]-0.166597[/C][C]-1.2797[/C][C]0.102838[/C][/ROW]
[ROW][C]36[/C][C]0.168377[/C][C]1.2933[/C][C]0.10047[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65856&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65856&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.310514-2.38510.010153
2-0.300295-2.30660.012303
30.1526131.17220.122905
40.1025250.78750.217069
5-0.123981-0.95230.172412
60.1436221.10320.137214
7-0.262263-2.01450.024262
80.2878622.21110.015458
90.0105160.08080.467946
10-0.273878-2.10370.019839
11-0.106017-0.81430.209366
120.5118273.93140.000112
13-0.127142-0.97660.166377
14-0.231154-1.77550.040484
150.0120730.09270.463215
160.1945931.49470.070161
17-0.114814-0.88190.190705
18-0.026112-0.20060.420863
190.0033590.02580.489752
200.1264260.97110.167732
21-0.084366-0.6480.25974
22-0.103921-0.79820.213969
23-0.064286-0.49380.311643
240.2211451.69860.047327
250.0755330.58020.282002
26-0.267702-2.05630.022095
27-0.00839-0.06440.474416
280.2444231.87750.032701
29-0.150878-1.15890.12558
30-0.054318-0.41720.339015
310.1575431.21010.115532
32-0.075274-0.57820.282669
33-0.028737-0.22070.413032
340.0384330.29520.384436
35-0.166597-1.27970.102838
360.1683771.29330.10047







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.310514-2.38510.010153
2-0.439046-3.37240.00066
3-0.16164-1.24160.109652
4-0.031217-0.23980.405665
5-0.074683-0.57360.284193
60.1739831.33640.093277
7-0.26361-2.02480.023709
80.2674412.05430.022195
90.0408950.31410.377268
10-0.113026-0.86820.194409
11-0.317692-2.44020.00885
120.2496091.91730.030024
130.2316691.77950.040156
14-0.05041-0.38720.35
15-0.04888-0.37550.354333
160.0064820.04980.480228
17-0.017105-0.13140.447958
18-0.15059-1.15670.126028
190.1758021.35040.091028
20-0.012728-0.09780.461225
21-0.154702-1.18830.11974
22-0.025461-0.19560.422808
230.0333640.25630.399317
24-0.13008-0.99920.160898
250.0445910.34250.366591
260.01480.11370.45494
27-0.036899-0.28340.38892
28-0.02225-0.17090.432442
290.0258140.19830.421752
300.0621080.47710.317539
310.0129620.09960.460515
32-0.071014-0.54550.293743
33-0.039453-0.3030.381462
340.1151490.88450.190014
35-0.143876-1.10510.136794
36-0.006101-0.04690.481392

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.310514 & -2.3851 & 0.010153 \tabularnewline
2 & -0.439046 & -3.3724 & 0.00066 \tabularnewline
3 & -0.16164 & -1.2416 & 0.109652 \tabularnewline
4 & -0.031217 & -0.2398 & 0.405665 \tabularnewline
5 & -0.074683 & -0.5736 & 0.284193 \tabularnewline
6 & 0.173983 & 1.3364 & 0.093277 \tabularnewline
7 & -0.26361 & -2.0248 & 0.023709 \tabularnewline
8 & 0.267441 & 2.0543 & 0.022195 \tabularnewline
9 & 0.040895 & 0.3141 & 0.377268 \tabularnewline
10 & -0.113026 & -0.8682 & 0.194409 \tabularnewline
11 & -0.317692 & -2.4402 & 0.00885 \tabularnewline
12 & 0.249609 & 1.9173 & 0.030024 \tabularnewline
13 & 0.231669 & 1.7795 & 0.040156 \tabularnewline
14 & -0.05041 & -0.3872 & 0.35 \tabularnewline
15 & -0.04888 & -0.3755 & 0.354333 \tabularnewline
16 & 0.006482 & 0.0498 & 0.480228 \tabularnewline
17 & -0.017105 & -0.1314 & 0.447958 \tabularnewline
18 & -0.15059 & -1.1567 & 0.126028 \tabularnewline
19 & 0.175802 & 1.3504 & 0.091028 \tabularnewline
20 & -0.012728 & -0.0978 & 0.461225 \tabularnewline
21 & -0.154702 & -1.1883 & 0.11974 \tabularnewline
22 & -0.025461 & -0.1956 & 0.422808 \tabularnewline
23 & 0.033364 & 0.2563 & 0.399317 \tabularnewline
24 & -0.13008 & -0.9992 & 0.160898 \tabularnewline
25 & 0.044591 & 0.3425 & 0.366591 \tabularnewline
26 & 0.0148 & 0.1137 & 0.45494 \tabularnewline
27 & -0.036899 & -0.2834 & 0.38892 \tabularnewline
28 & -0.02225 & -0.1709 & 0.432442 \tabularnewline
29 & 0.025814 & 0.1983 & 0.421752 \tabularnewline
30 & 0.062108 & 0.4771 & 0.317539 \tabularnewline
31 & 0.012962 & 0.0996 & 0.460515 \tabularnewline
32 & -0.071014 & -0.5455 & 0.293743 \tabularnewline
33 & -0.039453 & -0.303 & 0.381462 \tabularnewline
34 & 0.115149 & 0.8845 & 0.190014 \tabularnewline
35 & -0.143876 & -1.1051 & 0.136794 \tabularnewline
36 & -0.006101 & -0.0469 & 0.481392 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65856&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.310514[/C][C]-2.3851[/C][C]0.010153[/C][/ROW]
[ROW][C]2[/C][C]-0.439046[/C][C]-3.3724[/C][C]0.00066[/C][/ROW]
[ROW][C]3[/C][C]-0.16164[/C][C]-1.2416[/C][C]0.109652[/C][/ROW]
[ROW][C]4[/C][C]-0.031217[/C][C]-0.2398[/C][C]0.405665[/C][/ROW]
[ROW][C]5[/C][C]-0.074683[/C][C]-0.5736[/C][C]0.284193[/C][/ROW]
[ROW][C]6[/C][C]0.173983[/C][C]1.3364[/C][C]0.093277[/C][/ROW]
[ROW][C]7[/C][C]-0.26361[/C][C]-2.0248[/C][C]0.023709[/C][/ROW]
[ROW][C]8[/C][C]0.267441[/C][C]2.0543[/C][C]0.022195[/C][/ROW]
[ROW][C]9[/C][C]0.040895[/C][C]0.3141[/C][C]0.377268[/C][/ROW]
[ROW][C]10[/C][C]-0.113026[/C][C]-0.8682[/C][C]0.194409[/C][/ROW]
[ROW][C]11[/C][C]-0.317692[/C][C]-2.4402[/C][C]0.00885[/C][/ROW]
[ROW][C]12[/C][C]0.249609[/C][C]1.9173[/C][C]0.030024[/C][/ROW]
[ROW][C]13[/C][C]0.231669[/C][C]1.7795[/C][C]0.040156[/C][/ROW]
[ROW][C]14[/C][C]-0.05041[/C][C]-0.3872[/C][C]0.35[/C][/ROW]
[ROW][C]15[/C][C]-0.04888[/C][C]-0.3755[/C][C]0.354333[/C][/ROW]
[ROW][C]16[/C][C]0.006482[/C][C]0.0498[/C][C]0.480228[/C][/ROW]
[ROW][C]17[/C][C]-0.017105[/C][C]-0.1314[/C][C]0.447958[/C][/ROW]
[ROW][C]18[/C][C]-0.15059[/C][C]-1.1567[/C][C]0.126028[/C][/ROW]
[ROW][C]19[/C][C]0.175802[/C][C]1.3504[/C][C]0.091028[/C][/ROW]
[ROW][C]20[/C][C]-0.012728[/C][C]-0.0978[/C][C]0.461225[/C][/ROW]
[ROW][C]21[/C][C]-0.154702[/C][C]-1.1883[/C][C]0.11974[/C][/ROW]
[ROW][C]22[/C][C]-0.025461[/C][C]-0.1956[/C][C]0.422808[/C][/ROW]
[ROW][C]23[/C][C]0.033364[/C][C]0.2563[/C][C]0.399317[/C][/ROW]
[ROW][C]24[/C][C]-0.13008[/C][C]-0.9992[/C][C]0.160898[/C][/ROW]
[ROW][C]25[/C][C]0.044591[/C][C]0.3425[/C][C]0.366591[/C][/ROW]
[ROW][C]26[/C][C]0.0148[/C][C]0.1137[/C][C]0.45494[/C][/ROW]
[ROW][C]27[/C][C]-0.036899[/C][C]-0.2834[/C][C]0.38892[/C][/ROW]
[ROW][C]28[/C][C]-0.02225[/C][C]-0.1709[/C][C]0.432442[/C][/ROW]
[ROW][C]29[/C][C]0.025814[/C][C]0.1983[/C][C]0.421752[/C][/ROW]
[ROW][C]30[/C][C]0.062108[/C][C]0.4771[/C][C]0.317539[/C][/ROW]
[ROW][C]31[/C][C]0.012962[/C][C]0.0996[/C][C]0.460515[/C][/ROW]
[ROW][C]32[/C][C]-0.071014[/C][C]-0.5455[/C][C]0.293743[/C][/ROW]
[ROW][C]33[/C][C]-0.039453[/C][C]-0.303[/C][C]0.381462[/C][/ROW]
[ROW][C]34[/C][C]0.115149[/C][C]0.8845[/C][C]0.190014[/C][/ROW]
[ROW][C]35[/C][C]-0.143876[/C][C]-1.1051[/C][C]0.136794[/C][/ROW]
[ROW][C]36[/C][C]-0.006101[/C][C]-0.0469[/C][C]0.481392[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65856&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65856&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.310514-2.38510.010153
2-0.439046-3.37240.00066
3-0.16164-1.24160.109652
4-0.031217-0.23980.405665
5-0.074683-0.57360.284193
60.1739831.33640.093277
7-0.26361-2.02480.023709
80.2674412.05430.022195
90.0408950.31410.377268
10-0.113026-0.86820.194409
11-0.317692-2.44020.00885
120.2496091.91730.030024
130.2316691.77950.040156
14-0.05041-0.38720.35
15-0.04888-0.37550.354333
160.0064820.04980.480228
17-0.017105-0.13140.447958
18-0.15059-1.15670.126028
190.1758021.35040.091028
20-0.012728-0.09780.461225
21-0.154702-1.18830.11974
22-0.025461-0.19560.422808
230.0333640.25630.399317
24-0.13008-0.99920.160898
250.0445910.34250.366591
260.01480.11370.45494
27-0.036899-0.28340.38892
28-0.02225-0.17090.432442
290.0258140.19830.421752
300.0621080.47710.317539
310.0129620.09960.460515
32-0.071014-0.54550.293743
33-0.039453-0.3030.381462
340.1151490.88450.190014
35-0.143876-1.10510.136794
36-0.006101-0.04690.481392



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