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 02:36:11 -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/t1260524236nd19b0eo0fum90c.htm/, Retrieved Mon, 29 Apr 2024 05:33:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=65919, Retrieved Mon, 29 Apr 2024 05:33:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact120
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [Oplossing ACF met...] [2009-12-11 09:36:11] [d1081bd6cdf1fed9ed45c42dbd523bf1] [Current]
-   P     [(Partial) Autocorrelation Function] [Oplossing ACF d=D=1] [2009-12-11 09:45:40] [4395c69e961f9a13a0559fd2f0a72538]
Feedback Forum

Post a new message
Dataseries X:
2360
2214
2825
2355
2333
3016
2155
2172
2150
2533
2058
2160
2260
2498
2695
2799
2947
2930
2318
2540
2570
2669
2450
2842
3440
2678
2981
2260
2844
2546
2456
2295
2379
2479
2057
2280
2351
2276
2548
2311
2201
2725
2408
2139
1898
2537
2069
2063
2524
2437
2189
2793
2074
2622
2278
2144
2427
2139
1828
2072
1800
1758
2246
1987
1868
2514
2121




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65919&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
1-0.531855-4.32082.7e-05
2-0.005718-0.04650.481544
30.1712281.39110.084439
4-0.062148-0.50490.307659
5-0.072195-0.58650.279766
60.009010.07320.470935
7-0.048134-0.3910.348511
80.0224010.1820.428075
90.0733180.59560.276727
10-0.073604-0.5980.275957
11-0.04353-0.35360.362368
120.1851461.50410.068659
13-0.163781-1.33060.093956
140.0378010.30710.379868
150.0919420.74690.228875
16-0.15447-1.25490.106967
170.1497971.2170.113977
18-0.124189-1.00890.15835
190.077440.62910.265721
20-0.133494-1.08450.141041
210.1678751.36380.088628
22-0.102958-0.83640.202964
23-0.059743-0.48540.314515
240.1301951.05770.147023
25-0.003166-0.02570.489779
26-0.070877-0.57580.283352
270.0885540.71940.237211
28-0.018529-0.15050.440404
29-0.027343-0.22210.412447
300.030430.24720.402754
31-0.073501-0.59710.276233
320.025460.20680.418386
330.0406680.33040.371077
340.0280920.22820.410089
35-0.172692-1.4030.082658
360.1746851.41920.08028

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.531855 & -4.3208 & 2.7e-05 \tabularnewline
2 & -0.005718 & -0.0465 & 0.481544 \tabularnewline
3 & 0.171228 & 1.3911 & 0.084439 \tabularnewline
4 & -0.062148 & -0.5049 & 0.307659 \tabularnewline
5 & -0.072195 & -0.5865 & 0.279766 \tabularnewline
6 & 0.00901 & 0.0732 & 0.470935 \tabularnewline
7 & -0.048134 & -0.391 & 0.348511 \tabularnewline
8 & 0.022401 & 0.182 & 0.428075 \tabularnewline
9 & 0.073318 & 0.5956 & 0.276727 \tabularnewline
10 & -0.073604 & -0.598 & 0.275957 \tabularnewline
11 & -0.04353 & -0.3536 & 0.362368 \tabularnewline
12 & 0.185146 & 1.5041 & 0.068659 \tabularnewline
13 & -0.163781 & -1.3306 & 0.093956 \tabularnewline
14 & 0.037801 & 0.3071 & 0.379868 \tabularnewline
15 & 0.091942 & 0.7469 & 0.228875 \tabularnewline
16 & -0.15447 & -1.2549 & 0.106967 \tabularnewline
17 & 0.149797 & 1.217 & 0.113977 \tabularnewline
18 & -0.124189 & -1.0089 & 0.15835 \tabularnewline
19 & 0.07744 & 0.6291 & 0.265721 \tabularnewline
20 & -0.133494 & -1.0845 & 0.141041 \tabularnewline
21 & 0.167875 & 1.3638 & 0.088628 \tabularnewline
22 & -0.102958 & -0.8364 & 0.202964 \tabularnewline
23 & -0.059743 & -0.4854 & 0.314515 \tabularnewline
24 & 0.130195 & 1.0577 & 0.147023 \tabularnewline
25 & -0.003166 & -0.0257 & 0.489779 \tabularnewline
26 & -0.070877 & -0.5758 & 0.283352 \tabularnewline
27 & 0.088554 & 0.7194 & 0.237211 \tabularnewline
28 & -0.018529 & -0.1505 & 0.440404 \tabularnewline
29 & -0.027343 & -0.2221 & 0.412447 \tabularnewline
30 & 0.03043 & 0.2472 & 0.402754 \tabularnewline
31 & -0.073501 & -0.5971 & 0.276233 \tabularnewline
32 & 0.02546 & 0.2068 & 0.418386 \tabularnewline
33 & 0.040668 & 0.3304 & 0.371077 \tabularnewline
34 & 0.028092 & 0.2282 & 0.410089 \tabularnewline
35 & -0.172692 & -1.403 & 0.082658 \tabularnewline
36 & 0.174685 & 1.4192 & 0.08028 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65919&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.531855[/C][C]-4.3208[/C][C]2.7e-05[/C][/ROW]
[ROW][C]2[/C][C]-0.005718[/C][C]-0.0465[/C][C]0.481544[/C][/ROW]
[ROW][C]3[/C][C]0.171228[/C][C]1.3911[/C][C]0.084439[/C][/ROW]
[ROW][C]4[/C][C]-0.062148[/C][C]-0.5049[/C][C]0.307659[/C][/ROW]
[ROW][C]5[/C][C]-0.072195[/C][C]-0.5865[/C][C]0.279766[/C][/ROW]
[ROW][C]6[/C][C]0.00901[/C][C]0.0732[/C][C]0.470935[/C][/ROW]
[ROW][C]7[/C][C]-0.048134[/C][C]-0.391[/C][C]0.348511[/C][/ROW]
[ROW][C]8[/C][C]0.022401[/C][C]0.182[/C][C]0.428075[/C][/ROW]
[ROW][C]9[/C][C]0.073318[/C][C]0.5956[/C][C]0.276727[/C][/ROW]
[ROW][C]10[/C][C]-0.073604[/C][C]-0.598[/C][C]0.275957[/C][/ROW]
[ROW][C]11[/C][C]-0.04353[/C][C]-0.3536[/C][C]0.362368[/C][/ROW]
[ROW][C]12[/C][C]0.185146[/C][C]1.5041[/C][C]0.068659[/C][/ROW]
[ROW][C]13[/C][C]-0.163781[/C][C]-1.3306[/C][C]0.093956[/C][/ROW]
[ROW][C]14[/C][C]0.037801[/C][C]0.3071[/C][C]0.379868[/C][/ROW]
[ROW][C]15[/C][C]0.091942[/C][C]0.7469[/C][C]0.228875[/C][/ROW]
[ROW][C]16[/C][C]-0.15447[/C][C]-1.2549[/C][C]0.106967[/C][/ROW]
[ROW][C]17[/C][C]0.149797[/C][C]1.217[/C][C]0.113977[/C][/ROW]
[ROW][C]18[/C][C]-0.124189[/C][C]-1.0089[/C][C]0.15835[/C][/ROW]
[ROW][C]19[/C][C]0.07744[/C][C]0.6291[/C][C]0.265721[/C][/ROW]
[ROW][C]20[/C][C]-0.133494[/C][C]-1.0845[/C][C]0.141041[/C][/ROW]
[ROW][C]21[/C][C]0.167875[/C][C]1.3638[/C][C]0.088628[/C][/ROW]
[ROW][C]22[/C][C]-0.102958[/C][C]-0.8364[/C][C]0.202964[/C][/ROW]
[ROW][C]23[/C][C]-0.059743[/C][C]-0.4854[/C][C]0.314515[/C][/ROW]
[ROW][C]24[/C][C]0.130195[/C][C]1.0577[/C][C]0.147023[/C][/ROW]
[ROW][C]25[/C][C]-0.003166[/C][C]-0.0257[/C][C]0.489779[/C][/ROW]
[ROW][C]26[/C][C]-0.070877[/C][C]-0.5758[/C][C]0.283352[/C][/ROW]
[ROW][C]27[/C][C]0.088554[/C][C]0.7194[/C][C]0.237211[/C][/ROW]
[ROW][C]28[/C][C]-0.018529[/C][C]-0.1505[/C][C]0.440404[/C][/ROW]
[ROW][C]29[/C][C]-0.027343[/C][C]-0.2221[/C][C]0.412447[/C][/ROW]
[ROW][C]30[/C][C]0.03043[/C][C]0.2472[/C][C]0.402754[/C][/ROW]
[ROW][C]31[/C][C]-0.073501[/C][C]-0.5971[/C][C]0.276233[/C][/ROW]
[ROW][C]32[/C][C]0.02546[/C][C]0.2068[/C][C]0.418386[/C][/ROW]
[ROW][C]33[/C][C]0.040668[/C][C]0.3304[/C][C]0.371077[/C][/ROW]
[ROW][C]34[/C][C]0.028092[/C][C]0.2282[/C][C]0.410089[/C][/ROW]
[ROW][C]35[/C][C]-0.172692[/C][C]-1.403[/C][C]0.082658[/C][/ROW]
[ROW][C]36[/C][C]0.174685[/C][C]1.4192[/C][C]0.08028[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65919&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65919&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
1-0.531855-4.32082.7e-05
2-0.005718-0.04650.481544
30.1712281.39110.084439
4-0.062148-0.50490.307659
5-0.072195-0.58650.279766
60.009010.07320.470935
7-0.048134-0.3910.348511
80.0224010.1820.428075
90.0733180.59560.276727
10-0.073604-0.5980.275957
11-0.04353-0.35360.362368
120.1851461.50410.068659
13-0.163781-1.33060.093956
140.0378010.30710.379868
150.0919420.74690.228875
16-0.15447-1.25490.106967
170.1497971.2170.113977
18-0.124189-1.00890.15835
190.077440.62910.265721
20-0.133494-1.08450.141041
210.1678751.36380.088628
22-0.102958-0.83640.202964
23-0.059743-0.48540.314515
240.1301951.05770.147023
25-0.003166-0.02570.489779
26-0.070877-0.57580.283352
270.0885540.71940.237211
28-0.018529-0.15050.440404
29-0.027343-0.22210.412447
300.030430.24720.402754
31-0.073501-0.59710.276233
320.025460.20680.418386
330.0406680.33040.371077
340.0280920.22820.410089
35-0.172692-1.4030.082658
360.1746851.41920.08028







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.531855-4.32082.7e-05
2-0.40242-3.26930.000857
3-0.078313-0.63620.263418
40.0446650.36290.358934
5-0.035902-0.29170.385728
6-0.139466-1.1330.130651
7-0.247358-2.00950.024286
8-0.204638-1.66250.050579
90.0150380.12220.451569
100.050590.4110.341204
11-0.125825-1.02220.155207
120.0080950.06580.473881
13-0.081934-0.66560.253982
14-0.04508-0.36620.357682
150.0884490.71860.237472
16-0.059534-0.48370.315115
170.0664270.53970.295624
18-0.092654-0.75270.227145
190.0293090.23810.406269
20-0.190824-1.55030.062931
21-0.007399-0.06010.476126
22-0.005513-0.04480.482207
23-0.134692-1.09420.138913
24-0.108396-0.88060.19086
250.0272650.22150.412692
260.0076560.06220.475296
270.0455020.36970.356409
280.0792040.64350.261078
29-0.030443-0.24730.402714
300.0300120.24380.404063
31-0.070055-0.56910.285599
320.0063260.05140.479583
330.0265310.21550.415007
340.185231.50480.068571
35-0.041368-0.33610.368941
36-0.141555-1.150.127147

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.531855 & -4.3208 & 2.7e-05 \tabularnewline
2 & -0.40242 & -3.2693 & 0.000857 \tabularnewline
3 & -0.078313 & -0.6362 & 0.263418 \tabularnewline
4 & 0.044665 & 0.3629 & 0.358934 \tabularnewline
5 & -0.035902 & -0.2917 & 0.385728 \tabularnewline
6 & -0.139466 & -1.133 & 0.130651 \tabularnewline
7 & -0.247358 & -2.0095 & 0.024286 \tabularnewline
8 & -0.204638 & -1.6625 & 0.050579 \tabularnewline
9 & 0.015038 & 0.1222 & 0.451569 \tabularnewline
10 & 0.05059 & 0.411 & 0.341204 \tabularnewline
11 & -0.125825 & -1.0222 & 0.155207 \tabularnewline
12 & 0.008095 & 0.0658 & 0.473881 \tabularnewline
13 & -0.081934 & -0.6656 & 0.253982 \tabularnewline
14 & -0.04508 & -0.3662 & 0.357682 \tabularnewline
15 & 0.088449 & 0.7186 & 0.237472 \tabularnewline
16 & -0.059534 & -0.4837 & 0.315115 \tabularnewline
17 & 0.066427 & 0.5397 & 0.295624 \tabularnewline
18 & -0.092654 & -0.7527 & 0.227145 \tabularnewline
19 & 0.029309 & 0.2381 & 0.406269 \tabularnewline
20 & -0.190824 & -1.5503 & 0.062931 \tabularnewline
21 & -0.007399 & -0.0601 & 0.476126 \tabularnewline
22 & -0.005513 & -0.0448 & 0.482207 \tabularnewline
23 & -0.134692 & -1.0942 & 0.138913 \tabularnewline
24 & -0.108396 & -0.8806 & 0.19086 \tabularnewline
25 & 0.027265 & 0.2215 & 0.412692 \tabularnewline
26 & 0.007656 & 0.0622 & 0.475296 \tabularnewline
27 & 0.045502 & 0.3697 & 0.356409 \tabularnewline
28 & 0.079204 & 0.6435 & 0.261078 \tabularnewline
29 & -0.030443 & -0.2473 & 0.402714 \tabularnewline
30 & 0.030012 & 0.2438 & 0.404063 \tabularnewline
31 & -0.070055 & -0.5691 & 0.285599 \tabularnewline
32 & 0.006326 & 0.0514 & 0.479583 \tabularnewline
33 & 0.026531 & 0.2155 & 0.415007 \tabularnewline
34 & 0.18523 & 1.5048 & 0.068571 \tabularnewline
35 & -0.041368 & -0.3361 & 0.368941 \tabularnewline
36 & -0.141555 & -1.15 & 0.127147 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65919&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.531855[/C][C]-4.3208[/C][C]2.7e-05[/C][/ROW]
[ROW][C]2[/C][C]-0.40242[/C][C]-3.2693[/C][C]0.000857[/C][/ROW]
[ROW][C]3[/C][C]-0.078313[/C][C]-0.6362[/C][C]0.263418[/C][/ROW]
[ROW][C]4[/C][C]0.044665[/C][C]0.3629[/C][C]0.358934[/C][/ROW]
[ROW][C]5[/C][C]-0.035902[/C][C]-0.2917[/C][C]0.385728[/C][/ROW]
[ROW][C]6[/C][C]-0.139466[/C][C]-1.133[/C][C]0.130651[/C][/ROW]
[ROW][C]7[/C][C]-0.247358[/C][C]-2.0095[/C][C]0.024286[/C][/ROW]
[ROW][C]8[/C][C]-0.204638[/C][C]-1.6625[/C][C]0.050579[/C][/ROW]
[ROW][C]9[/C][C]0.015038[/C][C]0.1222[/C][C]0.451569[/C][/ROW]
[ROW][C]10[/C][C]0.05059[/C][C]0.411[/C][C]0.341204[/C][/ROW]
[ROW][C]11[/C][C]-0.125825[/C][C]-1.0222[/C][C]0.155207[/C][/ROW]
[ROW][C]12[/C][C]0.008095[/C][C]0.0658[/C][C]0.473881[/C][/ROW]
[ROW][C]13[/C][C]-0.081934[/C][C]-0.6656[/C][C]0.253982[/C][/ROW]
[ROW][C]14[/C][C]-0.04508[/C][C]-0.3662[/C][C]0.357682[/C][/ROW]
[ROW][C]15[/C][C]0.088449[/C][C]0.7186[/C][C]0.237472[/C][/ROW]
[ROW][C]16[/C][C]-0.059534[/C][C]-0.4837[/C][C]0.315115[/C][/ROW]
[ROW][C]17[/C][C]0.066427[/C][C]0.5397[/C][C]0.295624[/C][/ROW]
[ROW][C]18[/C][C]-0.092654[/C][C]-0.7527[/C][C]0.227145[/C][/ROW]
[ROW][C]19[/C][C]0.029309[/C][C]0.2381[/C][C]0.406269[/C][/ROW]
[ROW][C]20[/C][C]-0.190824[/C][C]-1.5503[/C][C]0.062931[/C][/ROW]
[ROW][C]21[/C][C]-0.007399[/C][C]-0.0601[/C][C]0.476126[/C][/ROW]
[ROW][C]22[/C][C]-0.005513[/C][C]-0.0448[/C][C]0.482207[/C][/ROW]
[ROW][C]23[/C][C]-0.134692[/C][C]-1.0942[/C][C]0.138913[/C][/ROW]
[ROW][C]24[/C][C]-0.108396[/C][C]-0.8806[/C][C]0.19086[/C][/ROW]
[ROW][C]25[/C][C]0.027265[/C][C]0.2215[/C][C]0.412692[/C][/ROW]
[ROW][C]26[/C][C]0.007656[/C][C]0.0622[/C][C]0.475296[/C][/ROW]
[ROW][C]27[/C][C]0.045502[/C][C]0.3697[/C][C]0.356409[/C][/ROW]
[ROW][C]28[/C][C]0.079204[/C][C]0.6435[/C][C]0.261078[/C][/ROW]
[ROW][C]29[/C][C]-0.030443[/C][C]-0.2473[/C][C]0.402714[/C][/ROW]
[ROW][C]30[/C][C]0.030012[/C][C]0.2438[/C][C]0.404063[/C][/ROW]
[ROW][C]31[/C][C]-0.070055[/C][C]-0.5691[/C][C]0.285599[/C][/ROW]
[ROW][C]32[/C][C]0.006326[/C][C]0.0514[/C][C]0.479583[/C][/ROW]
[ROW][C]33[/C][C]0.026531[/C][C]0.2155[/C][C]0.415007[/C][/ROW]
[ROW][C]34[/C][C]0.18523[/C][C]1.5048[/C][C]0.068571[/C][/ROW]
[ROW][C]35[/C][C]-0.041368[/C][C]-0.3361[/C][C]0.368941[/C][/ROW]
[ROW][C]36[/C][C]-0.141555[/C][C]-1.15[/C][C]0.127147[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65919&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65919&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
1-0.531855-4.32082.7e-05
2-0.40242-3.26930.000857
3-0.078313-0.63620.263418
40.0446650.36290.358934
5-0.035902-0.29170.385728
6-0.139466-1.1330.130651
7-0.247358-2.00950.024286
8-0.204638-1.66250.050579
90.0150380.12220.451569
100.050590.4110.341204
11-0.125825-1.02220.155207
120.0080950.06580.473881
13-0.081934-0.66560.253982
14-0.04508-0.36620.357682
150.0884490.71860.237472
16-0.059534-0.48370.315115
170.0664270.53970.295624
18-0.092654-0.75270.227145
190.0293090.23810.406269
20-0.190824-1.55030.062931
21-0.007399-0.06010.476126
22-0.005513-0.04480.482207
23-0.134692-1.09420.138913
24-0.108396-0.88060.19086
250.0272650.22150.412692
260.0076560.06220.475296
270.0455020.36970.356409
280.0792040.64350.261078
29-0.030443-0.24730.402714
300.0300120.24380.404063
31-0.070055-0.56910.285599
320.0063260.05140.479583
330.0265310.21550.415007
340.185231.50480.068571
35-0.041368-0.33610.368941
36-0.141555-1.150.127147



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