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, 27 Nov 2009 14:26: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/Nov/27/t125935724564zwiyq98a9irxp.htm/, Retrieved Mon, 29 Apr 2024 06:45:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61289, Retrieved Mon, 29 Apr 2024 06:45:46 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact117
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2009-11-27 21:26:19] [4c719cde102be108d35939b6cdb81c0f] [Current]
Feedback Forum

Post a new message
Dataseries X:
95.6
74.3
88.5
88
84.3
112.8
105.3
97.2
112.4
123.2
143.7
205.1
102.8
89.4
90.7
101.1
93.6
119.3
106.4
105.2
106.5
117.6
144.2
195.5
109.5
84.9
102.9
93.9
104.6
115.2
104.9
114.9
115.1
126.4
156.7
197.3
116.1
89.1
107.8
100.4
113.6
128.3
113.3
113.7
116.1
133.6
167.7
214.6
120.3
106
103.9
118
116.3
134.8
117.8
123.3
125.2
135.8
158.9
217.9




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 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 & 0 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61289&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]0 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=61289&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61289&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 time0 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.059734-0.41380.340414
20.3855952.67150.005141
3-0.110364-0.76460.22412
40.110020.76220.224823
5-0.015392-0.10660.457761
60.0817450.56630.2869
70.0146380.10140.459821
8-0.005683-0.03940.484377
9-0.010926-0.07570.469988
10-0.114837-0.79560.215088
11-0.203037-1.40670.082982
12-0.217151-1.50450.069507
130.0256240.17750.429921
14-0.052809-0.36590.358033
150.1662951.15210.127488
16-0.078178-0.54160.295288
17-0.104175-0.72170.236976
18-0.07744-0.53650.297039
19-0.045889-0.31790.375959
20-0.085617-0.59320.277926
210.0918220.63620.263847
22-0.166733-1.15520.126872
230.1673661.15950.125985
24-0.273461-1.89460.032089
250.0432750.29980.382805
26-0.259622-1.79870.039176
27-0.011418-0.07910.468638
28-0.078606-0.54460.294276
290.026820.18580.426686
30-0.016225-0.11240.455485
31-0.016298-0.11290.455285
320.0378660.26230.397089
330.0126630.08770.465229
340.0909330.630.265841
350.0335680.23260.408544
360.1469931.01840.156798

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.059734 & -0.4138 & 0.340414 \tabularnewline
2 & 0.385595 & 2.6715 & 0.005141 \tabularnewline
3 & -0.110364 & -0.7646 & 0.22412 \tabularnewline
4 & 0.11002 & 0.7622 & 0.224823 \tabularnewline
5 & -0.015392 & -0.1066 & 0.457761 \tabularnewline
6 & 0.081745 & 0.5663 & 0.2869 \tabularnewline
7 & 0.014638 & 0.1014 & 0.459821 \tabularnewline
8 & -0.005683 & -0.0394 & 0.484377 \tabularnewline
9 & -0.010926 & -0.0757 & 0.469988 \tabularnewline
10 & -0.114837 & -0.7956 & 0.215088 \tabularnewline
11 & -0.203037 & -1.4067 & 0.082982 \tabularnewline
12 & -0.217151 & -1.5045 & 0.069507 \tabularnewline
13 & 0.025624 & 0.1775 & 0.429921 \tabularnewline
14 & -0.052809 & -0.3659 & 0.358033 \tabularnewline
15 & 0.166295 & 1.1521 & 0.127488 \tabularnewline
16 & -0.078178 & -0.5416 & 0.295288 \tabularnewline
17 & -0.104175 & -0.7217 & 0.236976 \tabularnewline
18 & -0.07744 & -0.5365 & 0.297039 \tabularnewline
19 & -0.045889 & -0.3179 & 0.375959 \tabularnewline
20 & -0.085617 & -0.5932 & 0.277926 \tabularnewline
21 & 0.091822 & 0.6362 & 0.263847 \tabularnewline
22 & -0.166733 & -1.1552 & 0.126872 \tabularnewline
23 & 0.167366 & 1.1595 & 0.125985 \tabularnewline
24 & -0.273461 & -1.8946 & 0.032089 \tabularnewline
25 & 0.043275 & 0.2998 & 0.382805 \tabularnewline
26 & -0.259622 & -1.7987 & 0.039176 \tabularnewline
27 & -0.011418 & -0.0791 & 0.468638 \tabularnewline
28 & -0.078606 & -0.5446 & 0.294276 \tabularnewline
29 & 0.02682 & 0.1858 & 0.426686 \tabularnewline
30 & -0.016225 & -0.1124 & 0.455485 \tabularnewline
31 & -0.016298 & -0.1129 & 0.455285 \tabularnewline
32 & 0.037866 & 0.2623 & 0.397089 \tabularnewline
33 & 0.012663 & 0.0877 & 0.465229 \tabularnewline
34 & 0.090933 & 0.63 & 0.265841 \tabularnewline
35 & 0.033568 & 0.2326 & 0.408544 \tabularnewline
36 & 0.146993 & 1.0184 & 0.156798 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61289&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.059734[/C][C]-0.4138[/C][C]0.340414[/C][/ROW]
[ROW][C]2[/C][C]0.385595[/C][C]2.6715[/C][C]0.005141[/C][/ROW]
[ROW][C]3[/C][C]-0.110364[/C][C]-0.7646[/C][C]0.22412[/C][/ROW]
[ROW][C]4[/C][C]0.11002[/C][C]0.7622[/C][C]0.224823[/C][/ROW]
[ROW][C]5[/C][C]-0.015392[/C][C]-0.1066[/C][C]0.457761[/C][/ROW]
[ROW][C]6[/C][C]0.081745[/C][C]0.5663[/C][C]0.2869[/C][/ROW]
[ROW][C]7[/C][C]0.014638[/C][C]0.1014[/C][C]0.459821[/C][/ROW]
[ROW][C]8[/C][C]-0.005683[/C][C]-0.0394[/C][C]0.484377[/C][/ROW]
[ROW][C]9[/C][C]-0.010926[/C][C]-0.0757[/C][C]0.469988[/C][/ROW]
[ROW][C]10[/C][C]-0.114837[/C][C]-0.7956[/C][C]0.215088[/C][/ROW]
[ROW][C]11[/C][C]-0.203037[/C][C]-1.4067[/C][C]0.082982[/C][/ROW]
[ROW][C]12[/C][C]-0.217151[/C][C]-1.5045[/C][C]0.069507[/C][/ROW]
[ROW][C]13[/C][C]0.025624[/C][C]0.1775[/C][C]0.429921[/C][/ROW]
[ROW][C]14[/C][C]-0.052809[/C][C]-0.3659[/C][C]0.358033[/C][/ROW]
[ROW][C]15[/C][C]0.166295[/C][C]1.1521[/C][C]0.127488[/C][/ROW]
[ROW][C]16[/C][C]-0.078178[/C][C]-0.5416[/C][C]0.295288[/C][/ROW]
[ROW][C]17[/C][C]-0.104175[/C][C]-0.7217[/C][C]0.236976[/C][/ROW]
[ROW][C]18[/C][C]-0.07744[/C][C]-0.5365[/C][C]0.297039[/C][/ROW]
[ROW][C]19[/C][C]-0.045889[/C][C]-0.3179[/C][C]0.375959[/C][/ROW]
[ROW][C]20[/C][C]-0.085617[/C][C]-0.5932[/C][C]0.277926[/C][/ROW]
[ROW][C]21[/C][C]0.091822[/C][C]0.6362[/C][C]0.263847[/C][/ROW]
[ROW][C]22[/C][C]-0.166733[/C][C]-1.1552[/C][C]0.126872[/C][/ROW]
[ROW][C]23[/C][C]0.167366[/C][C]1.1595[/C][C]0.125985[/C][/ROW]
[ROW][C]24[/C][C]-0.273461[/C][C]-1.8946[/C][C]0.032089[/C][/ROW]
[ROW][C]25[/C][C]0.043275[/C][C]0.2998[/C][C]0.382805[/C][/ROW]
[ROW][C]26[/C][C]-0.259622[/C][C]-1.7987[/C][C]0.039176[/C][/ROW]
[ROW][C]27[/C][C]-0.011418[/C][C]-0.0791[/C][C]0.468638[/C][/ROW]
[ROW][C]28[/C][C]-0.078606[/C][C]-0.5446[/C][C]0.294276[/C][/ROW]
[ROW][C]29[/C][C]0.02682[/C][C]0.1858[/C][C]0.426686[/C][/ROW]
[ROW][C]30[/C][C]-0.016225[/C][C]-0.1124[/C][C]0.455485[/C][/ROW]
[ROW][C]31[/C][C]-0.016298[/C][C]-0.1129[/C][C]0.455285[/C][/ROW]
[ROW][C]32[/C][C]0.037866[/C][C]0.2623[/C][C]0.397089[/C][/ROW]
[ROW][C]33[/C][C]0.012663[/C][C]0.0877[/C][C]0.465229[/C][/ROW]
[ROW][C]34[/C][C]0.090933[/C][C]0.63[/C][C]0.265841[/C][/ROW]
[ROW][C]35[/C][C]0.033568[/C][C]0.2326[/C][C]0.408544[/C][/ROW]
[ROW][C]36[/C][C]0.146993[/C][C]1.0184[/C][C]0.156798[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61289&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61289&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.059734-0.41380.340414
20.3855952.67150.005141
3-0.110364-0.76460.22412
40.110020.76220.224823
5-0.015392-0.10660.457761
60.0817450.56630.2869
70.0146380.10140.459821
8-0.005683-0.03940.484377
9-0.010926-0.07570.469988
10-0.114837-0.79560.215088
11-0.203037-1.40670.082982
12-0.217151-1.50450.069507
130.0256240.17750.429921
14-0.052809-0.36590.358033
150.1662951.15210.127488
16-0.078178-0.54160.295288
17-0.104175-0.72170.236976
18-0.07744-0.53650.297039
19-0.045889-0.31790.375959
20-0.085617-0.59320.277926
210.0918220.63620.263847
22-0.166733-1.15520.126872
230.1673661.15950.125985
24-0.273461-1.89460.032089
250.0432750.29980.382805
26-0.259622-1.79870.039176
27-0.011418-0.07910.468638
28-0.078606-0.54460.294276
290.026820.18580.426686
30-0.016225-0.11240.455485
31-0.016298-0.11290.455285
320.0378660.26230.397089
330.0126630.08770.465229
340.0909330.630.265841
350.0335680.23260.408544
360.1469931.01840.156798







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.059734-0.41380.340414
20.3833952.65620.005347
3-0.086191-0.59720.276606
4-0.04997-0.34620.365351
50.0711560.4930.312135
60.0569760.39470.347392
70.0016760.01160.495393
8-0.055946-0.38760.350011
9-0.014138-0.0980.461189
10-0.109427-0.75810.226039
11-0.250173-1.73320.044736
12-0.191216-1.32480.095758
130.1997651.3840.086378
140.0958070.66380.255007
150.0963390.66750.25384
16-0.031488-0.21820.414116
17-0.237203-1.64340.053419
18-0.030499-0.21130.416772
190.0639550.44310.329845
20-0.129493-0.89720.187058
210.080260.55610.290378
22-0.237834-1.64780.052967
230.0309850.21470.415466
24-0.154152-1.0680.145433
25-0.036069-0.24990.401868
260.0410370.28430.388696
27-0.063643-0.44090.330621
28-0.149215-1.03380.153208
29-0.065589-0.45440.325788
30-0.011593-0.08030.468158
310.0205490.14240.443693
320.1454471.00770.15933
330.0008540.00590.497653
34-0.071894-0.49810.310347
35-0.011122-0.07710.469451
36-0.066718-0.46220.323

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.059734 & -0.4138 & 0.340414 \tabularnewline
2 & 0.383395 & 2.6562 & 0.005347 \tabularnewline
3 & -0.086191 & -0.5972 & 0.276606 \tabularnewline
4 & -0.04997 & -0.3462 & 0.365351 \tabularnewline
5 & 0.071156 & 0.493 & 0.312135 \tabularnewline
6 & 0.056976 & 0.3947 & 0.347392 \tabularnewline
7 & 0.001676 & 0.0116 & 0.495393 \tabularnewline
8 & -0.055946 & -0.3876 & 0.350011 \tabularnewline
9 & -0.014138 & -0.098 & 0.461189 \tabularnewline
10 & -0.109427 & -0.7581 & 0.226039 \tabularnewline
11 & -0.250173 & -1.7332 & 0.044736 \tabularnewline
12 & -0.191216 & -1.3248 & 0.095758 \tabularnewline
13 & 0.199765 & 1.384 & 0.086378 \tabularnewline
14 & 0.095807 & 0.6638 & 0.255007 \tabularnewline
15 & 0.096339 & 0.6675 & 0.25384 \tabularnewline
16 & -0.031488 & -0.2182 & 0.414116 \tabularnewline
17 & -0.237203 & -1.6434 & 0.053419 \tabularnewline
18 & -0.030499 & -0.2113 & 0.416772 \tabularnewline
19 & 0.063955 & 0.4431 & 0.329845 \tabularnewline
20 & -0.129493 & -0.8972 & 0.187058 \tabularnewline
21 & 0.08026 & 0.5561 & 0.290378 \tabularnewline
22 & -0.237834 & -1.6478 & 0.052967 \tabularnewline
23 & 0.030985 & 0.2147 & 0.415466 \tabularnewline
24 & -0.154152 & -1.068 & 0.145433 \tabularnewline
25 & -0.036069 & -0.2499 & 0.401868 \tabularnewline
26 & 0.041037 & 0.2843 & 0.388696 \tabularnewline
27 & -0.063643 & -0.4409 & 0.330621 \tabularnewline
28 & -0.149215 & -1.0338 & 0.153208 \tabularnewline
29 & -0.065589 & -0.4544 & 0.325788 \tabularnewline
30 & -0.011593 & -0.0803 & 0.468158 \tabularnewline
31 & 0.020549 & 0.1424 & 0.443693 \tabularnewline
32 & 0.145447 & 1.0077 & 0.15933 \tabularnewline
33 & 0.000854 & 0.0059 & 0.497653 \tabularnewline
34 & -0.071894 & -0.4981 & 0.310347 \tabularnewline
35 & -0.011122 & -0.0771 & 0.469451 \tabularnewline
36 & -0.066718 & -0.4622 & 0.323 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61289&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.059734[/C][C]-0.4138[/C][C]0.340414[/C][/ROW]
[ROW][C]2[/C][C]0.383395[/C][C]2.6562[/C][C]0.005347[/C][/ROW]
[ROW][C]3[/C][C]-0.086191[/C][C]-0.5972[/C][C]0.276606[/C][/ROW]
[ROW][C]4[/C][C]-0.04997[/C][C]-0.3462[/C][C]0.365351[/C][/ROW]
[ROW][C]5[/C][C]0.071156[/C][C]0.493[/C][C]0.312135[/C][/ROW]
[ROW][C]6[/C][C]0.056976[/C][C]0.3947[/C][C]0.347392[/C][/ROW]
[ROW][C]7[/C][C]0.001676[/C][C]0.0116[/C][C]0.495393[/C][/ROW]
[ROW][C]8[/C][C]-0.055946[/C][C]-0.3876[/C][C]0.350011[/C][/ROW]
[ROW][C]9[/C][C]-0.014138[/C][C]-0.098[/C][C]0.461189[/C][/ROW]
[ROW][C]10[/C][C]-0.109427[/C][C]-0.7581[/C][C]0.226039[/C][/ROW]
[ROW][C]11[/C][C]-0.250173[/C][C]-1.7332[/C][C]0.044736[/C][/ROW]
[ROW][C]12[/C][C]-0.191216[/C][C]-1.3248[/C][C]0.095758[/C][/ROW]
[ROW][C]13[/C][C]0.199765[/C][C]1.384[/C][C]0.086378[/C][/ROW]
[ROW][C]14[/C][C]0.095807[/C][C]0.6638[/C][C]0.255007[/C][/ROW]
[ROW][C]15[/C][C]0.096339[/C][C]0.6675[/C][C]0.25384[/C][/ROW]
[ROW][C]16[/C][C]-0.031488[/C][C]-0.2182[/C][C]0.414116[/C][/ROW]
[ROW][C]17[/C][C]-0.237203[/C][C]-1.6434[/C][C]0.053419[/C][/ROW]
[ROW][C]18[/C][C]-0.030499[/C][C]-0.2113[/C][C]0.416772[/C][/ROW]
[ROW][C]19[/C][C]0.063955[/C][C]0.4431[/C][C]0.329845[/C][/ROW]
[ROW][C]20[/C][C]-0.129493[/C][C]-0.8972[/C][C]0.187058[/C][/ROW]
[ROW][C]21[/C][C]0.08026[/C][C]0.5561[/C][C]0.290378[/C][/ROW]
[ROW][C]22[/C][C]-0.237834[/C][C]-1.6478[/C][C]0.052967[/C][/ROW]
[ROW][C]23[/C][C]0.030985[/C][C]0.2147[/C][C]0.415466[/C][/ROW]
[ROW][C]24[/C][C]-0.154152[/C][C]-1.068[/C][C]0.145433[/C][/ROW]
[ROW][C]25[/C][C]-0.036069[/C][C]-0.2499[/C][C]0.401868[/C][/ROW]
[ROW][C]26[/C][C]0.041037[/C][C]0.2843[/C][C]0.388696[/C][/ROW]
[ROW][C]27[/C][C]-0.063643[/C][C]-0.4409[/C][C]0.330621[/C][/ROW]
[ROW][C]28[/C][C]-0.149215[/C][C]-1.0338[/C][C]0.153208[/C][/ROW]
[ROW][C]29[/C][C]-0.065589[/C][C]-0.4544[/C][C]0.325788[/C][/ROW]
[ROW][C]30[/C][C]-0.011593[/C][C]-0.0803[/C][C]0.468158[/C][/ROW]
[ROW][C]31[/C][C]0.020549[/C][C]0.1424[/C][C]0.443693[/C][/ROW]
[ROW][C]32[/C][C]0.145447[/C][C]1.0077[/C][C]0.15933[/C][/ROW]
[ROW][C]33[/C][C]0.000854[/C][C]0.0059[/C][C]0.497653[/C][/ROW]
[ROW][C]34[/C][C]-0.071894[/C][C]-0.4981[/C][C]0.310347[/C][/ROW]
[ROW][C]35[/C][C]-0.011122[/C][C]-0.0771[/C][C]0.469451[/C][/ROW]
[ROW][C]36[/C][C]-0.066718[/C][C]-0.4622[/C][C]0.323[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61289&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61289&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.059734-0.41380.340414
20.3833952.65620.005347
3-0.086191-0.59720.276606
4-0.04997-0.34620.365351
50.0711560.4930.312135
60.0569760.39470.347392
70.0016760.01160.495393
8-0.055946-0.38760.350011
9-0.014138-0.0980.461189
10-0.109427-0.75810.226039
11-0.250173-1.73320.044736
12-0.191216-1.32480.095758
130.1997651.3840.086378
140.0958070.66380.255007
150.0963390.66750.25384
16-0.031488-0.21820.414116
17-0.237203-1.64340.053419
18-0.030499-0.21130.416772
190.0639550.44310.329845
20-0.129493-0.89720.187058
210.080260.55610.290378
22-0.237834-1.64780.052967
230.0309850.21470.415466
24-0.154152-1.0680.145433
25-0.036069-0.24990.401868
260.0410370.28430.388696
27-0.063643-0.44090.330621
28-0.149215-1.03380.153208
29-0.065589-0.45440.325788
30-0.011593-0.08030.468158
310.0205490.14240.443693
320.1454471.00770.15933
330.0008540.00590.497653
34-0.071894-0.49810.310347
35-0.011122-0.07710.469451
36-0.066718-0.46220.323



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