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 09:36:06 -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/t1259945226s5c83n9labyngmt.htm/, Retrieved Sun, 10 Nov 2024 20:05:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63889, Retrieved Sun, 10 Nov 2024 20:05:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact125
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:48:46] [b98453cac15ba1066b407e146608df68]
-    D      [(Partial) Autocorrelation Function] [] [2009-12-04 16:36:06] [aa8eb70c35ea8a87edcd21d6427e653e] [Current]
Feedback Forum

Post a new message
Dataseries X:
2849,27
2921,44
2981,85
3080,58
3106,22
3119,31
3061,26
3097,31
3161,69
3257,16
3277,01
3295,32
3363,99
3494,17
3667,03
3813,06
3917,96
3895,51
3801,06
3570,12
3701,61
3862,27
3970,1
4138,52
4199,75
4290,89
4443,91
4502,64
4356,98
4591,27
4696,96
4621,4
4562,84
4202,52
4296,49
4435,23
4105,18
4116,68
3844,49
3720,98
3674,4
3857,62
3801,06
3504,37
3032,6
3047,03
2962,34
2197,82
2014,45
1862,83
1905,41
1810,99
1670,07
1864,44
2052,02
2029,6
2070,83
2293,41
2443,27
2513,17




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63889&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.1959341.34330.09282
20.092570.63460.264374
30.2159761.48070.072685
40.0744750.51060.30602
50.3006592.06120.022419
60.1079790.74030.231409
7-0.160834-1.10260.137903
80.0857730.5880.279664
90.0471320.32310.374019
10-0.037424-0.25660.399318
110.1316140.90230.185749
12-0.424927-2.91320.00273
13-0.121367-0.8320.204795
140.1565731.07340.144284
15-0.118219-0.81050.210879
16-0.068368-0.46870.320724
17-0.193029-1.32330.096062
18-0.197033-1.35080.091615
190.044520.30520.380774
20-0.126467-0.8670.19517
21-0.169909-1.16480.124982
22-0.131596-0.90220.185782
23-0.202511-1.38830.085788
24-0.071682-0.49140.312707
250.0152310.10440.458641
26-0.140544-0.96350.170108
27-0.006547-0.04490.482194
280.0776870.53260.298412
290.0264090.1810.428554
300.0419580.28760.387441
31-0.099922-0.6850.248345
32-0.018364-0.12590.450175
33-0.001891-0.0130.494855
340.0181070.12410.450868
350.0156720.10740.457448
360.0395330.2710.393781

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.195934 & 1.3433 & 0.09282 \tabularnewline
2 & 0.09257 & 0.6346 & 0.264374 \tabularnewline
3 & 0.215976 & 1.4807 & 0.072685 \tabularnewline
4 & 0.074475 & 0.5106 & 0.30602 \tabularnewline
5 & 0.300659 & 2.0612 & 0.022419 \tabularnewline
6 & 0.107979 & 0.7403 & 0.231409 \tabularnewline
7 & -0.160834 & -1.1026 & 0.137903 \tabularnewline
8 & 0.085773 & 0.588 & 0.279664 \tabularnewline
9 & 0.047132 & 0.3231 & 0.374019 \tabularnewline
10 & -0.037424 & -0.2566 & 0.399318 \tabularnewline
11 & 0.131614 & 0.9023 & 0.185749 \tabularnewline
12 & -0.424927 & -2.9132 & 0.00273 \tabularnewline
13 & -0.121367 & -0.832 & 0.204795 \tabularnewline
14 & 0.156573 & 1.0734 & 0.144284 \tabularnewline
15 & -0.118219 & -0.8105 & 0.210879 \tabularnewline
16 & -0.068368 & -0.4687 & 0.320724 \tabularnewline
17 & -0.193029 & -1.3233 & 0.096062 \tabularnewline
18 & -0.197033 & -1.3508 & 0.091615 \tabularnewline
19 & 0.04452 & 0.3052 & 0.380774 \tabularnewline
20 & -0.126467 & -0.867 & 0.19517 \tabularnewline
21 & -0.169909 & -1.1648 & 0.124982 \tabularnewline
22 & -0.131596 & -0.9022 & 0.185782 \tabularnewline
23 & -0.202511 & -1.3883 & 0.085788 \tabularnewline
24 & -0.071682 & -0.4914 & 0.312707 \tabularnewline
25 & 0.015231 & 0.1044 & 0.458641 \tabularnewline
26 & -0.140544 & -0.9635 & 0.170108 \tabularnewline
27 & -0.006547 & -0.0449 & 0.482194 \tabularnewline
28 & 0.077687 & 0.5326 & 0.298412 \tabularnewline
29 & 0.026409 & 0.181 & 0.428554 \tabularnewline
30 & 0.041958 & 0.2876 & 0.387441 \tabularnewline
31 & -0.099922 & -0.685 & 0.248345 \tabularnewline
32 & -0.018364 & -0.1259 & 0.450175 \tabularnewline
33 & -0.001891 & -0.013 & 0.494855 \tabularnewline
34 & 0.018107 & 0.1241 & 0.450868 \tabularnewline
35 & 0.015672 & 0.1074 & 0.457448 \tabularnewline
36 & 0.039533 & 0.271 & 0.393781 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63889&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.195934[/C][C]1.3433[/C][C]0.09282[/C][/ROW]
[ROW][C]2[/C][C]0.09257[/C][C]0.6346[/C][C]0.264374[/C][/ROW]
[ROW][C]3[/C][C]0.215976[/C][C]1.4807[/C][C]0.072685[/C][/ROW]
[ROW][C]4[/C][C]0.074475[/C][C]0.5106[/C][C]0.30602[/C][/ROW]
[ROW][C]5[/C][C]0.300659[/C][C]2.0612[/C][C]0.022419[/C][/ROW]
[ROW][C]6[/C][C]0.107979[/C][C]0.7403[/C][C]0.231409[/C][/ROW]
[ROW][C]7[/C][C]-0.160834[/C][C]-1.1026[/C][C]0.137903[/C][/ROW]
[ROW][C]8[/C][C]0.085773[/C][C]0.588[/C][C]0.279664[/C][/ROW]
[ROW][C]9[/C][C]0.047132[/C][C]0.3231[/C][C]0.374019[/C][/ROW]
[ROW][C]10[/C][C]-0.037424[/C][C]-0.2566[/C][C]0.399318[/C][/ROW]
[ROW][C]11[/C][C]0.131614[/C][C]0.9023[/C][C]0.185749[/C][/ROW]
[ROW][C]12[/C][C]-0.424927[/C][C]-2.9132[/C][C]0.00273[/C][/ROW]
[ROW][C]13[/C][C]-0.121367[/C][C]-0.832[/C][C]0.204795[/C][/ROW]
[ROW][C]14[/C][C]0.156573[/C][C]1.0734[/C][C]0.144284[/C][/ROW]
[ROW][C]15[/C][C]-0.118219[/C][C]-0.8105[/C][C]0.210879[/C][/ROW]
[ROW][C]16[/C][C]-0.068368[/C][C]-0.4687[/C][C]0.320724[/C][/ROW]
[ROW][C]17[/C][C]-0.193029[/C][C]-1.3233[/C][C]0.096062[/C][/ROW]
[ROW][C]18[/C][C]-0.197033[/C][C]-1.3508[/C][C]0.091615[/C][/ROW]
[ROW][C]19[/C][C]0.04452[/C][C]0.3052[/C][C]0.380774[/C][/ROW]
[ROW][C]20[/C][C]-0.126467[/C][C]-0.867[/C][C]0.19517[/C][/ROW]
[ROW][C]21[/C][C]-0.169909[/C][C]-1.1648[/C][C]0.124982[/C][/ROW]
[ROW][C]22[/C][C]-0.131596[/C][C]-0.9022[/C][C]0.185782[/C][/ROW]
[ROW][C]23[/C][C]-0.202511[/C][C]-1.3883[/C][C]0.085788[/C][/ROW]
[ROW][C]24[/C][C]-0.071682[/C][C]-0.4914[/C][C]0.312707[/C][/ROW]
[ROW][C]25[/C][C]0.015231[/C][C]0.1044[/C][C]0.458641[/C][/ROW]
[ROW][C]26[/C][C]-0.140544[/C][C]-0.9635[/C][C]0.170108[/C][/ROW]
[ROW][C]27[/C][C]-0.006547[/C][C]-0.0449[/C][C]0.482194[/C][/ROW]
[ROW][C]28[/C][C]0.077687[/C][C]0.5326[/C][C]0.298412[/C][/ROW]
[ROW][C]29[/C][C]0.026409[/C][C]0.181[/C][C]0.428554[/C][/ROW]
[ROW][C]30[/C][C]0.041958[/C][C]0.2876[/C][C]0.387441[/C][/ROW]
[ROW][C]31[/C][C]-0.099922[/C][C]-0.685[/C][C]0.248345[/C][/ROW]
[ROW][C]32[/C][C]-0.018364[/C][C]-0.1259[/C][C]0.450175[/C][/ROW]
[ROW][C]33[/C][C]-0.001891[/C][C]-0.013[/C][C]0.494855[/C][/ROW]
[ROW][C]34[/C][C]0.018107[/C][C]0.1241[/C][C]0.450868[/C][/ROW]
[ROW][C]35[/C][C]0.015672[/C][C]0.1074[/C][C]0.457448[/C][/ROW]
[ROW][C]36[/C][C]0.039533[/C][C]0.271[/C][C]0.393781[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63889&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63889&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.1959341.34330.09282
20.092570.63460.264374
30.2159761.48070.072685
40.0744750.51060.30602
50.3006592.06120.022419
60.1079790.74030.231409
7-0.160834-1.10260.137903
80.0857730.5880.279664
90.0471320.32310.374019
10-0.037424-0.25660.399318
110.1316140.90230.185749
12-0.424927-2.91320.00273
13-0.121367-0.8320.204795
140.1565731.07340.144284
15-0.118219-0.81050.210879
16-0.068368-0.46870.320724
17-0.193029-1.32330.096062
18-0.197033-1.35080.091615
190.044520.30520.380774
20-0.126467-0.8670.19517
21-0.169909-1.16480.124982
22-0.131596-0.90220.185782
23-0.202511-1.38830.085788
24-0.071682-0.49140.312707
250.0152310.10440.458641
26-0.140544-0.96350.170108
27-0.006547-0.04490.482194
280.0776870.53260.298412
290.0264090.1810.428554
300.0419580.28760.387441
31-0.099922-0.6850.248345
32-0.018364-0.12590.450175
33-0.001891-0.0130.494855
340.0181070.12410.450868
350.0156720.10740.457448
360.0395330.2710.393781







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1959341.34330.09282
20.0563430.38630.350521
30.1959411.34330.092812
4-0.00361-0.02470.490181
50.2883771.9770.026962
6-0.041184-0.28230.389459
7-0.227042-1.55650.063146
80.0482560.33080.371124
90.0144140.09880.460852
10-0.074283-0.50930.306477
110.1367480.93750.176647
12-0.466807-3.20030.001231
130.0824040.56490.287404
140.1627451.11570.135106
15-0.017377-0.11910.452839
16-0.1004-0.68830.247322
17-0.035716-0.24490.403817
18-0.066169-0.45360.32609
19-0.099303-0.68080.249673
20-0.046675-0.320.375198
210.082390.56480.287436
22-0.245072-1.68010.049784
230.102850.70510.242112
24-0.285151-1.95490.028278
250.1324930.90830.184169
260.1437360.98540.164736
270.0991810.680.249936
280.0420940.28860.387086
29-0.049165-0.33710.368786
30-0.172928-1.18550.120883
31-0.086359-0.5920.278328
32-0.069879-0.47910.317057
330.0359170.24620.403285
34-0.138564-0.94990.173499
350.1313660.90060.186197
36-0.110185-0.75540.226892

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.195934 & 1.3433 & 0.09282 \tabularnewline
2 & 0.056343 & 0.3863 & 0.350521 \tabularnewline
3 & 0.195941 & 1.3433 & 0.092812 \tabularnewline
4 & -0.00361 & -0.0247 & 0.490181 \tabularnewline
5 & 0.288377 & 1.977 & 0.026962 \tabularnewline
6 & -0.041184 & -0.2823 & 0.389459 \tabularnewline
7 & -0.227042 & -1.5565 & 0.063146 \tabularnewline
8 & 0.048256 & 0.3308 & 0.371124 \tabularnewline
9 & 0.014414 & 0.0988 & 0.460852 \tabularnewline
10 & -0.074283 & -0.5093 & 0.306477 \tabularnewline
11 & 0.136748 & 0.9375 & 0.176647 \tabularnewline
12 & -0.466807 & -3.2003 & 0.001231 \tabularnewline
13 & 0.082404 & 0.5649 & 0.287404 \tabularnewline
14 & 0.162745 & 1.1157 & 0.135106 \tabularnewline
15 & -0.017377 & -0.1191 & 0.452839 \tabularnewline
16 & -0.1004 & -0.6883 & 0.247322 \tabularnewline
17 & -0.035716 & -0.2449 & 0.403817 \tabularnewline
18 & -0.066169 & -0.4536 & 0.32609 \tabularnewline
19 & -0.099303 & -0.6808 & 0.249673 \tabularnewline
20 & -0.046675 & -0.32 & 0.375198 \tabularnewline
21 & 0.08239 & 0.5648 & 0.287436 \tabularnewline
22 & -0.245072 & -1.6801 & 0.049784 \tabularnewline
23 & 0.10285 & 0.7051 & 0.242112 \tabularnewline
24 & -0.285151 & -1.9549 & 0.028278 \tabularnewline
25 & 0.132493 & 0.9083 & 0.184169 \tabularnewline
26 & 0.143736 & 0.9854 & 0.164736 \tabularnewline
27 & 0.099181 & 0.68 & 0.249936 \tabularnewline
28 & 0.042094 & 0.2886 & 0.387086 \tabularnewline
29 & -0.049165 & -0.3371 & 0.368786 \tabularnewline
30 & -0.172928 & -1.1855 & 0.120883 \tabularnewline
31 & -0.086359 & -0.592 & 0.278328 \tabularnewline
32 & -0.069879 & -0.4791 & 0.317057 \tabularnewline
33 & 0.035917 & 0.2462 & 0.403285 \tabularnewline
34 & -0.138564 & -0.9499 & 0.173499 \tabularnewline
35 & 0.131366 & 0.9006 & 0.186197 \tabularnewline
36 & -0.110185 & -0.7554 & 0.226892 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63889&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.195934[/C][C]1.3433[/C][C]0.09282[/C][/ROW]
[ROW][C]2[/C][C]0.056343[/C][C]0.3863[/C][C]0.350521[/C][/ROW]
[ROW][C]3[/C][C]0.195941[/C][C]1.3433[/C][C]0.092812[/C][/ROW]
[ROW][C]4[/C][C]-0.00361[/C][C]-0.0247[/C][C]0.490181[/C][/ROW]
[ROW][C]5[/C][C]0.288377[/C][C]1.977[/C][C]0.026962[/C][/ROW]
[ROW][C]6[/C][C]-0.041184[/C][C]-0.2823[/C][C]0.389459[/C][/ROW]
[ROW][C]7[/C][C]-0.227042[/C][C]-1.5565[/C][C]0.063146[/C][/ROW]
[ROW][C]8[/C][C]0.048256[/C][C]0.3308[/C][C]0.371124[/C][/ROW]
[ROW][C]9[/C][C]0.014414[/C][C]0.0988[/C][C]0.460852[/C][/ROW]
[ROW][C]10[/C][C]-0.074283[/C][C]-0.5093[/C][C]0.306477[/C][/ROW]
[ROW][C]11[/C][C]0.136748[/C][C]0.9375[/C][C]0.176647[/C][/ROW]
[ROW][C]12[/C][C]-0.466807[/C][C]-3.2003[/C][C]0.001231[/C][/ROW]
[ROW][C]13[/C][C]0.082404[/C][C]0.5649[/C][C]0.287404[/C][/ROW]
[ROW][C]14[/C][C]0.162745[/C][C]1.1157[/C][C]0.135106[/C][/ROW]
[ROW][C]15[/C][C]-0.017377[/C][C]-0.1191[/C][C]0.452839[/C][/ROW]
[ROW][C]16[/C][C]-0.1004[/C][C]-0.6883[/C][C]0.247322[/C][/ROW]
[ROW][C]17[/C][C]-0.035716[/C][C]-0.2449[/C][C]0.403817[/C][/ROW]
[ROW][C]18[/C][C]-0.066169[/C][C]-0.4536[/C][C]0.32609[/C][/ROW]
[ROW][C]19[/C][C]-0.099303[/C][C]-0.6808[/C][C]0.249673[/C][/ROW]
[ROW][C]20[/C][C]-0.046675[/C][C]-0.32[/C][C]0.375198[/C][/ROW]
[ROW][C]21[/C][C]0.08239[/C][C]0.5648[/C][C]0.287436[/C][/ROW]
[ROW][C]22[/C][C]-0.245072[/C][C]-1.6801[/C][C]0.049784[/C][/ROW]
[ROW][C]23[/C][C]0.10285[/C][C]0.7051[/C][C]0.242112[/C][/ROW]
[ROW][C]24[/C][C]-0.285151[/C][C]-1.9549[/C][C]0.028278[/C][/ROW]
[ROW][C]25[/C][C]0.132493[/C][C]0.9083[/C][C]0.184169[/C][/ROW]
[ROW][C]26[/C][C]0.143736[/C][C]0.9854[/C][C]0.164736[/C][/ROW]
[ROW][C]27[/C][C]0.099181[/C][C]0.68[/C][C]0.249936[/C][/ROW]
[ROW][C]28[/C][C]0.042094[/C][C]0.2886[/C][C]0.387086[/C][/ROW]
[ROW][C]29[/C][C]-0.049165[/C][C]-0.3371[/C][C]0.368786[/C][/ROW]
[ROW][C]30[/C][C]-0.172928[/C][C]-1.1855[/C][C]0.120883[/C][/ROW]
[ROW][C]31[/C][C]-0.086359[/C][C]-0.592[/C][C]0.278328[/C][/ROW]
[ROW][C]32[/C][C]-0.069879[/C][C]-0.4791[/C][C]0.317057[/C][/ROW]
[ROW][C]33[/C][C]0.035917[/C][C]0.2462[/C][C]0.403285[/C][/ROW]
[ROW][C]34[/C][C]-0.138564[/C][C]-0.9499[/C][C]0.173499[/C][/ROW]
[ROW][C]35[/C][C]0.131366[/C][C]0.9006[/C][C]0.186197[/C][/ROW]
[ROW][C]36[/C][C]-0.110185[/C][C]-0.7554[/C][C]0.226892[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63889&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63889&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.1959341.34330.09282
20.0563430.38630.350521
30.1959411.34330.092812
4-0.00361-0.02470.490181
50.2883771.9770.026962
6-0.041184-0.28230.389459
7-0.227042-1.55650.063146
80.0482560.33080.371124
90.0144140.09880.460852
10-0.074283-0.50930.306477
110.1367480.93750.176647
12-0.466807-3.20030.001231
130.0824040.56490.287404
140.1627451.11570.135106
15-0.017377-0.11910.452839
16-0.1004-0.68830.247322
17-0.035716-0.24490.403817
18-0.066169-0.45360.32609
19-0.099303-0.68080.249673
20-0.046675-0.320.375198
210.082390.56480.287436
22-0.245072-1.68010.049784
230.102850.70510.242112
24-0.285151-1.95490.028278
250.1324930.90830.184169
260.1437360.98540.164736
270.0991810.680.249936
280.0420940.28860.387086
29-0.049165-0.33710.368786
30-0.172928-1.18550.120883
31-0.086359-0.5920.278328
32-0.069879-0.47910.317057
330.0359170.24620.403285
34-0.138564-0.94990.173499
350.1313660.90060.186197
36-0.110185-0.75540.226892



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