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 computationWed, 09 Dec 2009 06:56:17 -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/09/t126036707960po91dorpb0q87.htm/, Retrieved Mon, 29 Apr 2024 16:22:58 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64954, Retrieved Mon, 29 Apr 2024 16:22:58 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordssdws paper
Estimated Impact121
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [(partial) autocor...] [2009-12-09 13:20:29] [f7fc9270f813d017f9fa5b506fdc7682]
-   P     [(Partial) Autocorrelation Function] [correlatie d=1,D=0] [2009-12-09 13:56:17] [2d672adbf8ae6977476cb9852ecac1a3] [Current]
Feedback Forum

Post a new message
Dataseries X:
518585
509239
512238
519164
517009
509933
509127
500857
506971
569323
579714
577992
565464
547344
554788
562325
560854
555332
543599
536662
542722
593530
610763
612613
611324
594167
595454
590865
589379
584428
573100
567456
569028
620735
628884
628232
612117
595404
597141
593408
590072
579799
574205
572775
572942
619567
625809
619916
587625
565742
557274
560576
548854
531673
525919
511038
498662
555362
564591
541657
527070
509846
514258
516922
507561
492622
490243
469357
477580
528379
533590
517945
506174
501866
516141
528222
532638
536322
536535
523597
536214
586570
596594
580523
564478




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64954&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.2604822.38740.009607
2-0.229611-2.10440.019166
3-0.302246-2.77010.003448
4-0.233045-2.13590.0178
50.0805420.73820.231231
60.2154481.97460.025799
70.0822420.75380.22655
8-0.233003-2.13550.017816
9-0.289564-2.65390.004757
10-0.204628-1.87540.032103
110.2483512.27620.01269
120.7762557.11450
130.1761341.61430.055107
14-0.206424-1.89190.030975
15-0.277393-2.54230.006423
16-0.216839-1.98740.02507
170.0434120.39790.345864
180.1378121.26310.10503
190.054380.49840.309752
20-0.228703-2.09610.019541
21-0.25227-2.31210.01161
22-0.143031-1.31090.096732
230.2155451.97550.025747
240.6070375.56360
250.0989170.90660.18361
26-0.221099-2.02640.022948
27-0.27789-2.54690.006346
28-0.172302-1.57920.059027
290.0333360.30550.380358
300.1124721.03080.152792
310.0295450.27080.393611
32-0.222693-2.0410.022194
33-0.193969-1.77780.039532
34-0.082503-0.75620.225836
350.1729121.58480.058389
360.4753854.3571.9e-05

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.260482 & 2.3874 & 0.009607 \tabularnewline
2 & -0.229611 & -2.1044 & 0.019166 \tabularnewline
3 & -0.302246 & -2.7701 & 0.003448 \tabularnewline
4 & -0.233045 & -2.1359 & 0.0178 \tabularnewline
5 & 0.080542 & 0.7382 & 0.231231 \tabularnewline
6 & 0.215448 & 1.9746 & 0.025799 \tabularnewline
7 & 0.082242 & 0.7538 & 0.22655 \tabularnewline
8 & -0.233003 & -2.1355 & 0.017816 \tabularnewline
9 & -0.289564 & -2.6539 & 0.004757 \tabularnewline
10 & -0.204628 & -1.8754 & 0.032103 \tabularnewline
11 & 0.248351 & 2.2762 & 0.01269 \tabularnewline
12 & 0.776255 & 7.1145 & 0 \tabularnewline
13 & 0.176134 & 1.6143 & 0.055107 \tabularnewline
14 & -0.206424 & -1.8919 & 0.030975 \tabularnewline
15 & -0.277393 & -2.5423 & 0.006423 \tabularnewline
16 & -0.216839 & -1.9874 & 0.02507 \tabularnewline
17 & 0.043412 & 0.3979 & 0.345864 \tabularnewline
18 & 0.137812 & 1.2631 & 0.10503 \tabularnewline
19 & 0.05438 & 0.4984 & 0.309752 \tabularnewline
20 & -0.228703 & -2.0961 & 0.019541 \tabularnewline
21 & -0.25227 & -2.3121 & 0.01161 \tabularnewline
22 & -0.143031 & -1.3109 & 0.096732 \tabularnewline
23 & 0.215545 & 1.9755 & 0.025747 \tabularnewline
24 & 0.607037 & 5.5636 & 0 \tabularnewline
25 & 0.098917 & 0.9066 & 0.18361 \tabularnewline
26 & -0.221099 & -2.0264 & 0.022948 \tabularnewline
27 & -0.27789 & -2.5469 & 0.006346 \tabularnewline
28 & -0.172302 & -1.5792 & 0.059027 \tabularnewline
29 & 0.033336 & 0.3055 & 0.380358 \tabularnewline
30 & 0.112472 & 1.0308 & 0.152792 \tabularnewline
31 & 0.029545 & 0.2708 & 0.393611 \tabularnewline
32 & -0.222693 & -2.041 & 0.022194 \tabularnewline
33 & -0.193969 & -1.7778 & 0.039532 \tabularnewline
34 & -0.082503 & -0.7562 & 0.225836 \tabularnewline
35 & 0.172912 & 1.5848 & 0.058389 \tabularnewline
36 & 0.475385 & 4.357 & 1.9e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64954&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.260482[/C][C]2.3874[/C][C]0.009607[/C][/ROW]
[ROW][C]2[/C][C]-0.229611[/C][C]-2.1044[/C][C]0.019166[/C][/ROW]
[ROW][C]3[/C][C]-0.302246[/C][C]-2.7701[/C][C]0.003448[/C][/ROW]
[ROW][C]4[/C][C]-0.233045[/C][C]-2.1359[/C][C]0.0178[/C][/ROW]
[ROW][C]5[/C][C]0.080542[/C][C]0.7382[/C][C]0.231231[/C][/ROW]
[ROW][C]6[/C][C]0.215448[/C][C]1.9746[/C][C]0.025799[/C][/ROW]
[ROW][C]7[/C][C]0.082242[/C][C]0.7538[/C][C]0.22655[/C][/ROW]
[ROW][C]8[/C][C]-0.233003[/C][C]-2.1355[/C][C]0.017816[/C][/ROW]
[ROW][C]9[/C][C]-0.289564[/C][C]-2.6539[/C][C]0.004757[/C][/ROW]
[ROW][C]10[/C][C]-0.204628[/C][C]-1.8754[/C][C]0.032103[/C][/ROW]
[ROW][C]11[/C][C]0.248351[/C][C]2.2762[/C][C]0.01269[/C][/ROW]
[ROW][C]12[/C][C]0.776255[/C][C]7.1145[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.176134[/C][C]1.6143[/C][C]0.055107[/C][/ROW]
[ROW][C]14[/C][C]-0.206424[/C][C]-1.8919[/C][C]0.030975[/C][/ROW]
[ROW][C]15[/C][C]-0.277393[/C][C]-2.5423[/C][C]0.006423[/C][/ROW]
[ROW][C]16[/C][C]-0.216839[/C][C]-1.9874[/C][C]0.02507[/C][/ROW]
[ROW][C]17[/C][C]0.043412[/C][C]0.3979[/C][C]0.345864[/C][/ROW]
[ROW][C]18[/C][C]0.137812[/C][C]1.2631[/C][C]0.10503[/C][/ROW]
[ROW][C]19[/C][C]0.05438[/C][C]0.4984[/C][C]0.309752[/C][/ROW]
[ROW][C]20[/C][C]-0.228703[/C][C]-2.0961[/C][C]0.019541[/C][/ROW]
[ROW][C]21[/C][C]-0.25227[/C][C]-2.3121[/C][C]0.01161[/C][/ROW]
[ROW][C]22[/C][C]-0.143031[/C][C]-1.3109[/C][C]0.096732[/C][/ROW]
[ROW][C]23[/C][C]0.215545[/C][C]1.9755[/C][C]0.025747[/C][/ROW]
[ROW][C]24[/C][C]0.607037[/C][C]5.5636[/C][C]0[/C][/ROW]
[ROW][C]25[/C][C]0.098917[/C][C]0.9066[/C][C]0.18361[/C][/ROW]
[ROW][C]26[/C][C]-0.221099[/C][C]-2.0264[/C][C]0.022948[/C][/ROW]
[ROW][C]27[/C][C]-0.27789[/C][C]-2.5469[/C][C]0.006346[/C][/ROW]
[ROW][C]28[/C][C]-0.172302[/C][C]-1.5792[/C][C]0.059027[/C][/ROW]
[ROW][C]29[/C][C]0.033336[/C][C]0.3055[/C][C]0.380358[/C][/ROW]
[ROW][C]30[/C][C]0.112472[/C][C]1.0308[/C][C]0.152792[/C][/ROW]
[ROW][C]31[/C][C]0.029545[/C][C]0.2708[/C][C]0.393611[/C][/ROW]
[ROW][C]32[/C][C]-0.222693[/C][C]-2.041[/C][C]0.022194[/C][/ROW]
[ROW][C]33[/C][C]-0.193969[/C][C]-1.7778[/C][C]0.039532[/C][/ROW]
[ROW][C]34[/C][C]-0.082503[/C][C]-0.7562[/C][C]0.225836[/C][/ROW]
[ROW][C]35[/C][C]0.172912[/C][C]1.5848[/C][C]0.058389[/C][/ROW]
[ROW][C]36[/C][C]0.475385[/C][C]4.357[/C][C]1.9e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64954&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64954&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.2604822.38740.009607
2-0.229611-2.10440.019166
3-0.302246-2.77010.003448
4-0.233045-2.13590.0178
50.0805420.73820.231231
60.2154481.97460.025799
70.0822420.75380.22655
8-0.233003-2.13550.017816
9-0.289564-2.65390.004757
10-0.204628-1.87540.032103
110.2483512.27620.01269
120.7762557.11450
130.1761341.61430.055107
14-0.206424-1.89190.030975
15-0.277393-2.54230.006423
16-0.216839-1.98740.02507
170.0434120.39790.345864
180.1378121.26310.10503
190.054380.49840.309752
20-0.228703-2.09610.019541
21-0.25227-2.31210.01161
22-0.143031-1.31090.096732
230.2155451.97550.025747
240.6070375.56360
250.0989170.90660.18361
26-0.221099-2.02640.022948
27-0.27789-2.54690.006346
28-0.172302-1.57920.059027
290.0333360.30550.380358
300.1124721.03080.152792
310.0295450.27080.393611
32-0.222693-2.0410.022194
33-0.193969-1.77780.039532
34-0.082503-0.75620.225836
350.1729121.58480.058389
360.4753854.3571.9e-05







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2604822.38740.009607
2-0.319114-2.92470.002216
3-0.16749-1.53510.064262
4-0.198805-1.82210.036001
50.0923790.84670.199792
60.0296520.27180.393233
7-0.030695-0.28130.389575
8-0.253587-2.32420.011266
9-0.126996-1.16390.123873
10-0.236235-2.16510.016607
110.2365722.16820.016485
120.6492975.95090
13-0.185687-1.70190.046241
140.1061460.97280.166712
15-0.003311-0.03030.487931
16-0.017365-0.15920.436964
17-0.110289-1.01080.157503
18-0.168178-1.54140.063492
19-0.019513-0.17880.429246
20-0.089589-0.82110.206957
210.007970.07310.47097
220.0254790.23350.407963
23-0.069744-0.63920.26221
240.056230.51540.303827
25-0.097174-0.89060.187841
26-0.104797-0.96050.169784
27-0.1064-0.97520.166137
280.0027650.02530.48992
29-0.059302-0.54350.294109
300.0174250.15970.436749
31-0.060622-0.55560.289976
320.008460.07750.469191
330.0208740.19130.42437
34-0.032515-0.2980.383217
35-0.125644-1.15150.126387
36-0.036525-0.33480.36932

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.260482 & 2.3874 & 0.009607 \tabularnewline
2 & -0.319114 & -2.9247 & 0.002216 \tabularnewline
3 & -0.16749 & -1.5351 & 0.064262 \tabularnewline
4 & -0.198805 & -1.8221 & 0.036001 \tabularnewline
5 & 0.092379 & 0.8467 & 0.199792 \tabularnewline
6 & 0.029652 & 0.2718 & 0.393233 \tabularnewline
7 & -0.030695 & -0.2813 & 0.389575 \tabularnewline
8 & -0.253587 & -2.3242 & 0.011266 \tabularnewline
9 & -0.126996 & -1.1639 & 0.123873 \tabularnewline
10 & -0.236235 & -2.1651 & 0.016607 \tabularnewline
11 & 0.236572 & 2.1682 & 0.016485 \tabularnewline
12 & 0.649297 & 5.9509 & 0 \tabularnewline
13 & -0.185687 & -1.7019 & 0.046241 \tabularnewline
14 & 0.106146 & 0.9728 & 0.166712 \tabularnewline
15 & -0.003311 & -0.0303 & 0.487931 \tabularnewline
16 & -0.017365 & -0.1592 & 0.436964 \tabularnewline
17 & -0.110289 & -1.0108 & 0.157503 \tabularnewline
18 & -0.168178 & -1.5414 & 0.063492 \tabularnewline
19 & -0.019513 & -0.1788 & 0.429246 \tabularnewline
20 & -0.089589 & -0.8211 & 0.206957 \tabularnewline
21 & 0.00797 & 0.0731 & 0.47097 \tabularnewline
22 & 0.025479 & 0.2335 & 0.407963 \tabularnewline
23 & -0.069744 & -0.6392 & 0.26221 \tabularnewline
24 & 0.05623 & 0.5154 & 0.303827 \tabularnewline
25 & -0.097174 & -0.8906 & 0.187841 \tabularnewline
26 & -0.104797 & -0.9605 & 0.169784 \tabularnewline
27 & -0.1064 & -0.9752 & 0.166137 \tabularnewline
28 & 0.002765 & 0.0253 & 0.48992 \tabularnewline
29 & -0.059302 & -0.5435 & 0.294109 \tabularnewline
30 & 0.017425 & 0.1597 & 0.436749 \tabularnewline
31 & -0.060622 & -0.5556 & 0.289976 \tabularnewline
32 & 0.00846 & 0.0775 & 0.469191 \tabularnewline
33 & 0.020874 & 0.1913 & 0.42437 \tabularnewline
34 & -0.032515 & -0.298 & 0.383217 \tabularnewline
35 & -0.125644 & -1.1515 & 0.126387 \tabularnewline
36 & -0.036525 & -0.3348 & 0.36932 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64954&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.260482[/C][C]2.3874[/C][C]0.009607[/C][/ROW]
[ROW][C]2[/C][C]-0.319114[/C][C]-2.9247[/C][C]0.002216[/C][/ROW]
[ROW][C]3[/C][C]-0.16749[/C][C]-1.5351[/C][C]0.064262[/C][/ROW]
[ROW][C]4[/C][C]-0.198805[/C][C]-1.8221[/C][C]0.036001[/C][/ROW]
[ROW][C]5[/C][C]0.092379[/C][C]0.8467[/C][C]0.199792[/C][/ROW]
[ROW][C]6[/C][C]0.029652[/C][C]0.2718[/C][C]0.393233[/C][/ROW]
[ROW][C]7[/C][C]-0.030695[/C][C]-0.2813[/C][C]0.389575[/C][/ROW]
[ROW][C]8[/C][C]-0.253587[/C][C]-2.3242[/C][C]0.011266[/C][/ROW]
[ROW][C]9[/C][C]-0.126996[/C][C]-1.1639[/C][C]0.123873[/C][/ROW]
[ROW][C]10[/C][C]-0.236235[/C][C]-2.1651[/C][C]0.016607[/C][/ROW]
[ROW][C]11[/C][C]0.236572[/C][C]2.1682[/C][C]0.016485[/C][/ROW]
[ROW][C]12[/C][C]0.649297[/C][C]5.9509[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]-0.185687[/C][C]-1.7019[/C][C]0.046241[/C][/ROW]
[ROW][C]14[/C][C]0.106146[/C][C]0.9728[/C][C]0.166712[/C][/ROW]
[ROW][C]15[/C][C]-0.003311[/C][C]-0.0303[/C][C]0.487931[/C][/ROW]
[ROW][C]16[/C][C]-0.017365[/C][C]-0.1592[/C][C]0.436964[/C][/ROW]
[ROW][C]17[/C][C]-0.110289[/C][C]-1.0108[/C][C]0.157503[/C][/ROW]
[ROW][C]18[/C][C]-0.168178[/C][C]-1.5414[/C][C]0.063492[/C][/ROW]
[ROW][C]19[/C][C]-0.019513[/C][C]-0.1788[/C][C]0.429246[/C][/ROW]
[ROW][C]20[/C][C]-0.089589[/C][C]-0.8211[/C][C]0.206957[/C][/ROW]
[ROW][C]21[/C][C]0.00797[/C][C]0.0731[/C][C]0.47097[/C][/ROW]
[ROW][C]22[/C][C]0.025479[/C][C]0.2335[/C][C]0.407963[/C][/ROW]
[ROW][C]23[/C][C]-0.069744[/C][C]-0.6392[/C][C]0.26221[/C][/ROW]
[ROW][C]24[/C][C]0.05623[/C][C]0.5154[/C][C]0.303827[/C][/ROW]
[ROW][C]25[/C][C]-0.097174[/C][C]-0.8906[/C][C]0.187841[/C][/ROW]
[ROW][C]26[/C][C]-0.104797[/C][C]-0.9605[/C][C]0.169784[/C][/ROW]
[ROW][C]27[/C][C]-0.1064[/C][C]-0.9752[/C][C]0.166137[/C][/ROW]
[ROW][C]28[/C][C]0.002765[/C][C]0.0253[/C][C]0.48992[/C][/ROW]
[ROW][C]29[/C][C]-0.059302[/C][C]-0.5435[/C][C]0.294109[/C][/ROW]
[ROW][C]30[/C][C]0.017425[/C][C]0.1597[/C][C]0.436749[/C][/ROW]
[ROW][C]31[/C][C]-0.060622[/C][C]-0.5556[/C][C]0.289976[/C][/ROW]
[ROW][C]32[/C][C]0.00846[/C][C]0.0775[/C][C]0.469191[/C][/ROW]
[ROW][C]33[/C][C]0.020874[/C][C]0.1913[/C][C]0.42437[/C][/ROW]
[ROW][C]34[/C][C]-0.032515[/C][C]-0.298[/C][C]0.383217[/C][/ROW]
[ROW][C]35[/C][C]-0.125644[/C][C]-1.1515[/C][C]0.126387[/C][/ROW]
[ROW][C]36[/C][C]-0.036525[/C][C]-0.3348[/C][C]0.36932[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64954&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64954&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.2604822.38740.009607
2-0.319114-2.92470.002216
3-0.16749-1.53510.064262
4-0.198805-1.82210.036001
50.0923790.84670.199792
60.0296520.27180.393233
7-0.030695-0.28130.389575
8-0.253587-2.32420.011266
9-0.126996-1.16390.123873
10-0.236235-2.16510.016607
110.2365722.16820.016485
120.6492975.95090
13-0.185687-1.70190.046241
140.1061460.97280.166712
15-0.003311-0.03030.487931
16-0.017365-0.15920.436964
17-0.110289-1.01080.157503
18-0.168178-1.54140.063492
19-0.019513-0.17880.429246
20-0.089589-0.82110.206957
210.007970.07310.47097
220.0254790.23350.407963
23-0.069744-0.63920.26221
240.056230.51540.303827
25-0.097174-0.89060.187841
26-0.104797-0.96050.169784
27-0.1064-0.97520.166137
280.0027650.02530.48992
29-0.059302-0.54350.294109
300.0174250.15970.436749
31-0.060622-0.55560.289976
320.008460.07750.469191
330.0208740.19130.42437
34-0.032515-0.2980.383217
35-0.125644-1.15150.126387
36-0.036525-0.33480.36932



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