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 computationTue, 01 Dec 2009 04:14:16 -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/01/t12596661191jm3j839exi5icg.htm/, Retrieved Sat, 20 Apr 2024 06:03:35 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61981, Retrieved Sat, 20 Apr 2024 06:03:35 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact146
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:19:56] [b98453cac15ba1066b407e146608df68]
-    D          [(Partial) Autocorrelation Function] [] [2009-12-01 11:14:16] [54f12ba6dfaf5b88c7c2745223d9c32f] [Current]
Feedback Forum

Post a new message
Dataseries X:
20366
22782
19169
13807
29743
25591
29096
26482
22405
27044
17970
18730
19684
19785
18479
10698
31956
29506
34506
27165
26736
23691
18157
17328
18205
20995
17382
9367
31124
26551
30651
25859
25100
25778
20418
18688
20424
24776
19814
12738
31566
30111
30019
31934
25826
26835
20205
17789
20520
22518
15572
11509
25447
24090
27786
26195
20516
22759
19028
16971
20036




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

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5176793.62380.000345
20.587464.11227.5e-05
30.3475352.43270.009341
40.2330941.63170.054581
50.1174370.82210.207514
60.1204250.8430.20167
7-0.040752-0.28530.388322
80.0029920.02090.491687
9-0.167451-1.17220.1234
10-0.212074-1.48450.072038
11-0.261268-1.82890.036754
12-0.376376-2.63460.005622
13-0.351692-2.46180.008694
14-0.307311-2.15120.01821
15-0.198416-1.38890.08557
16-0.177897-1.24530.109476
17-0.083855-0.5870.279954
18-0.09574-0.67020.252944
19-0.049036-0.34320.36644
20-0.03239-0.22670.410789
210.0868080.60770.273111
22-0.02625-0.18380.427483
230.1754931.22840.112573
240.0627150.4390.331294
250.1816881.27180.104721
260.1569421.09860.138657
270.124160.86910.19451
280.0139430.09760.461323
290.0500690.35050.363738
30-0.082335-0.57630.283509
31-0.017559-0.12290.451339
32-0.095052-0.66540.254469
33-0.124874-0.87410.193159
34-0.09536-0.66750.253786
35-0.155622-1.08940.140664
36-0.146934-1.02850.154373

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.517679 & 3.6238 & 0.000345 \tabularnewline
2 & 0.58746 & 4.1122 & 7.5e-05 \tabularnewline
3 & 0.347535 & 2.4327 & 0.009341 \tabularnewline
4 & 0.233094 & 1.6317 & 0.054581 \tabularnewline
5 & 0.117437 & 0.8221 & 0.207514 \tabularnewline
6 & 0.120425 & 0.843 & 0.20167 \tabularnewline
7 & -0.040752 & -0.2853 & 0.388322 \tabularnewline
8 & 0.002992 & 0.0209 & 0.491687 \tabularnewline
9 & -0.167451 & -1.1722 & 0.1234 \tabularnewline
10 & -0.212074 & -1.4845 & 0.072038 \tabularnewline
11 & -0.261268 & -1.8289 & 0.036754 \tabularnewline
12 & -0.376376 & -2.6346 & 0.005622 \tabularnewline
13 & -0.351692 & -2.4618 & 0.008694 \tabularnewline
14 & -0.307311 & -2.1512 & 0.01821 \tabularnewline
15 & -0.198416 & -1.3889 & 0.08557 \tabularnewline
16 & -0.177897 & -1.2453 & 0.109476 \tabularnewline
17 & -0.083855 & -0.587 & 0.279954 \tabularnewline
18 & -0.09574 & -0.6702 & 0.252944 \tabularnewline
19 & -0.049036 & -0.3432 & 0.36644 \tabularnewline
20 & -0.03239 & -0.2267 & 0.410789 \tabularnewline
21 & 0.086808 & 0.6077 & 0.273111 \tabularnewline
22 & -0.02625 & -0.1838 & 0.427483 \tabularnewline
23 & 0.175493 & 1.2284 & 0.112573 \tabularnewline
24 & 0.062715 & 0.439 & 0.331294 \tabularnewline
25 & 0.181688 & 1.2718 & 0.104721 \tabularnewline
26 & 0.156942 & 1.0986 & 0.138657 \tabularnewline
27 & 0.12416 & 0.8691 & 0.19451 \tabularnewline
28 & 0.013943 & 0.0976 & 0.461323 \tabularnewline
29 & 0.050069 & 0.3505 & 0.363738 \tabularnewline
30 & -0.082335 & -0.5763 & 0.283509 \tabularnewline
31 & -0.017559 & -0.1229 & 0.451339 \tabularnewline
32 & -0.095052 & -0.6654 & 0.254469 \tabularnewline
33 & -0.124874 & -0.8741 & 0.193159 \tabularnewline
34 & -0.09536 & -0.6675 & 0.253786 \tabularnewline
35 & -0.155622 & -1.0894 & 0.140664 \tabularnewline
36 & -0.146934 & -1.0285 & 0.154373 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61981&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.517679[/C][C]3.6238[/C][C]0.000345[/C][/ROW]
[ROW][C]2[/C][C]0.58746[/C][C]4.1122[/C][C]7.5e-05[/C][/ROW]
[ROW][C]3[/C][C]0.347535[/C][C]2.4327[/C][C]0.009341[/C][/ROW]
[ROW][C]4[/C][C]0.233094[/C][C]1.6317[/C][C]0.054581[/C][/ROW]
[ROW][C]5[/C][C]0.117437[/C][C]0.8221[/C][C]0.207514[/C][/ROW]
[ROW][C]6[/C][C]0.120425[/C][C]0.843[/C][C]0.20167[/C][/ROW]
[ROW][C]7[/C][C]-0.040752[/C][C]-0.2853[/C][C]0.388322[/C][/ROW]
[ROW][C]8[/C][C]0.002992[/C][C]0.0209[/C][C]0.491687[/C][/ROW]
[ROW][C]9[/C][C]-0.167451[/C][C]-1.1722[/C][C]0.1234[/C][/ROW]
[ROW][C]10[/C][C]-0.212074[/C][C]-1.4845[/C][C]0.072038[/C][/ROW]
[ROW][C]11[/C][C]-0.261268[/C][C]-1.8289[/C][C]0.036754[/C][/ROW]
[ROW][C]12[/C][C]-0.376376[/C][C]-2.6346[/C][C]0.005622[/C][/ROW]
[ROW][C]13[/C][C]-0.351692[/C][C]-2.4618[/C][C]0.008694[/C][/ROW]
[ROW][C]14[/C][C]-0.307311[/C][C]-2.1512[/C][C]0.01821[/C][/ROW]
[ROW][C]15[/C][C]-0.198416[/C][C]-1.3889[/C][C]0.08557[/C][/ROW]
[ROW][C]16[/C][C]-0.177897[/C][C]-1.2453[/C][C]0.109476[/C][/ROW]
[ROW][C]17[/C][C]-0.083855[/C][C]-0.587[/C][C]0.279954[/C][/ROW]
[ROW][C]18[/C][C]-0.09574[/C][C]-0.6702[/C][C]0.252944[/C][/ROW]
[ROW][C]19[/C][C]-0.049036[/C][C]-0.3432[/C][C]0.36644[/C][/ROW]
[ROW][C]20[/C][C]-0.03239[/C][C]-0.2267[/C][C]0.410789[/C][/ROW]
[ROW][C]21[/C][C]0.086808[/C][C]0.6077[/C][C]0.273111[/C][/ROW]
[ROW][C]22[/C][C]-0.02625[/C][C]-0.1838[/C][C]0.427483[/C][/ROW]
[ROW][C]23[/C][C]0.175493[/C][C]1.2284[/C][C]0.112573[/C][/ROW]
[ROW][C]24[/C][C]0.062715[/C][C]0.439[/C][C]0.331294[/C][/ROW]
[ROW][C]25[/C][C]0.181688[/C][C]1.2718[/C][C]0.104721[/C][/ROW]
[ROW][C]26[/C][C]0.156942[/C][C]1.0986[/C][C]0.138657[/C][/ROW]
[ROW][C]27[/C][C]0.12416[/C][C]0.8691[/C][C]0.19451[/C][/ROW]
[ROW][C]28[/C][C]0.013943[/C][C]0.0976[/C][C]0.461323[/C][/ROW]
[ROW][C]29[/C][C]0.050069[/C][C]0.3505[/C][C]0.363738[/C][/ROW]
[ROW][C]30[/C][C]-0.082335[/C][C]-0.5763[/C][C]0.283509[/C][/ROW]
[ROW][C]31[/C][C]-0.017559[/C][C]-0.1229[/C][C]0.451339[/C][/ROW]
[ROW][C]32[/C][C]-0.095052[/C][C]-0.6654[/C][C]0.254469[/C][/ROW]
[ROW][C]33[/C][C]-0.124874[/C][C]-0.8741[/C][C]0.193159[/C][/ROW]
[ROW][C]34[/C][C]-0.09536[/C][C]-0.6675[/C][C]0.253786[/C][/ROW]
[ROW][C]35[/C][C]-0.155622[/C][C]-1.0894[/C][C]0.140664[/C][/ROW]
[ROW][C]36[/C][C]-0.146934[/C][C]-1.0285[/C][C]0.154373[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61981&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61981&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.5176793.62380.000345
20.587464.11227.5e-05
30.3475352.43270.009341
40.2330941.63170.054581
50.1174370.82210.207514
60.1204250.8430.20167
7-0.040752-0.28530.388322
80.0029920.02090.491687
9-0.167451-1.17220.1234
10-0.212074-1.48450.072038
11-0.261268-1.82890.036754
12-0.376376-2.63460.005622
13-0.351692-2.46180.008694
14-0.307311-2.15120.01821
15-0.198416-1.38890.08557
16-0.177897-1.24530.109476
17-0.083855-0.5870.279954
18-0.09574-0.67020.252944
19-0.049036-0.34320.36644
20-0.03239-0.22670.410789
210.0868080.60770.273111
22-0.02625-0.18380.427483
230.1754931.22840.112573
240.0627150.4390.331294
250.1816881.27180.104721
260.1569421.09860.138657
270.124160.86910.19451
280.0139430.09760.461323
290.0500690.35050.363738
30-0.082335-0.57630.283509
31-0.017559-0.12290.451339
32-0.095052-0.66540.254469
33-0.124874-0.87410.193159
34-0.09536-0.66750.253786
35-0.155622-1.08940.140664
36-0.146934-1.02850.154373







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5176793.62380.000345
20.4364283.0550.001818
3-0.084015-0.58810.279582
4-0.184114-1.28880.10176
5-0.063418-0.44390.329526
60.1477541.03430.153042
7-0.135744-0.95020.173336
8-0.039219-0.27450.392414
9-0.159503-1.11650.134822
10-0.155217-1.08650.141283
11-0.015325-0.10730.457506
12-0.181262-1.26880.105247
13-0.049988-0.34990.363951
140.0822190.57550.283781
150.2121571.48510.071961
16-0.08493-0.59450.277454
17-0.082466-0.57730.283204
18-0.004411-0.03090.487747
19-0.004403-0.03080.487768
200.0290060.2030.419971
210.1154930.80850.211369
22-0.265843-1.86090.034382
230.0973330.68130.249435
240.0315560.22090.413046
250.0297630.20830.417913
260.0202380.14170.443963
27-0.063038-0.44130.330481
28-0.164375-1.15060.127736
290.0080770.05650.47757
300.0514120.35990.36024
31-0.06848-0.47940.316908
32-0.098162-0.68710.247618
33-0.01967-0.13770.445526
340.0590770.41350.340508
35-0.042882-0.30020.382657
36-0.054425-0.3810.352435

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.517679 & 3.6238 & 0.000345 \tabularnewline
2 & 0.436428 & 3.055 & 0.001818 \tabularnewline
3 & -0.084015 & -0.5881 & 0.279582 \tabularnewline
4 & -0.184114 & -1.2888 & 0.10176 \tabularnewline
5 & -0.063418 & -0.4439 & 0.329526 \tabularnewline
6 & 0.147754 & 1.0343 & 0.153042 \tabularnewline
7 & -0.135744 & -0.9502 & 0.173336 \tabularnewline
8 & -0.039219 & -0.2745 & 0.392414 \tabularnewline
9 & -0.159503 & -1.1165 & 0.134822 \tabularnewline
10 & -0.155217 & -1.0865 & 0.141283 \tabularnewline
11 & -0.015325 & -0.1073 & 0.457506 \tabularnewline
12 & -0.181262 & -1.2688 & 0.105247 \tabularnewline
13 & -0.049988 & -0.3499 & 0.363951 \tabularnewline
14 & 0.082219 & 0.5755 & 0.283781 \tabularnewline
15 & 0.212157 & 1.4851 & 0.071961 \tabularnewline
16 & -0.08493 & -0.5945 & 0.277454 \tabularnewline
17 & -0.082466 & -0.5773 & 0.283204 \tabularnewline
18 & -0.004411 & -0.0309 & 0.487747 \tabularnewline
19 & -0.004403 & -0.0308 & 0.487768 \tabularnewline
20 & 0.029006 & 0.203 & 0.419971 \tabularnewline
21 & 0.115493 & 0.8085 & 0.211369 \tabularnewline
22 & -0.265843 & -1.8609 & 0.034382 \tabularnewline
23 & 0.097333 & 0.6813 & 0.249435 \tabularnewline
24 & 0.031556 & 0.2209 & 0.413046 \tabularnewline
25 & 0.029763 & 0.2083 & 0.417913 \tabularnewline
26 & 0.020238 & 0.1417 & 0.443963 \tabularnewline
27 & -0.063038 & -0.4413 & 0.330481 \tabularnewline
28 & -0.164375 & -1.1506 & 0.127736 \tabularnewline
29 & 0.008077 & 0.0565 & 0.47757 \tabularnewline
30 & 0.051412 & 0.3599 & 0.36024 \tabularnewline
31 & -0.06848 & -0.4794 & 0.316908 \tabularnewline
32 & -0.098162 & -0.6871 & 0.247618 \tabularnewline
33 & -0.01967 & -0.1377 & 0.445526 \tabularnewline
34 & 0.059077 & 0.4135 & 0.340508 \tabularnewline
35 & -0.042882 & -0.3002 & 0.382657 \tabularnewline
36 & -0.054425 & -0.381 & 0.352435 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61981&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.517679[/C][C]3.6238[/C][C]0.000345[/C][/ROW]
[ROW][C]2[/C][C]0.436428[/C][C]3.055[/C][C]0.001818[/C][/ROW]
[ROW][C]3[/C][C]-0.084015[/C][C]-0.5881[/C][C]0.279582[/C][/ROW]
[ROW][C]4[/C][C]-0.184114[/C][C]-1.2888[/C][C]0.10176[/C][/ROW]
[ROW][C]5[/C][C]-0.063418[/C][C]-0.4439[/C][C]0.329526[/C][/ROW]
[ROW][C]6[/C][C]0.147754[/C][C]1.0343[/C][C]0.153042[/C][/ROW]
[ROW][C]7[/C][C]-0.135744[/C][C]-0.9502[/C][C]0.173336[/C][/ROW]
[ROW][C]8[/C][C]-0.039219[/C][C]-0.2745[/C][C]0.392414[/C][/ROW]
[ROW][C]9[/C][C]-0.159503[/C][C]-1.1165[/C][C]0.134822[/C][/ROW]
[ROW][C]10[/C][C]-0.155217[/C][C]-1.0865[/C][C]0.141283[/C][/ROW]
[ROW][C]11[/C][C]-0.015325[/C][C]-0.1073[/C][C]0.457506[/C][/ROW]
[ROW][C]12[/C][C]-0.181262[/C][C]-1.2688[/C][C]0.105247[/C][/ROW]
[ROW][C]13[/C][C]-0.049988[/C][C]-0.3499[/C][C]0.363951[/C][/ROW]
[ROW][C]14[/C][C]0.082219[/C][C]0.5755[/C][C]0.283781[/C][/ROW]
[ROW][C]15[/C][C]0.212157[/C][C]1.4851[/C][C]0.071961[/C][/ROW]
[ROW][C]16[/C][C]-0.08493[/C][C]-0.5945[/C][C]0.277454[/C][/ROW]
[ROW][C]17[/C][C]-0.082466[/C][C]-0.5773[/C][C]0.283204[/C][/ROW]
[ROW][C]18[/C][C]-0.004411[/C][C]-0.0309[/C][C]0.487747[/C][/ROW]
[ROW][C]19[/C][C]-0.004403[/C][C]-0.0308[/C][C]0.487768[/C][/ROW]
[ROW][C]20[/C][C]0.029006[/C][C]0.203[/C][C]0.419971[/C][/ROW]
[ROW][C]21[/C][C]0.115493[/C][C]0.8085[/C][C]0.211369[/C][/ROW]
[ROW][C]22[/C][C]-0.265843[/C][C]-1.8609[/C][C]0.034382[/C][/ROW]
[ROW][C]23[/C][C]0.097333[/C][C]0.6813[/C][C]0.249435[/C][/ROW]
[ROW][C]24[/C][C]0.031556[/C][C]0.2209[/C][C]0.413046[/C][/ROW]
[ROW][C]25[/C][C]0.029763[/C][C]0.2083[/C][C]0.417913[/C][/ROW]
[ROW][C]26[/C][C]0.020238[/C][C]0.1417[/C][C]0.443963[/C][/ROW]
[ROW][C]27[/C][C]-0.063038[/C][C]-0.4413[/C][C]0.330481[/C][/ROW]
[ROW][C]28[/C][C]-0.164375[/C][C]-1.1506[/C][C]0.127736[/C][/ROW]
[ROW][C]29[/C][C]0.008077[/C][C]0.0565[/C][C]0.47757[/C][/ROW]
[ROW][C]30[/C][C]0.051412[/C][C]0.3599[/C][C]0.36024[/C][/ROW]
[ROW][C]31[/C][C]-0.06848[/C][C]-0.4794[/C][C]0.316908[/C][/ROW]
[ROW][C]32[/C][C]-0.098162[/C][C]-0.6871[/C][C]0.247618[/C][/ROW]
[ROW][C]33[/C][C]-0.01967[/C][C]-0.1377[/C][C]0.445526[/C][/ROW]
[ROW][C]34[/C][C]0.059077[/C][C]0.4135[/C][C]0.340508[/C][/ROW]
[ROW][C]35[/C][C]-0.042882[/C][C]-0.3002[/C][C]0.382657[/C][/ROW]
[ROW][C]36[/C][C]-0.054425[/C][C]-0.381[/C][C]0.352435[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61981&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61981&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.5176793.62380.000345
20.4364283.0550.001818
3-0.084015-0.58810.279582
4-0.184114-1.28880.10176
5-0.063418-0.44390.329526
60.1477541.03430.153042
7-0.135744-0.95020.173336
8-0.039219-0.27450.392414
9-0.159503-1.11650.134822
10-0.155217-1.08650.141283
11-0.015325-0.10730.457506
12-0.181262-1.26880.105247
13-0.049988-0.34990.363951
140.0822190.57550.283781
150.2121571.48510.071961
16-0.08493-0.59450.277454
17-0.082466-0.57730.283204
18-0.004411-0.03090.487747
19-0.004403-0.03080.487768
200.0290060.2030.419971
210.1154930.80850.211369
22-0.265843-1.86090.034382
230.0973330.68130.249435
240.0315560.22090.413046
250.0297630.20830.417913
260.0202380.14170.443963
27-0.063038-0.44130.330481
28-0.164375-1.15060.127736
290.0080770.05650.47757
300.0514120.35990.36024
31-0.06848-0.47940.316908
32-0.098162-0.68710.247618
33-0.01967-0.13770.445526
340.0590770.41350.340508
35-0.042882-0.30020.382657
36-0.054425-0.3810.352435



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