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 07:00:29 -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/t12603673096wlthx202mr8ea0.htm/, Retrieved Mon, 29 Apr 2024 16:33:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64956, Retrieved Mon, 29 Apr 2024 16:33:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordssdws paper
Estimated Impact124
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] [correlation d=1,D=1] [2009-12-09 14:00:29] [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 time3 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 & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64956&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]3 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=64956&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64956&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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.122221.03710.151586
20.2093071.7760.039976
30.2430232.06210.021403
40.1245691.0570.147022
50.1100430.93370.176778
60.1467851.24550.10849
70.0306640.26020.39773
80.167491.42120.079788
90.096880.82210.20688
10-0.079455-0.67420.251173
110.2227621.89020.031378
12-0.109497-0.92910.177967
13-0.007719-0.06550.473978
140.1916321.62610.054154
150.0797560.67680.250366
16-0.00362-0.03070.48779
170.0484790.41140.341016
18-0.022228-0.18860.425464
190.0633380.53740.29631
20-0.010604-0.090.464276
21-0.112522-0.95480.171443
22-0.027314-0.23180.408689
23-0.031078-0.26370.396381
24-0.238467-2.02350.023369
25-0.100951-0.85660.197255
26-0.167533-1.42160.079735
27-0.112995-0.95880.170435
28-0.102921-0.87330.192697
29-0.02589-0.21970.41337
30-0.118299-1.00380.159419
31-0.049917-0.42360.336576
32-0.068335-0.57980.281916
33-0.051106-0.43360.332921
34-0.019092-0.1620.435878
350.0150240.12750.449456
36-0.038917-0.33020.371095

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.12222 & 1.0371 & 0.151586 \tabularnewline
2 & 0.209307 & 1.776 & 0.039976 \tabularnewline
3 & 0.243023 & 2.0621 & 0.021403 \tabularnewline
4 & 0.124569 & 1.057 & 0.147022 \tabularnewline
5 & 0.110043 & 0.9337 & 0.176778 \tabularnewline
6 & 0.146785 & 1.2455 & 0.10849 \tabularnewline
7 & 0.030664 & 0.2602 & 0.39773 \tabularnewline
8 & 0.16749 & 1.4212 & 0.079788 \tabularnewline
9 & 0.09688 & 0.8221 & 0.20688 \tabularnewline
10 & -0.079455 & -0.6742 & 0.251173 \tabularnewline
11 & 0.222762 & 1.8902 & 0.031378 \tabularnewline
12 & -0.109497 & -0.9291 & 0.177967 \tabularnewline
13 & -0.007719 & -0.0655 & 0.473978 \tabularnewline
14 & 0.191632 & 1.6261 & 0.054154 \tabularnewline
15 & 0.079756 & 0.6768 & 0.250366 \tabularnewline
16 & -0.00362 & -0.0307 & 0.48779 \tabularnewline
17 & 0.048479 & 0.4114 & 0.341016 \tabularnewline
18 & -0.022228 & -0.1886 & 0.425464 \tabularnewline
19 & 0.063338 & 0.5374 & 0.29631 \tabularnewline
20 & -0.010604 & -0.09 & 0.464276 \tabularnewline
21 & -0.112522 & -0.9548 & 0.171443 \tabularnewline
22 & -0.027314 & -0.2318 & 0.408689 \tabularnewline
23 & -0.031078 & -0.2637 & 0.396381 \tabularnewline
24 & -0.238467 & -2.0235 & 0.023369 \tabularnewline
25 & -0.100951 & -0.8566 & 0.197255 \tabularnewline
26 & -0.167533 & -1.4216 & 0.079735 \tabularnewline
27 & -0.112995 & -0.9588 & 0.170435 \tabularnewline
28 & -0.102921 & -0.8733 & 0.192697 \tabularnewline
29 & -0.02589 & -0.2197 & 0.41337 \tabularnewline
30 & -0.118299 & -1.0038 & 0.159419 \tabularnewline
31 & -0.049917 & -0.4236 & 0.336576 \tabularnewline
32 & -0.068335 & -0.5798 & 0.281916 \tabularnewline
33 & -0.051106 & -0.4336 & 0.332921 \tabularnewline
34 & -0.019092 & -0.162 & 0.435878 \tabularnewline
35 & 0.015024 & 0.1275 & 0.449456 \tabularnewline
36 & -0.038917 & -0.3302 & 0.371095 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64956&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.12222[/C][C]1.0371[/C][C]0.151586[/C][/ROW]
[ROW][C]2[/C][C]0.209307[/C][C]1.776[/C][C]0.039976[/C][/ROW]
[ROW][C]3[/C][C]0.243023[/C][C]2.0621[/C][C]0.021403[/C][/ROW]
[ROW][C]4[/C][C]0.124569[/C][C]1.057[/C][C]0.147022[/C][/ROW]
[ROW][C]5[/C][C]0.110043[/C][C]0.9337[/C][C]0.176778[/C][/ROW]
[ROW][C]6[/C][C]0.146785[/C][C]1.2455[/C][C]0.10849[/C][/ROW]
[ROW][C]7[/C][C]0.030664[/C][C]0.2602[/C][C]0.39773[/C][/ROW]
[ROW][C]8[/C][C]0.16749[/C][C]1.4212[/C][C]0.079788[/C][/ROW]
[ROW][C]9[/C][C]0.09688[/C][C]0.8221[/C][C]0.20688[/C][/ROW]
[ROW][C]10[/C][C]-0.079455[/C][C]-0.6742[/C][C]0.251173[/C][/ROW]
[ROW][C]11[/C][C]0.222762[/C][C]1.8902[/C][C]0.031378[/C][/ROW]
[ROW][C]12[/C][C]-0.109497[/C][C]-0.9291[/C][C]0.177967[/C][/ROW]
[ROW][C]13[/C][C]-0.007719[/C][C]-0.0655[/C][C]0.473978[/C][/ROW]
[ROW][C]14[/C][C]0.191632[/C][C]1.6261[/C][C]0.054154[/C][/ROW]
[ROW][C]15[/C][C]0.079756[/C][C]0.6768[/C][C]0.250366[/C][/ROW]
[ROW][C]16[/C][C]-0.00362[/C][C]-0.0307[/C][C]0.48779[/C][/ROW]
[ROW][C]17[/C][C]0.048479[/C][C]0.4114[/C][C]0.341016[/C][/ROW]
[ROW][C]18[/C][C]-0.022228[/C][C]-0.1886[/C][C]0.425464[/C][/ROW]
[ROW][C]19[/C][C]0.063338[/C][C]0.5374[/C][C]0.29631[/C][/ROW]
[ROW][C]20[/C][C]-0.010604[/C][C]-0.09[/C][C]0.464276[/C][/ROW]
[ROW][C]21[/C][C]-0.112522[/C][C]-0.9548[/C][C]0.171443[/C][/ROW]
[ROW][C]22[/C][C]-0.027314[/C][C]-0.2318[/C][C]0.408689[/C][/ROW]
[ROW][C]23[/C][C]-0.031078[/C][C]-0.2637[/C][C]0.396381[/C][/ROW]
[ROW][C]24[/C][C]-0.238467[/C][C]-2.0235[/C][C]0.023369[/C][/ROW]
[ROW][C]25[/C][C]-0.100951[/C][C]-0.8566[/C][C]0.197255[/C][/ROW]
[ROW][C]26[/C][C]-0.167533[/C][C]-1.4216[/C][C]0.079735[/C][/ROW]
[ROW][C]27[/C][C]-0.112995[/C][C]-0.9588[/C][C]0.170435[/C][/ROW]
[ROW][C]28[/C][C]-0.102921[/C][C]-0.8733[/C][C]0.192697[/C][/ROW]
[ROW][C]29[/C][C]-0.02589[/C][C]-0.2197[/C][C]0.41337[/C][/ROW]
[ROW][C]30[/C][C]-0.118299[/C][C]-1.0038[/C][C]0.159419[/C][/ROW]
[ROW][C]31[/C][C]-0.049917[/C][C]-0.4236[/C][C]0.336576[/C][/ROW]
[ROW][C]32[/C][C]-0.068335[/C][C]-0.5798[/C][C]0.281916[/C][/ROW]
[ROW][C]33[/C][C]-0.051106[/C][C]-0.4336[/C][C]0.332921[/C][/ROW]
[ROW][C]34[/C][C]-0.019092[/C][C]-0.162[/C][C]0.435878[/C][/ROW]
[ROW][C]35[/C][C]0.015024[/C][C]0.1275[/C][C]0.449456[/C][/ROW]
[ROW][C]36[/C][C]-0.038917[/C][C]-0.3302[/C][C]0.371095[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64956&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64956&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.122221.03710.151586
20.2093071.7760.039976
30.2430232.06210.021403
40.1245691.0570.147022
50.1100430.93370.176778
60.1467851.24550.10849
70.0306640.26020.39773
80.167491.42120.079788
90.096880.82210.20688
10-0.079455-0.67420.251173
110.2227621.89020.031378
12-0.109497-0.92910.177967
13-0.007719-0.06550.473978
140.1916321.62610.054154
150.0797560.67680.250366
16-0.00362-0.03070.48779
170.0484790.41140.341016
18-0.022228-0.18860.425464
190.0633380.53740.29631
20-0.010604-0.090.464276
21-0.112522-0.95480.171443
22-0.027314-0.23180.408689
23-0.031078-0.26370.396381
24-0.238467-2.02350.023369
25-0.100951-0.85660.197255
26-0.167533-1.42160.079735
27-0.112995-0.95880.170435
28-0.102921-0.87330.192697
29-0.02589-0.21970.41337
30-0.118299-1.00380.159419
31-0.049917-0.42360.336576
32-0.068335-0.57980.281916
33-0.051106-0.43360.332921
34-0.019092-0.1620.435878
350.0150240.12750.449456
36-0.038917-0.33020.371095







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.122221.03710.151586
20.1973171.67430.049206
30.2095391.7780.039813
40.0532160.45160.326474
50.0154680.13120.447972
60.0653470.55450.290481
7-0.042246-0.35850.360522
80.1130730.95950.170269
90.039890.33850.367993
10-0.160729-1.36380.088435
110.1782381.51240.067404
12-0.174249-1.47860.071811
13-0.019813-0.16810.433479
140.1963561.66610.050015
150.0873840.74150.230408
16-0.064405-0.54650.293207
17-0.08574-0.72750.23463
18-0.011662-0.0990.460724
190.0328340.27860.390673
20-0.040773-0.3460.365186
21-0.058848-0.49930.309531
22-0.153524-1.30270.098416
230.0341830.29010.386304
24-0.194005-1.64620.052042
25-0.106887-0.9070.183724
26-0.040102-0.34030.367319
270.0744120.63140.264887
28-0.037335-0.31680.376156
290.0661090.5610.288284
30-0.060068-0.50970.305913
310.0253390.2150.415185
320.0529380.44920.32732
330.0104390.08860.464832
34-0.055597-0.47180.319265
350.1932331.63960.052721
36-0.06151-0.52190.30166

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.12222 & 1.0371 & 0.151586 \tabularnewline
2 & 0.197317 & 1.6743 & 0.049206 \tabularnewline
3 & 0.209539 & 1.778 & 0.039813 \tabularnewline
4 & 0.053216 & 0.4516 & 0.326474 \tabularnewline
5 & 0.015468 & 0.1312 & 0.447972 \tabularnewline
6 & 0.065347 & 0.5545 & 0.290481 \tabularnewline
7 & -0.042246 & -0.3585 & 0.360522 \tabularnewline
8 & 0.113073 & 0.9595 & 0.170269 \tabularnewline
9 & 0.03989 & 0.3385 & 0.367993 \tabularnewline
10 & -0.160729 & -1.3638 & 0.088435 \tabularnewline
11 & 0.178238 & 1.5124 & 0.067404 \tabularnewline
12 & -0.174249 & -1.4786 & 0.071811 \tabularnewline
13 & -0.019813 & -0.1681 & 0.433479 \tabularnewline
14 & 0.196356 & 1.6661 & 0.050015 \tabularnewline
15 & 0.087384 & 0.7415 & 0.230408 \tabularnewline
16 & -0.064405 & -0.5465 & 0.293207 \tabularnewline
17 & -0.08574 & -0.7275 & 0.23463 \tabularnewline
18 & -0.011662 & -0.099 & 0.460724 \tabularnewline
19 & 0.032834 & 0.2786 & 0.390673 \tabularnewline
20 & -0.040773 & -0.346 & 0.365186 \tabularnewline
21 & -0.058848 & -0.4993 & 0.309531 \tabularnewline
22 & -0.153524 & -1.3027 & 0.098416 \tabularnewline
23 & 0.034183 & 0.2901 & 0.386304 \tabularnewline
24 & -0.194005 & -1.6462 & 0.052042 \tabularnewline
25 & -0.106887 & -0.907 & 0.183724 \tabularnewline
26 & -0.040102 & -0.3403 & 0.367319 \tabularnewline
27 & 0.074412 & 0.6314 & 0.264887 \tabularnewline
28 & -0.037335 & -0.3168 & 0.376156 \tabularnewline
29 & 0.066109 & 0.561 & 0.288284 \tabularnewline
30 & -0.060068 & -0.5097 & 0.305913 \tabularnewline
31 & 0.025339 & 0.215 & 0.415185 \tabularnewline
32 & 0.052938 & 0.4492 & 0.32732 \tabularnewline
33 & 0.010439 & 0.0886 & 0.464832 \tabularnewline
34 & -0.055597 & -0.4718 & 0.319265 \tabularnewline
35 & 0.193233 & 1.6396 & 0.052721 \tabularnewline
36 & -0.06151 & -0.5219 & 0.30166 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64956&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.12222[/C][C]1.0371[/C][C]0.151586[/C][/ROW]
[ROW][C]2[/C][C]0.197317[/C][C]1.6743[/C][C]0.049206[/C][/ROW]
[ROW][C]3[/C][C]0.209539[/C][C]1.778[/C][C]0.039813[/C][/ROW]
[ROW][C]4[/C][C]0.053216[/C][C]0.4516[/C][C]0.326474[/C][/ROW]
[ROW][C]5[/C][C]0.015468[/C][C]0.1312[/C][C]0.447972[/C][/ROW]
[ROW][C]6[/C][C]0.065347[/C][C]0.5545[/C][C]0.290481[/C][/ROW]
[ROW][C]7[/C][C]-0.042246[/C][C]-0.3585[/C][C]0.360522[/C][/ROW]
[ROW][C]8[/C][C]0.113073[/C][C]0.9595[/C][C]0.170269[/C][/ROW]
[ROW][C]9[/C][C]0.03989[/C][C]0.3385[/C][C]0.367993[/C][/ROW]
[ROW][C]10[/C][C]-0.160729[/C][C]-1.3638[/C][C]0.088435[/C][/ROW]
[ROW][C]11[/C][C]0.178238[/C][C]1.5124[/C][C]0.067404[/C][/ROW]
[ROW][C]12[/C][C]-0.174249[/C][C]-1.4786[/C][C]0.071811[/C][/ROW]
[ROW][C]13[/C][C]-0.019813[/C][C]-0.1681[/C][C]0.433479[/C][/ROW]
[ROW][C]14[/C][C]0.196356[/C][C]1.6661[/C][C]0.050015[/C][/ROW]
[ROW][C]15[/C][C]0.087384[/C][C]0.7415[/C][C]0.230408[/C][/ROW]
[ROW][C]16[/C][C]-0.064405[/C][C]-0.5465[/C][C]0.293207[/C][/ROW]
[ROW][C]17[/C][C]-0.08574[/C][C]-0.7275[/C][C]0.23463[/C][/ROW]
[ROW][C]18[/C][C]-0.011662[/C][C]-0.099[/C][C]0.460724[/C][/ROW]
[ROW][C]19[/C][C]0.032834[/C][C]0.2786[/C][C]0.390673[/C][/ROW]
[ROW][C]20[/C][C]-0.040773[/C][C]-0.346[/C][C]0.365186[/C][/ROW]
[ROW][C]21[/C][C]-0.058848[/C][C]-0.4993[/C][C]0.309531[/C][/ROW]
[ROW][C]22[/C][C]-0.153524[/C][C]-1.3027[/C][C]0.098416[/C][/ROW]
[ROW][C]23[/C][C]0.034183[/C][C]0.2901[/C][C]0.386304[/C][/ROW]
[ROW][C]24[/C][C]-0.194005[/C][C]-1.6462[/C][C]0.052042[/C][/ROW]
[ROW][C]25[/C][C]-0.106887[/C][C]-0.907[/C][C]0.183724[/C][/ROW]
[ROW][C]26[/C][C]-0.040102[/C][C]-0.3403[/C][C]0.367319[/C][/ROW]
[ROW][C]27[/C][C]0.074412[/C][C]0.6314[/C][C]0.264887[/C][/ROW]
[ROW][C]28[/C][C]-0.037335[/C][C]-0.3168[/C][C]0.376156[/C][/ROW]
[ROW][C]29[/C][C]0.066109[/C][C]0.561[/C][C]0.288284[/C][/ROW]
[ROW][C]30[/C][C]-0.060068[/C][C]-0.5097[/C][C]0.305913[/C][/ROW]
[ROW][C]31[/C][C]0.025339[/C][C]0.215[/C][C]0.415185[/C][/ROW]
[ROW][C]32[/C][C]0.052938[/C][C]0.4492[/C][C]0.32732[/C][/ROW]
[ROW][C]33[/C][C]0.010439[/C][C]0.0886[/C][C]0.464832[/C][/ROW]
[ROW][C]34[/C][C]-0.055597[/C][C]-0.4718[/C][C]0.319265[/C][/ROW]
[ROW][C]35[/C][C]0.193233[/C][C]1.6396[/C][C]0.052721[/C][/ROW]
[ROW][C]36[/C][C]-0.06151[/C][C]-0.5219[/C][C]0.30166[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64956&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64956&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.122221.03710.151586
20.1973171.67430.049206
30.2095391.7780.039813
40.0532160.45160.326474
50.0154680.13120.447972
60.0653470.55450.290481
7-0.042246-0.35850.360522
80.1130730.95950.170269
90.039890.33850.367993
10-0.160729-1.36380.088435
110.1782381.51240.067404
12-0.174249-1.47860.071811
13-0.019813-0.16810.433479
140.1963561.66610.050015
150.0873840.74150.230408
16-0.064405-0.54650.293207
17-0.08574-0.72750.23463
18-0.011662-0.0990.460724
190.0328340.27860.390673
20-0.040773-0.3460.365186
21-0.058848-0.49930.309531
22-0.153524-1.30270.098416
230.0341830.29010.386304
24-0.194005-1.64620.052042
25-0.106887-0.9070.183724
26-0.040102-0.34030.367319
270.0744120.63140.264887
28-0.037335-0.31680.376156
290.0661090.5610.288284
30-0.060068-0.50970.305913
310.0253390.2150.415185
320.0529380.44920.32732
330.0104390.08860.464832
34-0.055597-0.47180.319265
350.1932331.63960.052721
36-0.06151-0.52190.30166



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