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 07:42:23 -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/t1259937793z259jw7hmhi5szj.htm/, Retrieved Sat, 04 May 2024 01:09:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63646, Retrieved Sat, 04 May 2024 01:09:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact123
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:47:30] [b98453cac15ba1066b407e146608df68]
-    D      [(Partial) Autocorrelation Function] [] [2009-12-04 14:42:23] [27b6e36591879260e4dc6bb7e89a38fd] [Current]
Feedback Forum

Post a new message
Dataseries X:
455
456
517
525
523
519
509
512
519
517
510
509
501
507
569
580
578
565
547
555
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
533
536
537
524
536
587
597
581
564




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63646&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.2500162.35870.010265
2-0.210715-1.98790.024949
3-0.287177-2.70920.004045
4-0.22456-2.11850.01846
50.0804370.75880.224976
60.2070681.95350.026952
70.0695430.65610.256737
8-0.223734-2.11070.018801
9-0.275105-2.59530.005526
10-0.20163-1.90220.030191
110.2467062.32740.011106
120.8081377.6240
130.1846591.74210.042476
14-0.191508-1.80670.037095
15-0.280435-2.64560.00482
16-0.224054-2.11370.018668
170.0582860.54990.291893
180.1421881.34140.091602
190.0487370.45980.323395
20-0.219717-2.07280.020541
21-0.25545-2.40990.009007
22-0.147337-1.390.084001
230.2137432.01640.023384
240.6391566.02980
250.1259961.18860.118871
26-0.194017-1.83040.035272
27-0.255182-2.40740.009066
28-0.183097-1.72730.043788
290.0323170.30490.380584
300.0971790.91680.180866
310.0249070.2350.407386
32-0.210641-1.98720.024989
33-0.204956-1.93350.028173
34-0.091494-0.86320.195186
350.1685011.58960.057731
360.5229914.93392e-06

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.250016 & 2.3587 & 0.010265 \tabularnewline
2 & -0.210715 & -1.9879 & 0.024949 \tabularnewline
3 & -0.287177 & -2.7092 & 0.004045 \tabularnewline
4 & -0.22456 & -2.1185 & 0.01846 \tabularnewline
5 & 0.080437 & 0.7588 & 0.224976 \tabularnewline
6 & 0.207068 & 1.9535 & 0.026952 \tabularnewline
7 & 0.069543 & 0.6561 & 0.256737 \tabularnewline
8 & -0.223734 & -2.1107 & 0.018801 \tabularnewline
9 & -0.275105 & -2.5953 & 0.005526 \tabularnewline
10 & -0.20163 & -1.9022 & 0.030191 \tabularnewline
11 & 0.246706 & 2.3274 & 0.011106 \tabularnewline
12 & 0.808137 & 7.624 & 0 \tabularnewline
13 & 0.184659 & 1.7421 & 0.042476 \tabularnewline
14 & -0.191508 & -1.8067 & 0.037095 \tabularnewline
15 & -0.280435 & -2.6456 & 0.00482 \tabularnewline
16 & -0.224054 & -2.1137 & 0.018668 \tabularnewline
17 & 0.058286 & 0.5499 & 0.291893 \tabularnewline
18 & 0.142188 & 1.3414 & 0.091602 \tabularnewline
19 & 0.048737 & 0.4598 & 0.323395 \tabularnewline
20 & -0.219717 & -2.0728 & 0.020541 \tabularnewline
21 & -0.25545 & -2.4099 & 0.009007 \tabularnewline
22 & -0.147337 & -1.39 & 0.084001 \tabularnewline
23 & 0.213743 & 2.0164 & 0.023384 \tabularnewline
24 & 0.639156 & 6.0298 & 0 \tabularnewline
25 & 0.125996 & 1.1886 & 0.118871 \tabularnewline
26 & -0.194017 & -1.8304 & 0.035272 \tabularnewline
27 & -0.255182 & -2.4074 & 0.009066 \tabularnewline
28 & -0.183097 & -1.7273 & 0.043788 \tabularnewline
29 & 0.032317 & 0.3049 & 0.380584 \tabularnewline
30 & 0.097179 & 0.9168 & 0.180866 \tabularnewline
31 & 0.024907 & 0.235 & 0.407386 \tabularnewline
32 & -0.210641 & -1.9872 & 0.024989 \tabularnewline
33 & -0.204956 & -1.9335 & 0.028173 \tabularnewline
34 & -0.091494 & -0.8632 & 0.195186 \tabularnewline
35 & 0.168501 & 1.5896 & 0.057731 \tabularnewline
36 & 0.522991 & 4.9339 & 2e-06 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63646&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.250016[/C][C]2.3587[/C][C]0.010265[/C][/ROW]
[ROW][C]2[/C][C]-0.210715[/C][C]-1.9879[/C][C]0.024949[/C][/ROW]
[ROW][C]3[/C][C]-0.287177[/C][C]-2.7092[/C][C]0.004045[/C][/ROW]
[ROW][C]4[/C][C]-0.22456[/C][C]-2.1185[/C][C]0.01846[/C][/ROW]
[ROW][C]5[/C][C]0.080437[/C][C]0.7588[/C][C]0.224976[/C][/ROW]
[ROW][C]6[/C][C]0.207068[/C][C]1.9535[/C][C]0.026952[/C][/ROW]
[ROW][C]7[/C][C]0.069543[/C][C]0.6561[/C][C]0.256737[/C][/ROW]
[ROW][C]8[/C][C]-0.223734[/C][C]-2.1107[/C][C]0.018801[/C][/ROW]
[ROW][C]9[/C][C]-0.275105[/C][C]-2.5953[/C][C]0.005526[/C][/ROW]
[ROW][C]10[/C][C]-0.20163[/C][C]-1.9022[/C][C]0.030191[/C][/ROW]
[ROW][C]11[/C][C]0.246706[/C][C]2.3274[/C][C]0.011106[/C][/ROW]
[ROW][C]12[/C][C]0.808137[/C][C]7.624[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.184659[/C][C]1.7421[/C][C]0.042476[/C][/ROW]
[ROW][C]14[/C][C]-0.191508[/C][C]-1.8067[/C][C]0.037095[/C][/ROW]
[ROW][C]15[/C][C]-0.280435[/C][C]-2.6456[/C][C]0.00482[/C][/ROW]
[ROW][C]16[/C][C]-0.224054[/C][C]-2.1137[/C][C]0.018668[/C][/ROW]
[ROW][C]17[/C][C]0.058286[/C][C]0.5499[/C][C]0.291893[/C][/ROW]
[ROW][C]18[/C][C]0.142188[/C][C]1.3414[/C][C]0.091602[/C][/ROW]
[ROW][C]19[/C][C]0.048737[/C][C]0.4598[/C][C]0.323395[/C][/ROW]
[ROW][C]20[/C][C]-0.219717[/C][C]-2.0728[/C][C]0.020541[/C][/ROW]
[ROW][C]21[/C][C]-0.25545[/C][C]-2.4099[/C][C]0.009007[/C][/ROW]
[ROW][C]22[/C][C]-0.147337[/C][C]-1.39[/C][C]0.084001[/C][/ROW]
[ROW][C]23[/C][C]0.213743[/C][C]2.0164[/C][C]0.023384[/C][/ROW]
[ROW][C]24[/C][C]0.639156[/C][C]6.0298[/C][C]0[/C][/ROW]
[ROW][C]25[/C][C]0.125996[/C][C]1.1886[/C][C]0.118871[/C][/ROW]
[ROW][C]26[/C][C]-0.194017[/C][C]-1.8304[/C][C]0.035272[/C][/ROW]
[ROW][C]27[/C][C]-0.255182[/C][C]-2.4074[/C][C]0.009066[/C][/ROW]
[ROW][C]28[/C][C]-0.183097[/C][C]-1.7273[/C][C]0.043788[/C][/ROW]
[ROW][C]29[/C][C]0.032317[/C][C]0.3049[/C][C]0.380584[/C][/ROW]
[ROW][C]30[/C][C]0.097179[/C][C]0.9168[/C][C]0.180866[/C][/ROW]
[ROW][C]31[/C][C]0.024907[/C][C]0.235[/C][C]0.407386[/C][/ROW]
[ROW][C]32[/C][C]-0.210641[/C][C]-1.9872[/C][C]0.024989[/C][/ROW]
[ROW][C]33[/C][C]-0.204956[/C][C]-1.9335[/C][C]0.028173[/C][/ROW]
[ROW][C]34[/C][C]-0.091494[/C][C]-0.8632[/C][C]0.195186[/C][/ROW]
[ROW][C]35[/C][C]0.168501[/C][C]1.5896[/C][C]0.057731[/C][/ROW]
[ROW][C]36[/C][C]0.522991[/C][C]4.9339[/C][C]2e-06[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63646&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63646&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.2500162.35870.010265
2-0.210715-1.98790.024949
3-0.287177-2.70920.004045
4-0.22456-2.11850.01846
50.0804370.75880.224976
60.2070681.95350.026952
70.0695430.65610.256737
8-0.223734-2.11070.018801
9-0.275105-2.59530.005526
10-0.20163-1.90220.030191
110.2467062.32740.011106
120.8081377.6240
130.1846591.74210.042476
14-0.191508-1.80670.037095
15-0.280435-2.64560.00482
16-0.224054-2.11370.018668
170.0582860.54990.291893
180.1421881.34140.091602
190.0487370.45980.323395
20-0.219717-2.07280.020541
21-0.25545-2.40990.009007
22-0.147337-1.390.084001
230.2137432.01640.023384
240.6391566.02980
250.1259961.18860.118871
26-0.194017-1.83040.035272
27-0.255182-2.40740.009066
28-0.183097-1.72730.043788
290.0323170.30490.380584
300.0971790.91680.180866
310.0249070.2350.407386
32-0.210641-1.98720.024989
33-0.204956-1.93350.028173
34-0.091494-0.86320.195186
350.1685011.58960.057731
360.5229914.93392e-06







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2500162.35870.010265
2-0.291441-2.74950.003615
3-0.170512-1.60860.055622
4-0.184035-1.73620.042996
50.0932460.87970.190702
60.0401480.37880.352887
7-0.039501-0.37270.355146
8-0.23131-2.18220.015865
9-0.126844-1.19660.117312
10-0.216334-2.04090.022112
110.2318872.18760.015659
120.7133256.72950
13-0.159482-1.50460.06799
140.0806930.76130.224258
15-0.015091-0.14240.443554
16-0.040304-0.38020.352343
17-0.088315-0.83320.203493
18-0.172457-1.6270.053641
190.0055870.05270.47904
20-0.07465-0.70420.241559
21-0.001133-0.01070.495747
220.0925150.87280.192564
23-0.112419-1.06060.14588
240.0149630.14120.444031
25-0.057611-0.54350.294071
26-0.087133-0.8220.206634
270.0243920.23010.409265
280.0011810.01110.495569
29-0.04896-0.46190.322643
300.0078170.07370.47069
31-0.049595-0.46790.320509
320.0132430.12490.45043
330.0007680.00720.497119
34-0.020498-0.19340.423551
35-0.07225-0.68160.248628
360.0358790.33850.367898

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.250016 & 2.3587 & 0.010265 \tabularnewline
2 & -0.291441 & -2.7495 & 0.003615 \tabularnewline
3 & -0.170512 & -1.6086 & 0.055622 \tabularnewline
4 & -0.184035 & -1.7362 & 0.042996 \tabularnewline
5 & 0.093246 & 0.8797 & 0.190702 \tabularnewline
6 & 0.040148 & 0.3788 & 0.352887 \tabularnewline
7 & -0.039501 & -0.3727 & 0.355146 \tabularnewline
8 & -0.23131 & -2.1822 & 0.015865 \tabularnewline
9 & -0.126844 & -1.1966 & 0.117312 \tabularnewline
10 & -0.216334 & -2.0409 & 0.022112 \tabularnewline
11 & 0.231887 & 2.1876 & 0.015659 \tabularnewline
12 & 0.713325 & 6.7295 & 0 \tabularnewline
13 & -0.159482 & -1.5046 & 0.06799 \tabularnewline
14 & 0.080693 & 0.7613 & 0.224258 \tabularnewline
15 & -0.015091 & -0.1424 & 0.443554 \tabularnewline
16 & -0.040304 & -0.3802 & 0.352343 \tabularnewline
17 & -0.088315 & -0.8332 & 0.203493 \tabularnewline
18 & -0.172457 & -1.627 & 0.053641 \tabularnewline
19 & 0.005587 & 0.0527 & 0.47904 \tabularnewline
20 & -0.07465 & -0.7042 & 0.241559 \tabularnewline
21 & -0.001133 & -0.0107 & 0.495747 \tabularnewline
22 & 0.092515 & 0.8728 & 0.192564 \tabularnewline
23 & -0.112419 & -1.0606 & 0.14588 \tabularnewline
24 & 0.014963 & 0.1412 & 0.444031 \tabularnewline
25 & -0.057611 & -0.5435 & 0.294071 \tabularnewline
26 & -0.087133 & -0.822 & 0.206634 \tabularnewline
27 & 0.024392 & 0.2301 & 0.409265 \tabularnewline
28 & 0.001181 & 0.0111 & 0.495569 \tabularnewline
29 & -0.04896 & -0.4619 & 0.322643 \tabularnewline
30 & 0.007817 & 0.0737 & 0.47069 \tabularnewline
31 & -0.049595 & -0.4679 & 0.320509 \tabularnewline
32 & 0.013243 & 0.1249 & 0.45043 \tabularnewline
33 & 0.000768 & 0.0072 & 0.497119 \tabularnewline
34 & -0.020498 & -0.1934 & 0.423551 \tabularnewline
35 & -0.07225 & -0.6816 & 0.248628 \tabularnewline
36 & 0.035879 & 0.3385 & 0.367898 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63646&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.250016[/C][C]2.3587[/C][C]0.010265[/C][/ROW]
[ROW][C]2[/C][C]-0.291441[/C][C]-2.7495[/C][C]0.003615[/C][/ROW]
[ROW][C]3[/C][C]-0.170512[/C][C]-1.6086[/C][C]0.055622[/C][/ROW]
[ROW][C]4[/C][C]-0.184035[/C][C]-1.7362[/C][C]0.042996[/C][/ROW]
[ROW][C]5[/C][C]0.093246[/C][C]0.8797[/C][C]0.190702[/C][/ROW]
[ROW][C]6[/C][C]0.040148[/C][C]0.3788[/C][C]0.352887[/C][/ROW]
[ROW][C]7[/C][C]-0.039501[/C][C]-0.3727[/C][C]0.355146[/C][/ROW]
[ROW][C]8[/C][C]-0.23131[/C][C]-2.1822[/C][C]0.015865[/C][/ROW]
[ROW][C]9[/C][C]-0.126844[/C][C]-1.1966[/C][C]0.117312[/C][/ROW]
[ROW][C]10[/C][C]-0.216334[/C][C]-2.0409[/C][C]0.022112[/C][/ROW]
[ROW][C]11[/C][C]0.231887[/C][C]2.1876[/C][C]0.015659[/C][/ROW]
[ROW][C]12[/C][C]0.713325[/C][C]6.7295[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]-0.159482[/C][C]-1.5046[/C][C]0.06799[/C][/ROW]
[ROW][C]14[/C][C]0.080693[/C][C]0.7613[/C][C]0.224258[/C][/ROW]
[ROW][C]15[/C][C]-0.015091[/C][C]-0.1424[/C][C]0.443554[/C][/ROW]
[ROW][C]16[/C][C]-0.040304[/C][C]-0.3802[/C][C]0.352343[/C][/ROW]
[ROW][C]17[/C][C]-0.088315[/C][C]-0.8332[/C][C]0.203493[/C][/ROW]
[ROW][C]18[/C][C]-0.172457[/C][C]-1.627[/C][C]0.053641[/C][/ROW]
[ROW][C]19[/C][C]0.005587[/C][C]0.0527[/C][C]0.47904[/C][/ROW]
[ROW][C]20[/C][C]-0.07465[/C][C]-0.7042[/C][C]0.241559[/C][/ROW]
[ROW][C]21[/C][C]-0.001133[/C][C]-0.0107[/C][C]0.495747[/C][/ROW]
[ROW][C]22[/C][C]0.092515[/C][C]0.8728[/C][C]0.192564[/C][/ROW]
[ROW][C]23[/C][C]-0.112419[/C][C]-1.0606[/C][C]0.14588[/C][/ROW]
[ROW][C]24[/C][C]0.014963[/C][C]0.1412[/C][C]0.444031[/C][/ROW]
[ROW][C]25[/C][C]-0.057611[/C][C]-0.5435[/C][C]0.294071[/C][/ROW]
[ROW][C]26[/C][C]-0.087133[/C][C]-0.822[/C][C]0.206634[/C][/ROW]
[ROW][C]27[/C][C]0.024392[/C][C]0.2301[/C][C]0.409265[/C][/ROW]
[ROW][C]28[/C][C]0.001181[/C][C]0.0111[/C][C]0.495569[/C][/ROW]
[ROW][C]29[/C][C]-0.04896[/C][C]-0.4619[/C][C]0.322643[/C][/ROW]
[ROW][C]30[/C][C]0.007817[/C][C]0.0737[/C][C]0.47069[/C][/ROW]
[ROW][C]31[/C][C]-0.049595[/C][C]-0.4679[/C][C]0.320509[/C][/ROW]
[ROW][C]32[/C][C]0.013243[/C][C]0.1249[/C][C]0.45043[/C][/ROW]
[ROW][C]33[/C][C]0.000768[/C][C]0.0072[/C][C]0.497119[/C][/ROW]
[ROW][C]34[/C][C]-0.020498[/C][C]-0.1934[/C][C]0.423551[/C][/ROW]
[ROW][C]35[/C][C]-0.07225[/C][C]-0.6816[/C][C]0.248628[/C][/ROW]
[ROW][C]36[/C][C]0.035879[/C][C]0.3385[/C][C]0.367898[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63646&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63646&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.2500162.35870.010265
2-0.291441-2.74950.003615
3-0.170512-1.60860.055622
4-0.184035-1.73620.042996
50.0932460.87970.190702
60.0401480.37880.352887
7-0.039501-0.37270.355146
8-0.23131-2.18220.015865
9-0.126844-1.19660.117312
10-0.216334-2.04090.022112
110.2318872.18760.015659
120.7133256.72950
13-0.159482-1.50460.06799
140.0806930.76130.224258
15-0.015091-0.14240.443554
16-0.040304-0.38020.352343
17-0.088315-0.83320.203493
18-0.172457-1.6270.053641
190.0055870.05270.47904
20-0.07465-0.70420.241559
21-0.001133-0.01070.495747
220.0925150.87280.192564
23-0.112419-1.06060.14588
240.0149630.14120.444031
25-0.057611-0.54350.294071
26-0.087133-0.8220.206634
270.0243920.23010.409265
280.0011810.01110.495569
29-0.04896-0.46190.322643
300.0078170.07370.47069
31-0.049595-0.46790.320509
320.0132430.12490.45043
330.0007680.00720.497119
34-0.020498-0.19340.423551
35-0.07225-0.68160.248628
360.0358790.33850.367898



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