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 computationFri, 04 Dec 2009 06:49: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/04/t1259934612j9pwwuc15zum84v.htm/, Retrieved Sat, 27 Apr 2024 17:42:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63514, Retrieved Sat, 27 Apr 2024 17:42:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact99
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] [] [2009-12-04 13:49:09] [91df150cd527c563f0151b3a845ecd72] [Current]
-             [(Partial) Autocorrelation Function] [] [2009-12-04 19:44:41] [8d2349dc1d6314bc274adc9ad027c980]
-   P           [(Partial) Autocorrelation Function] [] [2009-12-13 12:15:51] [0a7d38ad9c7f1a2c46637c75a8a0e083]
Feedback Forum

Post a new message
Dataseries X:
5560
3922
3759
4138
4634
3996
4308
4143
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 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=63514&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=63514&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63514&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
10.333472.60450.005771
20.3039022.37350.010391
30.4464323.48670.000456
40.3276872.55930.006492
50.2281181.78170.039891
60.201941.57720.059961
70.2144381.67480.049545
80.1668891.30340.098661
90.1829941.42920.07902
100.1730831.35180.090712
110.0010410.00810.49677
120.2078321.62320.05485
130.0231470.18080.42857
14-0.017909-0.13990.444611
15-0.015387-0.12020.45237
16-0.064171-0.50120.309021
17-0.059628-0.46570.321542
18-0.042612-0.33280.370208
19-0.097423-0.76090.224824
20-0.126566-0.98850.163403
210.0073580.05750.477182
22-0.075177-0.58710.279636
23-0.143617-1.12170.133196
24-0.034037-0.26580.395629
25-0.068965-0.53860.29605
26-0.101629-0.79370.21521
27-0.114499-0.89430.187347
28-0.124269-0.97060.167798
29-0.132344-1.03360.152692
30-0.123522-0.96470.169242
31-0.230443-1.79980.038418
32-0.216308-1.68940.048122
33-0.113325-0.88510.189791
34-0.208678-1.62980.054146
35-0.235521-1.83950.035356
36-0.127741-0.99770.161185

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.33347 & 2.6045 & 0.005771 \tabularnewline
2 & 0.303902 & 2.3735 & 0.010391 \tabularnewline
3 & 0.446432 & 3.4867 & 0.000456 \tabularnewline
4 & 0.327687 & 2.5593 & 0.006492 \tabularnewline
5 & 0.228118 & 1.7817 & 0.039891 \tabularnewline
6 & 0.20194 & 1.5772 & 0.059961 \tabularnewline
7 & 0.214438 & 1.6748 & 0.049545 \tabularnewline
8 & 0.166889 & 1.3034 & 0.098661 \tabularnewline
9 & 0.182994 & 1.4292 & 0.07902 \tabularnewline
10 & 0.173083 & 1.3518 & 0.090712 \tabularnewline
11 & 0.001041 & 0.0081 & 0.49677 \tabularnewline
12 & 0.207832 & 1.6232 & 0.05485 \tabularnewline
13 & 0.023147 & 0.1808 & 0.42857 \tabularnewline
14 & -0.017909 & -0.1399 & 0.444611 \tabularnewline
15 & -0.015387 & -0.1202 & 0.45237 \tabularnewline
16 & -0.064171 & -0.5012 & 0.309021 \tabularnewline
17 & -0.059628 & -0.4657 & 0.321542 \tabularnewline
18 & -0.042612 & -0.3328 & 0.370208 \tabularnewline
19 & -0.097423 & -0.7609 & 0.224824 \tabularnewline
20 & -0.126566 & -0.9885 & 0.163403 \tabularnewline
21 & 0.007358 & 0.0575 & 0.477182 \tabularnewline
22 & -0.075177 & -0.5871 & 0.279636 \tabularnewline
23 & -0.143617 & -1.1217 & 0.133196 \tabularnewline
24 & -0.034037 & -0.2658 & 0.395629 \tabularnewline
25 & -0.068965 & -0.5386 & 0.29605 \tabularnewline
26 & -0.101629 & -0.7937 & 0.21521 \tabularnewline
27 & -0.114499 & -0.8943 & 0.187347 \tabularnewline
28 & -0.124269 & -0.9706 & 0.167798 \tabularnewline
29 & -0.132344 & -1.0336 & 0.152692 \tabularnewline
30 & -0.123522 & -0.9647 & 0.169242 \tabularnewline
31 & -0.230443 & -1.7998 & 0.038418 \tabularnewline
32 & -0.216308 & -1.6894 & 0.048122 \tabularnewline
33 & -0.113325 & -0.8851 & 0.189791 \tabularnewline
34 & -0.208678 & -1.6298 & 0.054146 \tabularnewline
35 & -0.235521 & -1.8395 & 0.035356 \tabularnewline
36 & -0.127741 & -0.9977 & 0.161185 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63514&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.33347[/C][C]2.6045[/C][C]0.005771[/C][/ROW]
[ROW][C]2[/C][C]0.303902[/C][C]2.3735[/C][C]0.010391[/C][/ROW]
[ROW][C]3[/C][C]0.446432[/C][C]3.4867[/C][C]0.000456[/C][/ROW]
[ROW][C]4[/C][C]0.327687[/C][C]2.5593[/C][C]0.006492[/C][/ROW]
[ROW][C]5[/C][C]0.228118[/C][C]1.7817[/C][C]0.039891[/C][/ROW]
[ROW][C]6[/C][C]0.20194[/C][C]1.5772[/C][C]0.059961[/C][/ROW]
[ROW][C]7[/C][C]0.214438[/C][C]1.6748[/C][C]0.049545[/C][/ROW]
[ROW][C]8[/C][C]0.166889[/C][C]1.3034[/C][C]0.098661[/C][/ROW]
[ROW][C]9[/C][C]0.182994[/C][C]1.4292[/C][C]0.07902[/C][/ROW]
[ROW][C]10[/C][C]0.173083[/C][C]1.3518[/C][C]0.090712[/C][/ROW]
[ROW][C]11[/C][C]0.001041[/C][C]0.0081[/C][C]0.49677[/C][/ROW]
[ROW][C]12[/C][C]0.207832[/C][C]1.6232[/C][C]0.05485[/C][/ROW]
[ROW][C]13[/C][C]0.023147[/C][C]0.1808[/C][C]0.42857[/C][/ROW]
[ROW][C]14[/C][C]-0.017909[/C][C]-0.1399[/C][C]0.444611[/C][/ROW]
[ROW][C]15[/C][C]-0.015387[/C][C]-0.1202[/C][C]0.45237[/C][/ROW]
[ROW][C]16[/C][C]-0.064171[/C][C]-0.5012[/C][C]0.309021[/C][/ROW]
[ROW][C]17[/C][C]-0.059628[/C][C]-0.4657[/C][C]0.321542[/C][/ROW]
[ROW][C]18[/C][C]-0.042612[/C][C]-0.3328[/C][C]0.370208[/C][/ROW]
[ROW][C]19[/C][C]-0.097423[/C][C]-0.7609[/C][C]0.224824[/C][/ROW]
[ROW][C]20[/C][C]-0.126566[/C][C]-0.9885[/C][C]0.163403[/C][/ROW]
[ROW][C]21[/C][C]0.007358[/C][C]0.0575[/C][C]0.477182[/C][/ROW]
[ROW][C]22[/C][C]-0.075177[/C][C]-0.5871[/C][C]0.279636[/C][/ROW]
[ROW][C]23[/C][C]-0.143617[/C][C]-1.1217[/C][C]0.133196[/C][/ROW]
[ROW][C]24[/C][C]-0.034037[/C][C]-0.2658[/C][C]0.395629[/C][/ROW]
[ROW][C]25[/C][C]-0.068965[/C][C]-0.5386[/C][C]0.29605[/C][/ROW]
[ROW][C]26[/C][C]-0.101629[/C][C]-0.7937[/C][C]0.21521[/C][/ROW]
[ROW][C]27[/C][C]-0.114499[/C][C]-0.8943[/C][C]0.187347[/C][/ROW]
[ROW][C]28[/C][C]-0.124269[/C][C]-0.9706[/C][C]0.167798[/C][/ROW]
[ROW][C]29[/C][C]-0.132344[/C][C]-1.0336[/C][C]0.152692[/C][/ROW]
[ROW][C]30[/C][C]-0.123522[/C][C]-0.9647[/C][C]0.169242[/C][/ROW]
[ROW][C]31[/C][C]-0.230443[/C][C]-1.7998[/C][C]0.038418[/C][/ROW]
[ROW][C]32[/C][C]-0.216308[/C][C]-1.6894[/C][C]0.048122[/C][/ROW]
[ROW][C]33[/C][C]-0.113325[/C][C]-0.8851[/C][C]0.189791[/C][/ROW]
[ROW][C]34[/C][C]-0.208678[/C][C]-1.6298[/C][C]0.054146[/C][/ROW]
[ROW][C]35[/C][C]-0.235521[/C][C]-1.8395[/C][C]0.035356[/C][/ROW]
[ROW][C]36[/C][C]-0.127741[/C][C]-0.9977[/C][C]0.161185[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63514&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63514&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.333472.60450.005771
20.3039022.37350.010391
30.4464323.48670.000456
40.3276872.55930.006492
50.2281181.78170.039891
60.201941.57720.059961
70.2144381.67480.049545
80.1668891.30340.098661
90.1829941.42920.07902
100.1730831.35180.090712
110.0010410.00810.49677
120.2078321.62320.05485
130.0231470.18080.42857
14-0.017909-0.13990.444611
15-0.015387-0.12020.45237
16-0.064171-0.50120.309021
17-0.059628-0.46570.321542
18-0.042612-0.33280.370208
19-0.097423-0.76090.224824
20-0.126566-0.98850.163403
210.0073580.05750.477182
22-0.075177-0.58710.279636
23-0.143617-1.12170.133196
24-0.034037-0.26580.395629
25-0.068965-0.53860.29605
26-0.101629-0.79370.21521
27-0.114499-0.89430.187347
28-0.124269-0.97060.167798
29-0.132344-1.03360.152692
30-0.123522-0.96470.169242
31-0.230443-1.79980.038418
32-0.216308-1.68940.048122
33-0.113325-0.88510.189791
34-0.208678-1.62980.054146
35-0.235521-1.83950.035356
36-0.127741-0.99770.161185







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.333472.60450.005771
20.2168091.69330.047746
30.3482.7180.00427
40.1215140.94910.173168
5-0.010483-0.08190.467507
6-0.065626-0.51260.305057
70.0101090.0790.468665
80.0116550.0910.463885
90.0822610.64250.261486
100.0474040.37020.356245
11-0.187522-1.46460.074083
120.1470821.14870.127572
13-0.153017-1.19510.118336
14-0.024991-0.19520.42295
15-0.11166-0.87210.193288
16-0.072661-0.56750.28623
17-0.003977-0.03110.48766
180.070450.55020.292084
19-0.045017-0.35160.363176
20-0.059733-0.46650.321249
210.1264680.98770.16359
22-0.075969-0.59330.277575
230.0342330.26740.395044
24-0.03464-0.27050.393826
250.024870.19420.423315
26-0.01942-0.15170.439973
27-0.047476-0.37080.356035
28-0.0758-0.5920.278014
29-0.045339-0.35410.362239
30-0.034321-0.26810.394781
31-0.204016-1.59340.058118
32-0.004529-0.03540.48595
33-0.020811-0.16250.43571
34-0.015466-0.12080.452127
35-0.053926-0.42120.337552
360.0439240.34310.366369

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.33347 & 2.6045 & 0.005771 \tabularnewline
2 & 0.216809 & 1.6933 & 0.047746 \tabularnewline
3 & 0.348 & 2.718 & 0.00427 \tabularnewline
4 & 0.121514 & 0.9491 & 0.173168 \tabularnewline
5 & -0.010483 & -0.0819 & 0.467507 \tabularnewline
6 & -0.065626 & -0.5126 & 0.305057 \tabularnewline
7 & 0.010109 & 0.079 & 0.468665 \tabularnewline
8 & 0.011655 & 0.091 & 0.463885 \tabularnewline
9 & 0.082261 & 0.6425 & 0.261486 \tabularnewline
10 & 0.047404 & 0.3702 & 0.356245 \tabularnewline
11 & -0.187522 & -1.4646 & 0.074083 \tabularnewline
12 & 0.147082 & 1.1487 & 0.127572 \tabularnewline
13 & -0.153017 & -1.1951 & 0.118336 \tabularnewline
14 & -0.024991 & -0.1952 & 0.42295 \tabularnewline
15 & -0.11166 & -0.8721 & 0.193288 \tabularnewline
16 & -0.072661 & -0.5675 & 0.28623 \tabularnewline
17 & -0.003977 & -0.0311 & 0.48766 \tabularnewline
18 & 0.07045 & 0.5502 & 0.292084 \tabularnewline
19 & -0.045017 & -0.3516 & 0.363176 \tabularnewline
20 & -0.059733 & -0.4665 & 0.321249 \tabularnewline
21 & 0.126468 & 0.9877 & 0.16359 \tabularnewline
22 & -0.075969 & -0.5933 & 0.277575 \tabularnewline
23 & 0.034233 & 0.2674 & 0.395044 \tabularnewline
24 & -0.03464 & -0.2705 & 0.393826 \tabularnewline
25 & 0.02487 & 0.1942 & 0.423315 \tabularnewline
26 & -0.01942 & -0.1517 & 0.439973 \tabularnewline
27 & -0.047476 & -0.3708 & 0.356035 \tabularnewline
28 & -0.0758 & -0.592 & 0.278014 \tabularnewline
29 & -0.045339 & -0.3541 & 0.362239 \tabularnewline
30 & -0.034321 & -0.2681 & 0.394781 \tabularnewline
31 & -0.204016 & -1.5934 & 0.058118 \tabularnewline
32 & -0.004529 & -0.0354 & 0.48595 \tabularnewline
33 & -0.020811 & -0.1625 & 0.43571 \tabularnewline
34 & -0.015466 & -0.1208 & 0.452127 \tabularnewline
35 & -0.053926 & -0.4212 & 0.337552 \tabularnewline
36 & 0.043924 & 0.3431 & 0.366369 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63514&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.33347[/C][C]2.6045[/C][C]0.005771[/C][/ROW]
[ROW][C]2[/C][C]0.216809[/C][C]1.6933[/C][C]0.047746[/C][/ROW]
[ROW][C]3[/C][C]0.348[/C][C]2.718[/C][C]0.00427[/C][/ROW]
[ROW][C]4[/C][C]0.121514[/C][C]0.9491[/C][C]0.173168[/C][/ROW]
[ROW][C]5[/C][C]-0.010483[/C][C]-0.0819[/C][C]0.467507[/C][/ROW]
[ROW][C]6[/C][C]-0.065626[/C][C]-0.5126[/C][C]0.305057[/C][/ROW]
[ROW][C]7[/C][C]0.010109[/C][C]0.079[/C][C]0.468665[/C][/ROW]
[ROW][C]8[/C][C]0.011655[/C][C]0.091[/C][C]0.463885[/C][/ROW]
[ROW][C]9[/C][C]0.082261[/C][C]0.6425[/C][C]0.261486[/C][/ROW]
[ROW][C]10[/C][C]0.047404[/C][C]0.3702[/C][C]0.356245[/C][/ROW]
[ROW][C]11[/C][C]-0.187522[/C][C]-1.4646[/C][C]0.074083[/C][/ROW]
[ROW][C]12[/C][C]0.147082[/C][C]1.1487[/C][C]0.127572[/C][/ROW]
[ROW][C]13[/C][C]-0.153017[/C][C]-1.1951[/C][C]0.118336[/C][/ROW]
[ROW][C]14[/C][C]-0.024991[/C][C]-0.1952[/C][C]0.42295[/C][/ROW]
[ROW][C]15[/C][C]-0.11166[/C][C]-0.8721[/C][C]0.193288[/C][/ROW]
[ROW][C]16[/C][C]-0.072661[/C][C]-0.5675[/C][C]0.28623[/C][/ROW]
[ROW][C]17[/C][C]-0.003977[/C][C]-0.0311[/C][C]0.48766[/C][/ROW]
[ROW][C]18[/C][C]0.07045[/C][C]0.5502[/C][C]0.292084[/C][/ROW]
[ROW][C]19[/C][C]-0.045017[/C][C]-0.3516[/C][C]0.363176[/C][/ROW]
[ROW][C]20[/C][C]-0.059733[/C][C]-0.4665[/C][C]0.321249[/C][/ROW]
[ROW][C]21[/C][C]0.126468[/C][C]0.9877[/C][C]0.16359[/C][/ROW]
[ROW][C]22[/C][C]-0.075969[/C][C]-0.5933[/C][C]0.277575[/C][/ROW]
[ROW][C]23[/C][C]0.034233[/C][C]0.2674[/C][C]0.395044[/C][/ROW]
[ROW][C]24[/C][C]-0.03464[/C][C]-0.2705[/C][C]0.393826[/C][/ROW]
[ROW][C]25[/C][C]0.02487[/C][C]0.1942[/C][C]0.423315[/C][/ROW]
[ROW][C]26[/C][C]-0.01942[/C][C]-0.1517[/C][C]0.439973[/C][/ROW]
[ROW][C]27[/C][C]-0.047476[/C][C]-0.3708[/C][C]0.356035[/C][/ROW]
[ROW][C]28[/C][C]-0.0758[/C][C]-0.592[/C][C]0.278014[/C][/ROW]
[ROW][C]29[/C][C]-0.045339[/C][C]-0.3541[/C][C]0.362239[/C][/ROW]
[ROW][C]30[/C][C]-0.034321[/C][C]-0.2681[/C][C]0.394781[/C][/ROW]
[ROW][C]31[/C][C]-0.204016[/C][C]-1.5934[/C][C]0.058118[/C][/ROW]
[ROW][C]32[/C][C]-0.004529[/C][C]-0.0354[/C][C]0.48595[/C][/ROW]
[ROW][C]33[/C][C]-0.020811[/C][C]-0.1625[/C][C]0.43571[/C][/ROW]
[ROW][C]34[/C][C]-0.015466[/C][C]-0.1208[/C][C]0.452127[/C][/ROW]
[ROW][C]35[/C][C]-0.053926[/C][C]-0.4212[/C][C]0.337552[/C][/ROW]
[ROW][C]36[/C][C]0.043924[/C][C]0.3431[/C][C]0.366369[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63514&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63514&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.333472.60450.005771
20.2168091.69330.047746
30.3482.7180.00427
40.1215140.94910.173168
5-0.010483-0.08190.467507
6-0.065626-0.51260.305057
70.0101090.0790.468665
80.0116550.0910.463885
90.0822610.64250.261486
100.0474040.37020.356245
11-0.187522-1.46460.074083
120.1470821.14870.127572
13-0.153017-1.19510.118336
14-0.024991-0.19520.42295
15-0.11166-0.87210.193288
16-0.072661-0.56750.28623
17-0.003977-0.03110.48766
180.070450.55020.292084
19-0.045017-0.35160.363176
20-0.059733-0.46650.321249
210.1264680.98770.16359
22-0.075969-0.59330.277575
230.0342330.26740.395044
24-0.03464-0.27050.393826
250.024870.19420.423315
26-0.01942-0.15170.439973
27-0.047476-0.37080.356035
28-0.0758-0.5920.278014
29-0.045339-0.35410.362239
30-0.034321-0.26810.394781
31-0.204016-1.59340.058118
32-0.004529-0.03540.48595
33-0.020811-0.16250.43571
34-0.015466-0.12080.452127
35-0.053926-0.42120.337552
360.0439240.34310.366369



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