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:45:02 -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/t1259937938hurcykviw3pw0y2.htm/, Retrieved Sun, 28 Apr 2024 14:06:16 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63653, Retrieved Sun, 28 Apr 2024 14:06:16 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact103
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:45:02] [6974478841a4d28b8cb590971bfdefb0] [Current]
Feedback Forum

Post a new message
Dataseries X:
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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63653&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.240481.84720.03487
2-0.253569-1.94770.028107
3-0.271351-2.08430.020736
4-0.173781-1.33480.093529
50.0845530.64950.259279
60.2248781.72730.044671
70.0879850.67580.250895
8-0.221612-1.70220.046988
9-0.275659-2.11740.019226
10-0.219224-1.68390.048743
110.242971.86630.033487
120.732575.6270
130.1246950.95780.171035
14-0.249413-1.91580.030121
15-0.244891-1.8810.032452
16-0.166905-1.2820.102425
170.0390170.29970.38273
180.1485681.14120.129205
190.0399080.30650.380136
20-0.232469-1.78560.03965
21-0.249982-1.92020.029838
22-0.167542-1.28690.101575
230.1934981.48630.071264
240.5117043.93050.000113
250.0500930.38480.350896
26-0.223415-1.71610.045697
27-0.153089-1.17590.122179
28-0.105792-0.81260.209856
290.0335140.25740.398872
300.0980420.75310.227199
310.0267010.20510.419102
32-0.193302-1.48480.071463
33-0.165037-1.26770.104947
34-0.064354-0.49430.311461
350.1415751.08750.140629
360.2941812.25960.013775

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.24048 & 1.8472 & 0.03487 \tabularnewline
2 & -0.253569 & -1.9477 & 0.028107 \tabularnewline
3 & -0.271351 & -2.0843 & 0.020736 \tabularnewline
4 & -0.173781 & -1.3348 & 0.093529 \tabularnewline
5 & 0.084553 & 0.6495 & 0.259279 \tabularnewline
6 & 0.224878 & 1.7273 & 0.044671 \tabularnewline
7 & 0.087985 & 0.6758 & 0.250895 \tabularnewline
8 & -0.221612 & -1.7022 & 0.046988 \tabularnewline
9 & -0.275659 & -2.1174 & 0.019226 \tabularnewline
10 & -0.219224 & -1.6839 & 0.048743 \tabularnewline
11 & 0.24297 & 1.8663 & 0.033487 \tabularnewline
12 & 0.73257 & 5.627 & 0 \tabularnewline
13 & 0.124695 & 0.9578 & 0.171035 \tabularnewline
14 & -0.249413 & -1.9158 & 0.030121 \tabularnewline
15 & -0.244891 & -1.881 & 0.032452 \tabularnewline
16 & -0.166905 & -1.282 & 0.102425 \tabularnewline
17 & 0.039017 & 0.2997 & 0.38273 \tabularnewline
18 & 0.148568 & 1.1412 & 0.129205 \tabularnewline
19 & 0.039908 & 0.3065 & 0.380136 \tabularnewline
20 & -0.232469 & -1.7856 & 0.03965 \tabularnewline
21 & -0.249982 & -1.9202 & 0.029838 \tabularnewline
22 & -0.167542 & -1.2869 & 0.101575 \tabularnewline
23 & 0.193498 & 1.4863 & 0.071264 \tabularnewline
24 & 0.511704 & 3.9305 & 0.000113 \tabularnewline
25 & 0.050093 & 0.3848 & 0.350896 \tabularnewline
26 & -0.223415 & -1.7161 & 0.045697 \tabularnewline
27 & -0.153089 & -1.1759 & 0.122179 \tabularnewline
28 & -0.105792 & -0.8126 & 0.209856 \tabularnewline
29 & 0.033514 & 0.2574 & 0.398872 \tabularnewline
30 & 0.098042 & 0.7531 & 0.227199 \tabularnewline
31 & 0.026701 & 0.2051 & 0.419102 \tabularnewline
32 & -0.193302 & -1.4848 & 0.071463 \tabularnewline
33 & -0.165037 & -1.2677 & 0.104947 \tabularnewline
34 & -0.064354 & -0.4943 & 0.311461 \tabularnewline
35 & 0.141575 & 1.0875 & 0.140629 \tabularnewline
36 & 0.294181 & 2.2596 & 0.013775 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63653&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.24048[/C][C]1.8472[/C][C]0.03487[/C][/ROW]
[ROW][C]2[/C][C]-0.253569[/C][C]-1.9477[/C][C]0.028107[/C][/ROW]
[ROW][C]3[/C][C]-0.271351[/C][C]-2.0843[/C][C]0.020736[/C][/ROW]
[ROW][C]4[/C][C]-0.173781[/C][C]-1.3348[/C][C]0.093529[/C][/ROW]
[ROW][C]5[/C][C]0.084553[/C][C]0.6495[/C][C]0.259279[/C][/ROW]
[ROW][C]6[/C][C]0.224878[/C][C]1.7273[/C][C]0.044671[/C][/ROW]
[ROW][C]7[/C][C]0.087985[/C][C]0.6758[/C][C]0.250895[/C][/ROW]
[ROW][C]8[/C][C]-0.221612[/C][C]-1.7022[/C][C]0.046988[/C][/ROW]
[ROW][C]9[/C][C]-0.275659[/C][C]-2.1174[/C][C]0.019226[/C][/ROW]
[ROW][C]10[/C][C]-0.219224[/C][C]-1.6839[/C][C]0.048743[/C][/ROW]
[ROW][C]11[/C][C]0.24297[/C][C]1.8663[/C][C]0.033487[/C][/ROW]
[ROW][C]12[/C][C]0.73257[/C][C]5.627[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.124695[/C][C]0.9578[/C][C]0.171035[/C][/ROW]
[ROW][C]14[/C][C]-0.249413[/C][C]-1.9158[/C][C]0.030121[/C][/ROW]
[ROW][C]15[/C][C]-0.244891[/C][C]-1.881[/C][C]0.032452[/C][/ROW]
[ROW][C]16[/C][C]-0.166905[/C][C]-1.282[/C][C]0.102425[/C][/ROW]
[ROW][C]17[/C][C]0.039017[/C][C]0.2997[/C][C]0.38273[/C][/ROW]
[ROW][C]18[/C][C]0.148568[/C][C]1.1412[/C][C]0.129205[/C][/ROW]
[ROW][C]19[/C][C]0.039908[/C][C]0.3065[/C][C]0.380136[/C][/ROW]
[ROW][C]20[/C][C]-0.232469[/C][C]-1.7856[/C][C]0.03965[/C][/ROW]
[ROW][C]21[/C][C]-0.249982[/C][C]-1.9202[/C][C]0.029838[/C][/ROW]
[ROW][C]22[/C][C]-0.167542[/C][C]-1.2869[/C][C]0.101575[/C][/ROW]
[ROW][C]23[/C][C]0.193498[/C][C]1.4863[/C][C]0.071264[/C][/ROW]
[ROW][C]24[/C][C]0.511704[/C][C]3.9305[/C][C]0.000113[/C][/ROW]
[ROW][C]25[/C][C]0.050093[/C][C]0.3848[/C][C]0.350896[/C][/ROW]
[ROW][C]26[/C][C]-0.223415[/C][C]-1.7161[/C][C]0.045697[/C][/ROW]
[ROW][C]27[/C][C]-0.153089[/C][C]-1.1759[/C][C]0.122179[/C][/ROW]
[ROW][C]28[/C][C]-0.105792[/C][C]-0.8126[/C][C]0.209856[/C][/ROW]
[ROW][C]29[/C][C]0.033514[/C][C]0.2574[/C][C]0.398872[/C][/ROW]
[ROW][C]30[/C][C]0.098042[/C][C]0.7531[/C][C]0.227199[/C][/ROW]
[ROW][C]31[/C][C]0.026701[/C][C]0.2051[/C][C]0.419102[/C][/ROW]
[ROW][C]32[/C][C]-0.193302[/C][C]-1.4848[/C][C]0.071463[/C][/ROW]
[ROW][C]33[/C][C]-0.165037[/C][C]-1.2677[/C][C]0.104947[/C][/ROW]
[ROW][C]34[/C][C]-0.064354[/C][C]-0.4943[/C][C]0.311461[/C][/ROW]
[ROW][C]35[/C][C]0.141575[/C][C]1.0875[/C][C]0.140629[/C][/ROW]
[ROW][C]36[/C][C]0.294181[/C][C]2.2596[/C][C]0.013775[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63653&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63653&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.240481.84720.03487
2-0.253569-1.94770.028107
3-0.271351-2.08430.020736
4-0.173781-1.33480.093529
50.0845530.64950.259279
60.2248781.72730.044671
70.0879850.67580.250895
8-0.221612-1.70220.046988
9-0.275659-2.11740.019226
10-0.219224-1.68390.048743
110.242971.86630.033487
120.732575.6270
130.1246950.95780.171035
14-0.249413-1.91580.030121
15-0.244891-1.8810.032452
16-0.166905-1.2820.102425
170.0390170.29970.38273
180.1485681.14120.129205
190.0399080.30650.380136
20-0.232469-1.78560.03965
21-0.249982-1.92020.029838
22-0.167542-1.28690.101575
230.1934981.48630.071264
240.5117043.93050.000113
250.0500930.38480.350896
26-0.223415-1.71610.045697
27-0.153089-1.17590.122179
28-0.105792-0.81260.209856
290.0335140.25740.398872
300.0980420.75310.227199
310.0267010.20510.419102
32-0.193302-1.48480.071463
33-0.165037-1.26770.104947
34-0.064354-0.49430.311461
350.1415751.08750.140629
360.2941812.25960.013775







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.240481.84720.03487
2-0.330514-2.53870.006892
3-0.131948-1.01350.157478
4-0.169972-1.30560.098382
50.0705310.54180.295013
60.0798360.61320.271041
7-0.005163-0.03970.484249
8-0.204601-1.57160.060699
9-0.121931-0.93660.176399
10-0.24529-1.88410.03224
110.2538041.94950.027996
120.5976184.59041.2e-05
13-0.191436-1.47040.073377
140.0591710.45450.325568
15-0.019912-0.1530.43948
16-0.103579-0.79560.214725
17-0.087362-0.6710.252408
18-0.172965-1.32860.094553
19-0.05221-0.4010.344922
20-0.035598-0.27340.392737
21-0.02674-0.20540.418986
22-0.011909-0.09150.463713
23-0.107881-0.82870.205321
24-0.042903-0.32950.371455
25-0.045142-0.34670.365009
26-0.072928-0.56020.288741
270.1052060.80810.211138
28-0.020181-0.1550.438669
290.028820.22140.412783
30-0.034198-0.26270.396855
310.0026620.02040.491879
32-0.008703-0.06690.473462
330.0231260.17760.429809
340.0386590.29690.383777
35-0.08653-0.66460.254433
36-0.161232-1.23840.110227

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.24048 & 1.8472 & 0.03487 \tabularnewline
2 & -0.330514 & -2.5387 & 0.006892 \tabularnewline
3 & -0.131948 & -1.0135 & 0.157478 \tabularnewline
4 & -0.169972 & -1.3056 & 0.098382 \tabularnewline
5 & 0.070531 & 0.5418 & 0.295013 \tabularnewline
6 & 0.079836 & 0.6132 & 0.271041 \tabularnewline
7 & -0.005163 & -0.0397 & 0.484249 \tabularnewline
8 & -0.204601 & -1.5716 & 0.060699 \tabularnewline
9 & -0.121931 & -0.9366 & 0.176399 \tabularnewline
10 & -0.24529 & -1.8841 & 0.03224 \tabularnewline
11 & 0.253804 & 1.9495 & 0.027996 \tabularnewline
12 & 0.597618 & 4.5904 & 1.2e-05 \tabularnewline
13 & -0.191436 & -1.4704 & 0.073377 \tabularnewline
14 & 0.059171 & 0.4545 & 0.325568 \tabularnewline
15 & -0.019912 & -0.153 & 0.43948 \tabularnewline
16 & -0.103579 & -0.7956 & 0.214725 \tabularnewline
17 & -0.087362 & -0.671 & 0.252408 \tabularnewline
18 & -0.172965 & -1.3286 & 0.094553 \tabularnewline
19 & -0.05221 & -0.401 & 0.344922 \tabularnewline
20 & -0.035598 & -0.2734 & 0.392737 \tabularnewline
21 & -0.02674 & -0.2054 & 0.418986 \tabularnewline
22 & -0.011909 & -0.0915 & 0.463713 \tabularnewline
23 & -0.107881 & -0.8287 & 0.205321 \tabularnewline
24 & -0.042903 & -0.3295 & 0.371455 \tabularnewline
25 & -0.045142 & -0.3467 & 0.365009 \tabularnewline
26 & -0.072928 & -0.5602 & 0.288741 \tabularnewline
27 & 0.105206 & 0.8081 & 0.211138 \tabularnewline
28 & -0.020181 & -0.155 & 0.438669 \tabularnewline
29 & 0.02882 & 0.2214 & 0.412783 \tabularnewline
30 & -0.034198 & -0.2627 & 0.396855 \tabularnewline
31 & 0.002662 & 0.0204 & 0.491879 \tabularnewline
32 & -0.008703 & -0.0669 & 0.473462 \tabularnewline
33 & 0.023126 & 0.1776 & 0.429809 \tabularnewline
34 & 0.038659 & 0.2969 & 0.383777 \tabularnewline
35 & -0.08653 & -0.6646 & 0.254433 \tabularnewline
36 & -0.161232 & -1.2384 & 0.110227 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63653&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.24048[/C][C]1.8472[/C][C]0.03487[/C][/ROW]
[ROW][C]2[/C][C]-0.330514[/C][C]-2.5387[/C][C]0.006892[/C][/ROW]
[ROW][C]3[/C][C]-0.131948[/C][C]-1.0135[/C][C]0.157478[/C][/ROW]
[ROW][C]4[/C][C]-0.169972[/C][C]-1.3056[/C][C]0.098382[/C][/ROW]
[ROW][C]5[/C][C]0.070531[/C][C]0.5418[/C][C]0.295013[/C][/ROW]
[ROW][C]6[/C][C]0.079836[/C][C]0.6132[/C][C]0.271041[/C][/ROW]
[ROW][C]7[/C][C]-0.005163[/C][C]-0.0397[/C][C]0.484249[/C][/ROW]
[ROW][C]8[/C][C]-0.204601[/C][C]-1.5716[/C][C]0.060699[/C][/ROW]
[ROW][C]9[/C][C]-0.121931[/C][C]-0.9366[/C][C]0.176399[/C][/ROW]
[ROW][C]10[/C][C]-0.24529[/C][C]-1.8841[/C][C]0.03224[/C][/ROW]
[ROW][C]11[/C][C]0.253804[/C][C]1.9495[/C][C]0.027996[/C][/ROW]
[ROW][C]12[/C][C]0.597618[/C][C]4.5904[/C][C]1.2e-05[/C][/ROW]
[ROW][C]13[/C][C]-0.191436[/C][C]-1.4704[/C][C]0.073377[/C][/ROW]
[ROW][C]14[/C][C]0.059171[/C][C]0.4545[/C][C]0.325568[/C][/ROW]
[ROW][C]15[/C][C]-0.019912[/C][C]-0.153[/C][C]0.43948[/C][/ROW]
[ROW][C]16[/C][C]-0.103579[/C][C]-0.7956[/C][C]0.214725[/C][/ROW]
[ROW][C]17[/C][C]-0.087362[/C][C]-0.671[/C][C]0.252408[/C][/ROW]
[ROW][C]18[/C][C]-0.172965[/C][C]-1.3286[/C][C]0.094553[/C][/ROW]
[ROW][C]19[/C][C]-0.05221[/C][C]-0.401[/C][C]0.344922[/C][/ROW]
[ROW][C]20[/C][C]-0.035598[/C][C]-0.2734[/C][C]0.392737[/C][/ROW]
[ROW][C]21[/C][C]-0.02674[/C][C]-0.2054[/C][C]0.418986[/C][/ROW]
[ROW][C]22[/C][C]-0.011909[/C][C]-0.0915[/C][C]0.463713[/C][/ROW]
[ROW][C]23[/C][C]-0.107881[/C][C]-0.8287[/C][C]0.205321[/C][/ROW]
[ROW][C]24[/C][C]-0.042903[/C][C]-0.3295[/C][C]0.371455[/C][/ROW]
[ROW][C]25[/C][C]-0.045142[/C][C]-0.3467[/C][C]0.365009[/C][/ROW]
[ROW][C]26[/C][C]-0.072928[/C][C]-0.5602[/C][C]0.288741[/C][/ROW]
[ROW][C]27[/C][C]0.105206[/C][C]0.8081[/C][C]0.211138[/C][/ROW]
[ROW][C]28[/C][C]-0.020181[/C][C]-0.155[/C][C]0.438669[/C][/ROW]
[ROW][C]29[/C][C]0.02882[/C][C]0.2214[/C][C]0.412783[/C][/ROW]
[ROW][C]30[/C][C]-0.034198[/C][C]-0.2627[/C][C]0.396855[/C][/ROW]
[ROW][C]31[/C][C]0.002662[/C][C]0.0204[/C][C]0.491879[/C][/ROW]
[ROW][C]32[/C][C]-0.008703[/C][C]-0.0669[/C][C]0.473462[/C][/ROW]
[ROW][C]33[/C][C]0.023126[/C][C]0.1776[/C][C]0.429809[/C][/ROW]
[ROW][C]34[/C][C]0.038659[/C][C]0.2969[/C][C]0.383777[/C][/ROW]
[ROW][C]35[/C][C]-0.08653[/C][C]-0.6646[/C][C]0.254433[/C][/ROW]
[ROW][C]36[/C][C]-0.161232[/C][C]-1.2384[/C][C]0.110227[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63653&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63653&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.240481.84720.03487
2-0.330514-2.53870.006892
3-0.131948-1.01350.157478
4-0.169972-1.30560.098382
50.0705310.54180.295013
60.0798360.61320.271041
7-0.005163-0.03970.484249
8-0.204601-1.57160.060699
9-0.121931-0.93660.176399
10-0.24529-1.88410.03224
110.2538041.94950.027996
120.5976184.59041.2e-05
13-0.191436-1.47040.073377
140.0591710.45450.325568
15-0.019912-0.1530.43948
16-0.103579-0.79560.214725
17-0.087362-0.6710.252408
18-0.172965-1.32860.094553
19-0.05221-0.4010.344922
20-0.035598-0.27340.392737
21-0.02674-0.20540.418986
22-0.011909-0.09150.463713
23-0.107881-0.82870.205321
24-0.042903-0.32950.371455
25-0.045142-0.34670.365009
26-0.072928-0.56020.288741
270.1052060.80810.211138
28-0.020181-0.1550.438669
290.028820.22140.412783
30-0.034198-0.26270.396855
310.0026620.02040.491879
32-0.008703-0.06690.473462
330.0231260.17760.429809
340.0386590.29690.383777
35-0.08653-0.66460.254433
36-0.161232-1.23840.110227



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