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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact107
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:48:46] [b98453cac15ba1066b407e146608df68]
-    D      [(Partial) Autocorrelation Function] [] [2009-12-04 13:55:13] [d1856923bab8a0db5ebd860815c7444f] [Current]
Feedback Forum

Post a new message
Dataseries X:
3.2
1.9
0
0.6
0.2
0.9
2.4
4.7
9.4
12.5
15.8
18.2
16.8
17.3
19.3
17.9
20.2
18.7
20.1
18.2
18.4
18.2
18.9
19.9
21.3
20
19.5
19.6
20.9
21
19.9
19.6
20.9
21.7
22.9
21.5
21.3
23.5
21.6
24.5
22.2
23.5
20.9
20.7
18.1
17.1
14.8
13.8
15.2
16
17.6
15
15
16.3
19.4
21.3
20.5
21.1
21.6
22.6




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63525&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
1-0.0278-0.19060.424836
20.4098692.80990.0036
3-0.116406-0.7980.214432
40.1333450.91420.182647
50.062130.42590.336048
6-0.026953-0.18480.427099
7-0.099685-0.68340.248853
8-0.11058-0.75810.226088
9-0.062863-0.4310.334233
10-0.075163-0.51530.304383
110.0217820.14930.440967
12-0.328145-2.24970.014597
130.0141960.09730.461442
14-0.214759-1.47230.073801
150.0950090.65130.258997
16-0.003173-0.02180.491368
170.007980.05470.4783
18-0.017158-0.11760.45343
190.0232390.15930.437049
20-0.04516-0.30960.379116
210.1945551.33380.094348
22-0.129044-0.88470.190415
230.2481311.70110.047766
24-0.027215-0.18660.426399
250.2380061.63170.054714
260.0615670.42210.337446
270.027460.18830.425742
28-0.076434-0.5240.301369
29-0.026092-0.17890.4294
30-0.029992-0.20560.418989
31-0.046289-0.31730.376196
32-0.055878-0.38310.351693
33-0.195443-1.33990.093361
34-0.011043-0.07570.469986
35-0.22661-1.55360.063499
36-0.013158-0.09020.464253

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.0278 & -0.1906 & 0.424836 \tabularnewline
2 & 0.409869 & 2.8099 & 0.0036 \tabularnewline
3 & -0.116406 & -0.798 & 0.214432 \tabularnewline
4 & 0.133345 & 0.9142 & 0.182647 \tabularnewline
5 & 0.06213 & 0.4259 & 0.336048 \tabularnewline
6 & -0.026953 & -0.1848 & 0.427099 \tabularnewline
7 & -0.099685 & -0.6834 & 0.248853 \tabularnewline
8 & -0.11058 & -0.7581 & 0.226088 \tabularnewline
9 & -0.062863 & -0.431 & 0.334233 \tabularnewline
10 & -0.075163 & -0.5153 & 0.304383 \tabularnewline
11 & 0.021782 & 0.1493 & 0.440967 \tabularnewline
12 & -0.328145 & -2.2497 & 0.014597 \tabularnewline
13 & 0.014196 & 0.0973 & 0.461442 \tabularnewline
14 & -0.214759 & -1.4723 & 0.073801 \tabularnewline
15 & 0.095009 & 0.6513 & 0.258997 \tabularnewline
16 & -0.003173 & -0.0218 & 0.491368 \tabularnewline
17 & 0.00798 & 0.0547 & 0.4783 \tabularnewline
18 & -0.017158 & -0.1176 & 0.45343 \tabularnewline
19 & 0.023239 & 0.1593 & 0.437049 \tabularnewline
20 & -0.04516 & -0.3096 & 0.379116 \tabularnewline
21 & 0.194555 & 1.3338 & 0.094348 \tabularnewline
22 & -0.129044 & -0.8847 & 0.190415 \tabularnewline
23 & 0.248131 & 1.7011 & 0.047766 \tabularnewline
24 & -0.027215 & -0.1866 & 0.426399 \tabularnewline
25 & 0.238006 & 1.6317 & 0.054714 \tabularnewline
26 & 0.061567 & 0.4221 & 0.337446 \tabularnewline
27 & 0.02746 & 0.1883 & 0.425742 \tabularnewline
28 & -0.076434 & -0.524 & 0.301369 \tabularnewline
29 & -0.026092 & -0.1789 & 0.4294 \tabularnewline
30 & -0.029992 & -0.2056 & 0.418989 \tabularnewline
31 & -0.046289 & -0.3173 & 0.376196 \tabularnewline
32 & -0.055878 & -0.3831 & 0.351693 \tabularnewline
33 & -0.195443 & -1.3399 & 0.093361 \tabularnewline
34 & -0.011043 & -0.0757 & 0.469986 \tabularnewline
35 & -0.22661 & -1.5536 & 0.063499 \tabularnewline
36 & -0.013158 & -0.0902 & 0.464253 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63525&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.0278[/C][C]-0.1906[/C][C]0.424836[/C][/ROW]
[ROW][C]2[/C][C]0.409869[/C][C]2.8099[/C][C]0.0036[/C][/ROW]
[ROW][C]3[/C][C]-0.116406[/C][C]-0.798[/C][C]0.214432[/C][/ROW]
[ROW][C]4[/C][C]0.133345[/C][C]0.9142[/C][C]0.182647[/C][/ROW]
[ROW][C]5[/C][C]0.06213[/C][C]0.4259[/C][C]0.336048[/C][/ROW]
[ROW][C]6[/C][C]-0.026953[/C][C]-0.1848[/C][C]0.427099[/C][/ROW]
[ROW][C]7[/C][C]-0.099685[/C][C]-0.6834[/C][C]0.248853[/C][/ROW]
[ROW][C]8[/C][C]-0.11058[/C][C]-0.7581[/C][C]0.226088[/C][/ROW]
[ROW][C]9[/C][C]-0.062863[/C][C]-0.431[/C][C]0.334233[/C][/ROW]
[ROW][C]10[/C][C]-0.075163[/C][C]-0.5153[/C][C]0.304383[/C][/ROW]
[ROW][C]11[/C][C]0.021782[/C][C]0.1493[/C][C]0.440967[/C][/ROW]
[ROW][C]12[/C][C]-0.328145[/C][C]-2.2497[/C][C]0.014597[/C][/ROW]
[ROW][C]13[/C][C]0.014196[/C][C]0.0973[/C][C]0.461442[/C][/ROW]
[ROW][C]14[/C][C]-0.214759[/C][C]-1.4723[/C][C]0.073801[/C][/ROW]
[ROW][C]15[/C][C]0.095009[/C][C]0.6513[/C][C]0.258997[/C][/ROW]
[ROW][C]16[/C][C]-0.003173[/C][C]-0.0218[/C][C]0.491368[/C][/ROW]
[ROW][C]17[/C][C]0.00798[/C][C]0.0547[/C][C]0.4783[/C][/ROW]
[ROW][C]18[/C][C]-0.017158[/C][C]-0.1176[/C][C]0.45343[/C][/ROW]
[ROW][C]19[/C][C]0.023239[/C][C]0.1593[/C][C]0.437049[/C][/ROW]
[ROW][C]20[/C][C]-0.04516[/C][C]-0.3096[/C][C]0.379116[/C][/ROW]
[ROW][C]21[/C][C]0.194555[/C][C]1.3338[/C][C]0.094348[/C][/ROW]
[ROW][C]22[/C][C]-0.129044[/C][C]-0.8847[/C][C]0.190415[/C][/ROW]
[ROW][C]23[/C][C]0.248131[/C][C]1.7011[/C][C]0.047766[/C][/ROW]
[ROW][C]24[/C][C]-0.027215[/C][C]-0.1866[/C][C]0.426399[/C][/ROW]
[ROW][C]25[/C][C]0.238006[/C][C]1.6317[/C][C]0.054714[/C][/ROW]
[ROW][C]26[/C][C]0.061567[/C][C]0.4221[/C][C]0.337446[/C][/ROW]
[ROW][C]27[/C][C]0.02746[/C][C]0.1883[/C][C]0.425742[/C][/ROW]
[ROW][C]28[/C][C]-0.076434[/C][C]-0.524[/C][C]0.301369[/C][/ROW]
[ROW][C]29[/C][C]-0.026092[/C][C]-0.1789[/C][C]0.4294[/C][/ROW]
[ROW][C]30[/C][C]-0.029992[/C][C]-0.2056[/C][C]0.418989[/C][/ROW]
[ROW][C]31[/C][C]-0.046289[/C][C]-0.3173[/C][C]0.376196[/C][/ROW]
[ROW][C]32[/C][C]-0.055878[/C][C]-0.3831[/C][C]0.351693[/C][/ROW]
[ROW][C]33[/C][C]-0.195443[/C][C]-1.3399[/C][C]0.093361[/C][/ROW]
[ROW][C]34[/C][C]-0.011043[/C][C]-0.0757[/C][C]0.469986[/C][/ROW]
[ROW][C]35[/C][C]-0.22661[/C][C]-1.5536[/C][C]0.063499[/C][/ROW]
[ROW][C]36[/C][C]-0.013158[/C][C]-0.0902[/C][C]0.464253[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63525&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63525&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.0278-0.19060.424836
20.4098692.80990.0036
3-0.116406-0.7980.214432
40.1333450.91420.182647
50.062130.42590.336048
6-0.026953-0.18480.427099
7-0.099685-0.68340.248853
8-0.11058-0.75810.226088
9-0.062863-0.4310.334233
10-0.075163-0.51530.304383
110.0217820.14930.440967
12-0.328145-2.24970.014597
130.0141960.09730.461442
14-0.214759-1.47230.073801
150.0950090.65130.258997
16-0.003173-0.02180.491368
170.007980.05470.4783
18-0.017158-0.11760.45343
190.0232390.15930.437049
20-0.04516-0.30960.379116
210.1945551.33380.094348
22-0.129044-0.88470.190415
230.2481311.70110.047766
24-0.027215-0.18660.426399
250.2380061.63170.054714
260.0615670.42210.337446
270.027460.18830.425742
28-0.076434-0.5240.301369
29-0.026092-0.17890.4294
30-0.029992-0.20560.418989
31-0.046289-0.31730.376196
32-0.055878-0.38310.351693
33-0.195443-1.33990.093361
34-0.011043-0.07570.469986
35-0.22661-1.55360.063499
36-0.013158-0.09020.464253







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.0278-0.19060.424836
20.4094122.80680.00363
3-0.11818-0.81020.210954
4-0.040517-0.27780.391203
50.1888681.29480.100855
6-0.110899-0.76030.22544
7-0.228294-1.56510.062134
8-0.009114-0.06250.475221
90.0393080.26950.394369
10-0.097298-0.6670.254004
110.077890.5340.297935
12-0.316956-2.17290.01743
13-0.028983-0.19870.421677
140.0918030.62940.266077
15-0.042984-0.29470.384766
160.0934160.64040.262501
170.0529490.3630.359116
18-0.146255-1.00270.160576
190.0089150.06110.475762
20-0.092246-0.63240.265093
210.1557981.06810.145465
22-0.084035-0.57610.283644
230.2187481.49970.070195
240.0180520.12380.451017
250.0614190.42110.337813
260.0118460.08120.46781
27-0.114779-0.78690.21765
28-0.11829-0.8110.21074
290.0791030.54230.295086
300.0282780.19390.423558
31-0.080471-0.55170.291891
32-0.044664-0.30620.380402
33-0.026538-0.18190.428209
34-0.171447-1.17540.122881
350.0125170.08580.465991
36-0.083118-0.56980.285754

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.0278 & -0.1906 & 0.424836 \tabularnewline
2 & 0.409412 & 2.8068 & 0.00363 \tabularnewline
3 & -0.11818 & -0.8102 & 0.210954 \tabularnewline
4 & -0.040517 & -0.2778 & 0.391203 \tabularnewline
5 & 0.188868 & 1.2948 & 0.100855 \tabularnewline
6 & -0.110899 & -0.7603 & 0.22544 \tabularnewline
7 & -0.228294 & -1.5651 & 0.062134 \tabularnewline
8 & -0.009114 & -0.0625 & 0.475221 \tabularnewline
9 & 0.039308 & 0.2695 & 0.394369 \tabularnewline
10 & -0.097298 & -0.667 & 0.254004 \tabularnewline
11 & 0.07789 & 0.534 & 0.297935 \tabularnewline
12 & -0.316956 & -2.1729 & 0.01743 \tabularnewline
13 & -0.028983 & -0.1987 & 0.421677 \tabularnewline
14 & 0.091803 & 0.6294 & 0.266077 \tabularnewline
15 & -0.042984 & -0.2947 & 0.384766 \tabularnewline
16 & 0.093416 & 0.6404 & 0.262501 \tabularnewline
17 & 0.052949 & 0.363 & 0.359116 \tabularnewline
18 & -0.146255 & -1.0027 & 0.160576 \tabularnewline
19 & 0.008915 & 0.0611 & 0.475762 \tabularnewline
20 & -0.092246 & -0.6324 & 0.265093 \tabularnewline
21 & 0.155798 & 1.0681 & 0.145465 \tabularnewline
22 & -0.084035 & -0.5761 & 0.283644 \tabularnewline
23 & 0.218748 & 1.4997 & 0.070195 \tabularnewline
24 & 0.018052 & 0.1238 & 0.451017 \tabularnewline
25 & 0.061419 & 0.4211 & 0.337813 \tabularnewline
26 & 0.011846 & 0.0812 & 0.46781 \tabularnewline
27 & -0.114779 & -0.7869 & 0.21765 \tabularnewline
28 & -0.11829 & -0.811 & 0.21074 \tabularnewline
29 & 0.079103 & 0.5423 & 0.295086 \tabularnewline
30 & 0.028278 & 0.1939 & 0.423558 \tabularnewline
31 & -0.080471 & -0.5517 & 0.291891 \tabularnewline
32 & -0.044664 & -0.3062 & 0.380402 \tabularnewline
33 & -0.026538 & -0.1819 & 0.428209 \tabularnewline
34 & -0.171447 & -1.1754 & 0.122881 \tabularnewline
35 & 0.012517 & 0.0858 & 0.465991 \tabularnewline
36 & -0.083118 & -0.5698 & 0.285754 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63525&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.0278[/C][C]-0.1906[/C][C]0.424836[/C][/ROW]
[ROW][C]2[/C][C]0.409412[/C][C]2.8068[/C][C]0.00363[/C][/ROW]
[ROW][C]3[/C][C]-0.11818[/C][C]-0.8102[/C][C]0.210954[/C][/ROW]
[ROW][C]4[/C][C]-0.040517[/C][C]-0.2778[/C][C]0.391203[/C][/ROW]
[ROW][C]5[/C][C]0.188868[/C][C]1.2948[/C][C]0.100855[/C][/ROW]
[ROW][C]6[/C][C]-0.110899[/C][C]-0.7603[/C][C]0.22544[/C][/ROW]
[ROW][C]7[/C][C]-0.228294[/C][C]-1.5651[/C][C]0.062134[/C][/ROW]
[ROW][C]8[/C][C]-0.009114[/C][C]-0.0625[/C][C]0.475221[/C][/ROW]
[ROW][C]9[/C][C]0.039308[/C][C]0.2695[/C][C]0.394369[/C][/ROW]
[ROW][C]10[/C][C]-0.097298[/C][C]-0.667[/C][C]0.254004[/C][/ROW]
[ROW][C]11[/C][C]0.07789[/C][C]0.534[/C][C]0.297935[/C][/ROW]
[ROW][C]12[/C][C]-0.316956[/C][C]-2.1729[/C][C]0.01743[/C][/ROW]
[ROW][C]13[/C][C]-0.028983[/C][C]-0.1987[/C][C]0.421677[/C][/ROW]
[ROW][C]14[/C][C]0.091803[/C][C]0.6294[/C][C]0.266077[/C][/ROW]
[ROW][C]15[/C][C]-0.042984[/C][C]-0.2947[/C][C]0.384766[/C][/ROW]
[ROW][C]16[/C][C]0.093416[/C][C]0.6404[/C][C]0.262501[/C][/ROW]
[ROW][C]17[/C][C]0.052949[/C][C]0.363[/C][C]0.359116[/C][/ROW]
[ROW][C]18[/C][C]-0.146255[/C][C]-1.0027[/C][C]0.160576[/C][/ROW]
[ROW][C]19[/C][C]0.008915[/C][C]0.0611[/C][C]0.475762[/C][/ROW]
[ROW][C]20[/C][C]-0.092246[/C][C]-0.6324[/C][C]0.265093[/C][/ROW]
[ROW][C]21[/C][C]0.155798[/C][C]1.0681[/C][C]0.145465[/C][/ROW]
[ROW][C]22[/C][C]-0.084035[/C][C]-0.5761[/C][C]0.283644[/C][/ROW]
[ROW][C]23[/C][C]0.218748[/C][C]1.4997[/C][C]0.070195[/C][/ROW]
[ROW][C]24[/C][C]0.018052[/C][C]0.1238[/C][C]0.451017[/C][/ROW]
[ROW][C]25[/C][C]0.061419[/C][C]0.4211[/C][C]0.337813[/C][/ROW]
[ROW][C]26[/C][C]0.011846[/C][C]0.0812[/C][C]0.46781[/C][/ROW]
[ROW][C]27[/C][C]-0.114779[/C][C]-0.7869[/C][C]0.21765[/C][/ROW]
[ROW][C]28[/C][C]-0.11829[/C][C]-0.811[/C][C]0.21074[/C][/ROW]
[ROW][C]29[/C][C]0.079103[/C][C]0.5423[/C][C]0.295086[/C][/ROW]
[ROW][C]30[/C][C]0.028278[/C][C]0.1939[/C][C]0.423558[/C][/ROW]
[ROW][C]31[/C][C]-0.080471[/C][C]-0.5517[/C][C]0.291891[/C][/ROW]
[ROW][C]32[/C][C]-0.044664[/C][C]-0.3062[/C][C]0.380402[/C][/ROW]
[ROW][C]33[/C][C]-0.026538[/C][C]-0.1819[/C][C]0.428209[/C][/ROW]
[ROW][C]34[/C][C]-0.171447[/C][C]-1.1754[/C][C]0.122881[/C][/ROW]
[ROW][C]35[/C][C]0.012517[/C][C]0.0858[/C][C]0.465991[/C][/ROW]
[ROW][C]36[/C][C]-0.083118[/C][C]-0.5698[/C][C]0.285754[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63525&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63525&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.0278-0.19060.424836
20.4094122.80680.00363
3-0.11818-0.81020.210954
4-0.040517-0.27780.391203
50.1888681.29480.100855
6-0.110899-0.76030.22544
7-0.228294-1.56510.062134
8-0.009114-0.06250.475221
90.0393080.26950.394369
10-0.097298-0.6670.254004
110.077890.5340.297935
12-0.316956-2.17290.01743
13-0.028983-0.19870.421677
140.0918030.62940.266077
15-0.042984-0.29470.384766
160.0934160.64040.262501
170.0529490.3630.359116
18-0.146255-1.00270.160576
190.0089150.06110.475762
20-0.092246-0.63240.265093
210.1557981.06810.145465
22-0.084035-0.57610.283644
230.2187481.49970.070195
240.0180520.12380.451017
250.0614190.42110.337813
260.0118460.08120.46781
27-0.114779-0.78690.21765
28-0.11829-0.8110.21074
290.0791030.54230.295086
300.0282780.19390.423558
31-0.080471-0.55170.291891
32-0.044664-0.30620.380402
33-0.026538-0.18190.428209
34-0.171447-1.17540.122881
350.0125170.08580.465991
36-0.083118-0.56980.285754



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