Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_autocorrelation.wasp
Title produced by software(Partial) Autocorrelation Function
Date of computationWed, 25 Nov 2009 07:58:39 -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/Nov/25/t12591617377gftw6g6ngjlcc5.htm/, Retrieved Tue, 07 May 2024 21:09:25 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59390, Retrieved Tue, 07 May 2024 21:09:25 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact123
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-12 13:32:37] [76963dc1903f0f612b6153510a3818cf]
- R  D  [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-17 12:14:40] [76963dc1903f0f612b6153510a3818cf]
-         [Univariate Explorative Data Analysis] [Run Sequence Plot...] [2008-12-22 18:19:51] [1ce0d16c8f4225c977b42c8fa93bc163]
- RMP       [(Partial) Autocorrelation Function] [Identifying Integ...] [2009-11-22 12:16:10] [b98453cac15ba1066b407e146608df68]
-    D          [(Partial) Autocorrelation Function] [] [2009-11-25 14:58:39] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.6
8.3
8.3
8.3
8.4
8.5
8.4
8.6
8.5
8.5
8.4
8.5
8.5
8.5
8.5
8.5
8.5
8.5
8.5
8.6
8.4
8.1
8.0
8.0
8.0
8.0
7.9
7.8
7.8
7.9
8.1
8.0
7.6
7.3
7.0
6.8
7.0
7.1
7.2
7.1
6.9
6.7
6.7
6.6
6.9
7.3
7.5
7.3
7.1
6.9
7.1
7.5
7.7
7.8
7.8
7.7
7.8
7.8
7.9
7.9




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59390&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.9481087.3440
20.8738446.76880
30.800856.20340
40.7577175.86930
50.7403125.73440
60.723585.60480
70.6892835.33921e-06
80.6188014.79326e-06
90.5296214.10246.3e-05
100.4400123.40830.000587
110.3707552.87190.002816
120.3119262.41620.009372
130.2574461.99420.025342
140.2031811.57380.060392
150.1349191.04510.150089
160.0542840.42050.337817
17-0.025754-0.19950.421278
18-0.095577-0.74030.230991
19-0.147485-1.14240.128911
20-0.192638-1.49220.070447
21-0.234117-1.81350.037381
22-0.270756-2.09730.020096
23-0.30807-2.38630.010095
24-0.342734-2.65480.005073
25-0.362911-2.81110.00333
26-0.376902-2.91950.002466
27-0.391138-3.02970.001804
28-0.406078-3.14550.00129
29-0.419671-3.25080.000945
30-0.430293-3.3330.000738
31-0.436321-3.37970.00064
32-0.439347-3.40320.000596
33-0.430858-3.33740.000728
34-0.418908-3.24480.000962
35-0.400281-3.10060.00147
36-0.370384-2.8690.002839

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.948108 & 7.344 & 0 \tabularnewline
2 & 0.873844 & 6.7688 & 0 \tabularnewline
3 & 0.80085 & 6.2034 & 0 \tabularnewline
4 & 0.757717 & 5.8693 & 0 \tabularnewline
5 & 0.740312 & 5.7344 & 0 \tabularnewline
6 & 0.72358 & 5.6048 & 0 \tabularnewline
7 & 0.689283 & 5.3392 & 1e-06 \tabularnewline
8 & 0.618801 & 4.7932 & 6e-06 \tabularnewline
9 & 0.529621 & 4.1024 & 6.3e-05 \tabularnewline
10 & 0.440012 & 3.4083 & 0.000587 \tabularnewline
11 & 0.370755 & 2.8719 & 0.002816 \tabularnewline
12 & 0.311926 & 2.4162 & 0.009372 \tabularnewline
13 & 0.257446 & 1.9942 & 0.025342 \tabularnewline
14 & 0.203181 & 1.5738 & 0.060392 \tabularnewline
15 & 0.134919 & 1.0451 & 0.150089 \tabularnewline
16 & 0.054284 & 0.4205 & 0.337817 \tabularnewline
17 & -0.025754 & -0.1995 & 0.421278 \tabularnewline
18 & -0.095577 & -0.7403 & 0.230991 \tabularnewline
19 & -0.147485 & -1.1424 & 0.128911 \tabularnewline
20 & -0.192638 & -1.4922 & 0.070447 \tabularnewline
21 & -0.234117 & -1.8135 & 0.037381 \tabularnewline
22 & -0.270756 & -2.0973 & 0.020096 \tabularnewline
23 & -0.30807 & -2.3863 & 0.010095 \tabularnewline
24 & -0.342734 & -2.6548 & 0.005073 \tabularnewline
25 & -0.362911 & -2.8111 & 0.00333 \tabularnewline
26 & -0.376902 & -2.9195 & 0.002466 \tabularnewline
27 & -0.391138 & -3.0297 & 0.001804 \tabularnewline
28 & -0.406078 & -3.1455 & 0.00129 \tabularnewline
29 & -0.419671 & -3.2508 & 0.000945 \tabularnewline
30 & -0.430293 & -3.333 & 0.000738 \tabularnewline
31 & -0.436321 & -3.3797 & 0.00064 \tabularnewline
32 & -0.439347 & -3.4032 & 0.000596 \tabularnewline
33 & -0.430858 & -3.3374 & 0.000728 \tabularnewline
34 & -0.418908 & -3.2448 & 0.000962 \tabularnewline
35 & -0.400281 & -3.1006 & 0.00147 \tabularnewline
36 & -0.370384 & -2.869 & 0.002839 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59390&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.948108[/C][C]7.344[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.873844[/C][C]6.7688[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.80085[/C][C]6.2034[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.757717[/C][C]5.8693[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0.740312[/C][C]5.7344[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0.72358[/C][C]5.6048[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0.689283[/C][C]5.3392[/C][C]1e-06[/C][/ROW]
[ROW][C]8[/C][C]0.618801[/C][C]4.7932[/C][C]6e-06[/C][/ROW]
[ROW][C]9[/C][C]0.529621[/C][C]4.1024[/C][C]6.3e-05[/C][/ROW]
[ROW][C]10[/C][C]0.440012[/C][C]3.4083[/C][C]0.000587[/C][/ROW]
[ROW][C]11[/C][C]0.370755[/C][C]2.8719[/C][C]0.002816[/C][/ROW]
[ROW][C]12[/C][C]0.311926[/C][C]2.4162[/C][C]0.009372[/C][/ROW]
[ROW][C]13[/C][C]0.257446[/C][C]1.9942[/C][C]0.025342[/C][/ROW]
[ROW][C]14[/C][C]0.203181[/C][C]1.5738[/C][C]0.060392[/C][/ROW]
[ROW][C]15[/C][C]0.134919[/C][C]1.0451[/C][C]0.150089[/C][/ROW]
[ROW][C]16[/C][C]0.054284[/C][C]0.4205[/C][C]0.337817[/C][/ROW]
[ROW][C]17[/C][C]-0.025754[/C][C]-0.1995[/C][C]0.421278[/C][/ROW]
[ROW][C]18[/C][C]-0.095577[/C][C]-0.7403[/C][C]0.230991[/C][/ROW]
[ROW][C]19[/C][C]-0.147485[/C][C]-1.1424[/C][C]0.128911[/C][/ROW]
[ROW][C]20[/C][C]-0.192638[/C][C]-1.4922[/C][C]0.070447[/C][/ROW]
[ROW][C]21[/C][C]-0.234117[/C][C]-1.8135[/C][C]0.037381[/C][/ROW]
[ROW][C]22[/C][C]-0.270756[/C][C]-2.0973[/C][C]0.020096[/C][/ROW]
[ROW][C]23[/C][C]-0.30807[/C][C]-2.3863[/C][C]0.010095[/C][/ROW]
[ROW][C]24[/C][C]-0.342734[/C][C]-2.6548[/C][C]0.005073[/C][/ROW]
[ROW][C]25[/C][C]-0.362911[/C][C]-2.8111[/C][C]0.00333[/C][/ROW]
[ROW][C]26[/C][C]-0.376902[/C][C]-2.9195[/C][C]0.002466[/C][/ROW]
[ROW][C]27[/C][C]-0.391138[/C][C]-3.0297[/C][C]0.001804[/C][/ROW]
[ROW][C]28[/C][C]-0.406078[/C][C]-3.1455[/C][C]0.00129[/C][/ROW]
[ROW][C]29[/C][C]-0.419671[/C][C]-3.2508[/C][C]0.000945[/C][/ROW]
[ROW][C]30[/C][C]-0.430293[/C][C]-3.333[/C][C]0.000738[/C][/ROW]
[ROW][C]31[/C][C]-0.436321[/C][C]-3.3797[/C][C]0.00064[/C][/ROW]
[ROW][C]32[/C][C]-0.439347[/C][C]-3.4032[/C][C]0.000596[/C][/ROW]
[ROW][C]33[/C][C]-0.430858[/C][C]-3.3374[/C][C]0.000728[/C][/ROW]
[ROW][C]34[/C][C]-0.418908[/C][C]-3.2448[/C][C]0.000962[/C][/ROW]
[ROW][C]35[/C][C]-0.400281[/C][C]-3.1006[/C][C]0.00147[/C][/ROW]
[ROW][C]36[/C][C]-0.370384[/C][C]-2.869[/C][C]0.002839[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59390&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59390&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.9481087.3440
20.8738446.76880
30.800856.20340
40.7577175.86930
50.7403125.73440
60.723585.60480
70.6892835.33921e-06
80.6188014.79326e-06
90.5296214.10246.3e-05
100.4400123.40830.000587
110.3707552.87190.002816
120.3119262.41620.009372
130.2574461.99420.025342
140.2031811.57380.060392
150.1349191.04510.150089
160.0542840.42050.337817
17-0.025754-0.19950.421278
18-0.095577-0.74030.230991
19-0.147485-1.14240.128911
20-0.192638-1.49220.070447
21-0.234117-1.81350.037381
22-0.270756-2.09730.020096
23-0.30807-2.38630.010095
24-0.342734-2.65480.005073
25-0.362911-2.81110.00333
26-0.376902-2.91950.002466
27-0.391138-3.02970.001804
28-0.406078-3.14550.00129
29-0.419671-3.25080.000945
30-0.430293-3.3330.000738
31-0.436321-3.37970.00064
32-0.439347-3.40320.000596
33-0.430858-3.33740.000728
34-0.418908-3.24480.000962
35-0.400281-3.10060.00147
36-0.370384-2.8690.002839







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9481087.3440
2-0.247953-1.92060.029767
30.0211770.1640.435126
40.2577221.99630.025222
50.1245530.96480.169264
6-0.094279-0.73030.234029
7-0.121719-0.94280.174775
8-0.264371-2.04780.022482
9-0.121941-0.94450.174339
10-0.084099-0.65140.25863
11-0.006233-0.04830.480828
12-0.144197-1.11690.134235
13-0.042881-0.33220.370464
140.0697610.54040.295471
15-0.082101-0.6360.263612
16-0.115382-0.89370.187516
170.0067910.05260.479113
18-0.030687-0.23770.40646
190.0329870.25550.399598
20-0.058982-0.45690.324706
21-0.00556-0.04310.482896
220.0994730.77050.22201
230.0208980.16190.435975
240.0053870.04170.483426
250.1147720.8890.188771
26-0.060301-0.46710.321063
27-0.075994-0.58860.279154
28-0.030406-0.23550.407303
29-0.044231-0.34260.366543
30-0.091309-0.70730.241067
31-0.052626-0.40760.342495
32-0.073396-0.56850.285902
330.0502780.38950.349159
34-0.018519-0.14340.443209
350.1049220.81270.209794
360.1353151.04810.149387

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.948108 & 7.344 & 0 \tabularnewline
2 & -0.247953 & -1.9206 & 0.029767 \tabularnewline
3 & 0.021177 & 0.164 & 0.435126 \tabularnewline
4 & 0.257722 & 1.9963 & 0.025222 \tabularnewline
5 & 0.124553 & 0.9648 & 0.169264 \tabularnewline
6 & -0.094279 & -0.7303 & 0.234029 \tabularnewline
7 & -0.121719 & -0.9428 & 0.174775 \tabularnewline
8 & -0.264371 & -2.0478 & 0.022482 \tabularnewline
9 & -0.121941 & -0.9445 & 0.174339 \tabularnewline
10 & -0.084099 & -0.6514 & 0.25863 \tabularnewline
11 & -0.006233 & -0.0483 & 0.480828 \tabularnewline
12 & -0.144197 & -1.1169 & 0.134235 \tabularnewline
13 & -0.042881 & -0.3322 & 0.370464 \tabularnewline
14 & 0.069761 & 0.5404 & 0.295471 \tabularnewline
15 & -0.082101 & -0.636 & 0.263612 \tabularnewline
16 & -0.115382 & -0.8937 & 0.187516 \tabularnewline
17 & 0.006791 & 0.0526 & 0.479113 \tabularnewline
18 & -0.030687 & -0.2377 & 0.40646 \tabularnewline
19 & 0.032987 & 0.2555 & 0.399598 \tabularnewline
20 & -0.058982 & -0.4569 & 0.324706 \tabularnewline
21 & -0.00556 & -0.0431 & 0.482896 \tabularnewline
22 & 0.099473 & 0.7705 & 0.22201 \tabularnewline
23 & 0.020898 & 0.1619 & 0.435975 \tabularnewline
24 & 0.005387 & 0.0417 & 0.483426 \tabularnewline
25 & 0.114772 & 0.889 & 0.188771 \tabularnewline
26 & -0.060301 & -0.4671 & 0.321063 \tabularnewline
27 & -0.075994 & -0.5886 & 0.279154 \tabularnewline
28 & -0.030406 & -0.2355 & 0.407303 \tabularnewline
29 & -0.044231 & -0.3426 & 0.366543 \tabularnewline
30 & -0.091309 & -0.7073 & 0.241067 \tabularnewline
31 & -0.052626 & -0.4076 & 0.342495 \tabularnewline
32 & -0.073396 & -0.5685 & 0.285902 \tabularnewline
33 & 0.050278 & 0.3895 & 0.349159 \tabularnewline
34 & -0.018519 & -0.1434 & 0.443209 \tabularnewline
35 & 0.104922 & 0.8127 & 0.209794 \tabularnewline
36 & 0.135315 & 1.0481 & 0.149387 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59390&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.948108[/C][C]7.344[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.247953[/C][C]-1.9206[/C][C]0.029767[/C][/ROW]
[ROW][C]3[/C][C]0.021177[/C][C]0.164[/C][C]0.435126[/C][/ROW]
[ROW][C]4[/C][C]0.257722[/C][C]1.9963[/C][C]0.025222[/C][/ROW]
[ROW][C]5[/C][C]0.124553[/C][C]0.9648[/C][C]0.169264[/C][/ROW]
[ROW][C]6[/C][C]-0.094279[/C][C]-0.7303[/C][C]0.234029[/C][/ROW]
[ROW][C]7[/C][C]-0.121719[/C][C]-0.9428[/C][C]0.174775[/C][/ROW]
[ROW][C]8[/C][C]-0.264371[/C][C]-2.0478[/C][C]0.022482[/C][/ROW]
[ROW][C]9[/C][C]-0.121941[/C][C]-0.9445[/C][C]0.174339[/C][/ROW]
[ROW][C]10[/C][C]-0.084099[/C][C]-0.6514[/C][C]0.25863[/C][/ROW]
[ROW][C]11[/C][C]-0.006233[/C][C]-0.0483[/C][C]0.480828[/C][/ROW]
[ROW][C]12[/C][C]-0.144197[/C][C]-1.1169[/C][C]0.134235[/C][/ROW]
[ROW][C]13[/C][C]-0.042881[/C][C]-0.3322[/C][C]0.370464[/C][/ROW]
[ROW][C]14[/C][C]0.069761[/C][C]0.5404[/C][C]0.295471[/C][/ROW]
[ROW][C]15[/C][C]-0.082101[/C][C]-0.636[/C][C]0.263612[/C][/ROW]
[ROW][C]16[/C][C]-0.115382[/C][C]-0.8937[/C][C]0.187516[/C][/ROW]
[ROW][C]17[/C][C]0.006791[/C][C]0.0526[/C][C]0.479113[/C][/ROW]
[ROW][C]18[/C][C]-0.030687[/C][C]-0.2377[/C][C]0.40646[/C][/ROW]
[ROW][C]19[/C][C]0.032987[/C][C]0.2555[/C][C]0.399598[/C][/ROW]
[ROW][C]20[/C][C]-0.058982[/C][C]-0.4569[/C][C]0.324706[/C][/ROW]
[ROW][C]21[/C][C]-0.00556[/C][C]-0.0431[/C][C]0.482896[/C][/ROW]
[ROW][C]22[/C][C]0.099473[/C][C]0.7705[/C][C]0.22201[/C][/ROW]
[ROW][C]23[/C][C]0.020898[/C][C]0.1619[/C][C]0.435975[/C][/ROW]
[ROW][C]24[/C][C]0.005387[/C][C]0.0417[/C][C]0.483426[/C][/ROW]
[ROW][C]25[/C][C]0.114772[/C][C]0.889[/C][C]0.188771[/C][/ROW]
[ROW][C]26[/C][C]-0.060301[/C][C]-0.4671[/C][C]0.321063[/C][/ROW]
[ROW][C]27[/C][C]-0.075994[/C][C]-0.5886[/C][C]0.279154[/C][/ROW]
[ROW][C]28[/C][C]-0.030406[/C][C]-0.2355[/C][C]0.407303[/C][/ROW]
[ROW][C]29[/C][C]-0.044231[/C][C]-0.3426[/C][C]0.366543[/C][/ROW]
[ROW][C]30[/C][C]-0.091309[/C][C]-0.7073[/C][C]0.241067[/C][/ROW]
[ROW][C]31[/C][C]-0.052626[/C][C]-0.4076[/C][C]0.342495[/C][/ROW]
[ROW][C]32[/C][C]-0.073396[/C][C]-0.5685[/C][C]0.285902[/C][/ROW]
[ROW][C]33[/C][C]0.050278[/C][C]0.3895[/C][C]0.349159[/C][/ROW]
[ROW][C]34[/C][C]-0.018519[/C][C]-0.1434[/C][C]0.443209[/C][/ROW]
[ROW][C]35[/C][C]0.104922[/C][C]0.8127[/C][C]0.209794[/C][/ROW]
[ROW][C]36[/C][C]0.135315[/C][C]1.0481[/C][C]0.149387[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59390&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59390&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.9481087.3440
2-0.247953-1.92060.029767
30.0211770.1640.435126
40.2577221.99630.025222
50.1245530.96480.169264
6-0.094279-0.73030.234029
7-0.121719-0.94280.174775
8-0.264371-2.04780.022482
9-0.121941-0.94450.174339
10-0.084099-0.65140.25863
11-0.006233-0.04830.480828
12-0.144197-1.11690.134235
13-0.042881-0.33220.370464
140.0697610.54040.295471
15-0.082101-0.6360.263612
16-0.115382-0.89370.187516
170.0067910.05260.479113
18-0.030687-0.23770.40646
190.0329870.25550.399598
20-0.058982-0.45690.324706
21-0.00556-0.04310.482896
220.0994730.77050.22201
230.0208980.16190.435975
240.0053870.04170.483426
250.1147720.8890.188771
26-0.060301-0.46710.321063
27-0.075994-0.58860.279154
28-0.030406-0.23550.407303
29-0.044231-0.34260.366543
30-0.091309-0.70730.241067
31-0.052626-0.40760.342495
32-0.073396-0.56850.285902
330.0502780.38950.349159
34-0.018519-0.14340.443209
350.1049220.81270.209794
360.1353151.04810.149387



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