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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact147
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] [ARIMA-model 3] [2009-12-04 07:03:19] [befe6dd6a614b6d3a2a74a47a0a4f514] [Current]
Feedback Forum

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




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63168&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.8938696.92390
20.7329715.67760
30.6130064.74837e-06
40.5562784.30893.1e-05
50.5534994.28743.3e-05
60.5358084.15035.3e-05
70.4675713.62180.000302
80.3898273.01960.001857
90.3646772.82480.003207
100.3880473.00580.001932
110.445953.45430.000509
120.4552583.52640.000407
130.3207012.48410.007898
140.1592121.23320.111146
150.0419610.3250.373144
16-0.012989-0.10060.460097
17-0.023307-0.18050.42867
18-0.051439-0.39840.345858
19-0.12201-0.94510.174203
20-0.18994-1.47130.073222
21-0.209549-1.62320.0549
22-0.189432-1.46730.073754
23-0.149666-1.15930.125463
24-0.14249-1.10370.13706
25-0.231231-1.79110.03916
26-0.334464-2.59070.006003
27-0.392365-3.03920.001755
28-0.389756-3.0190.00186
29-0.358897-2.780.003625
30-0.340477-2.63730.005313
31-0.355184-2.75120.003919
32-0.370151-2.86720.002853
33-0.352397-2.72970.004154
34-0.311642-2.4140.009424
35-0.256807-1.98920.025621
36-0.221796-1.7180.045474

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.893869 & 6.9239 & 0 \tabularnewline
2 & 0.732971 & 5.6776 & 0 \tabularnewline
3 & 0.613006 & 4.7483 & 7e-06 \tabularnewline
4 & 0.556278 & 4.3089 & 3.1e-05 \tabularnewline
5 & 0.553499 & 4.2874 & 3.3e-05 \tabularnewline
6 & 0.535808 & 4.1503 & 5.3e-05 \tabularnewline
7 & 0.467571 & 3.6218 & 0.000302 \tabularnewline
8 & 0.389827 & 3.0196 & 0.001857 \tabularnewline
9 & 0.364677 & 2.8248 & 0.003207 \tabularnewline
10 & 0.388047 & 3.0058 & 0.001932 \tabularnewline
11 & 0.44595 & 3.4543 & 0.000509 \tabularnewline
12 & 0.455258 & 3.5264 & 0.000407 \tabularnewline
13 & 0.320701 & 2.4841 & 0.007898 \tabularnewline
14 & 0.159212 & 1.2332 & 0.111146 \tabularnewline
15 & 0.041961 & 0.325 & 0.373144 \tabularnewline
16 & -0.012989 & -0.1006 & 0.460097 \tabularnewline
17 & -0.023307 & -0.1805 & 0.42867 \tabularnewline
18 & -0.051439 & -0.3984 & 0.345858 \tabularnewline
19 & -0.12201 & -0.9451 & 0.174203 \tabularnewline
20 & -0.18994 & -1.4713 & 0.073222 \tabularnewline
21 & -0.209549 & -1.6232 & 0.0549 \tabularnewline
22 & -0.189432 & -1.4673 & 0.073754 \tabularnewline
23 & -0.149666 & -1.1593 & 0.125463 \tabularnewline
24 & -0.14249 & -1.1037 & 0.13706 \tabularnewline
25 & -0.231231 & -1.7911 & 0.03916 \tabularnewline
26 & -0.334464 & -2.5907 & 0.006003 \tabularnewline
27 & -0.392365 & -3.0392 & 0.001755 \tabularnewline
28 & -0.389756 & -3.019 & 0.00186 \tabularnewline
29 & -0.358897 & -2.78 & 0.003625 \tabularnewline
30 & -0.340477 & -2.6373 & 0.005313 \tabularnewline
31 & -0.355184 & -2.7512 & 0.003919 \tabularnewline
32 & -0.370151 & -2.8672 & 0.002853 \tabularnewline
33 & -0.352397 & -2.7297 & 0.004154 \tabularnewline
34 & -0.311642 & -2.414 & 0.009424 \tabularnewline
35 & -0.256807 & -1.9892 & 0.025621 \tabularnewline
36 & -0.221796 & -1.718 & 0.045474 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63168&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.893869[/C][C]6.9239[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.732971[/C][C]5.6776[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.613006[/C][C]4.7483[/C][C]7e-06[/C][/ROW]
[ROW][C]4[/C][C]0.556278[/C][C]4.3089[/C][C]3.1e-05[/C][/ROW]
[ROW][C]5[/C][C]0.553499[/C][C]4.2874[/C][C]3.3e-05[/C][/ROW]
[ROW][C]6[/C][C]0.535808[/C][C]4.1503[/C][C]5.3e-05[/C][/ROW]
[ROW][C]7[/C][C]0.467571[/C][C]3.6218[/C][C]0.000302[/C][/ROW]
[ROW][C]8[/C][C]0.389827[/C][C]3.0196[/C][C]0.001857[/C][/ROW]
[ROW][C]9[/C][C]0.364677[/C][C]2.8248[/C][C]0.003207[/C][/ROW]
[ROW][C]10[/C][C]0.388047[/C][C]3.0058[/C][C]0.001932[/C][/ROW]
[ROW][C]11[/C][C]0.44595[/C][C]3.4543[/C][C]0.000509[/C][/ROW]
[ROW][C]12[/C][C]0.455258[/C][C]3.5264[/C][C]0.000407[/C][/ROW]
[ROW][C]13[/C][C]0.320701[/C][C]2.4841[/C][C]0.007898[/C][/ROW]
[ROW][C]14[/C][C]0.159212[/C][C]1.2332[/C][C]0.111146[/C][/ROW]
[ROW][C]15[/C][C]0.041961[/C][C]0.325[/C][C]0.373144[/C][/ROW]
[ROW][C]16[/C][C]-0.012989[/C][C]-0.1006[/C][C]0.460097[/C][/ROW]
[ROW][C]17[/C][C]-0.023307[/C][C]-0.1805[/C][C]0.42867[/C][/ROW]
[ROW][C]18[/C][C]-0.051439[/C][C]-0.3984[/C][C]0.345858[/C][/ROW]
[ROW][C]19[/C][C]-0.12201[/C][C]-0.9451[/C][C]0.174203[/C][/ROW]
[ROW][C]20[/C][C]-0.18994[/C][C]-1.4713[/C][C]0.073222[/C][/ROW]
[ROW][C]21[/C][C]-0.209549[/C][C]-1.6232[/C][C]0.0549[/C][/ROW]
[ROW][C]22[/C][C]-0.189432[/C][C]-1.4673[/C][C]0.073754[/C][/ROW]
[ROW][C]23[/C][C]-0.149666[/C][C]-1.1593[/C][C]0.125463[/C][/ROW]
[ROW][C]24[/C][C]-0.14249[/C][C]-1.1037[/C][C]0.13706[/C][/ROW]
[ROW][C]25[/C][C]-0.231231[/C][C]-1.7911[/C][C]0.03916[/C][/ROW]
[ROW][C]26[/C][C]-0.334464[/C][C]-2.5907[/C][C]0.006003[/C][/ROW]
[ROW][C]27[/C][C]-0.392365[/C][C]-3.0392[/C][C]0.001755[/C][/ROW]
[ROW][C]28[/C][C]-0.389756[/C][C]-3.019[/C][C]0.00186[/C][/ROW]
[ROW][C]29[/C][C]-0.358897[/C][C]-2.78[/C][C]0.003625[/C][/ROW]
[ROW][C]30[/C][C]-0.340477[/C][C]-2.6373[/C][C]0.005313[/C][/ROW]
[ROW][C]31[/C][C]-0.355184[/C][C]-2.7512[/C][C]0.003919[/C][/ROW]
[ROW][C]32[/C][C]-0.370151[/C][C]-2.8672[/C][C]0.002853[/C][/ROW]
[ROW][C]33[/C][C]-0.352397[/C][C]-2.7297[/C][C]0.004154[/C][/ROW]
[ROW][C]34[/C][C]-0.311642[/C][C]-2.414[/C][C]0.009424[/C][/ROW]
[ROW][C]35[/C][C]-0.256807[/C][C]-1.9892[/C][C]0.025621[/C][/ROW]
[ROW][C]36[/C][C]-0.221796[/C][C]-1.718[/C][C]0.045474[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63168&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63168&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.8938696.92390
20.7329715.67760
30.6130064.74837e-06
40.5562784.30893.1e-05
50.5534994.28743.3e-05
60.5358084.15035.3e-05
70.4675713.62180.000302
80.3898273.01960.001857
90.3646772.82480.003207
100.3880473.00580.001932
110.445953.45430.000509
120.4552583.52640.000407
130.3207012.48410.007898
140.1592121.23320.111146
150.0419610.3250.373144
16-0.012989-0.10060.460097
17-0.023307-0.18050.42867
18-0.051439-0.39840.345858
19-0.12201-0.94510.174203
20-0.18994-1.47130.073222
21-0.209549-1.62320.0549
22-0.189432-1.46730.073754
23-0.149666-1.15930.125463
24-0.14249-1.10370.13706
25-0.231231-1.79110.03916
26-0.334464-2.59070.006003
27-0.392365-3.03920.001755
28-0.389756-3.0190.00186
29-0.358897-2.780.003625
30-0.340477-2.63730.005313
31-0.355184-2.75120.003919
32-0.370151-2.86720.002853
33-0.352397-2.72970.004154
34-0.311642-2.4140.009424
35-0.256807-1.98920.025621
36-0.221796-1.7180.045474







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8938696.92390
2-0.328512-2.54460.006765
30.2021041.56550.061364
40.1376511.06620.145293
50.1619011.25410.107339
6-0.133747-1.0360.152181
7-0.114253-0.8850.189844
80.0703450.54490.293925
90.2127311.64780.05231
100.0363680.28170.38957
110.1615541.25140.107825
12-0.20556-1.59230.058291
13-0.576578-4.46621.8e-05
140.1313771.01760.156466
15-0.07218-0.55910.289086
16-0.048535-0.37590.354141
17-0.04899-0.37950.352838
18-0.030241-0.23420.407797
190.0028990.02250.49108
200.0124550.09650.461733
21-0.042322-0.32780.372092
22-0.006077-0.04710.481305
23-0.095086-0.73650.232139
240.1250160.96840.168373
25-0.069859-0.54110.295213
26-0.05031-0.38970.34907
270.0508910.39420.347416
280.052440.40620.343021
29-0.092805-0.71890.237508
300.131551.0190.156151
31-0.024443-0.18930.425234
32-0.026805-0.20760.41811
33-0.070994-0.54990.29221
34-0.005147-0.03990.484166
350.0537770.41660.339246
36-0.006188-0.04790.480965

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.893869 & 6.9239 & 0 \tabularnewline
2 & -0.328512 & -2.5446 & 0.006765 \tabularnewline
3 & 0.202104 & 1.5655 & 0.061364 \tabularnewline
4 & 0.137651 & 1.0662 & 0.145293 \tabularnewline
5 & 0.161901 & 1.2541 & 0.107339 \tabularnewline
6 & -0.133747 & -1.036 & 0.152181 \tabularnewline
7 & -0.114253 & -0.885 & 0.189844 \tabularnewline
8 & 0.070345 & 0.5449 & 0.293925 \tabularnewline
9 & 0.212731 & 1.6478 & 0.05231 \tabularnewline
10 & 0.036368 & 0.2817 & 0.38957 \tabularnewline
11 & 0.161554 & 1.2514 & 0.107825 \tabularnewline
12 & -0.20556 & -1.5923 & 0.058291 \tabularnewline
13 & -0.576578 & -4.4662 & 1.8e-05 \tabularnewline
14 & 0.131377 & 1.0176 & 0.156466 \tabularnewline
15 & -0.07218 & -0.5591 & 0.289086 \tabularnewline
16 & -0.048535 & -0.3759 & 0.354141 \tabularnewline
17 & -0.04899 & -0.3795 & 0.352838 \tabularnewline
18 & -0.030241 & -0.2342 & 0.407797 \tabularnewline
19 & 0.002899 & 0.0225 & 0.49108 \tabularnewline
20 & 0.012455 & 0.0965 & 0.461733 \tabularnewline
21 & -0.042322 & -0.3278 & 0.372092 \tabularnewline
22 & -0.006077 & -0.0471 & 0.481305 \tabularnewline
23 & -0.095086 & -0.7365 & 0.232139 \tabularnewline
24 & 0.125016 & 0.9684 & 0.168373 \tabularnewline
25 & -0.069859 & -0.5411 & 0.295213 \tabularnewline
26 & -0.05031 & -0.3897 & 0.34907 \tabularnewline
27 & 0.050891 & 0.3942 & 0.347416 \tabularnewline
28 & 0.05244 & 0.4062 & 0.343021 \tabularnewline
29 & -0.092805 & -0.7189 & 0.237508 \tabularnewline
30 & 0.13155 & 1.019 & 0.156151 \tabularnewline
31 & -0.024443 & -0.1893 & 0.425234 \tabularnewline
32 & -0.026805 & -0.2076 & 0.41811 \tabularnewline
33 & -0.070994 & -0.5499 & 0.29221 \tabularnewline
34 & -0.005147 & -0.0399 & 0.484166 \tabularnewline
35 & 0.053777 & 0.4166 & 0.339246 \tabularnewline
36 & -0.006188 & -0.0479 & 0.480965 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63168&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.893869[/C][C]6.9239[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.328512[/C][C]-2.5446[/C][C]0.006765[/C][/ROW]
[ROW][C]3[/C][C]0.202104[/C][C]1.5655[/C][C]0.061364[/C][/ROW]
[ROW][C]4[/C][C]0.137651[/C][C]1.0662[/C][C]0.145293[/C][/ROW]
[ROW][C]5[/C][C]0.161901[/C][C]1.2541[/C][C]0.107339[/C][/ROW]
[ROW][C]6[/C][C]-0.133747[/C][C]-1.036[/C][C]0.152181[/C][/ROW]
[ROW][C]7[/C][C]-0.114253[/C][C]-0.885[/C][C]0.189844[/C][/ROW]
[ROW][C]8[/C][C]0.070345[/C][C]0.5449[/C][C]0.293925[/C][/ROW]
[ROW][C]9[/C][C]0.212731[/C][C]1.6478[/C][C]0.05231[/C][/ROW]
[ROW][C]10[/C][C]0.036368[/C][C]0.2817[/C][C]0.38957[/C][/ROW]
[ROW][C]11[/C][C]0.161554[/C][C]1.2514[/C][C]0.107825[/C][/ROW]
[ROW][C]12[/C][C]-0.20556[/C][C]-1.5923[/C][C]0.058291[/C][/ROW]
[ROW][C]13[/C][C]-0.576578[/C][C]-4.4662[/C][C]1.8e-05[/C][/ROW]
[ROW][C]14[/C][C]0.131377[/C][C]1.0176[/C][C]0.156466[/C][/ROW]
[ROW][C]15[/C][C]-0.07218[/C][C]-0.5591[/C][C]0.289086[/C][/ROW]
[ROW][C]16[/C][C]-0.048535[/C][C]-0.3759[/C][C]0.354141[/C][/ROW]
[ROW][C]17[/C][C]-0.04899[/C][C]-0.3795[/C][C]0.352838[/C][/ROW]
[ROW][C]18[/C][C]-0.030241[/C][C]-0.2342[/C][C]0.407797[/C][/ROW]
[ROW][C]19[/C][C]0.002899[/C][C]0.0225[/C][C]0.49108[/C][/ROW]
[ROW][C]20[/C][C]0.012455[/C][C]0.0965[/C][C]0.461733[/C][/ROW]
[ROW][C]21[/C][C]-0.042322[/C][C]-0.3278[/C][C]0.372092[/C][/ROW]
[ROW][C]22[/C][C]-0.006077[/C][C]-0.0471[/C][C]0.481305[/C][/ROW]
[ROW][C]23[/C][C]-0.095086[/C][C]-0.7365[/C][C]0.232139[/C][/ROW]
[ROW][C]24[/C][C]0.125016[/C][C]0.9684[/C][C]0.168373[/C][/ROW]
[ROW][C]25[/C][C]-0.069859[/C][C]-0.5411[/C][C]0.295213[/C][/ROW]
[ROW][C]26[/C][C]-0.05031[/C][C]-0.3897[/C][C]0.34907[/C][/ROW]
[ROW][C]27[/C][C]0.050891[/C][C]0.3942[/C][C]0.347416[/C][/ROW]
[ROW][C]28[/C][C]0.05244[/C][C]0.4062[/C][C]0.343021[/C][/ROW]
[ROW][C]29[/C][C]-0.092805[/C][C]-0.7189[/C][C]0.237508[/C][/ROW]
[ROW][C]30[/C][C]0.13155[/C][C]1.019[/C][C]0.156151[/C][/ROW]
[ROW][C]31[/C][C]-0.024443[/C][C]-0.1893[/C][C]0.425234[/C][/ROW]
[ROW][C]32[/C][C]-0.026805[/C][C]-0.2076[/C][C]0.41811[/C][/ROW]
[ROW][C]33[/C][C]-0.070994[/C][C]-0.5499[/C][C]0.29221[/C][/ROW]
[ROW][C]34[/C][C]-0.005147[/C][C]-0.0399[/C][C]0.484166[/C][/ROW]
[ROW][C]35[/C][C]0.053777[/C][C]0.4166[/C][C]0.339246[/C][/ROW]
[ROW][C]36[/C][C]-0.006188[/C][C]-0.0479[/C][C]0.480965[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63168&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63168&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.8938696.92390
2-0.328512-2.54460.006765
30.2021041.56550.061364
40.1376511.06620.145293
50.1619011.25410.107339
6-0.133747-1.0360.152181
7-0.114253-0.8850.189844
80.0703450.54490.293925
90.2127311.64780.05231
100.0363680.28170.38957
110.1615541.25140.107825
12-0.20556-1.59230.058291
13-0.576578-4.46621.8e-05
140.1313771.01760.156466
15-0.07218-0.55910.289086
16-0.048535-0.37590.354141
17-0.04899-0.37950.352838
18-0.030241-0.23420.407797
190.0028990.02250.49108
200.0124550.09650.461733
21-0.042322-0.32780.372092
22-0.006077-0.04710.481305
23-0.095086-0.73650.232139
240.1250160.96840.168373
25-0.069859-0.54110.295213
26-0.05031-0.38970.34907
270.0508910.39420.347416
280.052440.40620.343021
29-0.092805-0.71890.237508
300.131551.0190.156151
31-0.024443-0.18930.425234
32-0.026805-0.20760.41811
33-0.070994-0.54990.29221
34-0.005147-0.03990.484166
350.0537770.41660.339246
36-0.006188-0.04790.480965



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