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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact103
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:47:30] [b98453cac15ba1066b407e146608df68]
-    D      [(Partial) Autocorrelation Function] [] [2009-12-04 13:10:14] [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 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=63462&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=63462&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63462&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
10.1005580.77240.22148
20.3554112.730.004169
3-0.088951-0.68320.248562
40.1053140.80890.210902
50.0880950.67670.250629
6-0.032214-0.24740.402713
7-0.107095-0.82260.207021
8-0.145083-1.11440.134812
9-0.089086-0.68430.248237
10-0.086585-0.66510.254299
110.0024660.01890.492477
12-0.18805-1.44440.076953
130.0352260.27060.393832
14-0.062259-0.47820.31713
150.0359890.27640.391591
160.0698620.53660.296774
17-0.018056-0.13870.445084
180.0062130.04770.481049
19-0.051414-0.39490.347164
20-0.067394-0.51770.303315
210.1297320.99650.16154
22-0.150805-1.15840.125693
230.1196880.91930.180831
24-0.113981-0.87550.192426
250.133621.02640.154457
260.047090.36170.359433
270.0158870.1220.451644
28-0.052809-0.40560.34324
29-0.010984-0.08440.466523
30-0.028496-0.21890.413749
31-0.001509-0.01160.495396
32-0.04053-0.31130.378329
33-0.132718-1.01940.156082
34-0.069661-0.53510.297305
35-0.236968-1.82020.036902
36-0.14324-1.10020.137847

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.100558 & 0.7724 & 0.22148 \tabularnewline
2 & 0.355411 & 2.73 & 0.004169 \tabularnewline
3 & -0.088951 & -0.6832 & 0.248562 \tabularnewline
4 & 0.105314 & 0.8089 & 0.210902 \tabularnewline
5 & 0.088095 & 0.6767 & 0.250629 \tabularnewline
6 & -0.032214 & -0.2474 & 0.402713 \tabularnewline
7 & -0.107095 & -0.8226 & 0.207021 \tabularnewline
8 & -0.145083 & -1.1144 & 0.134812 \tabularnewline
9 & -0.089086 & -0.6843 & 0.248237 \tabularnewline
10 & -0.086585 & -0.6651 & 0.254299 \tabularnewline
11 & 0.002466 & 0.0189 & 0.492477 \tabularnewline
12 & -0.18805 & -1.4444 & 0.076953 \tabularnewline
13 & 0.035226 & 0.2706 & 0.393832 \tabularnewline
14 & -0.062259 & -0.4782 & 0.31713 \tabularnewline
15 & 0.035989 & 0.2764 & 0.391591 \tabularnewline
16 & 0.069862 & 0.5366 & 0.296774 \tabularnewline
17 & -0.018056 & -0.1387 & 0.445084 \tabularnewline
18 & 0.006213 & 0.0477 & 0.481049 \tabularnewline
19 & -0.051414 & -0.3949 & 0.347164 \tabularnewline
20 & -0.067394 & -0.5177 & 0.303315 \tabularnewline
21 & 0.129732 & 0.9965 & 0.16154 \tabularnewline
22 & -0.150805 & -1.1584 & 0.125693 \tabularnewline
23 & 0.119688 & 0.9193 & 0.180831 \tabularnewline
24 & -0.113981 & -0.8755 & 0.192426 \tabularnewline
25 & 0.13362 & 1.0264 & 0.154457 \tabularnewline
26 & 0.04709 & 0.3617 & 0.359433 \tabularnewline
27 & 0.015887 & 0.122 & 0.451644 \tabularnewline
28 & -0.052809 & -0.4056 & 0.34324 \tabularnewline
29 & -0.010984 & -0.0844 & 0.466523 \tabularnewline
30 & -0.028496 & -0.2189 & 0.413749 \tabularnewline
31 & -0.001509 & -0.0116 & 0.495396 \tabularnewline
32 & -0.04053 & -0.3113 & 0.378329 \tabularnewline
33 & -0.132718 & -1.0194 & 0.156082 \tabularnewline
34 & -0.069661 & -0.5351 & 0.297305 \tabularnewline
35 & -0.236968 & -1.8202 & 0.036902 \tabularnewline
36 & -0.14324 & -1.1002 & 0.137847 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63462&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.100558[/C][C]0.7724[/C][C]0.22148[/C][/ROW]
[ROW][C]2[/C][C]0.355411[/C][C]2.73[/C][C]0.004169[/C][/ROW]
[ROW][C]3[/C][C]-0.088951[/C][C]-0.6832[/C][C]0.248562[/C][/ROW]
[ROW][C]4[/C][C]0.105314[/C][C]0.8089[/C][C]0.210902[/C][/ROW]
[ROW][C]5[/C][C]0.088095[/C][C]0.6767[/C][C]0.250629[/C][/ROW]
[ROW][C]6[/C][C]-0.032214[/C][C]-0.2474[/C][C]0.402713[/C][/ROW]
[ROW][C]7[/C][C]-0.107095[/C][C]-0.8226[/C][C]0.207021[/C][/ROW]
[ROW][C]8[/C][C]-0.145083[/C][C]-1.1144[/C][C]0.134812[/C][/ROW]
[ROW][C]9[/C][C]-0.089086[/C][C]-0.6843[/C][C]0.248237[/C][/ROW]
[ROW][C]10[/C][C]-0.086585[/C][C]-0.6651[/C][C]0.254299[/C][/ROW]
[ROW][C]11[/C][C]0.002466[/C][C]0.0189[/C][C]0.492477[/C][/ROW]
[ROW][C]12[/C][C]-0.18805[/C][C]-1.4444[/C][C]0.076953[/C][/ROW]
[ROW][C]13[/C][C]0.035226[/C][C]0.2706[/C][C]0.393832[/C][/ROW]
[ROW][C]14[/C][C]-0.062259[/C][C]-0.4782[/C][C]0.31713[/C][/ROW]
[ROW][C]15[/C][C]0.035989[/C][C]0.2764[/C][C]0.391591[/C][/ROW]
[ROW][C]16[/C][C]0.069862[/C][C]0.5366[/C][C]0.296774[/C][/ROW]
[ROW][C]17[/C][C]-0.018056[/C][C]-0.1387[/C][C]0.445084[/C][/ROW]
[ROW][C]18[/C][C]0.006213[/C][C]0.0477[/C][C]0.481049[/C][/ROW]
[ROW][C]19[/C][C]-0.051414[/C][C]-0.3949[/C][C]0.347164[/C][/ROW]
[ROW][C]20[/C][C]-0.067394[/C][C]-0.5177[/C][C]0.303315[/C][/ROW]
[ROW][C]21[/C][C]0.129732[/C][C]0.9965[/C][C]0.16154[/C][/ROW]
[ROW][C]22[/C][C]-0.150805[/C][C]-1.1584[/C][C]0.125693[/C][/ROW]
[ROW][C]23[/C][C]0.119688[/C][C]0.9193[/C][C]0.180831[/C][/ROW]
[ROW][C]24[/C][C]-0.113981[/C][C]-0.8755[/C][C]0.192426[/C][/ROW]
[ROW][C]25[/C][C]0.13362[/C][C]1.0264[/C][C]0.154457[/C][/ROW]
[ROW][C]26[/C][C]0.04709[/C][C]0.3617[/C][C]0.359433[/C][/ROW]
[ROW][C]27[/C][C]0.015887[/C][C]0.122[/C][C]0.451644[/C][/ROW]
[ROW][C]28[/C][C]-0.052809[/C][C]-0.4056[/C][C]0.34324[/C][/ROW]
[ROW][C]29[/C][C]-0.010984[/C][C]-0.0844[/C][C]0.466523[/C][/ROW]
[ROW][C]30[/C][C]-0.028496[/C][C]-0.2189[/C][C]0.413749[/C][/ROW]
[ROW][C]31[/C][C]-0.001509[/C][C]-0.0116[/C][C]0.495396[/C][/ROW]
[ROW][C]32[/C][C]-0.04053[/C][C]-0.3113[/C][C]0.378329[/C][/ROW]
[ROW][C]33[/C][C]-0.132718[/C][C]-1.0194[/C][C]0.156082[/C][/ROW]
[ROW][C]34[/C][C]-0.069661[/C][C]-0.5351[/C][C]0.297305[/C][/ROW]
[ROW][C]35[/C][C]-0.236968[/C][C]-1.8202[/C][C]0.036902[/C][/ROW]
[ROW][C]36[/C][C]-0.14324[/C][C]-1.1002[/C][C]0.137847[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63462&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63462&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.1005580.77240.22148
20.3554112.730.004169
3-0.088951-0.68320.248562
40.1053140.80890.210902
50.0880950.67670.250629
6-0.032214-0.24740.402713
7-0.107095-0.82260.207021
8-0.145083-1.11440.134812
9-0.089086-0.68430.248237
10-0.086585-0.66510.254299
110.0024660.01890.492477
12-0.18805-1.44440.076953
130.0352260.27060.393832
14-0.062259-0.47820.31713
150.0359890.27640.391591
160.0698620.53660.296774
17-0.018056-0.13870.445084
180.0062130.04770.481049
19-0.051414-0.39490.347164
20-0.067394-0.51770.303315
210.1297320.99650.16154
22-0.150805-1.15840.125693
230.1196880.91930.180831
24-0.113981-0.87550.192426
250.133621.02640.154457
260.047090.36170.359433
270.0158870.1220.451644
28-0.052809-0.40560.34324
29-0.010984-0.08440.466523
30-0.028496-0.21890.413749
31-0.001509-0.01160.495396
32-0.04053-0.31130.378329
33-0.132718-1.01940.156082
34-0.069661-0.53510.297305
35-0.236968-1.82020.036902
36-0.14324-1.10020.137847







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1005580.77240.22148
20.3488262.67940.004772
3-0.169421-1.30130.099099
40.0065280.05010.480089
50.1971841.51460.067606
6-0.146769-1.12740.132078
7-0.208569-1.6020.057243
8-0.005655-0.04340.482751
90.001770.01360.4946
10-0.095949-0.7370.232022
110.0797110.61230.271355
12-0.140867-1.0820.141824
130.044270.340.367514
140.0839560.64490.260754
15-0.107256-0.82390.206671
160.0921090.70750.241019
170.0246820.18960.425144
18-0.155178-1.19190.119028
19-0.023936-0.18390.427379
20-0.042984-0.33020.371222
210.156991.20590.116341
22-0.196306-1.50790.068464
230.1105890.84940.199533
240.0432960.33260.370322
250.0308750.23720.40668
260.0634890.48770.313797
27-0.120479-0.92540.179259
28-0.059754-0.4590.323967
290.0742460.57030.285322
30-0.086858-0.66720.253632
31-0.070144-0.53880.29603
320.0374880.2880.387197
33-0.020993-0.16130.436223
34-0.202077-1.55220.062984
35-0.099229-0.76220.224491
36-0.123451-0.94820.173437

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.100558 & 0.7724 & 0.22148 \tabularnewline
2 & 0.348826 & 2.6794 & 0.004772 \tabularnewline
3 & -0.169421 & -1.3013 & 0.099099 \tabularnewline
4 & 0.006528 & 0.0501 & 0.480089 \tabularnewline
5 & 0.197184 & 1.5146 & 0.067606 \tabularnewline
6 & -0.146769 & -1.1274 & 0.132078 \tabularnewline
7 & -0.208569 & -1.602 & 0.057243 \tabularnewline
8 & -0.005655 & -0.0434 & 0.482751 \tabularnewline
9 & 0.00177 & 0.0136 & 0.4946 \tabularnewline
10 & -0.095949 & -0.737 & 0.232022 \tabularnewline
11 & 0.079711 & 0.6123 & 0.271355 \tabularnewline
12 & -0.140867 & -1.082 & 0.141824 \tabularnewline
13 & 0.04427 & 0.34 & 0.367514 \tabularnewline
14 & 0.083956 & 0.6449 & 0.260754 \tabularnewline
15 & -0.107256 & -0.8239 & 0.206671 \tabularnewline
16 & 0.092109 & 0.7075 & 0.241019 \tabularnewline
17 & 0.024682 & 0.1896 & 0.425144 \tabularnewline
18 & -0.155178 & -1.1919 & 0.119028 \tabularnewline
19 & -0.023936 & -0.1839 & 0.427379 \tabularnewline
20 & -0.042984 & -0.3302 & 0.371222 \tabularnewline
21 & 0.15699 & 1.2059 & 0.116341 \tabularnewline
22 & -0.196306 & -1.5079 & 0.068464 \tabularnewline
23 & 0.110589 & 0.8494 & 0.199533 \tabularnewline
24 & 0.043296 & 0.3326 & 0.370322 \tabularnewline
25 & 0.030875 & 0.2372 & 0.40668 \tabularnewline
26 & 0.063489 & 0.4877 & 0.313797 \tabularnewline
27 & -0.120479 & -0.9254 & 0.179259 \tabularnewline
28 & -0.059754 & -0.459 & 0.323967 \tabularnewline
29 & 0.074246 & 0.5703 & 0.285322 \tabularnewline
30 & -0.086858 & -0.6672 & 0.253632 \tabularnewline
31 & -0.070144 & -0.5388 & 0.29603 \tabularnewline
32 & 0.037488 & 0.288 & 0.387197 \tabularnewline
33 & -0.020993 & -0.1613 & 0.436223 \tabularnewline
34 & -0.202077 & -1.5522 & 0.062984 \tabularnewline
35 & -0.099229 & -0.7622 & 0.224491 \tabularnewline
36 & -0.123451 & -0.9482 & 0.173437 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63462&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.100558[/C][C]0.7724[/C][C]0.22148[/C][/ROW]
[ROW][C]2[/C][C]0.348826[/C][C]2.6794[/C][C]0.004772[/C][/ROW]
[ROW][C]3[/C][C]-0.169421[/C][C]-1.3013[/C][C]0.099099[/C][/ROW]
[ROW][C]4[/C][C]0.006528[/C][C]0.0501[/C][C]0.480089[/C][/ROW]
[ROW][C]5[/C][C]0.197184[/C][C]1.5146[/C][C]0.067606[/C][/ROW]
[ROW][C]6[/C][C]-0.146769[/C][C]-1.1274[/C][C]0.132078[/C][/ROW]
[ROW][C]7[/C][C]-0.208569[/C][C]-1.602[/C][C]0.057243[/C][/ROW]
[ROW][C]8[/C][C]-0.005655[/C][C]-0.0434[/C][C]0.482751[/C][/ROW]
[ROW][C]9[/C][C]0.00177[/C][C]0.0136[/C][C]0.4946[/C][/ROW]
[ROW][C]10[/C][C]-0.095949[/C][C]-0.737[/C][C]0.232022[/C][/ROW]
[ROW][C]11[/C][C]0.079711[/C][C]0.6123[/C][C]0.271355[/C][/ROW]
[ROW][C]12[/C][C]-0.140867[/C][C]-1.082[/C][C]0.141824[/C][/ROW]
[ROW][C]13[/C][C]0.04427[/C][C]0.34[/C][C]0.367514[/C][/ROW]
[ROW][C]14[/C][C]0.083956[/C][C]0.6449[/C][C]0.260754[/C][/ROW]
[ROW][C]15[/C][C]-0.107256[/C][C]-0.8239[/C][C]0.206671[/C][/ROW]
[ROW][C]16[/C][C]0.092109[/C][C]0.7075[/C][C]0.241019[/C][/ROW]
[ROW][C]17[/C][C]0.024682[/C][C]0.1896[/C][C]0.425144[/C][/ROW]
[ROW][C]18[/C][C]-0.155178[/C][C]-1.1919[/C][C]0.119028[/C][/ROW]
[ROW][C]19[/C][C]-0.023936[/C][C]-0.1839[/C][C]0.427379[/C][/ROW]
[ROW][C]20[/C][C]-0.042984[/C][C]-0.3302[/C][C]0.371222[/C][/ROW]
[ROW][C]21[/C][C]0.15699[/C][C]1.2059[/C][C]0.116341[/C][/ROW]
[ROW][C]22[/C][C]-0.196306[/C][C]-1.5079[/C][C]0.068464[/C][/ROW]
[ROW][C]23[/C][C]0.110589[/C][C]0.8494[/C][C]0.199533[/C][/ROW]
[ROW][C]24[/C][C]0.043296[/C][C]0.3326[/C][C]0.370322[/C][/ROW]
[ROW][C]25[/C][C]0.030875[/C][C]0.2372[/C][C]0.40668[/C][/ROW]
[ROW][C]26[/C][C]0.063489[/C][C]0.4877[/C][C]0.313797[/C][/ROW]
[ROW][C]27[/C][C]-0.120479[/C][C]-0.9254[/C][C]0.179259[/C][/ROW]
[ROW][C]28[/C][C]-0.059754[/C][C]-0.459[/C][C]0.323967[/C][/ROW]
[ROW][C]29[/C][C]0.074246[/C][C]0.5703[/C][C]0.285322[/C][/ROW]
[ROW][C]30[/C][C]-0.086858[/C][C]-0.6672[/C][C]0.253632[/C][/ROW]
[ROW][C]31[/C][C]-0.070144[/C][C]-0.5388[/C][C]0.29603[/C][/ROW]
[ROW][C]32[/C][C]0.037488[/C][C]0.288[/C][C]0.387197[/C][/ROW]
[ROW][C]33[/C][C]-0.020993[/C][C]-0.1613[/C][C]0.436223[/C][/ROW]
[ROW][C]34[/C][C]-0.202077[/C][C]-1.5522[/C][C]0.062984[/C][/ROW]
[ROW][C]35[/C][C]-0.099229[/C][C]-0.7622[/C][C]0.224491[/C][/ROW]
[ROW][C]36[/C][C]-0.123451[/C][C]-0.9482[/C][C]0.173437[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63462&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63462&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.1005580.77240.22148
20.3488262.67940.004772
3-0.169421-1.30130.099099
40.0065280.05010.480089
50.1971841.51460.067606
6-0.146769-1.12740.132078
7-0.208569-1.6020.057243
8-0.005655-0.04340.482751
90.001770.01360.4946
10-0.095949-0.7370.232022
110.0797110.61230.271355
12-0.140867-1.0820.141824
130.044270.340.367514
140.0839560.64490.260754
15-0.107256-0.82390.206671
160.0921090.70750.241019
170.0246820.18960.425144
18-0.155178-1.19190.119028
19-0.023936-0.18390.427379
20-0.042984-0.33020.371222
210.156991.20590.116341
22-0.196306-1.50790.068464
230.1105890.84940.199533
240.0432960.33260.370322
250.0308750.23720.40668
260.0634890.48770.313797
27-0.120479-0.92540.179259
28-0.059754-0.4590.323967
290.0742460.57030.285322
30-0.086858-0.66720.253632
31-0.070144-0.53880.29603
320.0374880.2880.387197
33-0.020993-0.16130.436223
34-0.202077-1.55220.062984
35-0.099229-0.76220.224491
36-0.123451-0.94820.173437



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