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 computationSat, 19 Dec 2009 07:21:19 -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/19/t126123311259jl2e43ywzd6dp.htm/, Retrieved Fri, 03 May 2024 10:40:21 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69608, Retrieved Fri, 03 May 2024 10:40:21 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact176
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]
- R PD    [(Partial) Autocorrelation Function] [] [2009-12-01 17:18:57] [ee35698a38947a6c6c039b1e3deafc05]
- R PD      [(Partial) Autocorrelation Function] [] [2009-12-04 17:01:33] [eba9b8a72d680086d9ebbb043233c887]
-   PD          [(Partial) Autocorrelation Function] [ARMA model] [2009-12-19 14:21:19] [c5f9f441970441f2f938cd843072158d] [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
533
536
537
524
536
587




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69608&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.1518751.11610.134671
20.2779272.04230.023007
30.3124432.2960.012793
40.2393951.75920.042105
50.0821230.60350.274359
60.1663551.22250.113423
70.0349350.25670.399187
80.1458961.07210.144218
90.0353860.260.397913
10-0.049271-0.36210.359357
110.3095122.27440.013468
12-0.057271-0.42090.337765
130.0068990.05070.479878
140.1533931.12720.132321
150.0684140.50270.308597
160.0160720.11810.453212
170.0860030.6320.265031
18-0.086506-0.63570.263832
190.0522090.38370.351371
20-0.055669-0.40910.342048
21-0.165273-1.21450.11492
22-0.051737-0.38020.352647
23-0.094341-0.69330.245559
24-0.200844-1.47590.07289
25-0.111436-0.81890.208226
26-0.184834-1.35820.090016
27-0.187489-1.37780.086981
28-0.175931-1.29280.100788
29-0.138257-1.0160.157086
30-0.108859-0.79990.213623
31-0.031909-0.23450.407747
32-0.147157-1.08140.142167
330.0016470.01210.495193
34-0.035048-0.25760.398866
35-0.000533-0.00390.498445
36-0.053694-0.39460.347359

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.151875 & 1.1161 & 0.134671 \tabularnewline
2 & 0.277927 & 2.0423 & 0.023007 \tabularnewline
3 & 0.312443 & 2.296 & 0.012793 \tabularnewline
4 & 0.239395 & 1.7592 & 0.042105 \tabularnewline
5 & 0.082123 & 0.6035 & 0.274359 \tabularnewline
6 & 0.166355 & 1.2225 & 0.113423 \tabularnewline
7 & 0.034935 & 0.2567 & 0.399187 \tabularnewline
8 & 0.145896 & 1.0721 & 0.144218 \tabularnewline
9 & 0.035386 & 0.26 & 0.397913 \tabularnewline
10 & -0.049271 & -0.3621 & 0.359357 \tabularnewline
11 & 0.309512 & 2.2744 & 0.013468 \tabularnewline
12 & -0.057271 & -0.4209 & 0.337765 \tabularnewline
13 & 0.006899 & 0.0507 & 0.479878 \tabularnewline
14 & 0.153393 & 1.1272 & 0.132321 \tabularnewline
15 & 0.068414 & 0.5027 & 0.308597 \tabularnewline
16 & 0.016072 & 0.1181 & 0.453212 \tabularnewline
17 & 0.086003 & 0.632 & 0.265031 \tabularnewline
18 & -0.086506 & -0.6357 & 0.263832 \tabularnewline
19 & 0.052209 & 0.3837 & 0.351371 \tabularnewline
20 & -0.055669 & -0.4091 & 0.342048 \tabularnewline
21 & -0.165273 & -1.2145 & 0.11492 \tabularnewline
22 & -0.051737 & -0.3802 & 0.352647 \tabularnewline
23 & -0.094341 & -0.6933 & 0.245559 \tabularnewline
24 & -0.200844 & -1.4759 & 0.07289 \tabularnewline
25 & -0.111436 & -0.8189 & 0.208226 \tabularnewline
26 & -0.184834 & -1.3582 & 0.090016 \tabularnewline
27 & -0.187489 & -1.3778 & 0.086981 \tabularnewline
28 & -0.175931 & -1.2928 & 0.100788 \tabularnewline
29 & -0.138257 & -1.016 & 0.157086 \tabularnewline
30 & -0.108859 & -0.7999 & 0.213623 \tabularnewline
31 & -0.031909 & -0.2345 & 0.407747 \tabularnewline
32 & -0.147157 & -1.0814 & 0.142167 \tabularnewline
33 & 0.001647 & 0.0121 & 0.495193 \tabularnewline
34 & -0.035048 & -0.2576 & 0.398866 \tabularnewline
35 & -0.000533 & -0.0039 & 0.498445 \tabularnewline
36 & -0.053694 & -0.3946 & 0.347359 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69608&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.151875[/C][C]1.1161[/C][C]0.134671[/C][/ROW]
[ROW][C]2[/C][C]0.277927[/C][C]2.0423[/C][C]0.023007[/C][/ROW]
[ROW][C]3[/C][C]0.312443[/C][C]2.296[/C][C]0.012793[/C][/ROW]
[ROW][C]4[/C][C]0.239395[/C][C]1.7592[/C][C]0.042105[/C][/ROW]
[ROW][C]5[/C][C]0.082123[/C][C]0.6035[/C][C]0.274359[/C][/ROW]
[ROW][C]6[/C][C]0.166355[/C][C]1.2225[/C][C]0.113423[/C][/ROW]
[ROW][C]7[/C][C]0.034935[/C][C]0.2567[/C][C]0.399187[/C][/ROW]
[ROW][C]8[/C][C]0.145896[/C][C]1.0721[/C][C]0.144218[/C][/ROW]
[ROW][C]9[/C][C]0.035386[/C][C]0.26[/C][C]0.397913[/C][/ROW]
[ROW][C]10[/C][C]-0.049271[/C][C]-0.3621[/C][C]0.359357[/C][/ROW]
[ROW][C]11[/C][C]0.309512[/C][C]2.2744[/C][C]0.013468[/C][/ROW]
[ROW][C]12[/C][C]-0.057271[/C][C]-0.4209[/C][C]0.337765[/C][/ROW]
[ROW][C]13[/C][C]0.006899[/C][C]0.0507[/C][C]0.479878[/C][/ROW]
[ROW][C]14[/C][C]0.153393[/C][C]1.1272[/C][C]0.132321[/C][/ROW]
[ROW][C]15[/C][C]0.068414[/C][C]0.5027[/C][C]0.308597[/C][/ROW]
[ROW][C]16[/C][C]0.016072[/C][C]0.1181[/C][C]0.453212[/C][/ROW]
[ROW][C]17[/C][C]0.086003[/C][C]0.632[/C][C]0.265031[/C][/ROW]
[ROW][C]18[/C][C]-0.086506[/C][C]-0.6357[/C][C]0.263832[/C][/ROW]
[ROW][C]19[/C][C]0.052209[/C][C]0.3837[/C][C]0.351371[/C][/ROW]
[ROW][C]20[/C][C]-0.055669[/C][C]-0.4091[/C][C]0.342048[/C][/ROW]
[ROW][C]21[/C][C]-0.165273[/C][C]-1.2145[/C][C]0.11492[/C][/ROW]
[ROW][C]22[/C][C]-0.051737[/C][C]-0.3802[/C][C]0.352647[/C][/ROW]
[ROW][C]23[/C][C]-0.094341[/C][C]-0.6933[/C][C]0.245559[/C][/ROW]
[ROW][C]24[/C][C]-0.200844[/C][C]-1.4759[/C][C]0.07289[/C][/ROW]
[ROW][C]25[/C][C]-0.111436[/C][C]-0.8189[/C][C]0.208226[/C][/ROW]
[ROW][C]26[/C][C]-0.184834[/C][C]-1.3582[/C][C]0.090016[/C][/ROW]
[ROW][C]27[/C][C]-0.187489[/C][C]-1.3778[/C][C]0.086981[/C][/ROW]
[ROW][C]28[/C][C]-0.175931[/C][C]-1.2928[/C][C]0.100788[/C][/ROW]
[ROW][C]29[/C][C]-0.138257[/C][C]-1.016[/C][C]0.157086[/C][/ROW]
[ROW][C]30[/C][C]-0.108859[/C][C]-0.7999[/C][C]0.213623[/C][/ROW]
[ROW][C]31[/C][C]-0.031909[/C][C]-0.2345[/C][C]0.407747[/C][/ROW]
[ROW][C]32[/C][C]-0.147157[/C][C]-1.0814[/C][C]0.142167[/C][/ROW]
[ROW][C]33[/C][C]0.001647[/C][C]0.0121[/C][C]0.495193[/C][/ROW]
[ROW][C]34[/C][C]-0.035048[/C][C]-0.2576[/C][C]0.398866[/C][/ROW]
[ROW][C]35[/C][C]-0.000533[/C][C]-0.0039[/C][C]0.498445[/C][/ROW]
[ROW][C]36[/C][C]-0.053694[/C][C]-0.3946[/C][C]0.347359[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69608&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69608&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.1518751.11610.134671
20.2779272.04230.023007
30.3124432.2960.012793
40.2393951.75920.042105
50.0821230.60350.274359
60.1663551.22250.113423
70.0349350.25670.399187
80.1458961.07210.144218
90.0353860.260.397913
10-0.049271-0.36210.359357
110.3095122.27440.013468
12-0.057271-0.42090.337765
130.0068990.05070.479878
140.1533931.12720.132321
150.0684140.50270.308597
160.0160720.11810.453212
170.0860030.6320.265031
18-0.086506-0.63570.263832
190.0522090.38370.351371
20-0.055669-0.40910.342048
21-0.165273-1.21450.11492
22-0.051737-0.38020.352647
23-0.094341-0.69330.245559
24-0.200844-1.47590.07289
25-0.111436-0.81890.208226
26-0.184834-1.35820.090016
27-0.187489-1.37780.086981
28-0.175931-1.29280.100788
29-0.138257-1.0160.157086
30-0.108859-0.79990.213623
31-0.031909-0.23450.407747
32-0.147157-1.08140.142167
330.0016470.01210.495193
34-0.035048-0.25760.398866
35-0.000533-0.00390.498445
36-0.053694-0.39460.347359







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1518751.11610.134671
20.2608791.91710.030264
30.265391.95020.028175
40.1434711.05430.148222
5-0.090164-0.66260.255214
6-0.001173-0.00860.496577
7-0.088099-0.64740.26006
80.0991780.72880.234635
90.0029440.02160.49141
10-0.128028-0.94080.175497
110.3342592.45630.008642
12-0.131314-0.9650.169434
13-0.066246-0.48680.314183
140.0826150.60710.273167
15-0.004547-0.03340.486733
160.0611660.44950.327444
17-0.053158-0.39060.348805
18-0.138533-1.0180.156607
19-0.001872-0.01380.494538
20-0.052767-0.38780.349861
21-0.07902-0.58070.281937
22-0.145419-1.06860.145
230.0548190.40280.344331
24-0.038932-0.28610.387952
25-0.127853-0.93950.175823
26-0.077696-0.57090.285203
27-0.091272-0.67070.252632
28-0.071773-0.52740.300032
290.1231010.90460.184846
30-0.022481-0.16520.434702
310.1027360.7550.226779
320.0049030.0360.485696
330.0443340.32580.372921
34-0.025817-0.18970.425123
350.1077730.7920.215923
360.0080010.05880.476667

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.151875 & 1.1161 & 0.134671 \tabularnewline
2 & 0.260879 & 1.9171 & 0.030264 \tabularnewline
3 & 0.26539 & 1.9502 & 0.028175 \tabularnewline
4 & 0.143471 & 1.0543 & 0.148222 \tabularnewline
5 & -0.090164 & -0.6626 & 0.255214 \tabularnewline
6 & -0.001173 & -0.0086 & 0.496577 \tabularnewline
7 & -0.088099 & -0.6474 & 0.26006 \tabularnewline
8 & 0.099178 & 0.7288 & 0.234635 \tabularnewline
9 & 0.002944 & 0.0216 & 0.49141 \tabularnewline
10 & -0.128028 & -0.9408 & 0.175497 \tabularnewline
11 & 0.334259 & 2.4563 & 0.008642 \tabularnewline
12 & -0.131314 & -0.965 & 0.169434 \tabularnewline
13 & -0.066246 & -0.4868 & 0.314183 \tabularnewline
14 & 0.082615 & 0.6071 & 0.273167 \tabularnewline
15 & -0.004547 & -0.0334 & 0.486733 \tabularnewline
16 & 0.061166 & 0.4495 & 0.327444 \tabularnewline
17 & -0.053158 & -0.3906 & 0.348805 \tabularnewline
18 & -0.138533 & -1.018 & 0.156607 \tabularnewline
19 & -0.001872 & -0.0138 & 0.494538 \tabularnewline
20 & -0.052767 & -0.3878 & 0.349861 \tabularnewline
21 & -0.07902 & -0.5807 & 0.281937 \tabularnewline
22 & -0.145419 & -1.0686 & 0.145 \tabularnewline
23 & 0.054819 & 0.4028 & 0.344331 \tabularnewline
24 & -0.038932 & -0.2861 & 0.387952 \tabularnewline
25 & -0.127853 & -0.9395 & 0.175823 \tabularnewline
26 & -0.077696 & -0.5709 & 0.285203 \tabularnewline
27 & -0.091272 & -0.6707 & 0.252632 \tabularnewline
28 & -0.071773 & -0.5274 & 0.300032 \tabularnewline
29 & 0.123101 & 0.9046 & 0.184846 \tabularnewline
30 & -0.022481 & -0.1652 & 0.434702 \tabularnewline
31 & 0.102736 & 0.755 & 0.226779 \tabularnewline
32 & 0.004903 & 0.036 & 0.485696 \tabularnewline
33 & 0.044334 & 0.3258 & 0.372921 \tabularnewline
34 & -0.025817 & -0.1897 & 0.425123 \tabularnewline
35 & 0.107773 & 0.792 & 0.215923 \tabularnewline
36 & 0.008001 & 0.0588 & 0.476667 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69608&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.151875[/C][C]1.1161[/C][C]0.134671[/C][/ROW]
[ROW][C]2[/C][C]0.260879[/C][C]1.9171[/C][C]0.030264[/C][/ROW]
[ROW][C]3[/C][C]0.26539[/C][C]1.9502[/C][C]0.028175[/C][/ROW]
[ROW][C]4[/C][C]0.143471[/C][C]1.0543[/C][C]0.148222[/C][/ROW]
[ROW][C]5[/C][C]-0.090164[/C][C]-0.6626[/C][C]0.255214[/C][/ROW]
[ROW][C]6[/C][C]-0.001173[/C][C]-0.0086[/C][C]0.496577[/C][/ROW]
[ROW][C]7[/C][C]-0.088099[/C][C]-0.6474[/C][C]0.26006[/C][/ROW]
[ROW][C]8[/C][C]0.099178[/C][C]0.7288[/C][C]0.234635[/C][/ROW]
[ROW][C]9[/C][C]0.002944[/C][C]0.0216[/C][C]0.49141[/C][/ROW]
[ROW][C]10[/C][C]-0.128028[/C][C]-0.9408[/C][C]0.175497[/C][/ROW]
[ROW][C]11[/C][C]0.334259[/C][C]2.4563[/C][C]0.008642[/C][/ROW]
[ROW][C]12[/C][C]-0.131314[/C][C]-0.965[/C][C]0.169434[/C][/ROW]
[ROW][C]13[/C][C]-0.066246[/C][C]-0.4868[/C][C]0.314183[/C][/ROW]
[ROW][C]14[/C][C]0.082615[/C][C]0.6071[/C][C]0.273167[/C][/ROW]
[ROW][C]15[/C][C]-0.004547[/C][C]-0.0334[/C][C]0.486733[/C][/ROW]
[ROW][C]16[/C][C]0.061166[/C][C]0.4495[/C][C]0.327444[/C][/ROW]
[ROW][C]17[/C][C]-0.053158[/C][C]-0.3906[/C][C]0.348805[/C][/ROW]
[ROW][C]18[/C][C]-0.138533[/C][C]-1.018[/C][C]0.156607[/C][/ROW]
[ROW][C]19[/C][C]-0.001872[/C][C]-0.0138[/C][C]0.494538[/C][/ROW]
[ROW][C]20[/C][C]-0.052767[/C][C]-0.3878[/C][C]0.349861[/C][/ROW]
[ROW][C]21[/C][C]-0.07902[/C][C]-0.5807[/C][C]0.281937[/C][/ROW]
[ROW][C]22[/C][C]-0.145419[/C][C]-1.0686[/C][C]0.145[/C][/ROW]
[ROW][C]23[/C][C]0.054819[/C][C]0.4028[/C][C]0.344331[/C][/ROW]
[ROW][C]24[/C][C]-0.038932[/C][C]-0.2861[/C][C]0.387952[/C][/ROW]
[ROW][C]25[/C][C]-0.127853[/C][C]-0.9395[/C][C]0.175823[/C][/ROW]
[ROW][C]26[/C][C]-0.077696[/C][C]-0.5709[/C][C]0.285203[/C][/ROW]
[ROW][C]27[/C][C]-0.091272[/C][C]-0.6707[/C][C]0.252632[/C][/ROW]
[ROW][C]28[/C][C]-0.071773[/C][C]-0.5274[/C][C]0.300032[/C][/ROW]
[ROW][C]29[/C][C]0.123101[/C][C]0.9046[/C][C]0.184846[/C][/ROW]
[ROW][C]30[/C][C]-0.022481[/C][C]-0.1652[/C][C]0.434702[/C][/ROW]
[ROW][C]31[/C][C]0.102736[/C][C]0.755[/C][C]0.226779[/C][/ROW]
[ROW][C]32[/C][C]0.004903[/C][C]0.036[/C][C]0.485696[/C][/ROW]
[ROW][C]33[/C][C]0.044334[/C][C]0.3258[/C][C]0.372921[/C][/ROW]
[ROW][C]34[/C][C]-0.025817[/C][C]-0.1897[/C][C]0.425123[/C][/ROW]
[ROW][C]35[/C][C]0.107773[/C][C]0.792[/C][C]0.215923[/C][/ROW]
[ROW][C]36[/C][C]0.008001[/C][C]0.0588[/C][C]0.476667[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69608&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69608&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.1518751.11610.134671
20.2608791.91710.030264
30.265391.95020.028175
40.1434711.05430.148222
5-0.090164-0.66260.255214
6-0.001173-0.00860.496577
7-0.088099-0.64740.26006
80.0991780.72880.234635
90.0029440.02160.49141
10-0.128028-0.94080.175497
110.3342592.45630.008642
12-0.131314-0.9650.169434
13-0.066246-0.48680.314183
140.0826150.60710.273167
15-0.004547-0.03340.486733
160.0611660.44950.327444
17-0.053158-0.39060.348805
18-0.138533-1.0180.156607
19-0.001872-0.01380.494538
20-0.052767-0.38780.349861
21-0.07902-0.58070.281937
22-0.145419-1.06860.145
230.0548190.40280.344331
24-0.038932-0.28610.387952
25-0.127853-0.93950.175823
26-0.077696-0.57090.285203
27-0.091272-0.67070.252632
28-0.071773-0.52740.300032
290.1231010.90460.184846
30-0.022481-0.16520.434702
310.1027360.7550.226779
320.0049030.0360.485696
330.0443340.32580.372921
34-0.025817-0.18970.425123
350.1077730.7920.215923
360.0080010.05880.476667



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