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, 11 Dec 2009 04:39:30 -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/11/t1260531621ymq1p8c45mm3xhj.htm/, Retrieved Sun, 28 Apr 2024 20:00:19 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=66017, Retrieved Sun, 28 Apr 2024 20:00:19 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact99
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2009-12-11 11:39:30] [9f6463b67b1eb7bae5c03a796abf0348] [Current]
Feedback Forum

Post a new message
Dataseries X:
12610
10862
52929
56902
81776
87876
82103
72846
60632
33521
15342
7758
8668
13082
38157
58263
81153
88476
72329
75845
61108
37665
12755
2793
12935
19533
33404
52074
70735
69702
61656
82993
53990
32283
15686
2713
12842
19244
48488
54464
84192
84458
85793
75163
68212
49233
24302
5402
15058
33559
70358
85934
94452
129305
113882
107256
94274
57842
26611
14521




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66017&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.4773463.66660.000264
20.342152.62810.005464
30.0331650.25470.399901
4-0.293851-2.25710.013859
5-0.496844-3.81630.000164
6-0.613886-4.71538e-06
7-0.517807-3.97739.6e-05
8-0.352721-2.70930.004406
9-0.041553-0.31920.37536
100.2246641.72570.04482
110.4392043.37360.000658
120.5822724.47251.8e-05
130.4373823.35960.000686
140.2387021.83350.035886
150.0370080.28430.3886
16-0.26118-2.00620.024715
17-0.314163-2.41310.00947
18-0.490447-3.76720.000192
19-0.370035-2.84230.003071
20-0.261402-2.00790.024622
21-0.061804-0.47470.318367
220.2235931.71750.045571
230.2996272.30150.012457
240.4032443.09740.001494
250.3591892.7590.003855
260.1989931.52850.065867
27-0.016523-0.12690.449721
28-0.186289-1.43090.078865
29-0.197623-1.5180.067181
30-0.372404-2.86050.002921
31-0.32461-2.49340.007739
32-0.186361-1.43150.078786
33-0.038592-0.29640.38397
340.1847481.41910.080569
350.201461.54740.063552
360.3576632.74730.003979

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.477346 & 3.6666 & 0.000264 \tabularnewline
2 & 0.34215 & 2.6281 & 0.005464 \tabularnewline
3 & 0.033165 & 0.2547 & 0.399901 \tabularnewline
4 & -0.293851 & -2.2571 & 0.013859 \tabularnewline
5 & -0.496844 & -3.8163 & 0.000164 \tabularnewline
6 & -0.613886 & -4.7153 & 8e-06 \tabularnewline
7 & -0.517807 & -3.9773 & 9.6e-05 \tabularnewline
8 & -0.352721 & -2.7093 & 0.004406 \tabularnewline
9 & -0.041553 & -0.3192 & 0.37536 \tabularnewline
10 & 0.224664 & 1.7257 & 0.04482 \tabularnewline
11 & 0.439204 & 3.3736 & 0.000658 \tabularnewline
12 & 0.582272 & 4.4725 & 1.8e-05 \tabularnewline
13 & 0.437382 & 3.3596 & 0.000686 \tabularnewline
14 & 0.238702 & 1.8335 & 0.035886 \tabularnewline
15 & 0.037008 & 0.2843 & 0.3886 \tabularnewline
16 & -0.26118 & -2.0062 & 0.024715 \tabularnewline
17 & -0.314163 & -2.4131 & 0.00947 \tabularnewline
18 & -0.490447 & -3.7672 & 0.000192 \tabularnewline
19 & -0.370035 & -2.8423 & 0.003071 \tabularnewline
20 & -0.261402 & -2.0079 & 0.024622 \tabularnewline
21 & -0.061804 & -0.4747 & 0.318367 \tabularnewline
22 & 0.223593 & 1.7175 & 0.045571 \tabularnewline
23 & 0.299627 & 2.3015 & 0.012457 \tabularnewline
24 & 0.403244 & 3.0974 & 0.001494 \tabularnewline
25 & 0.359189 & 2.759 & 0.003855 \tabularnewline
26 & 0.198993 & 1.5285 & 0.065867 \tabularnewline
27 & -0.016523 & -0.1269 & 0.449721 \tabularnewline
28 & -0.186289 & -1.4309 & 0.078865 \tabularnewline
29 & -0.197623 & -1.518 & 0.067181 \tabularnewline
30 & -0.372404 & -2.8605 & 0.002921 \tabularnewline
31 & -0.32461 & -2.4934 & 0.007739 \tabularnewline
32 & -0.186361 & -1.4315 & 0.078786 \tabularnewline
33 & -0.038592 & -0.2964 & 0.38397 \tabularnewline
34 & 0.184748 & 1.4191 & 0.080569 \tabularnewline
35 & 0.20146 & 1.5474 & 0.063552 \tabularnewline
36 & 0.357663 & 2.7473 & 0.003979 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66017&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.477346[/C][C]3.6666[/C][C]0.000264[/C][/ROW]
[ROW][C]2[/C][C]0.34215[/C][C]2.6281[/C][C]0.005464[/C][/ROW]
[ROW][C]3[/C][C]0.033165[/C][C]0.2547[/C][C]0.399901[/C][/ROW]
[ROW][C]4[/C][C]-0.293851[/C][C]-2.2571[/C][C]0.013859[/C][/ROW]
[ROW][C]5[/C][C]-0.496844[/C][C]-3.8163[/C][C]0.000164[/C][/ROW]
[ROW][C]6[/C][C]-0.613886[/C][C]-4.7153[/C][C]8e-06[/C][/ROW]
[ROW][C]7[/C][C]-0.517807[/C][C]-3.9773[/C][C]9.6e-05[/C][/ROW]
[ROW][C]8[/C][C]-0.352721[/C][C]-2.7093[/C][C]0.004406[/C][/ROW]
[ROW][C]9[/C][C]-0.041553[/C][C]-0.3192[/C][C]0.37536[/C][/ROW]
[ROW][C]10[/C][C]0.224664[/C][C]1.7257[/C][C]0.04482[/C][/ROW]
[ROW][C]11[/C][C]0.439204[/C][C]3.3736[/C][C]0.000658[/C][/ROW]
[ROW][C]12[/C][C]0.582272[/C][C]4.4725[/C][C]1.8e-05[/C][/ROW]
[ROW][C]13[/C][C]0.437382[/C][C]3.3596[/C][C]0.000686[/C][/ROW]
[ROW][C]14[/C][C]0.238702[/C][C]1.8335[/C][C]0.035886[/C][/ROW]
[ROW][C]15[/C][C]0.037008[/C][C]0.2843[/C][C]0.3886[/C][/ROW]
[ROW][C]16[/C][C]-0.26118[/C][C]-2.0062[/C][C]0.024715[/C][/ROW]
[ROW][C]17[/C][C]-0.314163[/C][C]-2.4131[/C][C]0.00947[/C][/ROW]
[ROW][C]18[/C][C]-0.490447[/C][C]-3.7672[/C][C]0.000192[/C][/ROW]
[ROW][C]19[/C][C]-0.370035[/C][C]-2.8423[/C][C]0.003071[/C][/ROW]
[ROW][C]20[/C][C]-0.261402[/C][C]-2.0079[/C][C]0.024622[/C][/ROW]
[ROW][C]21[/C][C]-0.061804[/C][C]-0.4747[/C][C]0.318367[/C][/ROW]
[ROW][C]22[/C][C]0.223593[/C][C]1.7175[/C][C]0.045571[/C][/ROW]
[ROW][C]23[/C][C]0.299627[/C][C]2.3015[/C][C]0.012457[/C][/ROW]
[ROW][C]24[/C][C]0.403244[/C][C]3.0974[/C][C]0.001494[/C][/ROW]
[ROW][C]25[/C][C]0.359189[/C][C]2.759[/C][C]0.003855[/C][/ROW]
[ROW][C]26[/C][C]0.198993[/C][C]1.5285[/C][C]0.065867[/C][/ROW]
[ROW][C]27[/C][C]-0.016523[/C][C]-0.1269[/C][C]0.449721[/C][/ROW]
[ROW][C]28[/C][C]-0.186289[/C][C]-1.4309[/C][C]0.078865[/C][/ROW]
[ROW][C]29[/C][C]-0.197623[/C][C]-1.518[/C][C]0.067181[/C][/ROW]
[ROW][C]30[/C][C]-0.372404[/C][C]-2.8605[/C][C]0.002921[/C][/ROW]
[ROW][C]31[/C][C]-0.32461[/C][C]-2.4934[/C][C]0.007739[/C][/ROW]
[ROW][C]32[/C][C]-0.186361[/C][C]-1.4315[/C][C]0.078786[/C][/ROW]
[ROW][C]33[/C][C]-0.038592[/C][C]-0.2964[/C][C]0.38397[/C][/ROW]
[ROW][C]34[/C][C]0.184748[/C][C]1.4191[/C][C]0.080569[/C][/ROW]
[ROW][C]35[/C][C]0.20146[/C][C]1.5474[/C][C]0.063552[/C][/ROW]
[ROW][C]36[/C][C]0.357663[/C][C]2.7473[/C][C]0.003979[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66017&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66017&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.4773463.66660.000264
20.342152.62810.005464
30.0331650.25470.399901
4-0.293851-2.25710.013859
5-0.496844-3.81630.000164
6-0.613886-4.71538e-06
7-0.517807-3.97739.6e-05
8-0.352721-2.70930.004406
9-0.041553-0.31920.37536
100.2246641.72570.04482
110.4392043.37360.000658
120.5822724.47251.8e-05
130.4373823.35960.000686
140.2387021.83350.035886
150.0370080.28430.3886
16-0.26118-2.00620.024715
17-0.314163-2.41310.00947
18-0.490447-3.76720.000192
19-0.370035-2.84230.003071
20-0.261402-2.00790.024622
21-0.061804-0.47470.318367
220.2235931.71750.045571
230.2996272.30150.012457
240.4032443.09740.001494
250.3591892.7590.003855
260.1989931.52850.065867
27-0.016523-0.12690.449721
28-0.186289-1.43090.078865
29-0.197623-1.5180.067181
30-0.372404-2.86050.002921
31-0.32461-2.49340.007739
32-0.186361-1.43150.078786
33-0.038592-0.29640.38397
340.1847481.41910.080569
350.201461.54740.063552
360.3576632.74730.003979







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4773463.66660.000264
20.1480191.1370.130077
3-0.23389-1.79650.038764
4-0.39225-3.01290.001904
5-0.326641-2.5090.007437
6-0.29802-2.28910.012834
7-0.13825-1.06190.146299
8-0.101947-0.78310.218359
90.045470.34930.364069
100.0590110.45330.326007
110.0618180.47480.31833
120.1428191.0970.138546
13-0.09138-0.70190.24275
14-0.197226-1.51490.067566
15-0.036298-0.27880.390682
16-0.082882-0.63660.263413
170.2025541.55580.062547
18-0.044433-0.34130.367045
190.0128810.09890.460759
20-0.09181-0.70520.241728
21-0.120097-0.92250.180018
220.0774430.59490.277108
23-0.04453-0.3420.366769
24-0.020387-0.15660.43805
250.0960250.73760.231846
26-0.018333-0.14080.444247
27-0.134935-1.03650.152109
28-0.106458-0.81770.208403
290.1753751.34710.091553
30-0.037323-0.28670.387679
31-0.118982-0.91390.182239
32-0.027377-0.21030.417085
330.0525570.40370.343947
340.0427330.32820.371948
35-0.122328-0.93960.175623
360.0854040.6560.257186

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.477346 & 3.6666 & 0.000264 \tabularnewline
2 & 0.148019 & 1.137 & 0.130077 \tabularnewline
3 & -0.23389 & -1.7965 & 0.038764 \tabularnewline
4 & -0.39225 & -3.0129 & 0.001904 \tabularnewline
5 & -0.326641 & -2.509 & 0.007437 \tabularnewline
6 & -0.29802 & -2.2891 & 0.012834 \tabularnewline
7 & -0.13825 & -1.0619 & 0.146299 \tabularnewline
8 & -0.101947 & -0.7831 & 0.218359 \tabularnewline
9 & 0.04547 & 0.3493 & 0.364069 \tabularnewline
10 & 0.059011 & 0.4533 & 0.326007 \tabularnewline
11 & 0.061818 & 0.4748 & 0.31833 \tabularnewline
12 & 0.142819 & 1.097 & 0.138546 \tabularnewline
13 & -0.09138 & -0.7019 & 0.24275 \tabularnewline
14 & -0.197226 & -1.5149 & 0.067566 \tabularnewline
15 & -0.036298 & -0.2788 & 0.390682 \tabularnewline
16 & -0.082882 & -0.6366 & 0.263413 \tabularnewline
17 & 0.202554 & 1.5558 & 0.062547 \tabularnewline
18 & -0.044433 & -0.3413 & 0.367045 \tabularnewline
19 & 0.012881 & 0.0989 & 0.460759 \tabularnewline
20 & -0.09181 & -0.7052 & 0.241728 \tabularnewline
21 & -0.120097 & -0.9225 & 0.180018 \tabularnewline
22 & 0.077443 & 0.5949 & 0.277108 \tabularnewline
23 & -0.04453 & -0.342 & 0.366769 \tabularnewline
24 & -0.020387 & -0.1566 & 0.43805 \tabularnewline
25 & 0.096025 & 0.7376 & 0.231846 \tabularnewline
26 & -0.018333 & -0.1408 & 0.444247 \tabularnewline
27 & -0.134935 & -1.0365 & 0.152109 \tabularnewline
28 & -0.106458 & -0.8177 & 0.208403 \tabularnewline
29 & 0.175375 & 1.3471 & 0.091553 \tabularnewline
30 & -0.037323 & -0.2867 & 0.387679 \tabularnewline
31 & -0.118982 & -0.9139 & 0.182239 \tabularnewline
32 & -0.027377 & -0.2103 & 0.417085 \tabularnewline
33 & 0.052557 & 0.4037 & 0.343947 \tabularnewline
34 & 0.042733 & 0.3282 & 0.371948 \tabularnewline
35 & -0.122328 & -0.9396 & 0.175623 \tabularnewline
36 & 0.085404 & 0.656 & 0.257186 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66017&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.477346[/C][C]3.6666[/C][C]0.000264[/C][/ROW]
[ROW][C]2[/C][C]0.148019[/C][C]1.137[/C][C]0.130077[/C][/ROW]
[ROW][C]3[/C][C]-0.23389[/C][C]-1.7965[/C][C]0.038764[/C][/ROW]
[ROW][C]4[/C][C]-0.39225[/C][C]-3.0129[/C][C]0.001904[/C][/ROW]
[ROW][C]5[/C][C]-0.326641[/C][C]-2.509[/C][C]0.007437[/C][/ROW]
[ROW][C]6[/C][C]-0.29802[/C][C]-2.2891[/C][C]0.012834[/C][/ROW]
[ROW][C]7[/C][C]-0.13825[/C][C]-1.0619[/C][C]0.146299[/C][/ROW]
[ROW][C]8[/C][C]-0.101947[/C][C]-0.7831[/C][C]0.218359[/C][/ROW]
[ROW][C]9[/C][C]0.04547[/C][C]0.3493[/C][C]0.364069[/C][/ROW]
[ROW][C]10[/C][C]0.059011[/C][C]0.4533[/C][C]0.326007[/C][/ROW]
[ROW][C]11[/C][C]0.061818[/C][C]0.4748[/C][C]0.31833[/C][/ROW]
[ROW][C]12[/C][C]0.142819[/C][C]1.097[/C][C]0.138546[/C][/ROW]
[ROW][C]13[/C][C]-0.09138[/C][C]-0.7019[/C][C]0.24275[/C][/ROW]
[ROW][C]14[/C][C]-0.197226[/C][C]-1.5149[/C][C]0.067566[/C][/ROW]
[ROW][C]15[/C][C]-0.036298[/C][C]-0.2788[/C][C]0.390682[/C][/ROW]
[ROW][C]16[/C][C]-0.082882[/C][C]-0.6366[/C][C]0.263413[/C][/ROW]
[ROW][C]17[/C][C]0.202554[/C][C]1.5558[/C][C]0.062547[/C][/ROW]
[ROW][C]18[/C][C]-0.044433[/C][C]-0.3413[/C][C]0.367045[/C][/ROW]
[ROW][C]19[/C][C]0.012881[/C][C]0.0989[/C][C]0.460759[/C][/ROW]
[ROW][C]20[/C][C]-0.09181[/C][C]-0.7052[/C][C]0.241728[/C][/ROW]
[ROW][C]21[/C][C]-0.120097[/C][C]-0.9225[/C][C]0.180018[/C][/ROW]
[ROW][C]22[/C][C]0.077443[/C][C]0.5949[/C][C]0.277108[/C][/ROW]
[ROW][C]23[/C][C]-0.04453[/C][C]-0.342[/C][C]0.366769[/C][/ROW]
[ROW][C]24[/C][C]-0.020387[/C][C]-0.1566[/C][C]0.43805[/C][/ROW]
[ROW][C]25[/C][C]0.096025[/C][C]0.7376[/C][C]0.231846[/C][/ROW]
[ROW][C]26[/C][C]-0.018333[/C][C]-0.1408[/C][C]0.444247[/C][/ROW]
[ROW][C]27[/C][C]-0.134935[/C][C]-1.0365[/C][C]0.152109[/C][/ROW]
[ROW][C]28[/C][C]-0.106458[/C][C]-0.8177[/C][C]0.208403[/C][/ROW]
[ROW][C]29[/C][C]0.175375[/C][C]1.3471[/C][C]0.091553[/C][/ROW]
[ROW][C]30[/C][C]-0.037323[/C][C]-0.2867[/C][C]0.387679[/C][/ROW]
[ROW][C]31[/C][C]-0.118982[/C][C]-0.9139[/C][C]0.182239[/C][/ROW]
[ROW][C]32[/C][C]-0.027377[/C][C]-0.2103[/C][C]0.417085[/C][/ROW]
[ROW][C]33[/C][C]0.052557[/C][C]0.4037[/C][C]0.343947[/C][/ROW]
[ROW][C]34[/C][C]0.042733[/C][C]0.3282[/C][C]0.371948[/C][/ROW]
[ROW][C]35[/C][C]-0.122328[/C][C]-0.9396[/C][C]0.175623[/C][/ROW]
[ROW][C]36[/C][C]0.085404[/C][C]0.656[/C][C]0.257186[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66017&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66017&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.4773463.66660.000264
20.1480191.1370.130077
3-0.23389-1.79650.038764
4-0.39225-3.01290.001904
5-0.326641-2.5090.007437
6-0.29802-2.28910.012834
7-0.13825-1.06190.146299
8-0.101947-0.78310.218359
90.045470.34930.364069
100.0590110.45330.326007
110.0618180.47480.31833
120.1428191.0970.138546
13-0.09138-0.70190.24275
14-0.197226-1.51490.067566
15-0.036298-0.27880.390682
16-0.082882-0.63660.263413
170.2025541.55580.062547
18-0.044433-0.34130.367045
190.0128810.09890.460759
20-0.09181-0.70520.241728
21-0.120097-0.92250.180018
220.0774430.59490.277108
23-0.04453-0.3420.366769
24-0.020387-0.15660.43805
250.0960250.73760.231846
26-0.018333-0.14080.444247
27-0.134935-1.03650.152109
28-0.106458-0.81770.208403
290.1753751.34710.091553
30-0.037323-0.28670.387679
31-0.118982-0.91390.182239
32-0.027377-0.21030.417085
330.0525570.40370.343947
340.0427330.32820.371948
35-0.122328-0.93960.175623
360.0854040.6560.257186



Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; 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')