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:40:28 -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/t1259937678qb1zmo1cj0f6nve.htm/, Retrieved Sat, 27 Apr 2024 16:35:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63637, Retrieved Sat, 27 Apr 2024 16:35:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact98
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 14:40:28] [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=63637&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=63637&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63637&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.8625978.18330
20.6702136.35820
30.5589185.30240
40.5140164.87642e-06
50.5198194.93142e-06
60.5069524.80943e-06
70.4423934.19693.2e-05
80.3647633.46040.000413
90.339153.21750.000899
100.3713.51960.00034
110.4421874.1953.2e-05
120.4614634.37781.6e-05
130.3034562.87880.002493
140.1087271.03150.152541
15-0.007562-0.07170.471485
16-0.05655-0.53650.296474
17-0.05424-0.51460.30406
18-0.071111-0.67460.250824
19-0.131038-1.24310.108524
20-0.196241-1.86170.032954
21-0.211399-2.00550.023956
22-0.173521-1.64620.051609
23-0.10773-1.0220.154756
24-0.093889-0.89070.187729
25-0.221904-2.10520.019032
26-0.374451-3.55240.000305
27-0.455705-4.32322e-05
28-0.470999-4.46831.1e-05
29-0.440673-4.18063.4e-05
30-0.418986-3.97497.1e-05
31-0.429674-4.07624.9e-05
32-0.445342-4.22492.9e-05
33-0.420193-3.98636.8e-05
34-0.353871-3.35710.000578
35-0.271022-2.57110.005889
36-0.231958-2.20050.015164

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.862597 & 8.1833 & 0 \tabularnewline
2 & 0.670213 & 6.3582 & 0 \tabularnewline
3 & 0.558918 & 5.3024 & 0 \tabularnewline
4 & 0.514016 & 4.8764 & 2e-06 \tabularnewline
5 & 0.519819 & 4.9314 & 2e-06 \tabularnewline
6 & 0.506952 & 4.8094 & 3e-06 \tabularnewline
7 & 0.442393 & 4.1969 & 3.2e-05 \tabularnewline
8 & 0.364763 & 3.4604 & 0.000413 \tabularnewline
9 & 0.33915 & 3.2175 & 0.000899 \tabularnewline
10 & 0.371 & 3.5196 & 0.00034 \tabularnewline
11 & 0.442187 & 4.195 & 3.2e-05 \tabularnewline
12 & 0.461463 & 4.3778 & 1.6e-05 \tabularnewline
13 & 0.303456 & 2.8788 & 0.002493 \tabularnewline
14 & 0.108727 & 1.0315 & 0.152541 \tabularnewline
15 & -0.007562 & -0.0717 & 0.471485 \tabularnewline
16 & -0.05655 & -0.5365 & 0.296474 \tabularnewline
17 & -0.05424 & -0.5146 & 0.30406 \tabularnewline
18 & -0.071111 & -0.6746 & 0.250824 \tabularnewline
19 & -0.131038 & -1.2431 & 0.108524 \tabularnewline
20 & -0.196241 & -1.8617 & 0.032954 \tabularnewline
21 & -0.211399 & -2.0055 & 0.023956 \tabularnewline
22 & -0.173521 & -1.6462 & 0.051609 \tabularnewline
23 & -0.10773 & -1.022 & 0.154756 \tabularnewline
24 & -0.093889 & -0.8907 & 0.187729 \tabularnewline
25 & -0.221904 & -2.1052 & 0.019032 \tabularnewline
26 & -0.374451 & -3.5524 & 0.000305 \tabularnewline
27 & -0.455705 & -4.3232 & 2e-05 \tabularnewline
28 & -0.470999 & -4.4683 & 1.1e-05 \tabularnewline
29 & -0.440673 & -4.1806 & 3.4e-05 \tabularnewline
30 & -0.418986 & -3.9749 & 7.1e-05 \tabularnewline
31 & -0.429674 & -4.0762 & 4.9e-05 \tabularnewline
32 & -0.445342 & -4.2249 & 2.9e-05 \tabularnewline
33 & -0.420193 & -3.9863 & 6.8e-05 \tabularnewline
34 & -0.353871 & -3.3571 & 0.000578 \tabularnewline
35 & -0.271022 & -2.5711 & 0.005889 \tabularnewline
36 & -0.231958 & -2.2005 & 0.015164 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63637&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.862597[/C][C]8.1833[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.670213[/C][C]6.3582[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.558918[/C][C]5.3024[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.514016[/C][C]4.8764[/C][C]2e-06[/C][/ROW]
[ROW][C]5[/C][C]0.519819[/C][C]4.9314[/C][C]2e-06[/C][/ROW]
[ROW][C]6[/C][C]0.506952[/C][C]4.8094[/C][C]3e-06[/C][/ROW]
[ROW][C]7[/C][C]0.442393[/C][C]4.1969[/C][C]3.2e-05[/C][/ROW]
[ROW][C]8[/C][C]0.364763[/C][C]3.4604[/C][C]0.000413[/C][/ROW]
[ROW][C]9[/C][C]0.33915[/C][C]3.2175[/C][C]0.000899[/C][/ROW]
[ROW][C]10[/C][C]0.371[/C][C]3.5196[/C][C]0.00034[/C][/ROW]
[ROW][C]11[/C][C]0.442187[/C][C]4.195[/C][C]3.2e-05[/C][/ROW]
[ROW][C]12[/C][C]0.461463[/C][C]4.3778[/C][C]1.6e-05[/C][/ROW]
[ROW][C]13[/C][C]0.303456[/C][C]2.8788[/C][C]0.002493[/C][/ROW]
[ROW][C]14[/C][C]0.108727[/C][C]1.0315[/C][C]0.152541[/C][/ROW]
[ROW][C]15[/C][C]-0.007562[/C][C]-0.0717[/C][C]0.471485[/C][/ROW]
[ROW][C]16[/C][C]-0.05655[/C][C]-0.5365[/C][C]0.296474[/C][/ROW]
[ROW][C]17[/C][C]-0.05424[/C][C]-0.5146[/C][C]0.30406[/C][/ROW]
[ROW][C]18[/C][C]-0.071111[/C][C]-0.6746[/C][C]0.250824[/C][/ROW]
[ROW][C]19[/C][C]-0.131038[/C][C]-1.2431[/C][C]0.108524[/C][/ROW]
[ROW][C]20[/C][C]-0.196241[/C][C]-1.8617[/C][C]0.032954[/C][/ROW]
[ROW][C]21[/C][C]-0.211399[/C][C]-2.0055[/C][C]0.023956[/C][/ROW]
[ROW][C]22[/C][C]-0.173521[/C][C]-1.6462[/C][C]0.051609[/C][/ROW]
[ROW][C]23[/C][C]-0.10773[/C][C]-1.022[/C][C]0.154756[/C][/ROW]
[ROW][C]24[/C][C]-0.093889[/C][C]-0.8907[/C][C]0.187729[/C][/ROW]
[ROW][C]25[/C][C]-0.221904[/C][C]-2.1052[/C][C]0.019032[/C][/ROW]
[ROW][C]26[/C][C]-0.374451[/C][C]-3.5524[/C][C]0.000305[/C][/ROW]
[ROW][C]27[/C][C]-0.455705[/C][C]-4.3232[/C][C]2e-05[/C][/ROW]
[ROW][C]28[/C][C]-0.470999[/C][C]-4.4683[/C][C]1.1e-05[/C][/ROW]
[ROW][C]29[/C][C]-0.440673[/C][C]-4.1806[/C][C]3.4e-05[/C][/ROW]
[ROW][C]30[/C][C]-0.418986[/C][C]-3.9749[/C][C]7.1e-05[/C][/ROW]
[ROW][C]31[/C][C]-0.429674[/C][C]-4.0762[/C][C]4.9e-05[/C][/ROW]
[ROW][C]32[/C][C]-0.445342[/C][C]-4.2249[/C][C]2.9e-05[/C][/ROW]
[ROW][C]33[/C][C]-0.420193[/C][C]-3.9863[/C][C]6.8e-05[/C][/ROW]
[ROW][C]34[/C][C]-0.353871[/C][C]-3.3571[/C][C]0.000578[/C][/ROW]
[ROW][C]35[/C][C]-0.271022[/C][C]-2.5711[/C][C]0.005889[/C][/ROW]
[ROW][C]36[/C][C]-0.231958[/C][C]-2.2005[/C][C]0.015164[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63637&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63637&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.8625978.18330
20.6702136.35820
30.5589185.30240
40.5140164.87642e-06
50.5198194.93142e-06
60.5069524.80943e-06
70.4423934.19693.2e-05
80.3647633.46040.000413
90.339153.21750.000899
100.3713.51960.00034
110.4421874.1953.2e-05
120.4614634.37781.6e-05
130.3034562.87880.002493
140.1087271.03150.152541
15-0.007562-0.07170.471485
16-0.05655-0.53650.296474
17-0.05424-0.51460.30406
18-0.071111-0.67460.250824
19-0.131038-1.24310.108524
20-0.196241-1.86170.032954
21-0.211399-2.00550.023956
22-0.173521-1.64620.051609
23-0.10773-1.0220.154756
24-0.093889-0.89070.187729
25-0.221904-2.10520.019032
26-0.374451-3.55240.000305
27-0.455705-4.32322e-05
28-0.470999-4.46831.1e-05
29-0.440673-4.18063.4e-05
30-0.418986-3.97497.1e-05
31-0.429674-4.07624.9e-05
32-0.445342-4.22492.9e-05
33-0.420193-3.98636.8e-05
34-0.353871-3.35710.000578
35-0.271022-2.57110.005889
36-0.231958-2.20050.015164







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8625978.18330
2-0.288598-2.73790.003726
30.2680722.54320.006346
40.0523770.49690.310238
50.2002351.89960.030344
6-0.090229-0.8560.19714
7-0.0497-0.47150.319214
8-0.016358-0.15520.43851
90.1583271.5020.068297
100.0925680.87820.191094
110.2018681.91510.029329
12-0.149557-1.41880.079702
13-0.557198-5.2860
14-0.024067-0.22830.40996
15-0.125918-1.19460.117698
16-0.039812-0.37770.353275
170.0155680.14770.441459
18-0.049527-0.46990.319797
190.0289850.2750.391982
20-0.028926-0.27440.392198
210.0193090.18320.427533
220.0056010.05310.47887
230.0774540.73480.232188
24-0.057068-0.54140.294787
25-0.146044-1.38550.084663
26-0.030629-0.29060.386023
27-0.115494-1.09570.138074
28-0.025702-0.24380.403958
29-0.063721-0.60450.273512
300.0627410.59520.276597
310.0161210.15290.439395
320.0072930.06920.472498
330.0009510.0090.496411
34-0.019394-0.1840.42722
350.0296010.28080.389745
360.0152180.14440.442767

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.862597 & 8.1833 & 0 \tabularnewline
2 & -0.288598 & -2.7379 & 0.003726 \tabularnewline
3 & 0.268072 & 2.5432 & 0.006346 \tabularnewline
4 & 0.052377 & 0.4969 & 0.310238 \tabularnewline
5 & 0.200235 & 1.8996 & 0.030344 \tabularnewline
6 & -0.090229 & -0.856 & 0.19714 \tabularnewline
7 & -0.0497 & -0.4715 & 0.319214 \tabularnewline
8 & -0.016358 & -0.1552 & 0.43851 \tabularnewline
9 & 0.158327 & 1.502 & 0.068297 \tabularnewline
10 & 0.092568 & 0.8782 & 0.191094 \tabularnewline
11 & 0.201868 & 1.9151 & 0.029329 \tabularnewline
12 & -0.149557 & -1.4188 & 0.079702 \tabularnewline
13 & -0.557198 & -5.286 & 0 \tabularnewline
14 & -0.024067 & -0.2283 & 0.40996 \tabularnewline
15 & -0.125918 & -1.1946 & 0.117698 \tabularnewline
16 & -0.039812 & -0.3777 & 0.353275 \tabularnewline
17 & 0.015568 & 0.1477 & 0.441459 \tabularnewline
18 & -0.049527 & -0.4699 & 0.319797 \tabularnewline
19 & 0.028985 & 0.275 & 0.391982 \tabularnewline
20 & -0.028926 & -0.2744 & 0.392198 \tabularnewline
21 & 0.019309 & 0.1832 & 0.427533 \tabularnewline
22 & 0.005601 & 0.0531 & 0.47887 \tabularnewline
23 & 0.077454 & 0.7348 & 0.232188 \tabularnewline
24 & -0.057068 & -0.5414 & 0.294787 \tabularnewline
25 & -0.146044 & -1.3855 & 0.084663 \tabularnewline
26 & -0.030629 & -0.2906 & 0.386023 \tabularnewline
27 & -0.115494 & -1.0957 & 0.138074 \tabularnewline
28 & -0.025702 & -0.2438 & 0.403958 \tabularnewline
29 & -0.063721 & -0.6045 & 0.273512 \tabularnewline
30 & 0.062741 & 0.5952 & 0.276597 \tabularnewline
31 & 0.016121 & 0.1529 & 0.439395 \tabularnewline
32 & 0.007293 & 0.0692 & 0.472498 \tabularnewline
33 & 0.000951 & 0.009 & 0.496411 \tabularnewline
34 & -0.019394 & -0.184 & 0.42722 \tabularnewline
35 & 0.029601 & 0.2808 & 0.389745 \tabularnewline
36 & 0.015218 & 0.1444 & 0.442767 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63637&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.862597[/C][C]8.1833[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.288598[/C][C]-2.7379[/C][C]0.003726[/C][/ROW]
[ROW][C]3[/C][C]0.268072[/C][C]2.5432[/C][C]0.006346[/C][/ROW]
[ROW][C]4[/C][C]0.052377[/C][C]0.4969[/C][C]0.310238[/C][/ROW]
[ROW][C]5[/C][C]0.200235[/C][C]1.8996[/C][C]0.030344[/C][/ROW]
[ROW][C]6[/C][C]-0.090229[/C][C]-0.856[/C][C]0.19714[/C][/ROW]
[ROW][C]7[/C][C]-0.0497[/C][C]-0.4715[/C][C]0.319214[/C][/ROW]
[ROW][C]8[/C][C]-0.016358[/C][C]-0.1552[/C][C]0.43851[/C][/ROW]
[ROW][C]9[/C][C]0.158327[/C][C]1.502[/C][C]0.068297[/C][/ROW]
[ROW][C]10[/C][C]0.092568[/C][C]0.8782[/C][C]0.191094[/C][/ROW]
[ROW][C]11[/C][C]0.201868[/C][C]1.9151[/C][C]0.029329[/C][/ROW]
[ROW][C]12[/C][C]-0.149557[/C][C]-1.4188[/C][C]0.079702[/C][/ROW]
[ROW][C]13[/C][C]-0.557198[/C][C]-5.286[/C][C]0[/C][/ROW]
[ROW][C]14[/C][C]-0.024067[/C][C]-0.2283[/C][C]0.40996[/C][/ROW]
[ROW][C]15[/C][C]-0.125918[/C][C]-1.1946[/C][C]0.117698[/C][/ROW]
[ROW][C]16[/C][C]-0.039812[/C][C]-0.3777[/C][C]0.353275[/C][/ROW]
[ROW][C]17[/C][C]0.015568[/C][C]0.1477[/C][C]0.441459[/C][/ROW]
[ROW][C]18[/C][C]-0.049527[/C][C]-0.4699[/C][C]0.319797[/C][/ROW]
[ROW][C]19[/C][C]0.028985[/C][C]0.275[/C][C]0.391982[/C][/ROW]
[ROW][C]20[/C][C]-0.028926[/C][C]-0.2744[/C][C]0.392198[/C][/ROW]
[ROW][C]21[/C][C]0.019309[/C][C]0.1832[/C][C]0.427533[/C][/ROW]
[ROW][C]22[/C][C]0.005601[/C][C]0.0531[/C][C]0.47887[/C][/ROW]
[ROW][C]23[/C][C]0.077454[/C][C]0.7348[/C][C]0.232188[/C][/ROW]
[ROW][C]24[/C][C]-0.057068[/C][C]-0.5414[/C][C]0.294787[/C][/ROW]
[ROW][C]25[/C][C]-0.146044[/C][C]-1.3855[/C][C]0.084663[/C][/ROW]
[ROW][C]26[/C][C]-0.030629[/C][C]-0.2906[/C][C]0.386023[/C][/ROW]
[ROW][C]27[/C][C]-0.115494[/C][C]-1.0957[/C][C]0.138074[/C][/ROW]
[ROW][C]28[/C][C]-0.025702[/C][C]-0.2438[/C][C]0.403958[/C][/ROW]
[ROW][C]29[/C][C]-0.063721[/C][C]-0.6045[/C][C]0.273512[/C][/ROW]
[ROW][C]30[/C][C]0.062741[/C][C]0.5952[/C][C]0.276597[/C][/ROW]
[ROW][C]31[/C][C]0.016121[/C][C]0.1529[/C][C]0.439395[/C][/ROW]
[ROW][C]32[/C][C]0.007293[/C][C]0.0692[/C][C]0.472498[/C][/ROW]
[ROW][C]33[/C][C]0.000951[/C][C]0.009[/C][C]0.496411[/C][/ROW]
[ROW][C]34[/C][C]-0.019394[/C][C]-0.184[/C][C]0.42722[/C][/ROW]
[ROW][C]35[/C][C]0.029601[/C][C]0.2808[/C][C]0.389745[/C][/ROW]
[ROW][C]36[/C][C]0.015218[/C][C]0.1444[/C][C]0.442767[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63637&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63637&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.8625978.18330
2-0.288598-2.73790.003726
30.2680722.54320.006346
40.0523770.49690.310238
50.2002351.89960.030344
6-0.090229-0.8560.19714
7-0.0497-0.47150.319214
8-0.016358-0.15520.43851
90.1583271.5020.068297
100.0925680.87820.191094
110.2018681.91510.029329
12-0.149557-1.41880.079702
13-0.557198-5.2860
14-0.024067-0.22830.40996
15-0.125918-1.19460.117698
16-0.039812-0.37770.353275
170.0155680.14770.441459
18-0.049527-0.46990.319797
190.0289850.2750.391982
20-0.028926-0.27440.392198
210.0193090.18320.427533
220.0056010.05310.47887
230.0774540.73480.232188
24-0.057068-0.54140.294787
25-0.146044-1.38550.084663
26-0.030629-0.29060.386023
27-0.115494-1.09570.138074
28-0.025702-0.24380.403958
29-0.063721-0.60450.273512
300.0627410.59520.276597
310.0161210.15290.439395
320.0072930.06920.472498
330.0009510.0090.496411
34-0.019394-0.1840.42722
350.0296010.28080.389745
360.0152180.14440.442767



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