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 05:20:20 -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/t12599292982whte1fvhbfe8ln.htm/, Retrieved Sun, 28 Apr 2024 08:26:41 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63384, Retrieved Sun, 28 Apr 2024 08:26:41 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact100
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] [WS 9.4] [2009-12-04 12:20:20] [29af64a72952b0c5025d716b5179273f] [Current]
Feedback Forum

Post a new message
Dataseries X:
95.1
97.0
112.7
102.9
97.4
111.4
87.4
96.8
114.1
110.3
103.9
101.6
94.6
95.9
104.7
102.8
98.1
113.9
80.9
95.7
113.2
105.9
108.8
102.3
99.0
100.7
115.5
100.7
109.9
114.6
85.4
100.5
114.8
116.5
112.9
102.0
106.0
105.3
118.8
106.1
109.3
117.2
92.5
104.2
112.5
122.4
113.3
100.0
110.7
112.8
109.8
117.3
109.1
115.9
96.0
99.8
116.8
115.7
99.4
94.3




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63384&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.34646-2.66120.005007
2-0.266035-2.04350.02274
30.1750981.3450.091894
4-0.20542-1.57790.059972
50.1060490.81460.209294
60.1171730.90.185884
70.0603630.46370.322299
8-0.104745-0.80460.212152
90.0797020.61220.271379
10-0.256059-1.96680.026956
11-0.167796-1.28890.101238
120.678565.21211e-06
13-0.239454-1.83930.035453
14-0.210675-1.61820.055474
150.1345431.03340.152806
16-0.179759-1.38080.086281
170.1173970.90170.185431
180.0682360.52410.301075
190.0555230.42650.335656
20-0.091518-0.7030.242422
210.065330.50180.308836
22-0.217816-1.67310.049803
23-0.04867-0.37380.354931
240.4231423.25020.000954
25-0.139377-1.07060.14436
26-0.118492-0.91020.183222
27-0.010103-0.07760.469204
28-0.038659-0.29690.383774
290.0747110.57390.284119
30-0.001337-0.01030.49592
310.0941510.72320.236212
32-0.078175-0.60050.275244
33-0.015396-0.11830.453132
34-0.045091-0.34640.365155
35-0.093677-0.71960.237321
360.2750022.11230.01945

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.34646 & -2.6612 & 0.005007 \tabularnewline
2 & -0.266035 & -2.0435 & 0.02274 \tabularnewline
3 & 0.175098 & 1.345 & 0.091894 \tabularnewline
4 & -0.20542 & -1.5779 & 0.059972 \tabularnewline
5 & 0.106049 & 0.8146 & 0.209294 \tabularnewline
6 & 0.117173 & 0.9 & 0.185884 \tabularnewline
7 & 0.060363 & 0.4637 & 0.322299 \tabularnewline
8 & -0.104745 & -0.8046 & 0.212152 \tabularnewline
9 & 0.079702 & 0.6122 & 0.271379 \tabularnewline
10 & -0.256059 & -1.9668 & 0.026956 \tabularnewline
11 & -0.167796 & -1.2889 & 0.101238 \tabularnewline
12 & 0.67856 & 5.2121 & 1e-06 \tabularnewline
13 & -0.239454 & -1.8393 & 0.035453 \tabularnewline
14 & -0.210675 & -1.6182 & 0.055474 \tabularnewline
15 & 0.134543 & 1.0334 & 0.152806 \tabularnewline
16 & -0.179759 & -1.3808 & 0.086281 \tabularnewline
17 & 0.117397 & 0.9017 & 0.185431 \tabularnewline
18 & 0.068236 & 0.5241 & 0.301075 \tabularnewline
19 & 0.055523 & 0.4265 & 0.335656 \tabularnewline
20 & -0.091518 & -0.703 & 0.242422 \tabularnewline
21 & 0.06533 & 0.5018 & 0.308836 \tabularnewline
22 & -0.217816 & -1.6731 & 0.049803 \tabularnewline
23 & -0.04867 & -0.3738 & 0.354931 \tabularnewline
24 & 0.423142 & 3.2502 & 0.000954 \tabularnewline
25 & -0.139377 & -1.0706 & 0.14436 \tabularnewline
26 & -0.118492 & -0.9102 & 0.183222 \tabularnewline
27 & -0.010103 & -0.0776 & 0.469204 \tabularnewline
28 & -0.038659 & -0.2969 & 0.383774 \tabularnewline
29 & 0.074711 & 0.5739 & 0.284119 \tabularnewline
30 & -0.001337 & -0.0103 & 0.49592 \tabularnewline
31 & 0.094151 & 0.7232 & 0.236212 \tabularnewline
32 & -0.078175 & -0.6005 & 0.275244 \tabularnewline
33 & -0.015396 & -0.1183 & 0.453132 \tabularnewline
34 & -0.045091 & -0.3464 & 0.365155 \tabularnewline
35 & -0.093677 & -0.7196 & 0.237321 \tabularnewline
36 & 0.275002 & 2.1123 & 0.01945 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63384&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.34646[/C][C]-2.6612[/C][C]0.005007[/C][/ROW]
[ROW][C]2[/C][C]-0.266035[/C][C]-2.0435[/C][C]0.02274[/C][/ROW]
[ROW][C]3[/C][C]0.175098[/C][C]1.345[/C][C]0.091894[/C][/ROW]
[ROW][C]4[/C][C]-0.20542[/C][C]-1.5779[/C][C]0.059972[/C][/ROW]
[ROW][C]5[/C][C]0.106049[/C][C]0.8146[/C][C]0.209294[/C][/ROW]
[ROW][C]6[/C][C]0.117173[/C][C]0.9[/C][C]0.185884[/C][/ROW]
[ROW][C]7[/C][C]0.060363[/C][C]0.4637[/C][C]0.322299[/C][/ROW]
[ROW][C]8[/C][C]-0.104745[/C][C]-0.8046[/C][C]0.212152[/C][/ROW]
[ROW][C]9[/C][C]0.079702[/C][C]0.6122[/C][C]0.271379[/C][/ROW]
[ROW][C]10[/C][C]-0.256059[/C][C]-1.9668[/C][C]0.026956[/C][/ROW]
[ROW][C]11[/C][C]-0.167796[/C][C]-1.2889[/C][C]0.101238[/C][/ROW]
[ROW][C]12[/C][C]0.67856[/C][C]5.2121[/C][C]1e-06[/C][/ROW]
[ROW][C]13[/C][C]-0.239454[/C][C]-1.8393[/C][C]0.035453[/C][/ROW]
[ROW][C]14[/C][C]-0.210675[/C][C]-1.6182[/C][C]0.055474[/C][/ROW]
[ROW][C]15[/C][C]0.134543[/C][C]1.0334[/C][C]0.152806[/C][/ROW]
[ROW][C]16[/C][C]-0.179759[/C][C]-1.3808[/C][C]0.086281[/C][/ROW]
[ROW][C]17[/C][C]0.117397[/C][C]0.9017[/C][C]0.185431[/C][/ROW]
[ROW][C]18[/C][C]0.068236[/C][C]0.5241[/C][C]0.301075[/C][/ROW]
[ROW][C]19[/C][C]0.055523[/C][C]0.4265[/C][C]0.335656[/C][/ROW]
[ROW][C]20[/C][C]-0.091518[/C][C]-0.703[/C][C]0.242422[/C][/ROW]
[ROW][C]21[/C][C]0.06533[/C][C]0.5018[/C][C]0.308836[/C][/ROW]
[ROW][C]22[/C][C]-0.217816[/C][C]-1.6731[/C][C]0.049803[/C][/ROW]
[ROW][C]23[/C][C]-0.04867[/C][C]-0.3738[/C][C]0.354931[/C][/ROW]
[ROW][C]24[/C][C]0.423142[/C][C]3.2502[/C][C]0.000954[/C][/ROW]
[ROW][C]25[/C][C]-0.139377[/C][C]-1.0706[/C][C]0.14436[/C][/ROW]
[ROW][C]26[/C][C]-0.118492[/C][C]-0.9102[/C][C]0.183222[/C][/ROW]
[ROW][C]27[/C][C]-0.010103[/C][C]-0.0776[/C][C]0.469204[/C][/ROW]
[ROW][C]28[/C][C]-0.038659[/C][C]-0.2969[/C][C]0.383774[/C][/ROW]
[ROW][C]29[/C][C]0.074711[/C][C]0.5739[/C][C]0.284119[/C][/ROW]
[ROW][C]30[/C][C]-0.001337[/C][C]-0.0103[/C][C]0.49592[/C][/ROW]
[ROW][C]31[/C][C]0.094151[/C][C]0.7232[/C][C]0.236212[/C][/ROW]
[ROW][C]32[/C][C]-0.078175[/C][C]-0.6005[/C][C]0.275244[/C][/ROW]
[ROW][C]33[/C][C]-0.015396[/C][C]-0.1183[/C][C]0.453132[/C][/ROW]
[ROW][C]34[/C][C]-0.045091[/C][C]-0.3464[/C][C]0.365155[/C][/ROW]
[ROW][C]35[/C][C]-0.093677[/C][C]-0.7196[/C][C]0.237321[/C][/ROW]
[ROW][C]36[/C][C]0.275002[/C][C]2.1123[/C][C]0.01945[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63384&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63384&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.34646-2.66120.005007
2-0.266035-2.04350.02274
30.1750981.3450.091894
4-0.20542-1.57790.059972
50.1060490.81460.209294
60.1171730.90.185884
70.0603630.46370.322299
8-0.104745-0.80460.212152
90.0797020.61220.271379
10-0.256059-1.96680.026956
11-0.167796-1.28890.101238
120.678565.21211e-06
13-0.239454-1.83930.035453
14-0.210675-1.61820.055474
150.1345431.03340.152806
16-0.179759-1.38080.086281
170.1173970.90170.185431
180.0682360.52410.301075
190.0555230.42650.335656
20-0.091518-0.7030.242422
210.065330.50180.308836
22-0.217816-1.67310.049803
23-0.04867-0.37380.354931
240.4231423.25020.000954
25-0.139377-1.07060.14436
26-0.118492-0.91020.183222
27-0.010103-0.07760.469204
28-0.038659-0.29690.383774
290.0747110.57390.284119
30-0.001337-0.01030.49592
310.0941510.72320.236212
32-0.078175-0.60050.275244
33-0.015396-0.11830.453132
34-0.045091-0.34640.365155
35-0.093677-0.71960.237321
360.2750022.11230.01945







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.34646-2.66120.005007
2-0.438733-3.370.000665
3-0.15412-1.18380.120617
4-0.427924-3.28690.000854
5-0.262204-2.0140.024287
6-0.231277-1.77650.040406
70.1031950.79270.215578
80.0571570.4390.331122
90.431313.3130.00079
100.0001940.00150.499407
11-0.462337-3.55130.00038
120.1791771.37630.086967
130.0903350.69390.245242
140.010140.07790.469092
15-0.11053-0.8490.199658
16-0.054275-0.41690.339135
170.0552170.42410.336507
18-0.007407-0.05690.477411
190.0668370.51340.3048
20-0.107866-0.82850.205354
210.044650.3430.366422
22-0.021119-0.16220.435844
230.1352371.03880.151574
24-0.10961-0.84190.201612
250.0250970.19280.423898
260.0639770.49140.312476
27-0.090452-0.69480.244962
280.0379230.29130.385924
29-0.019403-0.1490.441015
30-0.063744-0.48960.313108
31-0.050305-0.38640.350295
320.0169330.13010.448479
33-0.124061-0.95290.172257
340.1613311.23920.110087
350.0195110.14990.440691
360.0558090.42870.334859

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.34646 & -2.6612 & 0.005007 \tabularnewline
2 & -0.438733 & -3.37 & 0.000665 \tabularnewline
3 & -0.15412 & -1.1838 & 0.120617 \tabularnewline
4 & -0.427924 & -3.2869 & 0.000854 \tabularnewline
5 & -0.262204 & -2.014 & 0.024287 \tabularnewline
6 & -0.231277 & -1.7765 & 0.040406 \tabularnewline
7 & 0.103195 & 0.7927 & 0.215578 \tabularnewline
8 & 0.057157 & 0.439 & 0.331122 \tabularnewline
9 & 0.43131 & 3.313 & 0.00079 \tabularnewline
10 & 0.000194 & 0.0015 & 0.499407 \tabularnewline
11 & -0.462337 & -3.5513 & 0.00038 \tabularnewline
12 & 0.179177 & 1.3763 & 0.086967 \tabularnewline
13 & 0.090335 & 0.6939 & 0.245242 \tabularnewline
14 & 0.01014 & 0.0779 & 0.469092 \tabularnewline
15 & -0.11053 & -0.849 & 0.199658 \tabularnewline
16 & -0.054275 & -0.4169 & 0.339135 \tabularnewline
17 & 0.055217 & 0.4241 & 0.336507 \tabularnewline
18 & -0.007407 & -0.0569 & 0.477411 \tabularnewline
19 & 0.066837 & 0.5134 & 0.3048 \tabularnewline
20 & -0.107866 & -0.8285 & 0.205354 \tabularnewline
21 & 0.04465 & 0.343 & 0.366422 \tabularnewline
22 & -0.021119 & -0.1622 & 0.435844 \tabularnewline
23 & 0.135237 & 1.0388 & 0.151574 \tabularnewline
24 & -0.10961 & -0.8419 & 0.201612 \tabularnewline
25 & 0.025097 & 0.1928 & 0.423898 \tabularnewline
26 & 0.063977 & 0.4914 & 0.312476 \tabularnewline
27 & -0.090452 & -0.6948 & 0.244962 \tabularnewline
28 & 0.037923 & 0.2913 & 0.385924 \tabularnewline
29 & -0.019403 & -0.149 & 0.441015 \tabularnewline
30 & -0.063744 & -0.4896 & 0.313108 \tabularnewline
31 & -0.050305 & -0.3864 & 0.350295 \tabularnewline
32 & 0.016933 & 0.1301 & 0.448479 \tabularnewline
33 & -0.124061 & -0.9529 & 0.172257 \tabularnewline
34 & 0.161331 & 1.2392 & 0.110087 \tabularnewline
35 & 0.019511 & 0.1499 & 0.440691 \tabularnewline
36 & 0.055809 & 0.4287 & 0.334859 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63384&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.34646[/C][C]-2.6612[/C][C]0.005007[/C][/ROW]
[ROW][C]2[/C][C]-0.438733[/C][C]-3.37[/C][C]0.000665[/C][/ROW]
[ROW][C]3[/C][C]-0.15412[/C][C]-1.1838[/C][C]0.120617[/C][/ROW]
[ROW][C]4[/C][C]-0.427924[/C][C]-3.2869[/C][C]0.000854[/C][/ROW]
[ROW][C]5[/C][C]-0.262204[/C][C]-2.014[/C][C]0.024287[/C][/ROW]
[ROW][C]6[/C][C]-0.231277[/C][C]-1.7765[/C][C]0.040406[/C][/ROW]
[ROW][C]7[/C][C]0.103195[/C][C]0.7927[/C][C]0.215578[/C][/ROW]
[ROW][C]8[/C][C]0.057157[/C][C]0.439[/C][C]0.331122[/C][/ROW]
[ROW][C]9[/C][C]0.43131[/C][C]3.313[/C][C]0.00079[/C][/ROW]
[ROW][C]10[/C][C]0.000194[/C][C]0.0015[/C][C]0.499407[/C][/ROW]
[ROW][C]11[/C][C]-0.462337[/C][C]-3.5513[/C][C]0.00038[/C][/ROW]
[ROW][C]12[/C][C]0.179177[/C][C]1.3763[/C][C]0.086967[/C][/ROW]
[ROW][C]13[/C][C]0.090335[/C][C]0.6939[/C][C]0.245242[/C][/ROW]
[ROW][C]14[/C][C]0.01014[/C][C]0.0779[/C][C]0.469092[/C][/ROW]
[ROW][C]15[/C][C]-0.11053[/C][C]-0.849[/C][C]0.199658[/C][/ROW]
[ROW][C]16[/C][C]-0.054275[/C][C]-0.4169[/C][C]0.339135[/C][/ROW]
[ROW][C]17[/C][C]0.055217[/C][C]0.4241[/C][C]0.336507[/C][/ROW]
[ROW][C]18[/C][C]-0.007407[/C][C]-0.0569[/C][C]0.477411[/C][/ROW]
[ROW][C]19[/C][C]0.066837[/C][C]0.5134[/C][C]0.3048[/C][/ROW]
[ROW][C]20[/C][C]-0.107866[/C][C]-0.8285[/C][C]0.205354[/C][/ROW]
[ROW][C]21[/C][C]0.04465[/C][C]0.343[/C][C]0.366422[/C][/ROW]
[ROW][C]22[/C][C]-0.021119[/C][C]-0.1622[/C][C]0.435844[/C][/ROW]
[ROW][C]23[/C][C]0.135237[/C][C]1.0388[/C][C]0.151574[/C][/ROW]
[ROW][C]24[/C][C]-0.10961[/C][C]-0.8419[/C][C]0.201612[/C][/ROW]
[ROW][C]25[/C][C]0.025097[/C][C]0.1928[/C][C]0.423898[/C][/ROW]
[ROW][C]26[/C][C]0.063977[/C][C]0.4914[/C][C]0.312476[/C][/ROW]
[ROW][C]27[/C][C]-0.090452[/C][C]-0.6948[/C][C]0.244962[/C][/ROW]
[ROW][C]28[/C][C]0.037923[/C][C]0.2913[/C][C]0.385924[/C][/ROW]
[ROW][C]29[/C][C]-0.019403[/C][C]-0.149[/C][C]0.441015[/C][/ROW]
[ROW][C]30[/C][C]-0.063744[/C][C]-0.4896[/C][C]0.313108[/C][/ROW]
[ROW][C]31[/C][C]-0.050305[/C][C]-0.3864[/C][C]0.350295[/C][/ROW]
[ROW][C]32[/C][C]0.016933[/C][C]0.1301[/C][C]0.448479[/C][/ROW]
[ROW][C]33[/C][C]-0.124061[/C][C]-0.9529[/C][C]0.172257[/C][/ROW]
[ROW][C]34[/C][C]0.161331[/C][C]1.2392[/C][C]0.110087[/C][/ROW]
[ROW][C]35[/C][C]0.019511[/C][C]0.1499[/C][C]0.440691[/C][/ROW]
[ROW][C]36[/C][C]0.055809[/C][C]0.4287[/C][C]0.334859[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63384&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63384&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.34646-2.66120.005007
2-0.438733-3.370.000665
3-0.15412-1.18380.120617
4-0.427924-3.28690.000854
5-0.262204-2.0140.024287
6-0.231277-1.77650.040406
70.1031950.79270.215578
80.0571570.4390.331122
90.431313.3130.00079
100.0001940.00150.499407
11-0.462337-3.55130.00038
120.1791771.37630.086967
130.0903350.69390.245242
140.010140.07790.469092
15-0.11053-0.8490.199658
16-0.054275-0.41690.339135
170.0552170.42410.336507
18-0.007407-0.05690.477411
190.0668370.51340.3048
20-0.107866-0.82850.205354
210.044650.3430.366422
22-0.021119-0.16220.435844
230.1352371.03880.151574
24-0.10961-0.84190.201612
250.0250970.19280.423898
260.0639770.49140.312476
27-0.090452-0.69480.244962
280.0379230.29130.385924
29-0.019403-0.1490.441015
30-0.063744-0.48960.313108
31-0.050305-0.38640.350295
320.0169330.13010.448479
33-0.124061-0.95290.172257
340.1613311.23920.110087
350.0195110.14990.440691
360.0558090.42870.334859



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