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 computationSat, 21 Nov 2009 12:59: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/Nov/21/t1258833607bwzassu5rgs2h1h.htm/, Retrieved Sun, 28 Apr 2024 08:18:19 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58586, Retrieved Sun, 28 Apr 2024 08:18:19 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact185
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [Partiële autocorr...] [2009-11-21 19:59:09] [2622964eb3e61db9b0dfd11950e3a18c] [Current]
- R P     [(Partial) Autocorrelation Function] [Partiële autocorr...] [2009-11-25 20:46:25] [e2a6b1b31bd881219e1879835b4c60d0]
Feedback Forum

Post a new message
Dataseries X:
5560
3922
3759
4138
4634
3996
4308
4429
5219
4929
5755
5592
4163
4962
5208
4755
4491
5732
5731
5040
6102
4904
5369
5578
4619
4731
5011
5299
4146
4625
4736
4219
5116
4205
4121
5103
4300
4578
3809
5526
4247
3830
4394
4826
4409
4569
4106
4794
3914
3793
4405
4022
4100
4788
3163
3585
3903
4178
3863
4187




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

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.284541.97130.027232
20.1339180.92780.179074
30.4058392.81170.003558
40.3026072.09650.020665
50.0708750.4910.312818
60.0670990.46490.322062
70.1322960.91660.181975
8-0.029507-0.20440.41944
9-0.061588-0.42670.335755
100.0864540.5990.276005
11-0.153311-1.06220.146737
12-0.23537-1.63070.05475
13-0.019805-0.13720.445717
14-0.181652-1.25850.107145
15-0.265212-1.83740.036169
16-0.166845-1.15590.126715
17-0.097001-0.6720.25239
18-0.078242-0.54210.295136
19-0.039512-0.27370.392727
20-0.048628-0.33690.368829
21-0.045053-0.31210.378145
220.1181840.81880.208473
230.0446280.30920.379256
24-0.08651-0.59940.275877
250.0984750.68230.24918
260.2104971.45840.075626
27-0.061703-0.42750.335467
28-0.016275-0.11280.455347
290.0728660.50480.307994
300.003290.02280.490954
31-0.13188-0.91370.182724
320.0072970.05060.479946
33-0.014324-0.09920.460681
34-0.139166-0.96420.169897
35-0.031168-0.21590.414975
36-0.03751-0.25990.398036

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.28454 & 1.9713 & 0.027232 \tabularnewline
2 & 0.133918 & 0.9278 & 0.179074 \tabularnewline
3 & 0.405839 & 2.8117 & 0.003558 \tabularnewline
4 & 0.302607 & 2.0965 & 0.020665 \tabularnewline
5 & 0.070875 & 0.491 & 0.312818 \tabularnewline
6 & 0.067099 & 0.4649 & 0.322062 \tabularnewline
7 & 0.132296 & 0.9166 & 0.181975 \tabularnewline
8 & -0.029507 & -0.2044 & 0.41944 \tabularnewline
9 & -0.061588 & -0.4267 & 0.335755 \tabularnewline
10 & 0.086454 & 0.599 & 0.276005 \tabularnewline
11 & -0.153311 & -1.0622 & 0.146737 \tabularnewline
12 & -0.23537 & -1.6307 & 0.05475 \tabularnewline
13 & -0.019805 & -0.1372 & 0.445717 \tabularnewline
14 & -0.181652 & -1.2585 & 0.107145 \tabularnewline
15 & -0.265212 & -1.8374 & 0.036169 \tabularnewline
16 & -0.166845 & -1.1559 & 0.126715 \tabularnewline
17 & -0.097001 & -0.672 & 0.25239 \tabularnewline
18 & -0.078242 & -0.5421 & 0.295136 \tabularnewline
19 & -0.039512 & -0.2737 & 0.392727 \tabularnewline
20 & -0.048628 & -0.3369 & 0.368829 \tabularnewline
21 & -0.045053 & -0.3121 & 0.378145 \tabularnewline
22 & 0.118184 & 0.8188 & 0.208473 \tabularnewline
23 & 0.044628 & 0.3092 & 0.379256 \tabularnewline
24 & -0.08651 & -0.5994 & 0.275877 \tabularnewline
25 & 0.098475 & 0.6823 & 0.24918 \tabularnewline
26 & 0.210497 & 1.4584 & 0.075626 \tabularnewline
27 & -0.061703 & -0.4275 & 0.335467 \tabularnewline
28 & -0.016275 & -0.1128 & 0.455347 \tabularnewline
29 & 0.072866 & 0.5048 & 0.307994 \tabularnewline
30 & 0.00329 & 0.0228 & 0.490954 \tabularnewline
31 & -0.13188 & -0.9137 & 0.182724 \tabularnewline
32 & 0.007297 & 0.0506 & 0.479946 \tabularnewline
33 & -0.014324 & -0.0992 & 0.460681 \tabularnewline
34 & -0.139166 & -0.9642 & 0.169897 \tabularnewline
35 & -0.031168 & -0.2159 & 0.414975 \tabularnewline
36 & -0.03751 & -0.2599 & 0.398036 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58586&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.28454[/C][C]1.9713[/C][C]0.027232[/C][/ROW]
[ROW][C]2[/C][C]0.133918[/C][C]0.9278[/C][C]0.179074[/C][/ROW]
[ROW][C]3[/C][C]0.405839[/C][C]2.8117[/C][C]0.003558[/C][/ROW]
[ROW][C]4[/C][C]0.302607[/C][C]2.0965[/C][C]0.020665[/C][/ROW]
[ROW][C]5[/C][C]0.070875[/C][C]0.491[/C][C]0.312818[/C][/ROW]
[ROW][C]6[/C][C]0.067099[/C][C]0.4649[/C][C]0.322062[/C][/ROW]
[ROW][C]7[/C][C]0.132296[/C][C]0.9166[/C][C]0.181975[/C][/ROW]
[ROW][C]8[/C][C]-0.029507[/C][C]-0.2044[/C][C]0.41944[/C][/ROW]
[ROW][C]9[/C][C]-0.061588[/C][C]-0.4267[/C][C]0.335755[/C][/ROW]
[ROW][C]10[/C][C]0.086454[/C][C]0.599[/C][C]0.276005[/C][/ROW]
[ROW][C]11[/C][C]-0.153311[/C][C]-1.0622[/C][C]0.146737[/C][/ROW]
[ROW][C]12[/C][C]-0.23537[/C][C]-1.6307[/C][C]0.05475[/C][/ROW]
[ROW][C]13[/C][C]-0.019805[/C][C]-0.1372[/C][C]0.445717[/C][/ROW]
[ROW][C]14[/C][C]-0.181652[/C][C]-1.2585[/C][C]0.107145[/C][/ROW]
[ROW][C]15[/C][C]-0.265212[/C][C]-1.8374[/C][C]0.036169[/C][/ROW]
[ROW][C]16[/C][C]-0.166845[/C][C]-1.1559[/C][C]0.126715[/C][/ROW]
[ROW][C]17[/C][C]-0.097001[/C][C]-0.672[/C][C]0.25239[/C][/ROW]
[ROW][C]18[/C][C]-0.078242[/C][C]-0.5421[/C][C]0.295136[/C][/ROW]
[ROW][C]19[/C][C]-0.039512[/C][C]-0.2737[/C][C]0.392727[/C][/ROW]
[ROW][C]20[/C][C]-0.048628[/C][C]-0.3369[/C][C]0.368829[/C][/ROW]
[ROW][C]21[/C][C]-0.045053[/C][C]-0.3121[/C][C]0.378145[/C][/ROW]
[ROW][C]22[/C][C]0.118184[/C][C]0.8188[/C][C]0.208473[/C][/ROW]
[ROW][C]23[/C][C]0.044628[/C][C]0.3092[/C][C]0.379256[/C][/ROW]
[ROW][C]24[/C][C]-0.08651[/C][C]-0.5994[/C][C]0.275877[/C][/ROW]
[ROW][C]25[/C][C]0.098475[/C][C]0.6823[/C][C]0.24918[/C][/ROW]
[ROW][C]26[/C][C]0.210497[/C][C]1.4584[/C][C]0.075626[/C][/ROW]
[ROW][C]27[/C][C]-0.061703[/C][C]-0.4275[/C][C]0.335467[/C][/ROW]
[ROW][C]28[/C][C]-0.016275[/C][C]-0.1128[/C][C]0.455347[/C][/ROW]
[ROW][C]29[/C][C]0.072866[/C][C]0.5048[/C][C]0.307994[/C][/ROW]
[ROW][C]30[/C][C]0.00329[/C][C]0.0228[/C][C]0.490954[/C][/ROW]
[ROW][C]31[/C][C]-0.13188[/C][C]-0.9137[/C][C]0.182724[/C][/ROW]
[ROW][C]32[/C][C]0.007297[/C][C]0.0506[/C][C]0.479946[/C][/ROW]
[ROW][C]33[/C][C]-0.014324[/C][C]-0.0992[/C][C]0.460681[/C][/ROW]
[ROW][C]34[/C][C]-0.139166[/C][C]-0.9642[/C][C]0.169897[/C][/ROW]
[ROW][C]35[/C][C]-0.031168[/C][C]-0.2159[/C][C]0.414975[/C][/ROW]
[ROW][C]36[/C][C]-0.03751[/C][C]-0.2599[/C][C]0.398036[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58586&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58586&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.284541.97130.027232
20.1339180.92780.179074
30.4058392.81170.003558
40.3026072.09650.020665
50.0708750.4910.312818
60.0670990.46490.322062
70.1322960.91660.181975
8-0.029507-0.20440.41944
9-0.061588-0.42670.335755
100.0864540.5990.276005
11-0.153311-1.06220.146737
12-0.23537-1.63070.05475
13-0.019805-0.13720.445717
14-0.181652-1.25850.107145
15-0.265212-1.83740.036169
16-0.166845-1.15590.126715
17-0.097001-0.6720.25239
18-0.078242-0.54210.295136
19-0.039512-0.27370.392727
20-0.048628-0.33690.368829
21-0.045053-0.31210.378145
220.1181840.81880.208473
230.0446280.30920.379256
24-0.08651-0.59940.275877
250.0984750.68230.24918
260.2104971.45840.075626
27-0.061703-0.42750.335467
28-0.016275-0.11280.455347
290.0728660.50480.307994
300.003290.02280.490954
31-0.13188-0.91370.182724
320.0072970.05060.479946
33-0.014324-0.09920.460681
34-0.139166-0.96420.169897
35-0.031168-0.21590.414975
36-0.03751-0.25990.398036







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.284541.97130.027232
20.057620.39920.345757
30.385962.6740.005107
40.1271670.8810.191343
5-0.073173-0.5070.307252
6-0.110306-0.76420.224238
7-0.02385-0.16520.434726
8-0.115667-0.80140.213436
9-0.01992-0.1380.445406
100.116520.80730.211745
11-0.1942-1.34550.0924
12-0.141871-0.98290.16529
130.0315450.21850.413964
14-0.147967-1.02510.155216
15-0.016728-0.11590.454109
16-0.030578-0.21180.416561
170.0202660.14040.444464
180.1508081.04480.150668
190.133640.92590.179569
20-0.0857-0.59370.277735
21-0.028476-0.19730.422217
220.1506021.04340.150995
23-0.111538-0.77280.221727
24-0.086008-0.59590.277027
250.1007790.69820.244206
260.084460.58520.280591
27-0.173889-1.20470.117106
28-0.04942-0.34240.366774
29-0.153724-1.0650.146095
30-0.009934-0.06880.472708
31-0.073977-0.51250.305316
320.0301330.20880.417755
330.0600340.41590.339657
340.1032020.7150.239034
35-0.038761-0.26850.394716
36-0.114397-0.79260.215964

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.28454 & 1.9713 & 0.027232 \tabularnewline
2 & 0.05762 & 0.3992 & 0.345757 \tabularnewline
3 & 0.38596 & 2.674 & 0.005107 \tabularnewline
4 & 0.127167 & 0.881 & 0.191343 \tabularnewline
5 & -0.073173 & -0.507 & 0.307252 \tabularnewline
6 & -0.110306 & -0.7642 & 0.224238 \tabularnewline
7 & -0.02385 & -0.1652 & 0.434726 \tabularnewline
8 & -0.115667 & -0.8014 & 0.213436 \tabularnewline
9 & -0.01992 & -0.138 & 0.445406 \tabularnewline
10 & 0.11652 & 0.8073 & 0.211745 \tabularnewline
11 & -0.1942 & -1.3455 & 0.0924 \tabularnewline
12 & -0.141871 & -0.9829 & 0.16529 \tabularnewline
13 & 0.031545 & 0.2185 & 0.413964 \tabularnewline
14 & -0.147967 & -1.0251 & 0.155216 \tabularnewline
15 & -0.016728 & -0.1159 & 0.454109 \tabularnewline
16 & -0.030578 & -0.2118 & 0.416561 \tabularnewline
17 & 0.020266 & 0.1404 & 0.444464 \tabularnewline
18 & 0.150808 & 1.0448 & 0.150668 \tabularnewline
19 & 0.13364 & 0.9259 & 0.179569 \tabularnewline
20 & -0.0857 & -0.5937 & 0.277735 \tabularnewline
21 & -0.028476 & -0.1973 & 0.422217 \tabularnewline
22 & 0.150602 & 1.0434 & 0.150995 \tabularnewline
23 & -0.111538 & -0.7728 & 0.221727 \tabularnewline
24 & -0.086008 & -0.5959 & 0.277027 \tabularnewline
25 & 0.100779 & 0.6982 & 0.244206 \tabularnewline
26 & 0.08446 & 0.5852 & 0.280591 \tabularnewline
27 & -0.173889 & -1.2047 & 0.117106 \tabularnewline
28 & -0.04942 & -0.3424 & 0.366774 \tabularnewline
29 & -0.153724 & -1.065 & 0.146095 \tabularnewline
30 & -0.009934 & -0.0688 & 0.472708 \tabularnewline
31 & -0.073977 & -0.5125 & 0.305316 \tabularnewline
32 & 0.030133 & 0.2088 & 0.417755 \tabularnewline
33 & 0.060034 & 0.4159 & 0.339657 \tabularnewline
34 & 0.103202 & 0.715 & 0.239034 \tabularnewline
35 & -0.038761 & -0.2685 & 0.394716 \tabularnewline
36 & -0.114397 & -0.7926 & 0.215964 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58586&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.28454[/C][C]1.9713[/C][C]0.027232[/C][/ROW]
[ROW][C]2[/C][C]0.05762[/C][C]0.3992[/C][C]0.345757[/C][/ROW]
[ROW][C]3[/C][C]0.38596[/C][C]2.674[/C][C]0.005107[/C][/ROW]
[ROW][C]4[/C][C]0.127167[/C][C]0.881[/C][C]0.191343[/C][/ROW]
[ROW][C]5[/C][C]-0.073173[/C][C]-0.507[/C][C]0.307252[/C][/ROW]
[ROW][C]6[/C][C]-0.110306[/C][C]-0.7642[/C][C]0.224238[/C][/ROW]
[ROW][C]7[/C][C]-0.02385[/C][C]-0.1652[/C][C]0.434726[/C][/ROW]
[ROW][C]8[/C][C]-0.115667[/C][C]-0.8014[/C][C]0.213436[/C][/ROW]
[ROW][C]9[/C][C]-0.01992[/C][C]-0.138[/C][C]0.445406[/C][/ROW]
[ROW][C]10[/C][C]0.11652[/C][C]0.8073[/C][C]0.211745[/C][/ROW]
[ROW][C]11[/C][C]-0.1942[/C][C]-1.3455[/C][C]0.0924[/C][/ROW]
[ROW][C]12[/C][C]-0.141871[/C][C]-0.9829[/C][C]0.16529[/C][/ROW]
[ROW][C]13[/C][C]0.031545[/C][C]0.2185[/C][C]0.413964[/C][/ROW]
[ROW][C]14[/C][C]-0.147967[/C][C]-1.0251[/C][C]0.155216[/C][/ROW]
[ROW][C]15[/C][C]-0.016728[/C][C]-0.1159[/C][C]0.454109[/C][/ROW]
[ROW][C]16[/C][C]-0.030578[/C][C]-0.2118[/C][C]0.416561[/C][/ROW]
[ROW][C]17[/C][C]0.020266[/C][C]0.1404[/C][C]0.444464[/C][/ROW]
[ROW][C]18[/C][C]0.150808[/C][C]1.0448[/C][C]0.150668[/C][/ROW]
[ROW][C]19[/C][C]0.13364[/C][C]0.9259[/C][C]0.179569[/C][/ROW]
[ROW][C]20[/C][C]-0.0857[/C][C]-0.5937[/C][C]0.277735[/C][/ROW]
[ROW][C]21[/C][C]-0.028476[/C][C]-0.1973[/C][C]0.422217[/C][/ROW]
[ROW][C]22[/C][C]0.150602[/C][C]1.0434[/C][C]0.150995[/C][/ROW]
[ROW][C]23[/C][C]-0.111538[/C][C]-0.7728[/C][C]0.221727[/C][/ROW]
[ROW][C]24[/C][C]-0.086008[/C][C]-0.5959[/C][C]0.277027[/C][/ROW]
[ROW][C]25[/C][C]0.100779[/C][C]0.6982[/C][C]0.244206[/C][/ROW]
[ROW][C]26[/C][C]0.08446[/C][C]0.5852[/C][C]0.280591[/C][/ROW]
[ROW][C]27[/C][C]-0.173889[/C][C]-1.2047[/C][C]0.117106[/C][/ROW]
[ROW][C]28[/C][C]-0.04942[/C][C]-0.3424[/C][C]0.366774[/C][/ROW]
[ROW][C]29[/C][C]-0.153724[/C][C]-1.065[/C][C]0.146095[/C][/ROW]
[ROW][C]30[/C][C]-0.009934[/C][C]-0.0688[/C][C]0.472708[/C][/ROW]
[ROW][C]31[/C][C]-0.073977[/C][C]-0.5125[/C][C]0.305316[/C][/ROW]
[ROW][C]32[/C][C]0.030133[/C][C]0.2088[/C][C]0.417755[/C][/ROW]
[ROW][C]33[/C][C]0.060034[/C][C]0.4159[/C][C]0.339657[/C][/ROW]
[ROW][C]34[/C][C]0.103202[/C][C]0.715[/C][C]0.239034[/C][/ROW]
[ROW][C]35[/C][C]-0.038761[/C][C]-0.2685[/C][C]0.394716[/C][/ROW]
[ROW][C]36[/C][C]-0.114397[/C][C]-0.7926[/C][C]0.215964[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58586&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58586&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.284541.97130.027232
20.057620.39920.345757
30.385962.6740.005107
40.1271670.8810.191343
5-0.073173-0.5070.307252
6-0.110306-0.76420.224238
7-0.02385-0.16520.434726
8-0.115667-0.80140.213436
9-0.01992-0.1380.445406
100.116520.80730.211745
11-0.1942-1.34550.0924
12-0.141871-0.98290.16529
130.0315450.21850.413964
14-0.147967-1.02510.155216
15-0.016728-0.11590.454109
16-0.030578-0.21180.416561
170.0202660.14040.444464
180.1508081.04480.150668
190.133640.92590.179569
20-0.0857-0.59370.277735
21-0.028476-0.19730.422217
220.1506021.04340.150995
23-0.111538-0.77280.221727
24-0.086008-0.59590.277027
250.1007790.69820.244206
260.084460.58520.280591
27-0.173889-1.20470.117106
28-0.04942-0.34240.366774
29-0.153724-1.0650.146095
30-0.009934-0.06880.472708
31-0.073977-0.51250.305316
320.0301330.20880.417755
330.0600340.41590.339657
340.1032020.7150.239034
35-0.038761-0.26850.394716
36-0.114397-0.79260.215964



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