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 01:19:28 -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/t1259310024nj0dremfzteoh4x.htm/, Retrieved Sun, 28 Apr 2024 21:16:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60462, Retrieved Sun, 28 Apr 2024 21:16:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact163
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:26:39] [b98453cac15ba1066b407e146608df68]
-    D          [(Partial) Autocorrelation Function] [partial autocorre...] [2009-11-27 08:19:28] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.3
8.2
8
7.9
7.6
7.6
8.3
8.4
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
8.2
8.1
8.1
8
7.9
7.9
8
8
7.9
8
7.7
7.2
7.5
7.3
7
7
7
7.2
7.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=60462&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=60462&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60462&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
10.5088673.52550.00047
2-0.126722-0.8780.192172
3-0.596995-4.13617.1e-05
4-0.605083-4.19215.9e-05
5-0.253923-1.75920.042456
60.1120010.7760.220789
70.3165392.1930.016591
80.3104162.15060.018285
90.1866431.29310.101082
100.0142990.09910.460749
11-0.181122-1.25490.107804
12-0.255618-1.7710.041457
13-0.130688-0.90540.184879
140.043720.30290.381637
150.1394260.9660.16945
160.110680.76680.223474
17-0.019895-0.13780.445473
18-0.045618-0.3160.376668
19-0.076178-0.52780.300044
200.0331330.22950.409709
210.0696860.48280.315716
22-0.019069-0.13210.447724
23-0.057942-0.40140.344941
24-0.105835-0.73320.233488
250.0179870.12460.450675
260.097620.67630.251039
270.0959310.66460.254735
28-0.019881-0.13770.44551
29-0.118562-0.82140.207733
30-0.093496-0.64780.260112
310.0452390.31340.377658
320.1057250.73250.233716
330.076980.53330.298133
340.0348310.24130.405169
35-0.008426-0.05840.476846
36-0.072139-0.49980.309751

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.508867 & 3.5255 & 0.00047 \tabularnewline
2 & -0.126722 & -0.878 & 0.192172 \tabularnewline
3 & -0.596995 & -4.1361 & 7.1e-05 \tabularnewline
4 & -0.605083 & -4.1921 & 5.9e-05 \tabularnewline
5 & -0.253923 & -1.7592 & 0.042456 \tabularnewline
6 & 0.112001 & 0.776 & 0.220789 \tabularnewline
7 & 0.316539 & 2.193 & 0.016591 \tabularnewline
8 & 0.310416 & 2.1506 & 0.018285 \tabularnewline
9 & 0.186643 & 1.2931 & 0.101082 \tabularnewline
10 & 0.014299 & 0.0991 & 0.460749 \tabularnewline
11 & -0.181122 & -1.2549 & 0.107804 \tabularnewline
12 & -0.255618 & -1.771 & 0.041457 \tabularnewline
13 & -0.130688 & -0.9054 & 0.184879 \tabularnewline
14 & 0.04372 & 0.3029 & 0.381637 \tabularnewline
15 & 0.139426 & 0.966 & 0.16945 \tabularnewline
16 & 0.11068 & 0.7668 & 0.223474 \tabularnewline
17 & -0.019895 & -0.1378 & 0.445473 \tabularnewline
18 & -0.045618 & -0.316 & 0.376668 \tabularnewline
19 & -0.076178 & -0.5278 & 0.300044 \tabularnewline
20 & 0.033133 & 0.2295 & 0.409709 \tabularnewline
21 & 0.069686 & 0.4828 & 0.315716 \tabularnewline
22 & -0.019069 & -0.1321 & 0.447724 \tabularnewline
23 & -0.057942 & -0.4014 & 0.344941 \tabularnewline
24 & -0.105835 & -0.7332 & 0.233488 \tabularnewline
25 & 0.017987 & 0.1246 & 0.450675 \tabularnewline
26 & 0.09762 & 0.6763 & 0.251039 \tabularnewline
27 & 0.095931 & 0.6646 & 0.254735 \tabularnewline
28 & -0.019881 & -0.1377 & 0.44551 \tabularnewline
29 & -0.118562 & -0.8214 & 0.207733 \tabularnewline
30 & -0.093496 & -0.6478 & 0.260112 \tabularnewline
31 & 0.045239 & 0.3134 & 0.377658 \tabularnewline
32 & 0.105725 & 0.7325 & 0.233716 \tabularnewline
33 & 0.07698 & 0.5333 & 0.298133 \tabularnewline
34 & 0.034831 & 0.2413 & 0.405169 \tabularnewline
35 & -0.008426 & -0.0584 & 0.476846 \tabularnewline
36 & -0.072139 & -0.4998 & 0.309751 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60462&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.508867[/C][C]3.5255[/C][C]0.00047[/C][/ROW]
[ROW][C]2[/C][C]-0.126722[/C][C]-0.878[/C][C]0.192172[/C][/ROW]
[ROW][C]3[/C][C]-0.596995[/C][C]-4.1361[/C][C]7.1e-05[/C][/ROW]
[ROW][C]4[/C][C]-0.605083[/C][C]-4.1921[/C][C]5.9e-05[/C][/ROW]
[ROW][C]5[/C][C]-0.253923[/C][C]-1.7592[/C][C]0.042456[/C][/ROW]
[ROW][C]6[/C][C]0.112001[/C][C]0.776[/C][C]0.220789[/C][/ROW]
[ROW][C]7[/C][C]0.316539[/C][C]2.193[/C][C]0.016591[/C][/ROW]
[ROW][C]8[/C][C]0.310416[/C][C]2.1506[/C][C]0.018285[/C][/ROW]
[ROW][C]9[/C][C]0.186643[/C][C]1.2931[/C][C]0.101082[/C][/ROW]
[ROW][C]10[/C][C]0.014299[/C][C]0.0991[/C][C]0.460749[/C][/ROW]
[ROW][C]11[/C][C]-0.181122[/C][C]-1.2549[/C][C]0.107804[/C][/ROW]
[ROW][C]12[/C][C]-0.255618[/C][C]-1.771[/C][C]0.041457[/C][/ROW]
[ROW][C]13[/C][C]-0.130688[/C][C]-0.9054[/C][C]0.184879[/C][/ROW]
[ROW][C]14[/C][C]0.04372[/C][C]0.3029[/C][C]0.381637[/C][/ROW]
[ROW][C]15[/C][C]0.139426[/C][C]0.966[/C][C]0.16945[/C][/ROW]
[ROW][C]16[/C][C]0.11068[/C][C]0.7668[/C][C]0.223474[/C][/ROW]
[ROW][C]17[/C][C]-0.019895[/C][C]-0.1378[/C][C]0.445473[/C][/ROW]
[ROW][C]18[/C][C]-0.045618[/C][C]-0.316[/C][C]0.376668[/C][/ROW]
[ROW][C]19[/C][C]-0.076178[/C][C]-0.5278[/C][C]0.300044[/C][/ROW]
[ROW][C]20[/C][C]0.033133[/C][C]0.2295[/C][C]0.409709[/C][/ROW]
[ROW][C]21[/C][C]0.069686[/C][C]0.4828[/C][C]0.315716[/C][/ROW]
[ROW][C]22[/C][C]-0.019069[/C][C]-0.1321[/C][C]0.447724[/C][/ROW]
[ROW][C]23[/C][C]-0.057942[/C][C]-0.4014[/C][C]0.344941[/C][/ROW]
[ROW][C]24[/C][C]-0.105835[/C][C]-0.7332[/C][C]0.233488[/C][/ROW]
[ROW][C]25[/C][C]0.017987[/C][C]0.1246[/C][C]0.450675[/C][/ROW]
[ROW][C]26[/C][C]0.09762[/C][C]0.6763[/C][C]0.251039[/C][/ROW]
[ROW][C]27[/C][C]0.095931[/C][C]0.6646[/C][C]0.254735[/C][/ROW]
[ROW][C]28[/C][C]-0.019881[/C][C]-0.1377[/C][C]0.44551[/C][/ROW]
[ROW][C]29[/C][C]-0.118562[/C][C]-0.8214[/C][C]0.207733[/C][/ROW]
[ROW][C]30[/C][C]-0.093496[/C][C]-0.6478[/C][C]0.260112[/C][/ROW]
[ROW][C]31[/C][C]0.045239[/C][C]0.3134[/C][C]0.377658[/C][/ROW]
[ROW][C]32[/C][C]0.105725[/C][C]0.7325[/C][C]0.233716[/C][/ROW]
[ROW][C]33[/C][C]0.07698[/C][C]0.5333[/C][C]0.298133[/C][/ROW]
[ROW][C]34[/C][C]0.034831[/C][C]0.2413[/C][C]0.405169[/C][/ROW]
[ROW][C]35[/C][C]-0.008426[/C][C]-0.0584[/C][C]0.476846[/C][/ROW]
[ROW][C]36[/C][C]-0.072139[/C][C]-0.4998[/C][C]0.309751[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60462&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60462&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.5088673.52550.00047
2-0.126722-0.8780.192172
3-0.596995-4.13617.1e-05
4-0.605083-4.19215.9e-05
5-0.253923-1.75920.042456
60.1120010.7760.220789
70.3165392.1930.016591
80.3104162.15060.018285
90.1866431.29310.101082
100.0142990.09910.460749
11-0.181122-1.25490.107804
12-0.255618-1.7710.041457
13-0.130688-0.90540.184879
140.043720.30290.381637
150.1394260.9660.16945
160.110680.76680.223474
17-0.019895-0.13780.445473
18-0.045618-0.3160.376668
19-0.076178-0.52780.300044
200.0331330.22950.409709
210.0696860.48280.315716
22-0.019069-0.13210.447724
23-0.057942-0.40140.344941
24-0.105835-0.73320.233488
250.0179870.12460.450675
260.097620.67630.251039
270.0959310.66460.254735
28-0.019881-0.13770.44551
29-0.118562-0.82140.207733
30-0.093496-0.64780.260112
310.0452390.31340.377658
320.1057250.73250.233716
330.076980.53330.298133
340.0348310.24130.405169
35-0.008426-0.05840.476846
36-0.072139-0.49980.309751







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5088673.52550.00047
2-0.52043-3.60560.00037
3-0.433284-3.00190.002125
4-0.184082-1.27540.10416
5-0.117533-0.81430.20975
6-0.242063-1.67710.050016
7-0.166095-1.15070.12777
8-0.078339-0.54270.294907
9-0.001321-0.00920.496369
10-0.022159-0.15350.439316
11-0.144266-0.99950.161282
12-0.049889-0.34560.365561
130.1221940.84660.200714
14-0.002947-0.02040.491899
15-0.081759-0.56640.286865
16-0.021343-0.14790.441532
17-0.09015-0.62460.267603
180.0610350.42290.337143
19-0.190319-1.31860.096785
200.0956170.66250.255425
21-0.008347-0.05780.477062
22-0.210171-1.45610.075936
23-0.0251-0.17390.431339
24-0.155469-1.07710.143405
250.11070.7670.223433
26-0.087282-0.60470.274111
27-0.110656-0.76670.223522
28-0.169526-1.17450.122992
29-0.08195-0.56780.286421
30-0.070968-0.49170.312593
31-0.021293-0.14750.441668
32-0.113246-0.78460.218274
33-0.080138-0.55520.290664
340.056870.3940.347661
350.0226680.1570.437933
36-0.199227-1.38030.086947

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.508867 & 3.5255 & 0.00047 \tabularnewline
2 & -0.52043 & -3.6056 & 0.00037 \tabularnewline
3 & -0.433284 & -3.0019 & 0.002125 \tabularnewline
4 & -0.184082 & -1.2754 & 0.10416 \tabularnewline
5 & -0.117533 & -0.8143 & 0.20975 \tabularnewline
6 & -0.242063 & -1.6771 & 0.050016 \tabularnewline
7 & -0.166095 & -1.1507 & 0.12777 \tabularnewline
8 & -0.078339 & -0.5427 & 0.294907 \tabularnewline
9 & -0.001321 & -0.0092 & 0.496369 \tabularnewline
10 & -0.022159 & -0.1535 & 0.439316 \tabularnewline
11 & -0.144266 & -0.9995 & 0.161282 \tabularnewline
12 & -0.049889 & -0.3456 & 0.365561 \tabularnewline
13 & 0.122194 & 0.8466 & 0.200714 \tabularnewline
14 & -0.002947 & -0.0204 & 0.491899 \tabularnewline
15 & -0.081759 & -0.5664 & 0.286865 \tabularnewline
16 & -0.021343 & -0.1479 & 0.441532 \tabularnewline
17 & -0.09015 & -0.6246 & 0.267603 \tabularnewline
18 & 0.061035 & 0.4229 & 0.337143 \tabularnewline
19 & -0.190319 & -1.3186 & 0.096785 \tabularnewline
20 & 0.095617 & 0.6625 & 0.255425 \tabularnewline
21 & -0.008347 & -0.0578 & 0.477062 \tabularnewline
22 & -0.210171 & -1.4561 & 0.075936 \tabularnewline
23 & -0.0251 & -0.1739 & 0.431339 \tabularnewline
24 & -0.155469 & -1.0771 & 0.143405 \tabularnewline
25 & 0.1107 & 0.767 & 0.223433 \tabularnewline
26 & -0.087282 & -0.6047 & 0.274111 \tabularnewline
27 & -0.110656 & -0.7667 & 0.223522 \tabularnewline
28 & -0.169526 & -1.1745 & 0.122992 \tabularnewline
29 & -0.08195 & -0.5678 & 0.286421 \tabularnewline
30 & -0.070968 & -0.4917 & 0.312593 \tabularnewline
31 & -0.021293 & -0.1475 & 0.441668 \tabularnewline
32 & -0.113246 & -0.7846 & 0.218274 \tabularnewline
33 & -0.080138 & -0.5552 & 0.290664 \tabularnewline
34 & 0.05687 & 0.394 & 0.347661 \tabularnewline
35 & 0.022668 & 0.157 & 0.437933 \tabularnewline
36 & -0.199227 & -1.3803 & 0.086947 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60462&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.508867[/C][C]3.5255[/C][C]0.00047[/C][/ROW]
[ROW][C]2[/C][C]-0.52043[/C][C]-3.6056[/C][C]0.00037[/C][/ROW]
[ROW][C]3[/C][C]-0.433284[/C][C]-3.0019[/C][C]0.002125[/C][/ROW]
[ROW][C]4[/C][C]-0.184082[/C][C]-1.2754[/C][C]0.10416[/C][/ROW]
[ROW][C]5[/C][C]-0.117533[/C][C]-0.8143[/C][C]0.20975[/C][/ROW]
[ROW][C]6[/C][C]-0.242063[/C][C]-1.6771[/C][C]0.050016[/C][/ROW]
[ROW][C]7[/C][C]-0.166095[/C][C]-1.1507[/C][C]0.12777[/C][/ROW]
[ROW][C]8[/C][C]-0.078339[/C][C]-0.5427[/C][C]0.294907[/C][/ROW]
[ROW][C]9[/C][C]-0.001321[/C][C]-0.0092[/C][C]0.496369[/C][/ROW]
[ROW][C]10[/C][C]-0.022159[/C][C]-0.1535[/C][C]0.439316[/C][/ROW]
[ROW][C]11[/C][C]-0.144266[/C][C]-0.9995[/C][C]0.161282[/C][/ROW]
[ROW][C]12[/C][C]-0.049889[/C][C]-0.3456[/C][C]0.365561[/C][/ROW]
[ROW][C]13[/C][C]0.122194[/C][C]0.8466[/C][C]0.200714[/C][/ROW]
[ROW][C]14[/C][C]-0.002947[/C][C]-0.0204[/C][C]0.491899[/C][/ROW]
[ROW][C]15[/C][C]-0.081759[/C][C]-0.5664[/C][C]0.286865[/C][/ROW]
[ROW][C]16[/C][C]-0.021343[/C][C]-0.1479[/C][C]0.441532[/C][/ROW]
[ROW][C]17[/C][C]-0.09015[/C][C]-0.6246[/C][C]0.267603[/C][/ROW]
[ROW][C]18[/C][C]0.061035[/C][C]0.4229[/C][C]0.337143[/C][/ROW]
[ROW][C]19[/C][C]-0.190319[/C][C]-1.3186[/C][C]0.096785[/C][/ROW]
[ROW][C]20[/C][C]0.095617[/C][C]0.6625[/C][C]0.255425[/C][/ROW]
[ROW][C]21[/C][C]-0.008347[/C][C]-0.0578[/C][C]0.477062[/C][/ROW]
[ROW][C]22[/C][C]-0.210171[/C][C]-1.4561[/C][C]0.075936[/C][/ROW]
[ROW][C]23[/C][C]-0.0251[/C][C]-0.1739[/C][C]0.431339[/C][/ROW]
[ROW][C]24[/C][C]-0.155469[/C][C]-1.0771[/C][C]0.143405[/C][/ROW]
[ROW][C]25[/C][C]0.1107[/C][C]0.767[/C][C]0.223433[/C][/ROW]
[ROW][C]26[/C][C]-0.087282[/C][C]-0.6047[/C][C]0.274111[/C][/ROW]
[ROW][C]27[/C][C]-0.110656[/C][C]-0.7667[/C][C]0.223522[/C][/ROW]
[ROW][C]28[/C][C]-0.169526[/C][C]-1.1745[/C][C]0.122992[/C][/ROW]
[ROW][C]29[/C][C]-0.08195[/C][C]-0.5678[/C][C]0.286421[/C][/ROW]
[ROW][C]30[/C][C]-0.070968[/C][C]-0.4917[/C][C]0.312593[/C][/ROW]
[ROW][C]31[/C][C]-0.021293[/C][C]-0.1475[/C][C]0.441668[/C][/ROW]
[ROW][C]32[/C][C]-0.113246[/C][C]-0.7846[/C][C]0.218274[/C][/ROW]
[ROW][C]33[/C][C]-0.080138[/C][C]-0.5552[/C][C]0.290664[/C][/ROW]
[ROW][C]34[/C][C]0.05687[/C][C]0.394[/C][C]0.347661[/C][/ROW]
[ROW][C]35[/C][C]0.022668[/C][C]0.157[/C][C]0.437933[/C][/ROW]
[ROW][C]36[/C][C]-0.199227[/C][C]-1.3803[/C][C]0.086947[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60462&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60462&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.5088673.52550.00047
2-0.52043-3.60560.00037
3-0.433284-3.00190.002125
4-0.184082-1.27540.10416
5-0.117533-0.81430.20975
6-0.242063-1.67710.050016
7-0.166095-1.15070.12777
8-0.078339-0.54270.294907
9-0.001321-0.00920.496369
10-0.022159-0.15350.439316
11-0.144266-0.99950.161282
12-0.049889-0.34560.365561
130.1221940.84660.200714
14-0.002947-0.02040.491899
15-0.081759-0.56640.286865
16-0.021343-0.14790.441532
17-0.09015-0.62460.267603
180.0610350.42290.337143
19-0.190319-1.31860.096785
200.0956170.66250.255425
21-0.008347-0.05780.477062
22-0.210171-1.45610.075936
23-0.0251-0.17390.431339
24-0.155469-1.07710.143405
250.11070.7670.223433
26-0.087282-0.60470.274111
27-0.110656-0.76670.223522
28-0.169526-1.17450.122992
29-0.08195-0.56780.286421
30-0.070968-0.49170.312593
31-0.021293-0.14750.441668
32-0.113246-0.78460.218274
33-0.080138-0.55520.290664
340.056870.3940.347661
350.0226680.1570.437933
36-0.199227-1.38030.086947



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