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 computationThu, 26 Nov 2009 03:00:57 -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/26/t125922981322nn3sxuulwij0p.htm/, Retrieved Sun, 28 Apr 2024 21:14:23 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59757, Retrieved Sun, 28 Apr 2024 21:14:23 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact144
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-12 13:32:37] [76963dc1903f0f612b6153510a3818cf]
- R  D  [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-17 12:14:40] [76963dc1903f0f612b6153510a3818cf]
-         [Univariate Explorative Data Analysis] [Run Sequence Plot...] [2008-12-22 18:19:51] [1ce0d16c8f4225c977b42c8fa93bc163]
- RMP       [(Partial) Autocorrelation Function] [Identifying Integ...] [2009-11-22 12:16:10] [b98453cac15ba1066b407e146608df68]
-   PD          [(Partial) Autocorrelation Function] [] [2009-11-26 10:00:57] [b4088cbf8335906ce53a9289ed6fac01] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.4
8.4
8.4
8.6
8.9
8.8
8.3
7.5
7.2
7.4
8.8
9.3
9.3
8.7
8.2
8.3
8.5
8.6
8.5
8.2
8.1
7.9
8.6
8.7
8.7
8.5
8.4
8.5
8.7
8.7
8.6
8.5
8.3
8.00
8.2
8.1
8.1
8.00
7.9
7.9
8.00
8.00
7.9
8.00
7.7
7.2
7.5
7.3
7.00
7.00
7.00
7.2
7.3
7.1
6.8
6.4
6.1
6.5
7.7
7.9
7.5
6.9
6.6
6.9
7.7
8.00
8.00
7.7
7.3
7.4
8.1
8.3
8.2




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59757&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.5563164.30923.1e-05
2-0.094391-0.73120.233766
3-0.514257-3.98349.3e-05
4-0.561403-4.34862.7e-05
5-0.224143-1.73620.04383
60.1647011.27580.103478
70.3995353.09480.001495
80.3488872.70250.004469
90.0602480.46670.321211
10-0.122908-0.9520.172447
11-0.183222-1.41920.080503
12-0.157777-1.22210.113218
13-0.009983-0.07730.46931
140.1035370.8020.21286
150.0764620.59230.277946
16-0.014229-0.11020.456303
17-0.073359-0.56820.285998
18-0.050922-0.39440.347327
19-0.039088-0.30280.381554
200.0424270.32860.371787
210.1164460.9020.185334
220.0248680.19260.423952
23-0.06681-0.51750.303353
24-0.106805-0.82730.20567
25-0.013504-0.10460.458521
260.0797480.61770.269547
270.0412810.31980.375129
28-0.038462-0.29790.383395
29-0.112386-0.87050.193738
30-0.122842-0.95150.172575
310.0605070.46870.320496
320.1685541.30560.098334
330.1479881.14630.128109
340.0311110.2410.405195
35-0.174483-1.35150.090798
36-0.258714-2.0040.024796

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.556316 & 4.3092 & 3.1e-05 \tabularnewline
2 & -0.094391 & -0.7312 & 0.233766 \tabularnewline
3 & -0.514257 & -3.9834 & 9.3e-05 \tabularnewline
4 & -0.561403 & -4.3486 & 2.7e-05 \tabularnewline
5 & -0.224143 & -1.7362 & 0.04383 \tabularnewline
6 & 0.164701 & 1.2758 & 0.103478 \tabularnewline
7 & 0.399535 & 3.0948 & 0.001495 \tabularnewline
8 & 0.348887 & 2.7025 & 0.004469 \tabularnewline
9 & 0.060248 & 0.4667 & 0.321211 \tabularnewline
10 & -0.122908 & -0.952 & 0.172447 \tabularnewline
11 & -0.183222 & -1.4192 & 0.080503 \tabularnewline
12 & -0.157777 & -1.2221 & 0.113218 \tabularnewline
13 & -0.009983 & -0.0773 & 0.46931 \tabularnewline
14 & 0.103537 & 0.802 & 0.21286 \tabularnewline
15 & 0.076462 & 0.5923 & 0.277946 \tabularnewline
16 & -0.014229 & -0.1102 & 0.456303 \tabularnewline
17 & -0.073359 & -0.5682 & 0.285998 \tabularnewline
18 & -0.050922 & -0.3944 & 0.347327 \tabularnewline
19 & -0.039088 & -0.3028 & 0.381554 \tabularnewline
20 & 0.042427 & 0.3286 & 0.371787 \tabularnewline
21 & 0.116446 & 0.902 & 0.185334 \tabularnewline
22 & 0.024868 & 0.1926 & 0.423952 \tabularnewline
23 & -0.06681 & -0.5175 & 0.303353 \tabularnewline
24 & -0.106805 & -0.8273 & 0.20567 \tabularnewline
25 & -0.013504 & -0.1046 & 0.458521 \tabularnewline
26 & 0.079748 & 0.6177 & 0.269547 \tabularnewline
27 & 0.041281 & 0.3198 & 0.375129 \tabularnewline
28 & -0.038462 & -0.2979 & 0.383395 \tabularnewline
29 & -0.112386 & -0.8705 & 0.193738 \tabularnewline
30 & -0.122842 & -0.9515 & 0.172575 \tabularnewline
31 & 0.060507 & 0.4687 & 0.320496 \tabularnewline
32 & 0.168554 & 1.3056 & 0.098334 \tabularnewline
33 & 0.147988 & 1.1463 & 0.128109 \tabularnewline
34 & 0.031111 & 0.241 & 0.405195 \tabularnewline
35 & -0.174483 & -1.3515 & 0.090798 \tabularnewline
36 & -0.258714 & -2.004 & 0.024796 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59757&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.556316[/C][C]4.3092[/C][C]3.1e-05[/C][/ROW]
[ROW][C]2[/C][C]-0.094391[/C][C]-0.7312[/C][C]0.233766[/C][/ROW]
[ROW][C]3[/C][C]-0.514257[/C][C]-3.9834[/C][C]9.3e-05[/C][/ROW]
[ROW][C]4[/C][C]-0.561403[/C][C]-4.3486[/C][C]2.7e-05[/C][/ROW]
[ROW][C]5[/C][C]-0.224143[/C][C]-1.7362[/C][C]0.04383[/C][/ROW]
[ROW][C]6[/C][C]0.164701[/C][C]1.2758[/C][C]0.103478[/C][/ROW]
[ROW][C]7[/C][C]0.399535[/C][C]3.0948[/C][C]0.001495[/C][/ROW]
[ROW][C]8[/C][C]0.348887[/C][C]2.7025[/C][C]0.004469[/C][/ROW]
[ROW][C]9[/C][C]0.060248[/C][C]0.4667[/C][C]0.321211[/C][/ROW]
[ROW][C]10[/C][C]-0.122908[/C][C]-0.952[/C][C]0.172447[/C][/ROW]
[ROW][C]11[/C][C]-0.183222[/C][C]-1.4192[/C][C]0.080503[/C][/ROW]
[ROW][C]12[/C][C]-0.157777[/C][C]-1.2221[/C][C]0.113218[/C][/ROW]
[ROW][C]13[/C][C]-0.009983[/C][C]-0.0773[/C][C]0.46931[/C][/ROW]
[ROW][C]14[/C][C]0.103537[/C][C]0.802[/C][C]0.21286[/C][/ROW]
[ROW][C]15[/C][C]0.076462[/C][C]0.5923[/C][C]0.277946[/C][/ROW]
[ROW][C]16[/C][C]-0.014229[/C][C]-0.1102[/C][C]0.456303[/C][/ROW]
[ROW][C]17[/C][C]-0.073359[/C][C]-0.5682[/C][C]0.285998[/C][/ROW]
[ROW][C]18[/C][C]-0.050922[/C][C]-0.3944[/C][C]0.347327[/C][/ROW]
[ROW][C]19[/C][C]-0.039088[/C][C]-0.3028[/C][C]0.381554[/C][/ROW]
[ROW][C]20[/C][C]0.042427[/C][C]0.3286[/C][C]0.371787[/C][/ROW]
[ROW][C]21[/C][C]0.116446[/C][C]0.902[/C][C]0.185334[/C][/ROW]
[ROW][C]22[/C][C]0.024868[/C][C]0.1926[/C][C]0.423952[/C][/ROW]
[ROW][C]23[/C][C]-0.06681[/C][C]-0.5175[/C][C]0.303353[/C][/ROW]
[ROW][C]24[/C][C]-0.106805[/C][C]-0.8273[/C][C]0.20567[/C][/ROW]
[ROW][C]25[/C][C]-0.013504[/C][C]-0.1046[/C][C]0.458521[/C][/ROW]
[ROW][C]26[/C][C]0.079748[/C][C]0.6177[/C][C]0.269547[/C][/ROW]
[ROW][C]27[/C][C]0.041281[/C][C]0.3198[/C][C]0.375129[/C][/ROW]
[ROW][C]28[/C][C]-0.038462[/C][C]-0.2979[/C][C]0.383395[/C][/ROW]
[ROW][C]29[/C][C]-0.112386[/C][C]-0.8705[/C][C]0.193738[/C][/ROW]
[ROW][C]30[/C][C]-0.122842[/C][C]-0.9515[/C][C]0.172575[/C][/ROW]
[ROW][C]31[/C][C]0.060507[/C][C]0.4687[/C][C]0.320496[/C][/ROW]
[ROW][C]32[/C][C]0.168554[/C][C]1.3056[/C][C]0.098334[/C][/ROW]
[ROW][C]33[/C][C]0.147988[/C][C]1.1463[/C][C]0.128109[/C][/ROW]
[ROW][C]34[/C][C]0.031111[/C][C]0.241[/C][C]0.405195[/C][/ROW]
[ROW][C]35[/C][C]-0.174483[/C][C]-1.3515[/C][C]0.090798[/C][/ROW]
[ROW][C]36[/C][C]-0.258714[/C][C]-2.004[/C][C]0.024796[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59757&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59757&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.5563164.30923.1e-05
2-0.094391-0.73120.233766
3-0.514257-3.98349.3e-05
4-0.561403-4.34862.7e-05
5-0.224143-1.73620.04383
60.1647011.27580.103478
70.3995353.09480.001495
80.3488872.70250.004469
90.0602480.46670.321211
10-0.122908-0.9520.172447
11-0.183222-1.41920.080503
12-0.157777-1.22210.113218
13-0.009983-0.07730.46931
140.1035370.8020.21286
150.0764620.59230.277946
16-0.014229-0.11020.456303
17-0.073359-0.56820.285998
18-0.050922-0.39440.347327
19-0.039088-0.30280.381554
200.0424270.32860.371787
210.1164460.9020.185334
220.0248680.19260.423952
23-0.06681-0.51750.303353
24-0.106805-0.82730.20567
25-0.013504-0.10460.458521
260.0797480.61770.269547
270.0412810.31980.375129
28-0.038462-0.29790.383395
29-0.112386-0.87050.193738
30-0.122842-0.95150.172575
310.0605070.46870.320496
320.1685541.30560.098334
330.1479881.14630.128109
340.0311110.2410.405195
35-0.174483-1.35150.090798
36-0.258714-2.0040.024796







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5563164.30923.1e-05
2-0.584896-4.53061.4e-05
3-0.232552-1.80130.038337
4-0.196438-1.52160.066681
50.0878210.68030.249479
6-0.054566-0.42270.337024
70.1152950.89310.187694
8-0.017972-0.13920.444874
9-0.041604-0.32230.374185
100.2140111.65770.051297
11-0.025392-0.19670.422369
12-0.044711-0.34630.365153
130.0980030.75910.225375
140.0084390.06540.47405
15-0.147213-1.14030.129344
16-0.018862-0.14610.442163
170.0015920.01230.495102
18-0.049546-0.38380.35125
19-0.11732-0.90880.183557
200.1654761.28180.102427
21-0.034836-0.26980.394106
22-0.1442-1.1170.13423
230.1186960.91940.18078
24-0.043463-0.33670.368774
250.1547861.1990.117628
26-0.04155-0.32180.374344
27-0.098231-0.76090.224851
28-0.127505-0.98770.163645
290.048260.37380.354928
30-0.039382-0.30510.38069
310.136671.05860.147002
32-0.117418-0.90950.183358
330.0781130.60510.273711
34-0.040795-0.3160.376551
35-0.125143-0.96940.168129
36-0.018629-0.14430.442873

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.556316 & 4.3092 & 3.1e-05 \tabularnewline
2 & -0.584896 & -4.5306 & 1.4e-05 \tabularnewline
3 & -0.232552 & -1.8013 & 0.038337 \tabularnewline
4 & -0.196438 & -1.5216 & 0.066681 \tabularnewline
5 & 0.087821 & 0.6803 & 0.249479 \tabularnewline
6 & -0.054566 & -0.4227 & 0.337024 \tabularnewline
7 & 0.115295 & 0.8931 & 0.187694 \tabularnewline
8 & -0.017972 & -0.1392 & 0.444874 \tabularnewline
9 & -0.041604 & -0.3223 & 0.374185 \tabularnewline
10 & 0.214011 & 1.6577 & 0.051297 \tabularnewline
11 & -0.025392 & -0.1967 & 0.422369 \tabularnewline
12 & -0.044711 & -0.3463 & 0.365153 \tabularnewline
13 & 0.098003 & 0.7591 & 0.225375 \tabularnewline
14 & 0.008439 & 0.0654 & 0.47405 \tabularnewline
15 & -0.147213 & -1.1403 & 0.129344 \tabularnewline
16 & -0.018862 & -0.1461 & 0.442163 \tabularnewline
17 & 0.001592 & 0.0123 & 0.495102 \tabularnewline
18 & -0.049546 & -0.3838 & 0.35125 \tabularnewline
19 & -0.11732 & -0.9088 & 0.183557 \tabularnewline
20 & 0.165476 & 1.2818 & 0.102427 \tabularnewline
21 & -0.034836 & -0.2698 & 0.394106 \tabularnewline
22 & -0.1442 & -1.117 & 0.13423 \tabularnewline
23 & 0.118696 & 0.9194 & 0.18078 \tabularnewline
24 & -0.043463 & -0.3367 & 0.368774 \tabularnewline
25 & 0.154786 & 1.199 & 0.117628 \tabularnewline
26 & -0.04155 & -0.3218 & 0.374344 \tabularnewline
27 & -0.098231 & -0.7609 & 0.224851 \tabularnewline
28 & -0.127505 & -0.9877 & 0.163645 \tabularnewline
29 & 0.04826 & 0.3738 & 0.354928 \tabularnewline
30 & -0.039382 & -0.3051 & 0.38069 \tabularnewline
31 & 0.13667 & 1.0586 & 0.147002 \tabularnewline
32 & -0.117418 & -0.9095 & 0.183358 \tabularnewline
33 & 0.078113 & 0.6051 & 0.273711 \tabularnewline
34 & -0.040795 & -0.316 & 0.376551 \tabularnewline
35 & -0.125143 & -0.9694 & 0.168129 \tabularnewline
36 & -0.018629 & -0.1443 & 0.442873 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59757&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.556316[/C][C]4.3092[/C][C]3.1e-05[/C][/ROW]
[ROW][C]2[/C][C]-0.584896[/C][C]-4.5306[/C][C]1.4e-05[/C][/ROW]
[ROW][C]3[/C][C]-0.232552[/C][C]-1.8013[/C][C]0.038337[/C][/ROW]
[ROW][C]4[/C][C]-0.196438[/C][C]-1.5216[/C][C]0.066681[/C][/ROW]
[ROW][C]5[/C][C]0.087821[/C][C]0.6803[/C][C]0.249479[/C][/ROW]
[ROW][C]6[/C][C]-0.054566[/C][C]-0.4227[/C][C]0.337024[/C][/ROW]
[ROW][C]7[/C][C]0.115295[/C][C]0.8931[/C][C]0.187694[/C][/ROW]
[ROW][C]8[/C][C]-0.017972[/C][C]-0.1392[/C][C]0.444874[/C][/ROW]
[ROW][C]9[/C][C]-0.041604[/C][C]-0.3223[/C][C]0.374185[/C][/ROW]
[ROW][C]10[/C][C]0.214011[/C][C]1.6577[/C][C]0.051297[/C][/ROW]
[ROW][C]11[/C][C]-0.025392[/C][C]-0.1967[/C][C]0.422369[/C][/ROW]
[ROW][C]12[/C][C]-0.044711[/C][C]-0.3463[/C][C]0.365153[/C][/ROW]
[ROW][C]13[/C][C]0.098003[/C][C]0.7591[/C][C]0.225375[/C][/ROW]
[ROW][C]14[/C][C]0.008439[/C][C]0.0654[/C][C]0.47405[/C][/ROW]
[ROW][C]15[/C][C]-0.147213[/C][C]-1.1403[/C][C]0.129344[/C][/ROW]
[ROW][C]16[/C][C]-0.018862[/C][C]-0.1461[/C][C]0.442163[/C][/ROW]
[ROW][C]17[/C][C]0.001592[/C][C]0.0123[/C][C]0.495102[/C][/ROW]
[ROW][C]18[/C][C]-0.049546[/C][C]-0.3838[/C][C]0.35125[/C][/ROW]
[ROW][C]19[/C][C]-0.11732[/C][C]-0.9088[/C][C]0.183557[/C][/ROW]
[ROW][C]20[/C][C]0.165476[/C][C]1.2818[/C][C]0.102427[/C][/ROW]
[ROW][C]21[/C][C]-0.034836[/C][C]-0.2698[/C][C]0.394106[/C][/ROW]
[ROW][C]22[/C][C]-0.1442[/C][C]-1.117[/C][C]0.13423[/C][/ROW]
[ROW][C]23[/C][C]0.118696[/C][C]0.9194[/C][C]0.18078[/C][/ROW]
[ROW][C]24[/C][C]-0.043463[/C][C]-0.3367[/C][C]0.368774[/C][/ROW]
[ROW][C]25[/C][C]0.154786[/C][C]1.199[/C][C]0.117628[/C][/ROW]
[ROW][C]26[/C][C]-0.04155[/C][C]-0.3218[/C][C]0.374344[/C][/ROW]
[ROW][C]27[/C][C]-0.098231[/C][C]-0.7609[/C][C]0.224851[/C][/ROW]
[ROW][C]28[/C][C]-0.127505[/C][C]-0.9877[/C][C]0.163645[/C][/ROW]
[ROW][C]29[/C][C]0.04826[/C][C]0.3738[/C][C]0.354928[/C][/ROW]
[ROW][C]30[/C][C]-0.039382[/C][C]-0.3051[/C][C]0.38069[/C][/ROW]
[ROW][C]31[/C][C]0.13667[/C][C]1.0586[/C][C]0.147002[/C][/ROW]
[ROW][C]32[/C][C]-0.117418[/C][C]-0.9095[/C][C]0.183358[/C][/ROW]
[ROW][C]33[/C][C]0.078113[/C][C]0.6051[/C][C]0.273711[/C][/ROW]
[ROW][C]34[/C][C]-0.040795[/C][C]-0.316[/C][C]0.376551[/C][/ROW]
[ROW][C]35[/C][C]-0.125143[/C][C]-0.9694[/C][C]0.168129[/C][/ROW]
[ROW][C]36[/C][C]-0.018629[/C][C]-0.1443[/C][C]0.442873[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59757&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59757&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.5563164.30923.1e-05
2-0.584896-4.53061.4e-05
3-0.232552-1.80130.038337
4-0.196438-1.52160.066681
50.0878210.68030.249479
6-0.054566-0.42270.337024
70.1152950.89310.187694
8-0.017972-0.13920.444874
9-0.041604-0.32230.374185
100.2140111.65770.051297
11-0.025392-0.19670.422369
12-0.044711-0.34630.365153
130.0980030.75910.225375
140.0084390.06540.47405
15-0.147213-1.14030.129344
16-0.018862-0.14610.442163
170.0015920.01230.495102
18-0.049546-0.38380.35125
19-0.11732-0.90880.183557
200.1654761.28180.102427
21-0.034836-0.26980.394106
22-0.1442-1.1170.13423
230.1186960.91940.18078
24-0.043463-0.33670.368774
250.1547861.1990.117628
26-0.04155-0.32180.374344
27-0.098231-0.76090.224851
28-0.127505-0.98770.163645
290.048260.37380.354928
30-0.039382-0.30510.38069
310.136671.05860.147002
32-0.117418-0.90950.183358
330.0781130.60510.273711
34-0.040795-0.3160.376551
35-0.125143-0.96940.168129
36-0.018629-0.14430.442873



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