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 computationMon, 08 Dec 2008 12:25:05 -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/2008/Dec/08/t1228764336nwmctopo0faaldo.htm/, Retrieved Thu, 16 May 2024 11:20:27 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=30796, Retrieved Thu, 16 May 2024 11:20:27 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact156
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [] [2008-12-07 13:28:44] [a4ee3bef49b119f4bd2e925060c84f5e]
-         [(Partial) Autocorrelation Function] [] [2008-12-08 19:25:05] [3762bf489501725951ad2579179cae2a] [Current]
Feedback Forum

Post a new message
Dataseries X:
31514
27071
29462
26105
22397
23843
21705
18089
20764
25316
17704
15548
28029
29383
36438
32034
22679
24319
18004
17537
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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=30796&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.3669772.98130.002008
20.1626311.32120.095495
3-0.0345-0.28030.390069
4-0.207847-1.68860.048012
5-0.271546-2.2060.015433
6-0.48281-3.92240.000106
7-0.281704-2.28860.012657
8-0.225495-1.83190.035737
9-0.105329-0.85570.19763
100.0715920.58160.281403
110.2281141.85320.034162
120.7451416.05360
130.2910882.36480.010494
140.1519261.23430.110743
150.0165110.13410.446851
16-0.147605-1.19920.117378
17-0.225684-1.83350.035621
18-0.42783-3.47570.000453
19-0.254458-2.06720.021319
20-0.237047-1.92580.029221
21-0.128156-1.04110.150804
220.0518830.42150.33738
230.2007981.63130.053796
240.5740534.66368e-06
250.2468272.00520.024521
260.1075890.87410.192629
270.0156990.12750.449449
28-0.098938-0.80380.212206
29-0.165601-1.34540.091558
30-0.316988-2.57520.006133
31-0.17804-1.44640.076399
32-0.212115-1.72320.044765
33-0.129702-1.05370.14793
340.0128210.10420.458681
350.091060.73980.23103
360.3691222.99880.00191

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.366977 & 2.9813 & 0.002008 \tabularnewline
2 & 0.162631 & 1.3212 & 0.095495 \tabularnewline
3 & -0.0345 & -0.2803 & 0.390069 \tabularnewline
4 & -0.207847 & -1.6886 & 0.048012 \tabularnewline
5 & -0.271546 & -2.206 & 0.015433 \tabularnewline
6 & -0.48281 & -3.9224 & 0.000106 \tabularnewline
7 & -0.281704 & -2.2886 & 0.012657 \tabularnewline
8 & -0.225495 & -1.8319 & 0.035737 \tabularnewline
9 & -0.105329 & -0.8557 & 0.19763 \tabularnewline
10 & 0.071592 & 0.5816 & 0.281403 \tabularnewline
11 & 0.228114 & 1.8532 & 0.034162 \tabularnewline
12 & 0.745141 & 6.0536 & 0 \tabularnewline
13 & 0.291088 & 2.3648 & 0.010494 \tabularnewline
14 & 0.151926 & 1.2343 & 0.110743 \tabularnewline
15 & 0.016511 & 0.1341 & 0.446851 \tabularnewline
16 & -0.147605 & -1.1992 & 0.117378 \tabularnewline
17 & -0.225684 & -1.8335 & 0.035621 \tabularnewline
18 & -0.42783 & -3.4757 & 0.000453 \tabularnewline
19 & -0.254458 & -2.0672 & 0.021319 \tabularnewline
20 & -0.237047 & -1.9258 & 0.029221 \tabularnewline
21 & -0.128156 & -1.0411 & 0.150804 \tabularnewline
22 & 0.051883 & 0.4215 & 0.33738 \tabularnewline
23 & 0.200798 & 1.6313 & 0.053796 \tabularnewline
24 & 0.574053 & 4.6636 & 8e-06 \tabularnewline
25 & 0.246827 & 2.0052 & 0.024521 \tabularnewline
26 & 0.107589 & 0.8741 & 0.192629 \tabularnewline
27 & 0.015699 & 0.1275 & 0.449449 \tabularnewline
28 & -0.098938 & -0.8038 & 0.212206 \tabularnewline
29 & -0.165601 & -1.3454 & 0.091558 \tabularnewline
30 & -0.316988 & -2.5752 & 0.006133 \tabularnewline
31 & -0.17804 & -1.4464 & 0.076399 \tabularnewline
32 & -0.212115 & -1.7232 & 0.044765 \tabularnewline
33 & -0.129702 & -1.0537 & 0.14793 \tabularnewline
34 & 0.012821 & 0.1042 & 0.458681 \tabularnewline
35 & 0.09106 & 0.7398 & 0.23103 \tabularnewline
36 & 0.369122 & 2.9988 & 0.00191 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=30796&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.366977[/C][C]2.9813[/C][C]0.002008[/C][/ROW]
[ROW][C]2[/C][C]0.162631[/C][C]1.3212[/C][C]0.095495[/C][/ROW]
[ROW][C]3[/C][C]-0.0345[/C][C]-0.2803[/C][C]0.390069[/C][/ROW]
[ROW][C]4[/C][C]-0.207847[/C][C]-1.6886[/C][C]0.048012[/C][/ROW]
[ROW][C]5[/C][C]-0.271546[/C][C]-2.206[/C][C]0.015433[/C][/ROW]
[ROW][C]6[/C][C]-0.48281[/C][C]-3.9224[/C][C]0.000106[/C][/ROW]
[ROW][C]7[/C][C]-0.281704[/C][C]-2.2886[/C][C]0.012657[/C][/ROW]
[ROW][C]8[/C][C]-0.225495[/C][C]-1.8319[/C][C]0.035737[/C][/ROW]
[ROW][C]9[/C][C]-0.105329[/C][C]-0.8557[/C][C]0.19763[/C][/ROW]
[ROW][C]10[/C][C]0.071592[/C][C]0.5816[/C][C]0.281403[/C][/ROW]
[ROW][C]11[/C][C]0.228114[/C][C]1.8532[/C][C]0.034162[/C][/ROW]
[ROW][C]12[/C][C]0.745141[/C][C]6.0536[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.291088[/C][C]2.3648[/C][C]0.010494[/C][/ROW]
[ROW][C]14[/C][C]0.151926[/C][C]1.2343[/C][C]0.110743[/C][/ROW]
[ROW][C]15[/C][C]0.016511[/C][C]0.1341[/C][C]0.446851[/C][/ROW]
[ROW][C]16[/C][C]-0.147605[/C][C]-1.1992[/C][C]0.117378[/C][/ROW]
[ROW][C]17[/C][C]-0.225684[/C][C]-1.8335[/C][C]0.035621[/C][/ROW]
[ROW][C]18[/C][C]-0.42783[/C][C]-3.4757[/C][C]0.000453[/C][/ROW]
[ROW][C]19[/C][C]-0.254458[/C][C]-2.0672[/C][C]0.021319[/C][/ROW]
[ROW][C]20[/C][C]-0.237047[/C][C]-1.9258[/C][C]0.029221[/C][/ROW]
[ROW][C]21[/C][C]-0.128156[/C][C]-1.0411[/C][C]0.150804[/C][/ROW]
[ROW][C]22[/C][C]0.051883[/C][C]0.4215[/C][C]0.33738[/C][/ROW]
[ROW][C]23[/C][C]0.200798[/C][C]1.6313[/C][C]0.053796[/C][/ROW]
[ROW][C]24[/C][C]0.574053[/C][C]4.6636[/C][C]8e-06[/C][/ROW]
[ROW][C]25[/C][C]0.246827[/C][C]2.0052[/C][C]0.024521[/C][/ROW]
[ROW][C]26[/C][C]0.107589[/C][C]0.8741[/C][C]0.192629[/C][/ROW]
[ROW][C]27[/C][C]0.015699[/C][C]0.1275[/C][C]0.449449[/C][/ROW]
[ROW][C]28[/C][C]-0.098938[/C][C]-0.8038[/C][C]0.212206[/C][/ROW]
[ROW][C]29[/C][C]-0.165601[/C][C]-1.3454[/C][C]0.091558[/C][/ROW]
[ROW][C]30[/C][C]-0.316988[/C][C]-2.5752[/C][C]0.006133[/C][/ROW]
[ROW][C]31[/C][C]-0.17804[/C][C]-1.4464[/C][C]0.076399[/C][/ROW]
[ROW][C]32[/C][C]-0.212115[/C][C]-1.7232[/C][C]0.044765[/C][/ROW]
[ROW][C]33[/C][C]-0.129702[/C][C]-1.0537[/C][C]0.14793[/C][/ROW]
[ROW][C]34[/C][C]0.012821[/C][C]0.1042[/C][C]0.458681[/C][/ROW]
[ROW][C]35[/C][C]0.09106[/C][C]0.7398[/C][C]0.23103[/C][/ROW]
[ROW][C]36[/C][C]0.369122[/C][C]2.9988[/C][C]0.00191[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=30796&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=30796&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.3669772.98130.002008
20.1626311.32120.095495
3-0.0345-0.28030.390069
4-0.207847-1.68860.048012
5-0.271546-2.2060.015433
6-0.48281-3.92240.000106
7-0.281704-2.28860.012657
8-0.225495-1.83190.035737
9-0.105329-0.85570.19763
100.0715920.58160.281403
110.2281141.85320.034162
120.7451416.05360
130.2910882.36480.010494
140.1519261.23430.110743
150.0165110.13410.446851
16-0.147605-1.19920.117378
17-0.225684-1.83350.035621
18-0.42783-3.47570.000453
19-0.254458-2.06720.021319
20-0.237047-1.92580.029221
21-0.128156-1.04110.150804
220.0518830.42150.33738
230.2007981.63130.053796
240.5740534.66368e-06
250.2468272.00520.024521
260.1075890.87410.192629
270.0156990.12750.449449
28-0.098938-0.80380.212206
29-0.165601-1.34540.091558
30-0.316988-2.57520.006133
31-0.17804-1.44640.076399
32-0.212115-1.72320.044765
33-0.129702-1.05370.14793
340.0128210.10420.458681
350.091060.73980.23103
360.3691222.99880.00191







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3669772.98130.002008
20.032310.26250.396882
3-0.120439-0.97850.165712
4-0.191895-1.5590.061894
5-0.146053-1.18650.119832
6-0.381903-3.10260.001411
7-0.033046-0.26850.394589
8-0.163924-1.33170.093766
9-0.133554-1.0850.140936
10-0.051227-0.41620.339317
110.0634010.51510.304112
120.6441635.23321e-06
13-0.315794-2.56550.006291
14-0.053685-0.43610.33208
150.0156930.12750.449469
160.0185380.15060.440375
17-0.066083-0.53690.296583
18-0.00313-0.02540.489896
19-0.021131-0.17170.432112
20-0.100185-0.81390.209312
210.0419070.34050.367299
220.0498980.40540.343258
230.0739670.60090.274978
24-0.123315-1.00180.160046
250.0135120.10980.456463
26-0.1382-1.12270.132808
27-0.024681-0.20050.420849
280.0537950.4370.331756
290.0242980.19740.422061
300.0456650.3710.35592
31-0.009977-0.08110.467823
32-0.039582-0.32160.374399
33-0.019723-0.16020.436594
34-0.029142-0.23670.406792
35-0.215494-1.75070.042324
36-0.06514-0.52920.299222

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.366977 & 2.9813 & 0.002008 \tabularnewline
2 & 0.03231 & 0.2625 & 0.396882 \tabularnewline
3 & -0.120439 & -0.9785 & 0.165712 \tabularnewline
4 & -0.191895 & -1.559 & 0.061894 \tabularnewline
5 & -0.146053 & -1.1865 & 0.119832 \tabularnewline
6 & -0.381903 & -3.1026 & 0.001411 \tabularnewline
7 & -0.033046 & -0.2685 & 0.394589 \tabularnewline
8 & -0.163924 & -1.3317 & 0.093766 \tabularnewline
9 & -0.133554 & -1.085 & 0.140936 \tabularnewline
10 & -0.051227 & -0.4162 & 0.339317 \tabularnewline
11 & 0.063401 & 0.5151 & 0.304112 \tabularnewline
12 & 0.644163 & 5.2332 & 1e-06 \tabularnewline
13 & -0.315794 & -2.5655 & 0.006291 \tabularnewline
14 & -0.053685 & -0.4361 & 0.33208 \tabularnewline
15 & 0.015693 & 0.1275 & 0.449469 \tabularnewline
16 & 0.018538 & 0.1506 & 0.440375 \tabularnewline
17 & -0.066083 & -0.5369 & 0.296583 \tabularnewline
18 & -0.00313 & -0.0254 & 0.489896 \tabularnewline
19 & -0.021131 & -0.1717 & 0.432112 \tabularnewline
20 & -0.100185 & -0.8139 & 0.209312 \tabularnewline
21 & 0.041907 & 0.3405 & 0.367299 \tabularnewline
22 & 0.049898 & 0.4054 & 0.343258 \tabularnewline
23 & 0.073967 & 0.6009 & 0.274978 \tabularnewline
24 & -0.123315 & -1.0018 & 0.160046 \tabularnewline
25 & 0.013512 & 0.1098 & 0.456463 \tabularnewline
26 & -0.1382 & -1.1227 & 0.132808 \tabularnewline
27 & -0.024681 & -0.2005 & 0.420849 \tabularnewline
28 & 0.053795 & 0.437 & 0.331756 \tabularnewline
29 & 0.024298 & 0.1974 & 0.422061 \tabularnewline
30 & 0.045665 & 0.371 & 0.35592 \tabularnewline
31 & -0.009977 & -0.0811 & 0.467823 \tabularnewline
32 & -0.039582 & -0.3216 & 0.374399 \tabularnewline
33 & -0.019723 & -0.1602 & 0.436594 \tabularnewline
34 & -0.029142 & -0.2367 & 0.406792 \tabularnewline
35 & -0.215494 & -1.7507 & 0.042324 \tabularnewline
36 & -0.06514 & -0.5292 & 0.299222 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=30796&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.366977[/C][C]2.9813[/C][C]0.002008[/C][/ROW]
[ROW][C]2[/C][C]0.03231[/C][C]0.2625[/C][C]0.396882[/C][/ROW]
[ROW][C]3[/C][C]-0.120439[/C][C]-0.9785[/C][C]0.165712[/C][/ROW]
[ROW][C]4[/C][C]-0.191895[/C][C]-1.559[/C][C]0.061894[/C][/ROW]
[ROW][C]5[/C][C]-0.146053[/C][C]-1.1865[/C][C]0.119832[/C][/ROW]
[ROW][C]6[/C][C]-0.381903[/C][C]-3.1026[/C][C]0.001411[/C][/ROW]
[ROW][C]7[/C][C]-0.033046[/C][C]-0.2685[/C][C]0.394589[/C][/ROW]
[ROW][C]8[/C][C]-0.163924[/C][C]-1.3317[/C][C]0.093766[/C][/ROW]
[ROW][C]9[/C][C]-0.133554[/C][C]-1.085[/C][C]0.140936[/C][/ROW]
[ROW][C]10[/C][C]-0.051227[/C][C]-0.4162[/C][C]0.339317[/C][/ROW]
[ROW][C]11[/C][C]0.063401[/C][C]0.5151[/C][C]0.304112[/C][/ROW]
[ROW][C]12[/C][C]0.644163[/C][C]5.2332[/C][C]1e-06[/C][/ROW]
[ROW][C]13[/C][C]-0.315794[/C][C]-2.5655[/C][C]0.006291[/C][/ROW]
[ROW][C]14[/C][C]-0.053685[/C][C]-0.4361[/C][C]0.33208[/C][/ROW]
[ROW][C]15[/C][C]0.015693[/C][C]0.1275[/C][C]0.449469[/C][/ROW]
[ROW][C]16[/C][C]0.018538[/C][C]0.1506[/C][C]0.440375[/C][/ROW]
[ROW][C]17[/C][C]-0.066083[/C][C]-0.5369[/C][C]0.296583[/C][/ROW]
[ROW][C]18[/C][C]-0.00313[/C][C]-0.0254[/C][C]0.489896[/C][/ROW]
[ROW][C]19[/C][C]-0.021131[/C][C]-0.1717[/C][C]0.432112[/C][/ROW]
[ROW][C]20[/C][C]-0.100185[/C][C]-0.8139[/C][C]0.209312[/C][/ROW]
[ROW][C]21[/C][C]0.041907[/C][C]0.3405[/C][C]0.367299[/C][/ROW]
[ROW][C]22[/C][C]0.049898[/C][C]0.4054[/C][C]0.343258[/C][/ROW]
[ROW][C]23[/C][C]0.073967[/C][C]0.6009[/C][C]0.274978[/C][/ROW]
[ROW][C]24[/C][C]-0.123315[/C][C]-1.0018[/C][C]0.160046[/C][/ROW]
[ROW][C]25[/C][C]0.013512[/C][C]0.1098[/C][C]0.456463[/C][/ROW]
[ROW][C]26[/C][C]-0.1382[/C][C]-1.1227[/C][C]0.132808[/C][/ROW]
[ROW][C]27[/C][C]-0.024681[/C][C]-0.2005[/C][C]0.420849[/C][/ROW]
[ROW][C]28[/C][C]0.053795[/C][C]0.437[/C][C]0.331756[/C][/ROW]
[ROW][C]29[/C][C]0.024298[/C][C]0.1974[/C][C]0.422061[/C][/ROW]
[ROW][C]30[/C][C]0.045665[/C][C]0.371[/C][C]0.35592[/C][/ROW]
[ROW][C]31[/C][C]-0.009977[/C][C]-0.0811[/C][C]0.467823[/C][/ROW]
[ROW][C]32[/C][C]-0.039582[/C][C]-0.3216[/C][C]0.374399[/C][/ROW]
[ROW][C]33[/C][C]-0.019723[/C][C]-0.1602[/C][C]0.436594[/C][/ROW]
[ROW][C]34[/C][C]-0.029142[/C][C]-0.2367[/C][C]0.406792[/C][/ROW]
[ROW][C]35[/C][C]-0.215494[/C][C]-1.7507[/C][C]0.042324[/C][/ROW]
[ROW][C]36[/C][C]-0.06514[/C][C]-0.5292[/C][C]0.299222[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=30796&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=30796&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.3669772.98130.002008
20.032310.26250.396882
3-0.120439-0.97850.165712
4-0.191895-1.5590.061894
5-0.146053-1.18650.119832
6-0.381903-3.10260.001411
7-0.033046-0.26850.394589
8-0.163924-1.33170.093766
9-0.133554-1.0850.140936
10-0.051227-0.41620.339317
110.0634010.51510.304112
120.6441635.23321e-06
13-0.315794-2.56550.006291
14-0.053685-0.43610.33208
150.0156930.12750.449469
160.0185380.15060.440375
17-0.066083-0.53690.296583
18-0.00313-0.02540.489896
19-0.021131-0.17170.432112
20-0.100185-0.81390.209312
210.0419070.34050.367299
220.0498980.40540.343258
230.0739670.60090.274978
24-0.123315-1.00180.160046
250.0135120.10980.456463
26-0.1382-1.12270.132808
27-0.024681-0.20050.420849
280.0537950.4370.331756
290.0242980.19740.422061
300.0456650.3710.35592
31-0.009977-0.08110.467823
32-0.039582-0.32160.374399
33-0.019723-0.16020.436594
34-0.029142-0.23670.406792
35-0.215494-1.75070.042324
36-0.06514-0.52920.299222



Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = ; par7 = ; par8 = ; par9 = ; par10 = ; par11 = ; par12 = ; par13 = ; par14 = ; par15 = ; par16 = ; par17 = ; par18 = ; par19 = ; par20 = ;
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 (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='lags',ylab='ACF')
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')