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 13:18: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/26/t12592668229xbhaqg24nshcfm.htm/, Retrieved Mon, 29 Apr 2024 03:06:42 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60365, Retrieved Mon, 29 Apr 2024 03:06:42 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact112
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] [Workshop 8, metho...] [2009-11-26 20:18:50] [e339dd08bcbfc073ac7494f09a949034] [Current]
Feedback Forum

Post a new message
Dataseries X:
25.6
23.7
22
21.3
20.7
20.4
20.3
20.4
19.8
19.5
23.1
23.5
23.5
22.9
21.9
21.5
20.5
20.2
19.4
19.2
18.8
18.8
22.6
23.3
23
21.4
19.9
18.8
18.6
18.4
18.6
19.9
19.2
18.4
21.1
20.5
19.1
18.1
17
17.1
17.4
16.8
15.3
14.3
13.4
15.3
22.1
23.7
22.2
19.5
16.6
17.3
19.8
21.2
21.5
20.6
19.1
19.6
23.5
24




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60365&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
10.2997252.03280.023932
2-0.123172-0.83540.203907
3-0.497425-3.37370.000757
4-0.590963-4.00810.000111
5-0.155433-1.05420.148649
60.2050721.39090.085479
70.414492.81120.003614
80.3505632.37760.010818
90.1150140.78010.219675
10-0.212661-1.44230.077991
11-0.20987-1.42340.080682
12-0.352377-2.38990.010502
13-0.099674-0.6760.251205
140.1537481.04280.151253
150.2482691.68380.049493
160.1270170.86150.196723
170.0561650.38090.352504
18-0.023812-0.16150.436203
19-0.192523-1.30580.099064
20-0.075097-0.50930.306477
21-0.111896-0.75890.225888
220.0439420.2980.383511
230.1055460.71580.238853
240.1082730.73430.233234
250.0663970.45030.327295
260.039330.26670.395428
27-0.157088-1.06540.146122
28-0.05818-0.39460.347482
29-0.021865-0.14830.441379
30-0.089635-0.60790.27311
310.075060.50910.306565
320.0349610.23710.40681
330.06780.45980.323899
340.0154160.10460.45859
35-0.034964-0.23710.406801
36-0.044338-0.30070.382493

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.299725 & 2.0328 & 0.023932 \tabularnewline
2 & -0.123172 & -0.8354 & 0.203907 \tabularnewline
3 & -0.497425 & -3.3737 & 0.000757 \tabularnewline
4 & -0.590963 & -4.0081 & 0.000111 \tabularnewline
5 & -0.155433 & -1.0542 & 0.148649 \tabularnewline
6 & 0.205072 & 1.3909 & 0.085479 \tabularnewline
7 & 0.41449 & 2.8112 & 0.003614 \tabularnewline
8 & 0.350563 & 2.3776 & 0.010818 \tabularnewline
9 & 0.115014 & 0.7801 & 0.219675 \tabularnewline
10 & -0.212661 & -1.4423 & 0.077991 \tabularnewline
11 & -0.20987 & -1.4234 & 0.080682 \tabularnewline
12 & -0.352377 & -2.3899 & 0.010502 \tabularnewline
13 & -0.099674 & -0.676 & 0.251205 \tabularnewline
14 & 0.153748 & 1.0428 & 0.151253 \tabularnewline
15 & 0.248269 & 1.6838 & 0.049493 \tabularnewline
16 & 0.127017 & 0.8615 & 0.196723 \tabularnewline
17 & 0.056165 & 0.3809 & 0.352504 \tabularnewline
18 & -0.023812 & -0.1615 & 0.436203 \tabularnewline
19 & -0.192523 & -1.3058 & 0.099064 \tabularnewline
20 & -0.075097 & -0.5093 & 0.306477 \tabularnewline
21 & -0.111896 & -0.7589 & 0.225888 \tabularnewline
22 & 0.043942 & 0.298 & 0.383511 \tabularnewline
23 & 0.105546 & 0.7158 & 0.238853 \tabularnewline
24 & 0.108273 & 0.7343 & 0.233234 \tabularnewline
25 & 0.066397 & 0.4503 & 0.327295 \tabularnewline
26 & 0.03933 & 0.2667 & 0.395428 \tabularnewline
27 & -0.157088 & -1.0654 & 0.146122 \tabularnewline
28 & -0.05818 & -0.3946 & 0.347482 \tabularnewline
29 & -0.021865 & -0.1483 & 0.441379 \tabularnewline
30 & -0.089635 & -0.6079 & 0.27311 \tabularnewline
31 & 0.07506 & 0.5091 & 0.306565 \tabularnewline
32 & 0.034961 & 0.2371 & 0.40681 \tabularnewline
33 & 0.0678 & 0.4598 & 0.323899 \tabularnewline
34 & 0.015416 & 0.1046 & 0.45859 \tabularnewline
35 & -0.034964 & -0.2371 & 0.406801 \tabularnewline
36 & -0.044338 & -0.3007 & 0.382493 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60365&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.299725[/C][C]2.0328[/C][C]0.023932[/C][/ROW]
[ROW][C]2[/C][C]-0.123172[/C][C]-0.8354[/C][C]0.203907[/C][/ROW]
[ROW][C]3[/C][C]-0.497425[/C][C]-3.3737[/C][C]0.000757[/C][/ROW]
[ROW][C]4[/C][C]-0.590963[/C][C]-4.0081[/C][C]0.000111[/C][/ROW]
[ROW][C]5[/C][C]-0.155433[/C][C]-1.0542[/C][C]0.148649[/C][/ROW]
[ROW][C]6[/C][C]0.205072[/C][C]1.3909[/C][C]0.085479[/C][/ROW]
[ROW][C]7[/C][C]0.41449[/C][C]2.8112[/C][C]0.003614[/C][/ROW]
[ROW][C]8[/C][C]0.350563[/C][C]2.3776[/C][C]0.010818[/C][/ROW]
[ROW][C]9[/C][C]0.115014[/C][C]0.7801[/C][C]0.219675[/C][/ROW]
[ROW][C]10[/C][C]-0.212661[/C][C]-1.4423[/C][C]0.077991[/C][/ROW]
[ROW][C]11[/C][C]-0.20987[/C][C]-1.4234[/C][C]0.080682[/C][/ROW]
[ROW][C]12[/C][C]-0.352377[/C][C]-2.3899[/C][C]0.010502[/C][/ROW]
[ROW][C]13[/C][C]-0.099674[/C][C]-0.676[/C][C]0.251205[/C][/ROW]
[ROW][C]14[/C][C]0.153748[/C][C]1.0428[/C][C]0.151253[/C][/ROW]
[ROW][C]15[/C][C]0.248269[/C][C]1.6838[/C][C]0.049493[/C][/ROW]
[ROW][C]16[/C][C]0.127017[/C][C]0.8615[/C][C]0.196723[/C][/ROW]
[ROW][C]17[/C][C]0.056165[/C][C]0.3809[/C][C]0.352504[/C][/ROW]
[ROW][C]18[/C][C]-0.023812[/C][C]-0.1615[/C][C]0.436203[/C][/ROW]
[ROW][C]19[/C][C]-0.192523[/C][C]-1.3058[/C][C]0.099064[/C][/ROW]
[ROW][C]20[/C][C]-0.075097[/C][C]-0.5093[/C][C]0.306477[/C][/ROW]
[ROW][C]21[/C][C]-0.111896[/C][C]-0.7589[/C][C]0.225888[/C][/ROW]
[ROW][C]22[/C][C]0.043942[/C][C]0.298[/C][C]0.383511[/C][/ROW]
[ROW][C]23[/C][C]0.105546[/C][C]0.7158[/C][C]0.238853[/C][/ROW]
[ROW][C]24[/C][C]0.108273[/C][C]0.7343[/C][C]0.233234[/C][/ROW]
[ROW][C]25[/C][C]0.066397[/C][C]0.4503[/C][C]0.327295[/C][/ROW]
[ROW][C]26[/C][C]0.03933[/C][C]0.2667[/C][C]0.395428[/C][/ROW]
[ROW][C]27[/C][C]-0.157088[/C][C]-1.0654[/C][C]0.146122[/C][/ROW]
[ROW][C]28[/C][C]-0.05818[/C][C]-0.3946[/C][C]0.347482[/C][/ROW]
[ROW][C]29[/C][C]-0.021865[/C][C]-0.1483[/C][C]0.441379[/C][/ROW]
[ROW][C]30[/C][C]-0.089635[/C][C]-0.6079[/C][C]0.27311[/C][/ROW]
[ROW][C]31[/C][C]0.07506[/C][C]0.5091[/C][C]0.306565[/C][/ROW]
[ROW][C]32[/C][C]0.034961[/C][C]0.2371[/C][C]0.40681[/C][/ROW]
[ROW][C]33[/C][C]0.0678[/C][C]0.4598[/C][C]0.323899[/C][/ROW]
[ROW][C]34[/C][C]0.015416[/C][C]0.1046[/C][C]0.45859[/C][/ROW]
[ROW][C]35[/C][C]-0.034964[/C][C]-0.2371[/C][C]0.406801[/C][/ROW]
[ROW][C]36[/C][C]-0.044338[/C][C]-0.3007[/C][C]0.382493[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60365&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60365&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.2997252.03280.023932
2-0.123172-0.83540.203907
3-0.497425-3.37370.000757
4-0.590963-4.00810.000111
5-0.155433-1.05420.148649
60.2050721.39090.085479
70.414492.81120.003614
80.3505632.37760.010818
90.1150140.78010.219675
10-0.212661-1.44230.077991
11-0.20987-1.42340.080682
12-0.352377-2.38990.010502
13-0.099674-0.6760.251205
140.1537481.04280.151253
150.2482691.68380.049493
160.1270170.86150.196723
170.0561650.38090.352504
18-0.023812-0.16150.436203
19-0.192523-1.30580.099064
20-0.075097-0.50930.306477
21-0.111896-0.75890.225888
220.0439420.2980.383511
230.1055460.71580.238853
240.1082730.73430.233234
250.0663970.45030.327295
260.039330.26670.395428
27-0.157088-1.06540.146122
28-0.05818-0.39460.347482
29-0.021865-0.14830.441379
30-0.089635-0.60790.27311
310.075060.50910.306565
320.0349610.23710.40681
330.06780.45980.323899
340.0154160.10460.45859
35-0.034964-0.23710.406801
36-0.044338-0.30070.382493







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2997252.03280.023932
2-0.234031-1.58730.059651
3-0.4437-3.00930.002119
4-0.483768-3.28110.000989
5-0.133164-0.90320.185573
6-0.125894-0.85390.198805
7-0.108261-0.73430.233258
8-0.059511-0.40360.344181
90.1059460.71860.238024
10-0.007339-0.04980.480259
110.2492941.69080.048821
12-0.183133-1.24210.110253
13-0.005311-0.0360.485711
140.0079630.0540.478582
150.0217460.14750.441696
16-0.392717-2.66350.005311
17-0.004319-0.02930.488378
180.1143230.77540.221042
19-0.121646-0.8250.206802
20-0.042645-0.28920.386852
210.0403610.27370.392756
220.0508030.34460.365998
230.061080.41430.340304
24-0.025194-0.17090.432536
25-0.106417-0.72180.237049
260.1513821.02670.154961
27-0.080979-0.54920.292753
28-0.024917-0.1690.43327
29-0.072474-0.49150.31269
300.0017510.01190.495288
31-0.095948-0.65070.259223
32-0.073669-0.49960.309853
33-0.131539-0.89210.18848
34-0.070597-0.47880.317171
35-0.116811-0.79230.21614
360.0110720.07510.470232

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.299725 & 2.0328 & 0.023932 \tabularnewline
2 & -0.234031 & -1.5873 & 0.059651 \tabularnewline
3 & -0.4437 & -3.0093 & 0.002119 \tabularnewline
4 & -0.483768 & -3.2811 & 0.000989 \tabularnewline
5 & -0.133164 & -0.9032 & 0.185573 \tabularnewline
6 & -0.125894 & -0.8539 & 0.198805 \tabularnewline
7 & -0.108261 & -0.7343 & 0.233258 \tabularnewline
8 & -0.059511 & -0.4036 & 0.344181 \tabularnewline
9 & 0.105946 & 0.7186 & 0.238024 \tabularnewline
10 & -0.007339 & -0.0498 & 0.480259 \tabularnewline
11 & 0.249294 & 1.6908 & 0.048821 \tabularnewline
12 & -0.183133 & -1.2421 & 0.110253 \tabularnewline
13 & -0.005311 & -0.036 & 0.485711 \tabularnewline
14 & 0.007963 & 0.054 & 0.478582 \tabularnewline
15 & 0.021746 & 0.1475 & 0.441696 \tabularnewline
16 & -0.392717 & -2.6635 & 0.005311 \tabularnewline
17 & -0.004319 & -0.0293 & 0.488378 \tabularnewline
18 & 0.114323 & 0.7754 & 0.221042 \tabularnewline
19 & -0.121646 & -0.825 & 0.206802 \tabularnewline
20 & -0.042645 & -0.2892 & 0.386852 \tabularnewline
21 & 0.040361 & 0.2737 & 0.392756 \tabularnewline
22 & 0.050803 & 0.3446 & 0.365998 \tabularnewline
23 & 0.06108 & 0.4143 & 0.340304 \tabularnewline
24 & -0.025194 & -0.1709 & 0.432536 \tabularnewline
25 & -0.106417 & -0.7218 & 0.237049 \tabularnewline
26 & 0.151382 & 1.0267 & 0.154961 \tabularnewline
27 & -0.080979 & -0.5492 & 0.292753 \tabularnewline
28 & -0.024917 & -0.169 & 0.43327 \tabularnewline
29 & -0.072474 & -0.4915 & 0.31269 \tabularnewline
30 & 0.001751 & 0.0119 & 0.495288 \tabularnewline
31 & -0.095948 & -0.6507 & 0.259223 \tabularnewline
32 & -0.073669 & -0.4996 & 0.309853 \tabularnewline
33 & -0.131539 & -0.8921 & 0.18848 \tabularnewline
34 & -0.070597 & -0.4788 & 0.317171 \tabularnewline
35 & -0.116811 & -0.7923 & 0.21614 \tabularnewline
36 & 0.011072 & 0.0751 & 0.470232 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60365&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.299725[/C][C]2.0328[/C][C]0.023932[/C][/ROW]
[ROW][C]2[/C][C]-0.234031[/C][C]-1.5873[/C][C]0.059651[/C][/ROW]
[ROW][C]3[/C][C]-0.4437[/C][C]-3.0093[/C][C]0.002119[/C][/ROW]
[ROW][C]4[/C][C]-0.483768[/C][C]-3.2811[/C][C]0.000989[/C][/ROW]
[ROW][C]5[/C][C]-0.133164[/C][C]-0.9032[/C][C]0.185573[/C][/ROW]
[ROW][C]6[/C][C]-0.125894[/C][C]-0.8539[/C][C]0.198805[/C][/ROW]
[ROW][C]7[/C][C]-0.108261[/C][C]-0.7343[/C][C]0.233258[/C][/ROW]
[ROW][C]8[/C][C]-0.059511[/C][C]-0.4036[/C][C]0.344181[/C][/ROW]
[ROW][C]9[/C][C]0.105946[/C][C]0.7186[/C][C]0.238024[/C][/ROW]
[ROW][C]10[/C][C]-0.007339[/C][C]-0.0498[/C][C]0.480259[/C][/ROW]
[ROW][C]11[/C][C]0.249294[/C][C]1.6908[/C][C]0.048821[/C][/ROW]
[ROW][C]12[/C][C]-0.183133[/C][C]-1.2421[/C][C]0.110253[/C][/ROW]
[ROW][C]13[/C][C]-0.005311[/C][C]-0.036[/C][C]0.485711[/C][/ROW]
[ROW][C]14[/C][C]0.007963[/C][C]0.054[/C][C]0.478582[/C][/ROW]
[ROW][C]15[/C][C]0.021746[/C][C]0.1475[/C][C]0.441696[/C][/ROW]
[ROW][C]16[/C][C]-0.392717[/C][C]-2.6635[/C][C]0.005311[/C][/ROW]
[ROW][C]17[/C][C]-0.004319[/C][C]-0.0293[/C][C]0.488378[/C][/ROW]
[ROW][C]18[/C][C]0.114323[/C][C]0.7754[/C][C]0.221042[/C][/ROW]
[ROW][C]19[/C][C]-0.121646[/C][C]-0.825[/C][C]0.206802[/C][/ROW]
[ROW][C]20[/C][C]-0.042645[/C][C]-0.2892[/C][C]0.386852[/C][/ROW]
[ROW][C]21[/C][C]0.040361[/C][C]0.2737[/C][C]0.392756[/C][/ROW]
[ROW][C]22[/C][C]0.050803[/C][C]0.3446[/C][C]0.365998[/C][/ROW]
[ROW][C]23[/C][C]0.06108[/C][C]0.4143[/C][C]0.340304[/C][/ROW]
[ROW][C]24[/C][C]-0.025194[/C][C]-0.1709[/C][C]0.432536[/C][/ROW]
[ROW][C]25[/C][C]-0.106417[/C][C]-0.7218[/C][C]0.237049[/C][/ROW]
[ROW][C]26[/C][C]0.151382[/C][C]1.0267[/C][C]0.154961[/C][/ROW]
[ROW][C]27[/C][C]-0.080979[/C][C]-0.5492[/C][C]0.292753[/C][/ROW]
[ROW][C]28[/C][C]-0.024917[/C][C]-0.169[/C][C]0.43327[/C][/ROW]
[ROW][C]29[/C][C]-0.072474[/C][C]-0.4915[/C][C]0.31269[/C][/ROW]
[ROW][C]30[/C][C]0.001751[/C][C]0.0119[/C][C]0.495288[/C][/ROW]
[ROW][C]31[/C][C]-0.095948[/C][C]-0.6507[/C][C]0.259223[/C][/ROW]
[ROW][C]32[/C][C]-0.073669[/C][C]-0.4996[/C][C]0.309853[/C][/ROW]
[ROW][C]33[/C][C]-0.131539[/C][C]-0.8921[/C][C]0.18848[/C][/ROW]
[ROW][C]34[/C][C]-0.070597[/C][C]-0.4788[/C][C]0.317171[/C][/ROW]
[ROW][C]35[/C][C]-0.116811[/C][C]-0.7923[/C][C]0.21614[/C][/ROW]
[ROW][C]36[/C][C]0.011072[/C][C]0.0751[/C][C]0.470232[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60365&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60365&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.2997252.03280.023932
2-0.234031-1.58730.059651
3-0.4437-3.00930.002119
4-0.483768-3.28110.000989
5-0.133164-0.90320.185573
6-0.125894-0.85390.198805
7-0.108261-0.73430.233258
8-0.059511-0.40360.344181
90.1059460.71860.238024
10-0.007339-0.04980.480259
110.2492941.69080.048821
12-0.183133-1.24210.110253
13-0.005311-0.0360.485711
140.0079630.0540.478582
150.0217460.14750.441696
16-0.392717-2.66350.005311
17-0.004319-0.02930.488378
180.1143230.77540.221042
19-0.121646-0.8250.206802
20-0.042645-0.28920.386852
210.0403610.27370.392756
220.0508030.34460.365998
230.061080.41430.340304
24-0.025194-0.17090.432536
25-0.106417-0.72180.237049
260.1513821.02670.154961
27-0.080979-0.54920.292753
28-0.024917-0.1690.43327
29-0.072474-0.49150.31269
300.0017510.01190.495288
31-0.095948-0.65070.259223
32-0.073669-0.49960.309853
33-0.131539-0.89210.18848
34-0.070597-0.47880.317171
35-0.116811-0.79230.21614
360.0110720.07510.470232



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