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 computationThu, 10 Dec 2009 01:58:51 -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/10/t12604357107pvnayfzh6epfrt.htm/, Retrieved Fri, 19 Apr 2024 10:58:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=65239, Retrieved Fri, 19 Apr 2024 10:58:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact186
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] [(partiële) autoco...] [2009-12-10 08:58:51] [9a3898f49d4e2f0208d1968305d88f0a] [Current]
-   P         [(Partial) Autocorrelation Function] [voedingsnijverhei...] [2009-12-11 08:36:42] [b5ed7ca2d893a9c0b68720eb2614783c]
Feedback Forum

Post a new message
Dataseries X:
46
43
59
57
44
63
52
53
55
57
62
69
60
54
56
66
67
65
63
63
70
71
66
66
70
70
67
65
75
80
76
75
77
74
81
75
79
82
77
72
81
79
76
75
71
69
69
57
74
57
61
59
67
57
55
63
61
65
58
55
50




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65239&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.6929025.41171e-06
20.6080294.74896e-06
30.6058064.73157e-06
40.6084484.75216e-06
50.5354814.18224.7e-05
60.5131934.00828.5e-05
70.4041583.15660.00124
80.3494152.7290.004144
90.3116212.43380.008942
100.1942781.51740.067171
110.1424591.11260.135115
120.1253370.97890.165745
130.0939820.7340.232873
140.0015220.01190.495277
15-0.104-0.81230.209899
16-0.152052-1.18760.119804
17-0.186249-1.45460.075447
18-0.193097-1.50810.068341
19-0.228137-1.78180.039879
20-0.270162-2.110.019482
21-0.284335-2.22070.015047
22-0.310638-2.42620.009116
23-0.313427-2.44790.00863
24-0.351609-2.74620.003957
25-0.358037-2.79640.003451
26-0.337932-2.63930.005265
27-0.344941-2.69410.004552
28-0.414717-3.2390.000971
29-0.397669-3.10590.001439
30-0.39402-3.07740.001563
31-0.350074-2.73420.004087
32-0.310264-2.42320.009183
33-0.308535-2.40970.009498
34-0.313649-2.44970.008592
35-0.257599-2.01190.024326
36-0.270449-2.11230.019383

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.692902 & 5.4117 & 1e-06 \tabularnewline
2 & 0.608029 & 4.7489 & 6e-06 \tabularnewline
3 & 0.605806 & 4.7315 & 7e-06 \tabularnewline
4 & 0.608448 & 4.7521 & 6e-06 \tabularnewline
5 & 0.535481 & 4.1822 & 4.7e-05 \tabularnewline
6 & 0.513193 & 4.0082 & 8.5e-05 \tabularnewline
7 & 0.404158 & 3.1566 & 0.00124 \tabularnewline
8 & 0.349415 & 2.729 & 0.004144 \tabularnewline
9 & 0.311621 & 2.4338 & 0.008942 \tabularnewline
10 & 0.194278 & 1.5174 & 0.067171 \tabularnewline
11 & 0.142459 & 1.1126 & 0.135115 \tabularnewline
12 & 0.125337 & 0.9789 & 0.165745 \tabularnewline
13 & 0.093982 & 0.734 & 0.232873 \tabularnewline
14 & 0.001522 & 0.0119 & 0.495277 \tabularnewline
15 & -0.104 & -0.8123 & 0.209899 \tabularnewline
16 & -0.152052 & -1.1876 & 0.119804 \tabularnewline
17 & -0.186249 & -1.4546 & 0.075447 \tabularnewline
18 & -0.193097 & -1.5081 & 0.068341 \tabularnewline
19 & -0.228137 & -1.7818 & 0.039879 \tabularnewline
20 & -0.270162 & -2.11 & 0.019482 \tabularnewline
21 & -0.284335 & -2.2207 & 0.015047 \tabularnewline
22 & -0.310638 & -2.4262 & 0.009116 \tabularnewline
23 & -0.313427 & -2.4479 & 0.00863 \tabularnewline
24 & -0.351609 & -2.7462 & 0.003957 \tabularnewline
25 & -0.358037 & -2.7964 & 0.003451 \tabularnewline
26 & -0.337932 & -2.6393 & 0.005265 \tabularnewline
27 & -0.344941 & -2.6941 & 0.004552 \tabularnewline
28 & -0.414717 & -3.239 & 0.000971 \tabularnewline
29 & -0.397669 & -3.1059 & 0.001439 \tabularnewline
30 & -0.39402 & -3.0774 & 0.001563 \tabularnewline
31 & -0.350074 & -2.7342 & 0.004087 \tabularnewline
32 & -0.310264 & -2.4232 & 0.009183 \tabularnewline
33 & -0.308535 & -2.4097 & 0.009498 \tabularnewline
34 & -0.313649 & -2.4497 & 0.008592 \tabularnewline
35 & -0.257599 & -2.0119 & 0.024326 \tabularnewline
36 & -0.270449 & -2.1123 & 0.019383 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65239&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.692902[/C][C]5.4117[/C][C]1e-06[/C][/ROW]
[ROW][C]2[/C][C]0.608029[/C][C]4.7489[/C][C]6e-06[/C][/ROW]
[ROW][C]3[/C][C]0.605806[/C][C]4.7315[/C][C]7e-06[/C][/ROW]
[ROW][C]4[/C][C]0.608448[/C][C]4.7521[/C][C]6e-06[/C][/ROW]
[ROW][C]5[/C][C]0.535481[/C][C]4.1822[/C][C]4.7e-05[/C][/ROW]
[ROW][C]6[/C][C]0.513193[/C][C]4.0082[/C][C]8.5e-05[/C][/ROW]
[ROW][C]7[/C][C]0.404158[/C][C]3.1566[/C][C]0.00124[/C][/ROW]
[ROW][C]8[/C][C]0.349415[/C][C]2.729[/C][C]0.004144[/C][/ROW]
[ROW][C]9[/C][C]0.311621[/C][C]2.4338[/C][C]0.008942[/C][/ROW]
[ROW][C]10[/C][C]0.194278[/C][C]1.5174[/C][C]0.067171[/C][/ROW]
[ROW][C]11[/C][C]0.142459[/C][C]1.1126[/C][C]0.135115[/C][/ROW]
[ROW][C]12[/C][C]0.125337[/C][C]0.9789[/C][C]0.165745[/C][/ROW]
[ROW][C]13[/C][C]0.093982[/C][C]0.734[/C][C]0.232873[/C][/ROW]
[ROW][C]14[/C][C]0.001522[/C][C]0.0119[/C][C]0.495277[/C][/ROW]
[ROW][C]15[/C][C]-0.104[/C][C]-0.8123[/C][C]0.209899[/C][/ROW]
[ROW][C]16[/C][C]-0.152052[/C][C]-1.1876[/C][C]0.119804[/C][/ROW]
[ROW][C]17[/C][C]-0.186249[/C][C]-1.4546[/C][C]0.075447[/C][/ROW]
[ROW][C]18[/C][C]-0.193097[/C][C]-1.5081[/C][C]0.068341[/C][/ROW]
[ROW][C]19[/C][C]-0.228137[/C][C]-1.7818[/C][C]0.039879[/C][/ROW]
[ROW][C]20[/C][C]-0.270162[/C][C]-2.11[/C][C]0.019482[/C][/ROW]
[ROW][C]21[/C][C]-0.284335[/C][C]-2.2207[/C][C]0.015047[/C][/ROW]
[ROW][C]22[/C][C]-0.310638[/C][C]-2.4262[/C][C]0.009116[/C][/ROW]
[ROW][C]23[/C][C]-0.313427[/C][C]-2.4479[/C][C]0.00863[/C][/ROW]
[ROW][C]24[/C][C]-0.351609[/C][C]-2.7462[/C][C]0.003957[/C][/ROW]
[ROW][C]25[/C][C]-0.358037[/C][C]-2.7964[/C][C]0.003451[/C][/ROW]
[ROW][C]26[/C][C]-0.337932[/C][C]-2.6393[/C][C]0.005265[/C][/ROW]
[ROW][C]27[/C][C]-0.344941[/C][C]-2.6941[/C][C]0.004552[/C][/ROW]
[ROW][C]28[/C][C]-0.414717[/C][C]-3.239[/C][C]0.000971[/C][/ROW]
[ROW][C]29[/C][C]-0.397669[/C][C]-3.1059[/C][C]0.001439[/C][/ROW]
[ROW][C]30[/C][C]-0.39402[/C][C]-3.0774[/C][C]0.001563[/C][/ROW]
[ROW][C]31[/C][C]-0.350074[/C][C]-2.7342[/C][C]0.004087[/C][/ROW]
[ROW][C]32[/C][C]-0.310264[/C][C]-2.4232[/C][C]0.009183[/C][/ROW]
[ROW][C]33[/C][C]-0.308535[/C][C]-2.4097[/C][C]0.009498[/C][/ROW]
[ROW][C]34[/C][C]-0.313649[/C][C]-2.4497[/C][C]0.008592[/C][/ROW]
[ROW][C]35[/C][C]-0.257599[/C][C]-2.0119[/C][C]0.024326[/C][/ROW]
[ROW][C]36[/C][C]-0.270449[/C][C]-2.1123[/C][C]0.019383[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65239&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65239&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.6929025.41171e-06
20.6080294.74896e-06
30.6058064.73157e-06
40.6084484.75216e-06
50.5354814.18224.7e-05
60.5131934.00828.5e-05
70.4041583.15660.00124
80.3494152.7290.004144
90.3116212.43380.008942
100.1942781.51740.067171
110.1424591.11260.135115
120.1253370.97890.165745
130.0939820.7340.232873
140.0015220.01190.495277
15-0.104-0.81230.209899
16-0.152052-1.18760.119804
17-0.186249-1.45460.075447
18-0.193097-1.50810.068341
19-0.228137-1.78180.039879
20-0.270162-2.110.019482
21-0.284335-2.22070.015047
22-0.310638-2.42620.009116
23-0.313427-2.44790.00863
24-0.351609-2.74620.003957
25-0.358037-2.79640.003451
26-0.337932-2.63930.005265
27-0.344941-2.69410.004552
28-0.414717-3.2390.000971
29-0.397669-3.10590.001439
30-0.39402-3.07740.001563
31-0.350074-2.73420.004087
32-0.310264-2.42320.009183
33-0.308535-2.40970.009498
34-0.313649-2.44970.008592
35-0.257599-2.01190.024326
36-0.270449-2.11230.019383







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6929025.41171e-06
20.2460451.92170.029661
30.2409361.88180.03232
40.1909791.49160.070479
5-0.005104-0.03990.484168
60.0521660.40740.34256
7-0.179893-1.4050.082545
8-0.089357-0.69790.243945
9-0.054567-0.42620.335737
10-0.221377-1.7290.044433
11-0.038229-0.29860.383138
120.0096770.07560.470001
130.0588150.45940.323804
14-0.050992-0.39830.345916
15-0.182136-1.42250.079983
16-0.065783-0.51380.304629
17-0.094917-0.74130.230671
180.0340720.26610.395525
190.041920.32740.372241
200.0012850.010.496012
210.062360.4870.313985
22-0.052862-0.41290.340578
230.0320970.25070.401449
24-0.11151-0.87090.193606
25-0.110486-0.86290.19578
26-0.000723-0.00560.497757
27-0.071411-0.55770.289532
28-0.119201-0.9310.177765
29-0.013407-0.10470.458474
30-0.07296-0.56980.285441
310.076440.5970.276354
320.0617830.48250.315575
330.0300710.23490.407551
34-0.004399-0.03440.486352
350.0032670.02550.489864
36-0.106495-0.83180.204396

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.692902 & 5.4117 & 1e-06 \tabularnewline
2 & 0.246045 & 1.9217 & 0.029661 \tabularnewline
3 & 0.240936 & 1.8818 & 0.03232 \tabularnewline
4 & 0.190979 & 1.4916 & 0.070479 \tabularnewline
5 & -0.005104 & -0.0399 & 0.484168 \tabularnewline
6 & 0.052166 & 0.4074 & 0.34256 \tabularnewline
7 & -0.179893 & -1.405 & 0.082545 \tabularnewline
8 & -0.089357 & -0.6979 & 0.243945 \tabularnewline
9 & -0.054567 & -0.4262 & 0.335737 \tabularnewline
10 & -0.221377 & -1.729 & 0.044433 \tabularnewline
11 & -0.038229 & -0.2986 & 0.383138 \tabularnewline
12 & 0.009677 & 0.0756 & 0.470001 \tabularnewline
13 & 0.058815 & 0.4594 & 0.323804 \tabularnewline
14 & -0.050992 & -0.3983 & 0.345916 \tabularnewline
15 & -0.182136 & -1.4225 & 0.079983 \tabularnewline
16 & -0.065783 & -0.5138 & 0.304629 \tabularnewline
17 & -0.094917 & -0.7413 & 0.230671 \tabularnewline
18 & 0.034072 & 0.2661 & 0.395525 \tabularnewline
19 & 0.04192 & 0.3274 & 0.372241 \tabularnewline
20 & 0.001285 & 0.01 & 0.496012 \tabularnewline
21 & 0.06236 & 0.487 & 0.313985 \tabularnewline
22 & -0.052862 & -0.4129 & 0.340578 \tabularnewline
23 & 0.032097 & 0.2507 & 0.401449 \tabularnewline
24 & -0.11151 & -0.8709 & 0.193606 \tabularnewline
25 & -0.110486 & -0.8629 & 0.19578 \tabularnewline
26 & -0.000723 & -0.0056 & 0.497757 \tabularnewline
27 & -0.071411 & -0.5577 & 0.289532 \tabularnewline
28 & -0.119201 & -0.931 & 0.177765 \tabularnewline
29 & -0.013407 & -0.1047 & 0.458474 \tabularnewline
30 & -0.07296 & -0.5698 & 0.285441 \tabularnewline
31 & 0.07644 & 0.597 & 0.276354 \tabularnewline
32 & 0.061783 & 0.4825 & 0.315575 \tabularnewline
33 & 0.030071 & 0.2349 & 0.407551 \tabularnewline
34 & -0.004399 & -0.0344 & 0.486352 \tabularnewline
35 & 0.003267 & 0.0255 & 0.489864 \tabularnewline
36 & -0.106495 & -0.8318 & 0.204396 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65239&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.692902[/C][C]5.4117[/C][C]1e-06[/C][/ROW]
[ROW][C]2[/C][C]0.246045[/C][C]1.9217[/C][C]0.029661[/C][/ROW]
[ROW][C]3[/C][C]0.240936[/C][C]1.8818[/C][C]0.03232[/C][/ROW]
[ROW][C]4[/C][C]0.190979[/C][C]1.4916[/C][C]0.070479[/C][/ROW]
[ROW][C]5[/C][C]-0.005104[/C][C]-0.0399[/C][C]0.484168[/C][/ROW]
[ROW][C]6[/C][C]0.052166[/C][C]0.4074[/C][C]0.34256[/C][/ROW]
[ROW][C]7[/C][C]-0.179893[/C][C]-1.405[/C][C]0.082545[/C][/ROW]
[ROW][C]8[/C][C]-0.089357[/C][C]-0.6979[/C][C]0.243945[/C][/ROW]
[ROW][C]9[/C][C]-0.054567[/C][C]-0.4262[/C][C]0.335737[/C][/ROW]
[ROW][C]10[/C][C]-0.221377[/C][C]-1.729[/C][C]0.044433[/C][/ROW]
[ROW][C]11[/C][C]-0.038229[/C][C]-0.2986[/C][C]0.383138[/C][/ROW]
[ROW][C]12[/C][C]0.009677[/C][C]0.0756[/C][C]0.470001[/C][/ROW]
[ROW][C]13[/C][C]0.058815[/C][C]0.4594[/C][C]0.323804[/C][/ROW]
[ROW][C]14[/C][C]-0.050992[/C][C]-0.3983[/C][C]0.345916[/C][/ROW]
[ROW][C]15[/C][C]-0.182136[/C][C]-1.4225[/C][C]0.079983[/C][/ROW]
[ROW][C]16[/C][C]-0.065783[/C][C]-0.5138[/C][C]0.304629[/C][/ROW]
[ROW][C]17[/C][C]-0.094917[/C][C]-0.7413[/C][C]0.230671[/C][/ROW]
[ROW][C]18[/C][C]0.034072[/C][C]0.2661[/C][C]0.395525[/C][/ROW]
[ROW][C]19[/C][C]0.04192[/C][C]0.3274[/C][C]0.372241[/C][/ROW]
[ROW][C]20[/C][C]0.001285[/C][C]0.01[/C][C]0.496012[/C][/ROW]
[ROW][C]21[/C][C]0.06236[/C][C]0.487[/C][C]0.313985[/C][/ROW]
[ROW][C]22[/C][C]-0.052862[/C][C]-0.4129[/C][C]0.340578[/C][/ROW]
[ROW][C]23[/C][C]0.032097[/C][C]0.2507[/C][C]0.401449[/C][/ROW]
[ROW][C]24[/C][C]-0.11151[/C][C]-0.8709[/C][C]0.193606[/C][/ROW]
[ROW][C]25[/C][C]-0.110486[/C][C]-0.8629[/C][C]0.19578[/C][/ROW]
[ROW][C]26[/C][C]-0.000723[/C][C]-0.0056[/C][C]0.497757[/C][/ROW]
[ROW][C]27[/C][C]-0.071411[/C][C]-0.5577[/C][C]0.289532[/C][/ROW]
[ROW][C]28[/C][C]-0.119201[/C][C]-0.931[/C][C]0.177765[/C][/ROW]
[ROW][C]29[/C][C]-0.013407[/C][C]-0.1047[/C][C]0.458474[/C][/ROW]
[ROW][C]30[/C][C]-0.07296[/C][C]-0.5698[/C][C]0.285441[/C][/ROW]
[ROW][C]31[/C][C]0.07644[/C][C]0.597[/C][C]0.276354[/C][/ROW]
[ROW][C]32[/C][C]0.061783[/C][C]0.4825[/C][C]0.315575[/C][/ROW]
[ROW][C]33[/C][C]0.030071[/C][C]0.2349[/C][C]0.407551[/C][/ROW]
[ROW][C]34[/C][C]-0.004399[/C][C]-0.0344[/C][C]0.486352[/C][/ROW]
[ROW][C]35[/C][C]0.003267[/C][C]0.0255[/C][C]0.489864[/C][/ROW]
[ROW][C]36[/C][C]-0.106495[/C][C]-0.8318[/C][C]0.204396[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65239&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65239&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.6929025.41171e-06
20.2460451.92170.029661
30.2409361.88180.03232
40.1909791.49160.070479
5-0.005104-0.03990.484168
60.0521660.40740.34256
7-0.179893-1.4050.082545
8-0.089357-0.69790.243945
9-0.054567-0.42620.335737
10-0.221377-1.7290.044433
11-0.038229-0.29860.383138
120.0096770.07560.470001
130.0588150.45940.323804
14-0.050992-0.39830.345916
15-0.182136-1.42250.079983
16-0.065783-0.51380.304629
17-0.094917-0.74130.230671
180.0340720.26610.395525
190.041920.32740.372241
200.0012850.010.496012
210.062360.4870.313985
22-0.052862-0.41290.340578
230.0320970.25070.401449
24-0.11151-0.87090.193606
25-0.110486-0.86290.19578
26-0.000723-0.00560.497757
27-0.071411-0.55770.289532
28-0.119201-0.9310.177765
29-0.013407-0.10470.458474
30-0.07296-0.56980.285441
310.076440.5970.276354
320.0617830.48250.315575
330.0300710.23490.407551
34-0.004399-0.03440.486352
350.0032670.02550.489864
36-0.106495-0.83180.204396



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