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 computationThu, 26 Nov 2009 11:38:47 -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/26/t1259260792zo0pd2kyo403i3s.htm/, Retrieved Sun, 28 Apr 2024 21:42:45 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60256, Retrieved Sun, 28 Apr 2024 21:42:45 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact118
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] [Model1_2] [2009-11-26 18:38:47] [82f29a5d509ab8039aab37a0145f886d] [Current]
Feedback Forum

Post a new message
Dataseries X:
562
561
555
544
537
543
594
611
613
611
594
595
591
589
584
573
567
569
621
629
628
612
595
597
593
590
580
574
573
573
620
626
620
588
566
557
561
549
532
526
511
499
555
565
542
527
510
514
517
508
493
490
469
478
528
534
518
506
502
516
528




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60256&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.9323216.52620
20.86946.08580
30.7996245.59740
40.72415.06873e-06
50.6390944.47372.3e-05
60.5627893.93950.000129
70.4741813.31930.000854
80.3870232.70920.004633
90.3095022.16650.017582
100.2455161.71860.045999
110.1869831.30890.09834
120.107640.75350.227383
130.0373990.26180.397289
14-0.031193-0.21840.414031
15-0.094746-0.66320.255148
16-0.158321-1.10820.136582
17-0.208879-1.46220.075042
18-0.270521-1.89360.032092
19-0.319234-2.23460.015017
20-0.357839-2.50490.007812
21-0.395267-2.76690.003981
22-0.419314-2.93520.002531
23-0.438619-3.07030.001741
24-0.447914-3.13540.00145
25-0.462548-3.23780.001082
26-0.456389-3.19470.001224
27-0.437071-3.05950.001795
28-0.412625-2.88840.002875
29-0.376764-2.63730.005582
30-0.330759-2.31530.012413
31-0.292114-2.04480.023133
32-0.264618-1.85230.035004
33-0.214387-1.50070.069924
34-0.179899-1.25930.106946
35-0.143058-1.00140.160774
36-0.123106-0.86170.196513

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.932321 & 6.5262 & 0 \tabularnewline
2 & 0.8694 & 6.0858 & 0 \tabularnewline
3 & 0.799624 & 5.5974 & 0 \tabularnewline
4 & 0.7241 & 5.0687 & 3e-06 \tabularnewline
5 & 0.639094 & 4.4737 & 2.3e-05 \tabularnewline
6 & 0.562789 & 3.9395 & 0.000129 \tabularnewline
7 & 0.474181 & 3.3193 & 0.000854 \tabularnewline
8 & 0.387023 & 2.7092 & 0.004633 \tabularnewline
9 & 0.309502 & 2.1665 & 0.017582 \tabularnewline
10 & 0.245516 & 1.7186 & 0.045999 \tabularnewline
11 & 0.186983 & 1.3089 & 0.09834 \tabularnewline
12 & 0.10764 & 0.7535 & 0.227383 \tabularnewline
13 & 0.037399 & 0.2618 & 0.397289 \tabularnewline
14 & -0.031193 & -0.2184 & 0.414031 \tabularnewline
15 & -0.094746 & -0.6632 & 0.255148 \tabularnewline
16 & -0.158321 & -1.1082 & 0.136582 \tabularnewline
17 & -0.208879 & -1.4622 & 0.075042 \tabularnewline
18 & -0.270521 & -1.8936 & 0.032092 \tabularnewline
19 & -0.319234 & -2.2346 & 0.015017 \tabularnewline
20 & -0.357839 & -2.5049 & 0.007812 \tabularnewline
21 & -0.395267 & -2.7669 & 0.003981 \tabularnewline
22 & -0.419314 & -2.9352 & 0.002531 \tabularnewline
23 & -0.438619 & -3.0703 & 0.001741 \tabularnewline
24 & -0.447914 & -3.1354 & 0.00145 \tabularnewline
25 & -0.462548 & -3.2378 & 0.001082 \tabularnewline
26 & -0.456389 & -3.1947 & 0.001224 \tabularnewline
27 & -0.437071 & -3.0595 & 0.001795 \tabularnewline
28 & -0.412625 & -2.8884 & 0.002875 \tabularnewline
29 & -0.376764 & -2.6373 & 0.005582 \tabularnewline
30 & -0.330759 & -2.3153 & 0.012413 \tabularnewline
31 & -0.292114 & -2.0448 & 0.023133 \tabularnewline
32 & -0.264618 & -1.8523 & 0.035004 \tabularnewline
33 & -0.214387 & -1.5007 & 0.069924 \tabularnewline
34 & -0.179899 & -1.2593 & 0.106946 \tabularnewline
35 & -0.143058 & -1.0014 & 0.160774 \tabularnewline
36 & -0.123106 & -0.8617 & 0.196513 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60256&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.932321[/C][C]6.5262[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.8694[/C][C]6.0858[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.799624[/C][C]5.5974[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.7241[/C][C]5.0687[/C][C]3e-06[/C][/ROW]
[ROW][C]5[/C][C]0.639094[/C][C]4.4737[/C][C]2.3e-05[/C][/ROW]
[ROW][C]6[/C][C]0.562789[/C][C]3.9395[/C][C]0.000129[/C][/ROW]
[ROW][C]7[/C][C]0.474181[/C][C]3.3193[/C][C]0.000854[/C][/ROW]
[ROW][C]8[/C][C]0.387023[/C][C]2.7092[/C][C]0.004633[/C][/ROW]
[ROW][C]9[/C][C]0.309502[/C][C]2.1665[/C][C]0.017582[/C][/ROW]
[ROW][C]10[/C][C]0.245516[/C][C]1.7186[/C][C]0.045999[/C][/ROW]
[ROW][C]11[/C][C]0.186983[/C][C]1.3089[/C][C]0.09834[/C][/ROW]
[ROW][C]12[/C][C]0.10764[/C][C]0.7535[/C][C]0.227383[/C][/ROW]
[ROW][C]13[/C][C]0.037399[/C][C]0.2618[/C][C]0.397289[/C][/ROW]
[ROW][C]14[/C][C]-0.031193[/C][C]-0.2184[/C][C]0.414031[/C][/ROW]
[ROW][C]15[/C][C]-0.094746[/C][C]-0.6632[/C][C]0.255148[/C][/ROW]
[ROW][C]16[/C][C]-0.158321[/C][C]-1.1082[/C][C]0.136582[/C][/ROW]
[ROW][C]17[/C][C]-0.208879[/C][C]-1.4622[/C][C]0.075042[/C][/ROW]
[ROW][C]18[/C][C]-0.270521[/C][C]-1.8936[/C][C]0.032092[/C][/ROW]
[ROW][C]19[/C][C]-0.319234[/C][C]-2.2346[/C][C]0.015017[/C][/ROW]
[ROW][C]20[/C][C]-0.357839[/C][C]-2.5049[/C][C]0.007812[/C][/ROW]
[ROW][C]21[/C][C]-0.395267[/C][C]-2.7669[/C][C]0.003981[/C][/ROW]
[ROW][C]22[/C][C]-0.419314[/C][C]-2.9352[/C][C]0.002531[/C][/ROW]
[ROW][C]23[/C][C]-0.438619[/C][C]-3.0703[/C][C]0.001741[/C][/ROW]
[ROW][C]24[/C][C]-0.447914[/C][C]-3.1354[/C][C]0.00145[/C][/ROW]
[ROW][C]25[/C][C]-0.462548[/C][C]-3.2378[/C][C]0.001082[/C][/ROW]
[ROW][C]26[/C][C]-0.456389[/C][C]-3.1947[/C][C]0.001224[/C][/ROW]
[ROW][C]27[/C][C]-0.437071[/C][C]-3.0595[/C][C]0.001795[/C][/ROW]
[ROW][C]28[/C][C]-0.412625[/C][C]-2.8884[/C][C]0.002875[/C][/ROW]
[ROW][C]29[/C][C]-0.376764[/C][C]-2.6373[/C][C]0.005582[/C][/ROW]
[ROW][C]30[/C][C]-0.330759[/C][C]-2.3153[/C][C]0.012413[/C][/ROW]
[ROW][C]31[/C][C]-0.292114[/C][C]-2.0448[/C][C]0.023133[/C][/ROW]
[ROW][C]32[/C][C]-0.264618[/C][C]-1.8523[/C][C]0.035004[/C][/ROW]
[ROW][C]33[/C][C]-0.214387[/C][C]-1.5007[/C][C]0.069924[/C][/ROW]
[ROW][C]34[/C][C]-0.179899[/C][C]-1.2593[/C][C]0.106946[/C][/ROW]
[ROW][C]35[/C][C]-0.143058[/C][C]-1.0014[/C][C]0.160774[/C][/ROW]
[ROW][C]36[/C][C]-0.123106[/C][C]-0.8617[/C][C]0.196513[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60256&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60256&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.9323216.52620
20.86946.08580
30.7996245.59740
40.72415.06873e-06
50.6390944.47372.3e-05
60.5627893.93950.000129
70.4741813.31930.000854
80.3870232.70920.004633
90.3095022.16650.017582
100.2455161.71860.045999
110.1869831.30890.09834
120.107640.75350.227383
130.0373990.26180.397289
14-0.031193-0.21840.414031
15-0.094746-0.66320.255148
16-0.158321-1.10820.136582
17-0.208879-1.46220.075042
18-0.270521-1.89360.032092
19-0.319234-2.23460.015017
20-0.357839-2.50490.007812
21-0.395267-2.76690.003981
22-0.419314-2.93520.002531
23-0.438619-3.07030.001741
24-0.447914-3.13540.00145
25-0.462548-3.23780.001082
26-0.456389-3.19470.001224
27-0.437071-3.05950.001795
28-0.412625-2.88840.002875
29-0.376764-2.63730.005582
30-0.330759-2.31530.012413
31-0.292114-2.04480.023133
32-0.264618-1.85230.035004
33-0.214387-1.50070.069924
34-0.179899-1.25930.106946
35-0.143058-1.00140.160774
36-0.123106-0.86170.196513







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9323216.52620
20.0013610.00950.496217
3-0.084892-0.59420.277542
4-0.086553-0.60590.273698
5-0.118477-0.82930.205468
60.0138330.09680.461627
7-0.131998-0.9240.180011
8-0.055942-0.39160.348528
90.020430.1430.443433
100.0532870.3730.355375
110.00960.06720.473347
12-0.241225-1.68860.048828
13-0.028331-0.19830.421808
14-0.044229-0.30960.379087
15-0.023792-0.16650.434208
16-0.067188-0.47030.320108
17-0.006884-0.04820.480882
18-0.103529-0.72470.23604
190.015330.10730.457491
20-0.001354-0.00950.496238
21-0.109453-0.76620.223625
220.0351540.24610.403325
23-0.018571-0.130.44855
240.0227090.1590.437177
25-0.11562-0.80930.211117
260.0650290.45520.325488
270.0947020.66290.255246
28-0.02335-0.16340.43542
290.1042090.72950.234596
30-0.002388-0.01670.493366
31-0.054095-0.37870.353287
32-0.121936-0.85350.198754
330.1352720.94690.174167
34-0.123915-0.86740.194975
350.027180.19030.424944
36-0.102926-0.72050.237325

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.932321 & 6.5262 & 0 \tabularnewline
2 & 0.001361 & 0.0095 & 0.496217 \tabularnewline
3 & -0.084892 & -0.5942 & 0.277542 \tabularnewline
4 & -0.086553 & -0.6059 & 0.273698 \tabularnewline
5 & -0.118477 & -0.8293 & 0.205468 \tabularnewline
6 & 0.013833 & 0.0968 & 0.461627 \tabularnewline
7 & -0.131998 & -0.924 & 0.180011 \tabularnewline
8 & -0.055942 & -0.3916 & 0.348528 \tabularnewline
9 & 0.02043 & 0.143 & 0.443433 \tabularnewline
10 & 0.053287 & 0.373 & 0.355375 \tabularnewline
11 & 0.0096 & 0.0672 & 0.473347 \tabularnewline
12 & -0.241225 & -1.6886 & 0.048828 \tabularnewline
13 & -0.028331 & -0.1983 & 0.421808 \tabularnewline
14 & -0.044229 & -0.3096 & 0.379087 \tabularnewline
15 & -0.023792 & -0.1665 & 0.434208 \tabularnewline
16 & -0.067188 & -0.4703 & 0.320108 \tabularnewline
17 & -0.006884 & -0.0482 & 0.480882 \tabularnewline
18 & -0.103529 & -0.7247 & 0.23604 \tabularnewline
19 & 0.01533 & 0.1073 & 0.457491 \tabularnewline
20 & -0.001354 & -0.0095 & 0.496238 \tabularnewline
21 & -0.109453 & -0.7662 & 0.223625 \tabularnewline
22 & 0.035154 & 0.2461 & 0.403325 \tabularnewline
23 & -0.018571 & -0.13 & 0.44855 \tabularnewline
24 & 0.022709 & 0.159 & 0.437177 \tabularnewline
25 & -0.11562 & -0.8093 & 0.211117 \tabularnewline
26 & 0.065029 & 0.4552 & 0.325488 \tabularnewline
27 & 0.094702 & 0.6629 & 0.255246 \tabularnewline
28 & -0.02335 & -0.1634 & 0.43542 \tabularnewline
29 & 0.104209 & 0.7295 & 0.234596 \tabularnewline
30 & -0.002388 & -0.0167 & 0.493366 \tabularnewline
31 & -0.054095 & -0.3787 & 0.353287 \tabularnewline
32 & -0.121936 & -0.8535 & 0.198754 \tabularnewline
33 & 0.135272 & 0.9469 & 0.174167 \tabularnewline
34 & -0.123915 & -0.8674 & 0.194975 \tabularnewline
35 & 0.02718 & 0.1903 & 0.424944 \tabularnewline
36 & -0.102926 & -0.7205 & 0.237325 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60256&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.932321[/C][C]6.5262[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.001361[/C][C]0.0095[/C][C]0.496217[/C][/ROW]
[ROW][C]3[/C][C]-0.084892[/C][C]-0.5942[/C][C]0.277542[/C][/ROW]
[ROW][C]4[/C][C]-0.086553[/C][C]-0.6059[/C][C]0.273698[/C][/ROW]
[ROW][C]5[/C][C]-0.118477[/C][C]-0.8293[/C][C]0.205468[/C][/ROW]
[ROW][C]6[/C][C]0.013833[/C][C]0.0968[/C][C]0.461627[/C][/ROW]
[ROW][C]7[/C][C]-0.131998[/C][C]-0.924[/C][C]0.180011[/C][/ROW]
[ROW][C]8[/C][C]-0.055942[/C][C]-0.3916[/C][C]0.348528[/C][/ROW]
[ROW][C]9[/C][C]0.02043[/C][C]0.143[/C][C]0.443433[/C][/ROW]
[ROW][C]10[/C][C]0.053287[/C][C]0.373[/C][C]0.355375[/C][/ROW]
[ROW][C]11[/C][C]0.0096[/C][C]0.0672[/C][C]0.473347[/C][/ROW]
[ROW][C]12[/C][C]-0.241225[/C][C]-1.6886[/C][C]0.048828[/C][/ROW]
[ROW][C]13[/C][C]-0.028331[/C][C]-0.1983[/C][C]0.421808[/C][/ROW]
[ROW][C]14[/C][C]-0.044229[/C][C]-0.3096[/C][C]0.379087[/C][/ROW]
[ROW][C]15[/C][C]-0.023792[/C][C]-0.1665[/C][C]0.434208[/C][/ROW]
[ROW][C]16[/C][C]-0.067188[/C][C]-0.4703[/C][C]0.320108[/C][/ROW]
[ROW][C]17[/C][C]-0.006884[/C][C]-0.0482[/C][C]0.480882[/C][/ROW]
[ROW][C]18[/C][C]-0.103529[/C][C]-0.7247[/C][C]0.23604[/C][/ROW]
[ROW][C]19[/C][C]0.01533[/C][C]0.1073[/C][C]0.457491[/C][/ROW]
[ROW][C]20[/C][C]-0.001354[/C][C]-0.0095[/C][C]0.496238[/C][/ROW]
[ROW][C]21[/C][C]-0.109453[/C][C]-0.7662[/C][C]0.223625[/C][/ROW]
[ROW][C]22[/C][C]0.035154[/C][C]0.2461[/C][C]0.403325[/C][/ROW]
[ROW][C]23[/C][C]-0.018571[/C][C]-0.13[/C][C]0.44855[/C][/ROW]
[ROW][C]24[/C][C]0.022709[/C][C]0.159[/C][C]0.437177[/C][/ROW]
[ROW][C]25[/C][C]-0.11562[/C][C]-0.8093[/C][C]0.211117[/C][/ROW]
[ROW][C]26[/C][C]0.065029[/C][C]0.4552[/C][C]0.325488[/C][/ROW]
[ROW][C]27[/C][C]0.094702[/C][C]0.6629[/C][C]0.255246[/C][/ROW]
[ROW][C]28[/C][C]-0.02335[/C][C]-0.1634[/C][C]0.43542[/C][/ROW]
[ROW][C]29[/C][C]0.104209[/C][C]0.7295[/C][C]0.234596[/C][/ROW]
[ROW][C]30[/C][C]-0.002388[/C][C]-0.0167[/C][C]0.493366[/C][/ROW]
[ROW][C]31[/C][C]-0.054095[/C][C]-0.3787[/C][C]0.353287[/C][/ROW]
[ROW][C]32[/C][C]-0.121936[/C][C]-0.8535[/C][C]0.198754[/C][/ROW]
[ROW][C]33[/C][C]0.135272[/C][C]0.9469[/C][C]0.174167[/C][/ROW]
[ROW][C]34[/C][C]-0.123915[/C][C]-0.8674[/C][C]0.194975[/C][/ROW]
[ROW][C]35[/C][C]0.02718[/C][C]0.1903[/C][C]0.424944[/C][/ROW]
[ROW][C]36[/C][C]-0.102926[/C][C]-0.7205[/C][C]0.237325[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60256&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60256&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.9323216.52620
20.0013610.00950.496217
3-0.084892-0.59420.277542
4-0.086553-0.60590.273698
5-0.118477-0.82930.205468
60.0138330.09680.461627
7-0.131998-0.9240.180011
8-0.055942-0.39160.348528
90.020430.1430.443433
100.0532870.3730.355375
110.00960.06720.473347
12-0.241225-1.68860.048828
13-0.028331-0.19830.421808
14-0.044229-0.30960.379087
15-0.023792-0.16650.434208
16-0.067188-0.47030.320108
17-0.006884-0.04820.480882
18-0.103529-0.72470.23604
190.015330.10730.457491
20-0.001354-0.00950.496238
21-0.109453-0.76620.223625
220.0351540.24610.403325
23-0.018571-0.130.44855
240.0227090.1590.437177
25-0.11562-0.80930.211117
260.0650290.45520.325488
270.0947020.66290.255246
28-0.02335-0.16340.43542
290.1042090.72950.234596
30-0.002388-0.01670.493366
31-0.054095-0.37870.353287
32-0.121936-0.85350.198754
330.1352720.94690.174167
34-0.123915-0.86740.194975
350.027180.19030.424944
36-0.102926-0.72050.237325



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