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 04:49:50 -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/t12593226709o77z9podvcnab8.htm/, Retrieved Mon, 29 Apr 2024 04:16:17 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60594, Retrieved Mon, 29 Apr 2024 04:16:17 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact130
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-27 11:49:50] [5d37783481a916b2505b66314b556267] [Current]
Feedback Forum

Post a new message
Dataseries X:
3.75
3.75
3.55
3.5
3.5
3.1
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3.21
3.25
3.25
3.45
3.5
3.5
3.64
3.75
3.93
4
4.17
4.25
4.39
4.5
4.5
4.65
4.75
4.75
4.9
5
5
5
5
5
5
5
5
5
5
5
5
5.18
5.25
5.25
4.49
3.92
3.25




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60594&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.8515056.59570
20.7175945.55850
30.6139854.75596e-06
40.5677984.39812.3e-05
50.516263.99898.8e-05
60.4697433.63860.000286
70.4098363.17460.001184
80.3517672.72480.004209
90.2837462.19790.015914
100.2174341.68420.048666
110.1549551.20030.117376
120.0860380.66640.25384
130.0195430.15140.440092
14-0.04218-0.32670.372505
15-0.104143-0.80670.211516
16-0.15567-1.20580.116311
17-0.203252-1.57440.060329
18-0.231193-1.79080.039184
19-0.257453-1.99420.025339
20-0.281123-2.17760.016691
21-0.300845-2.33030.011585
22-0.326029-2.52540.007108
23-0.345257-2.67430.004817
24-0.352548-2.73080.004141
25-0.360443-2.7920.003509
26-0.356093-2.75830.003845
27-0.341334-2.6440.005221
28-0.329856-2.55510.006586
29-0.316723-2.45330.008538
30-0.309359-2.39630.009848
31-0.300008-2.32390.011769
32-0.290779-2.25240.013985
33-0.273416-2.11790.019169
34-0.245169-1.89910.031183
35-0.224197-1.73660.043793
36-0.200189-1.55070.063121

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.851505 & 6.5957 & 0 \tabularnewline
2 & 0.717594 & 5.5585 & 0 \tabularnewline
3 & 0.613985 & 4.7559 & 6e-06 \tabularnewline
4 & 0.567798 & 4.3981 & 2.3e-05 \tabularnewline
5 & 0.51626 & 3.9989 & 8.8e-05 \tabularnewline
6 & 0.469743 & 3.6386 & 0.000286 \tabularnewline
7 & 0.409836 & 3.1746 & 0.001184 \tabularnewline
8 & 0.351767 & 2.7248 & 0.004209 \tabularnewline
9 & 0.283746 & 2.1979 & 0.015914 \tabularnewline
10 & 0.217434 & 1.6842 & 0.048666 \tabularnewline
11 & 0.154955 & 1.2003 & 0.117376 \tabularnewline
12 & 0.086038 & 0.6664 & 0.25384 \tabularnewline
13 & 0.019543 & 0.1514 & 0.440092 \tabularnewline
14 & -0.04218 & -0.3267 & 0.372505 \tabularnewline
15 & -0.104143 & -0.8067 & 0.211516 \tabularnewline
16 & -0.15567 & -1.2058 & 0.116311 \tabularnewline
17 & -0.203252 & -1.5744 & 0.060329 \tabularnewline
18 & -0.231193 & -1.7908 & 0.039184 \tabularnewline
19 & -0.257453 & -1.9942 & 0.025339 \tabularnewline
20 & -0.281123 & -2.1776 & 0.016691 \tabularnewline
21 & -0.300845 & -2.3303 & 0.011585 \tabularnewline
22 & -0.326029 & -2.5254 & 0.007108 \tabularnewline
23 & -0.345257 & -2.6743 & 0.004817 \tabularnewline
24 & -0.352548 & -2.7308 & 0.004141 \tabularnewline
25 & -0.360443 & -2.792 & 0.003509 \tabularnewline
26 & -0.356093 & -2.7583 & 0.003845 \tabularnewline
27 & -0.341334 & -2.644 & 0.005221 \tabularnewline
28 & -0.329856 & -2.5551 & 0.006586 \tabularnewline
29 & -0.316723 & -2.4533 & 0.008538 \tabularnewline
30 & -0.309359 & -2.3963 & 0.009848 \tabularnewline
31 & -0.300008 & -2.3239 & 0.011769 \tabularnewline
32 & -0.290779 & -2.2524 & 0.013985 \tabularnewline
33 & -0.273416 & -2.1179 & 0.019169 \tabularnewline
34 & -0.245169 & -1.8991 & 0.031183 \tabularnewline
35 & -0.224197 & -1.7366 & 0.043793 \tabularnewline
36 & -0.200189 & -1.5507 & 0.063121 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60594&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.851505[/C][C]6.5957[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.717594[/C][C]5.5585[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.613985[/C][C]4.7559[/C][C]6e-06[/C][/ROW]
[ROW][C]4[/C][C]0.567798[/C][C]4.3981[/C][C]2.3e-05[/C][/ROW]
[ROW][C]5[/C][C]0.51626[/C][C]3.9989[/C][C]8.8e-05[/C][/ROW]
[ROW][C]6[/C][C]0.469743[/C][C]3.6386[/C][C]0.000286[/C][/ROW]
[ROW][C]7[/C][C]0.409836[/C][C]3.1746[/C][C]0.001184[/C][/ROW]
[ROW][C]8[/C][C]0.351767[/C][C]2.7248[/C][C]0.004209[/C][/ROW]
[ROW][C]9[/C][C]0.283746[/C][C]2.1979[/C][C]0.015914[/C][/ROW]
[ROW][C]10[/C][C]0.217434[/C][C]1.6842[/C][C]0.048666[/C][/ROW]
[ROW][C]11[/C][C]0.154955[/C][C]1.2003[/C][C]0.117376[/C][/ROW]
[ROW][C]12[/C][C]0.086038[/C][C]0.6664[/C][C]0.25384[/C][/ROW]
[ROW][C]13[/C][C]0.019543[/C][C]0.1514[/C][C]0.440092[/C][/ROW]
[ROW][C]14[/C][C]-0.04218[/C][C]-0.3267[/C][C]0.372505[/C][/ROW]
[ROW][C]15[/C][C]-0.104143[/C][C]-0.8067[/C][C]0.211516[/C][/ROW]
[ROW][C]16[/C][C]-0.15567[/C][C]-1.2058[/C][C]0.116311[/C][/ROW]
[ROW][C]17[/C][C]-0.203252[/C][C]-1.5744[/C][C]0.060329[/C][/ROW]
[ROW][C]18[/C][C]-0.231193[/C][C]-1.7908[/C][C]0.039184[/C][/ROW]
[ROW][C]19[/C][C]-0.257453[/C][C]-1.9942[/C][C]0.025339[/C][/ROW]
[ROW][C]20[/C][C]-0.281123[/C][C]-2.1776[/C][C]0.016691[/C][/ROW]
[ROW][C]21[/C][C]-0.300845[/C][C]-2.3303[/C][C]0.011585[/C][/ROW]
[ROW][C]22[/C][C]-0.326029[/C][C]-2.5254[/C][C]0.007108[/C][/ROW]
[ROW][C]23[/C][C]-0.345257[/C][C]-2.6743[/C][C]0.004817[/C][/ROW]
[ROW][C]24[/C][C]-0.352548[/C][C]-2.7308[/C][C]0.004141[/C][/ROW]
[ROW][C]25[/C][C]-0.360443[/C][C]-2.792[/C][C]0.003509[/C][/ROW]
[ROW][C]26[/C][C]-0.356093[/C][C]-2.7583[/C][C]0.003845[/C][/ROW]
[ROW][C]27[/C][C]-0.341334[/C][C]-2.644[/C][C]0.005221[/C][/ROW]
[ROW][C]28[/C][C]-0.329856[/C][C]-2.5551[/C][C]0.006586[/C][/ROW]
[ROW][C]29[/C][C]-0.316723[/C][C]-2.4533[/C][C]0.008538[/C][/ROW]
[ROW][C]30[/C][C]-0.309359[/C][C]-2.3963[/C][C]0.009848[/C][/ROW]
[ROW][C]31[/C][C]-0.300008[/C][C]-2.3239[/C][C]0.011769[/C][/ROW]
[ROW][C]32[/C][C]-0.290779[/C][C]-2.2524[/C][C]0.013985[/C][/ROW]
[ROW][C]33[/C][C]-0.273416[/C][C]-2.1179[/C][C]0.019169[/C][/ROW]
[ROW][C]34[/C][C]-0.245169[/C][C]-1.8991[/C][C]0.031183[/C][/ROW]
[ROW][C]35[/C][C]-0.224197[/C][C]-1.7366[/C][C]0.043793[/C][/ROW]
[ROW][C]36[/C][C]-0.200189[/C][C]-1.5507[/C][C]0.063121[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60594&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60594&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.8515056.59570
20.7175945.55850
30.6139854.75596e-06
40.5677984.39812.3e-05
50.516263.99898.8e-05
60.4697433.63860.000286
70.4098363.17460.001184
80.3517672.72480.004209
90.2837462.19790.015914
100.2174341.68420.048666
110.1549551.20030.117376
120.0860380.66640.25384
130.0195430.15140.440092
14-0.04218-0.32670.372505
15-0.104143-0.80670.211516
16-0.15567-1.20580.116311
17-0.203252-1.57440.060329
18-0.231193-1.79080.039184
19-0.257453-1.99420.025339
20-0.281123-2.17760.016691
21-0.300845-2.33030.011585
22-0.326029-2.52540.007108
23-0.345257-2.67430.004817
24-0.352548-2.73080.004141
25-0.360443-2.7920.003509
26-0.356093-2.75830.003845
27-0.341334-2.6440.005221
28-0.329856-2.55510.006586
29-0.316723-2.45330.008538
30-0.309359-2.39630.009848
31-0.300008-2.32390.011769
32-0.290779-2.25240.013985
33-0.273416-2.11790.019169
34-0.245169-1.89910.031183
35-0.224197-1.73660.043793
36-0.200189-1.55070.063121







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8515056.59570
2-0.02716-0.21040.417042
30.0345110.26730.395069
40.1529641.18490.120373
5-0.026018-0.20150.420482
60.0201590.15610.43822
7-0.041613-0.32230.37416
8-0.03121-0.24180.404897
9-0.070403-0.54530.293771
10-0.057755-0.44740.32811
11-0.0434-0.33620.368955
12-0.094477-0.73180.233564
13-0.056368-0.43660.331976
14-0.053478-0.41420.340087
15-0.077362-0.59920.275632
16-0.028057-0.21730.414346
17-0.048478-0.37550.354303
180.0156130.12090.452074
19-0.025553-0.19790.421884
20-0.021921-0.16980.432869
21-0.002011-0.01560.493813
22-0.062592-0.48480.314781
23-0.017791-0.13780.445428
24-0.006487-0.05020.480047
25-0.052554-0.40710.342698
260.0088620.06860.472751
270.0074640.05780.477045
28-0.03473-0.2690.39442
29-0.009582-0.07420.470539
30-0.043536-0.33720.36856
31-0.028712-0.22240.412377
32-0.04241-0.32850.371837
33-0.010032-0.07770.469159
340.0122930.09520.46223
35-0.048928-0.3790.353015
360.0080730.06250.475172

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.851505 & 6.5957 & 0 \tabularnewline
2 & -0.02716 & -0.2104 & 0.417042 \tabularnewline
3 & 0.034511 & 0.2673 & 0.395069 \tabularnewline
4 & 0.152964 & 1.1849 & 0.120373 \tabularnewline
5 & -0.026018 & -0.2015 & 0.420482 \tabularnewline
6 & 0.020159 & 0.1561 & 0.43822 \tabularnewline
7 & -0.041613 & -0.3223 & 0.37416 \tabularnewline
8 & -0.03121 & -0.2418 & 0.404897 \tabularnewline
9 & -0.070403 & -0.5453 & 0.293771 \tabularnewline
10 & -0.057755 & -0.4474 & 0.32811 \tabularnewline
11 & -0.0434 & -0.3362 & 0.368955 \tabularnewline
12 & -0.094477 & -0.7318 & 0.233564 \tabularnewline
13 & -0.056368 & -0.4366 & 0.331976 \tabularnewline
14 & -0.053478 & -0.4142 & 0.340087 \tabularnewline
15 & -0.077362 & -0.5992 & 0.275632 \tabularnewline
16 & -0.028057 & -0.2173 & 0.414346 \tabularnewline
17 & -0.048478 & -0.3755 & 0.354303 \tabularnewline
18 & 0.015613 & 0.1209 & 0.452074 \tabularnewline
19 & -0.025553 & -0.1979 & 0.421884 \tabularnewline
20 & -0.021921 & -0.1698 & 0.432869 \tabularnewline
21 & -0.002011 & -0.0156 & 0.493813 \tabularnewline
22 & -0.062592 & -0.4848 & 0.314781 \tabularnewline
23 & -0.017791 & -0.1378 & 0.445428 \tabularnewline
24 & -0.006487 & -0.0502 & 0.480047 \tabularnewline
25 & -0.052554 & -0.4071 & 0.342698 \tabularnewline
26 & 0.008862 & 0.0686 & 0.472751 \tabularnewline
27 & 0.007464 & 0.0578 & 0.477045 \tabularnewline
28 & -0.03473 & -0.269 & 0.39442 \tabularnewline
29 & -0.009582 & -0.0742 & 0.470539 \tabularnewline
30 & -0.043536 & -0.3372 & 0.36856 \tabularnewline
31 & -0.028712 & -0.2224 & 0.412377 \tabularnewline
32 & -0.04241 & -0.3285 & 0.371837 \tabularnewline
33 & -0.010032 & -0.0777 & 0.469159 \tabularnewline
34 & 0.012293 & 0.0952 & 0.46223 \tabularnewline
35 & -0.048928 & -0.379 & 0.353015 \tabularnewline
36 & 0.008073 & 0.0625 & 0.475172 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60594&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.851505[/C][C]6.5957[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.02716[/C][C]-0.2104[/C][C]0.417042[/C][/ROW]
[ROW][C]3[/C][C]0.034511[/C][C]0.2673[/C][C]0.395069[/C][/ROW]
[ROW][C]4[/C][C]0.152964[/C][C]1.1849[/C][C]0.120373[/C][/ROW]
[ROW][C]5[/C][C]-0.026018[/C][C]-0.2015[/C][C]0.420482[/C][/ROW]
[ROW][C]6[/C][C]0.020159[/C][C]0.1561[/C][C]0.43822[/C][/ROW]
[ROW][C]7[/C][C]-0.041613[/C][C]-0.3223[/C][C]0.37416[/C][/ROW]
[ROW][C]8[/C][C]-0.03121[/C][C]-0.2418[/C][C]0.404897[/C][/ROW]
[ROW][C]9[/C][C]-0.070403[/C][C]-0.5453[/C][C]0.293771[/C][/ROW]
[ROW][C]10[/C][C]-0.057755[/C][C]-0.4474[/C][C]0.32811[/C][/ROW]
[ROW][C]11[/C][C]-0.0434[/C][C]-0.3362[/C][C]0.368955[/C][/ROW]
[ROW][C]12[/C][C]-0.094477[/C][C]-0.7318[/C][C]0.233564[/C][/ROW]
[ROW][C]13[/C][C]-0.056368[/C][C]-0.4366[/C][C]0.331976[/C][/ROW]
[ROW][C]14[/C][C]-0.053478[/C][C]-0.4142[/C][C]0.340087[/C][/ROW]
[ROW][C]15[/C][C]-0.077362[/C][C]-0.5992[/C][C]0.275632[/C][/ROW]
[ROW][C]16[/C][C]-0.028057[/C][C]-0.2173[/C][C]0.414346[/C][/ROW]
[ROW][C]17[/C][C]-0.048478[/C][C]-0.3755[/C][C]0.354303[/C][/ROW]
[ROW][C]18[/C][C]0.015613[/C][C]0.1209[/C][C]0.452074[/C][/ROW]
[ROW][C]19[/C][C]-0.025553[/C][C]-0.1979[/C][C]0.421884[/C][/ROW]
[ROW][C]20[/C][C]-0.021921[/C][C]-0.1698[/C][C]0.432869[/C][/ROW]
[ROW][C]21[/C][C]-0.002011[/C][C]-0.0156[/C][C]0.493813[/C][/ROW]
[ROW][C]22[/C][C]-0.062592[/C][C]-0.4848[/C][C]0.314781[/C][/ROW]
[ROW][C]23[/C][C]-0.017791[/C][C]-0.1378[/C][C]0.445428[/C][/ROW]
[ROW][C]24[/C][C]-0.006487[/C][C]-0.0502[/C][C]0.480047[/C][/ROW]
[ROW][C]25[/C][C]-0.052554[/C][C]-0.4071[/C][C]0.342698[/C][/ROW]
[ROW][C]26[/C][C]0.008862[/C][C]0.0686[/C][C]0.472751[/C][/ROW]
[ROW][C]27[/C][C]0.007464[/C][C]0.0578[/C][C]0.477045[/C][/ROW]
[ROW][C]28[/C][C]-0.03473[/C][C]-0.269[/C][C]0.39442[/C][/ROW]
[ROW][C]29[/C][C]-0.009582[/C][C]-0.0742[/C][C]0.470539[/C][/ROW]
[ROW][C]30[/C][C]-0.043536[/C][C]-0.3372[/C][C]0.36856[/C][/ROW]
[ROW][C]31[/C][C]-0.028712[/C][C]-0.2224[/C][C]0.412377[/C][/ROW]
[ROW][C]32[/C][C]-0.04241[/C][C]-0.3285[/C][C]0.371837[/C][/ROW]
[ROW][C]33[/C][C]-0.010032[/C][C]-0.0777[/C][C]0.469159[/C][/ROW]
[ROW][C]34[/C][C]0.012293[/C][C]0.0952[/C][C]0.46223[/C][/ROW]
[ROW][C]35[/C][C]-0.048928[/C][C]-0.379[/C][C]0.353015[/C][/ROW]
[ROW][C]36[/C][C]0.008073[/C][C]0.0625[/C][C]0.475172[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60594&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60594&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.8515056.59570
2-0.02716-0.21040.417042
30.0345110.26730.395069
40.1529641.18490.120373
5-0.026018-0.20150.420482
60.0201590.15610.43822
7-0.041613-0.32230.37416
8-0.03121-0.24180.404897
9-0.070403-0.54530.293771
10-0.057755-0.44740.32811
11-0.0434-0.33620.368955
12-0.094477-0.73180.233564
13-0.056368-0.43660.331976
14-0.053478-0.41420.340087
15-0.077362-0.59920.275632
16-0.028057-0.21730.414346
17-0.048478-0.37550.354303
180.0156130.12090.452074
19-0.025553-0.19790.421884
20-0.021921-0.16980.432869
21-0.002011-0.01560.493813
22-0.062592-0.48480.314781
23-0.017791-0.13780.445428
24-0.006487-0.05020.480047
25-0.052554-0.40710.342698
260.0088620.06860.472751
270.0074640.05780.477045
28-0.03473-0.2690.39442
29-0.009582-0.07420.470539
30-0.043536-0.33720.36856
31-0.028712-0.22240.412377
32-0.04241-0.32850.371837
33-0.010032-0.07770.469159
340.0122930.09520.46223
35-0.048928-0.3790.353015
360.0080730.06250.475172



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