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 07:31:47 -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/t1259332376zbsb9x11j8bni4w.htm/, Retrieved Mon, 29 Apr 2024 17:55:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60824, Retrieved Mon, 29 Apr 2024 17:55:39 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsbhschhwsstws8acf2
Estimated Impact129
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:19:56] [b98453cac15ba1066b407e146608df68]
-    D          [(Partial) Autocorrelation Function] [WS 8] [2009-11-27 14:31:47] [682632737e024f9e62885141c5f654cd] [Current]
Feedback Forum

Post a new message
Dataseries X:
126.51
131.02
136.51
138.04
132.92
129.61
122.96
124.04
121.29
124.56
118.53
113.14
114.15
122.17
129.23
131.19
129.12
128.28
126.83
138.13
140.52
146.83
135.14
131.84
125.7
128.98
133.25
136.76
133.24
128.54
121.08
120.23
119.08
125.75
126.89
126.6
121.89
123.44
126.46
129.49
127.78
125.29
119.02
119.96
122.86
131.89
132.73
135.01
136.71
142.73
144.43
144.93
138.75
130.22
122.19
128.4
140.43
153.5
149.33
142.97




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60824&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.8851576.13250
20.6806454.71561.1e-05
30.460673.19160.001248
40.2990942.07220.021822
50.1906431.32080.096413
60.1096660.75980.225548
70.02120.14690.441922
8-0.087645-0.60720.273282
9-0.201391-1.39530.084677
10-0.296152-2.05180.022833
11-0.357782-2.47880.008375
12-0.366793-2.54120.007166
13-0.338239-2.34340.01165
14-0.306684-2.12480.019391
15-0.290038-2.00940.025065
16-0.286185-1.98270.026567
17-0.276446-1.91530.030713
18-0.243041-1.68380.049353
19-0.17806-1.23360.111672
20-0.109132-0.75610.226645
21-0.052117-0.36110.359814
22-0.039296-0.27230.393298
23-0.038932-0.26970.394262
24-0.042166-0.29210.385723
25-0.015516-0.10750.45742
260.0446710.30950.379146
270.1197260.82950.205467
280.174211.2070.116681
290.1835121.27140.104854
300.1498281.0380.152227
310.0969060.67140.252596
320.0510080.35340.362669
330.0307990.21340.415965
340.0298110.20650.418622
350.0314750.21810.414151
360.0287330.19910.421525

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.885157 & 6.1325 & 0 \tabularnewline
2 & 0.680645 & 4.7156 & 1.1e-05 \tabularnewline
3 & 0.46067 & 3.1916 & 0.001248 \tabularnewline
4 & 0.299094 & 2.0722 & 0.021822 \tabularnewline
5 & 0.190643 & 1.3208 & 0.096413 \tabularnewline
6 & 0.109666 & 0.7598 & 0.225548 \tabularnewline
7 & 0.0212 & 0.1469 & 0.441922 \tabularnewline
8 & -0.087645 & -0.6072 & 0.273282 \tabularnewline
9 & -0.201391 & -1.3953 & 0.084677 \tabularnewline
10 & -0.296152 & -2.0518 & 0.022833 \tabularnewline
11 & -0.357782 & -2.4788 & 0.008375 \tabularnewline
12 & -0.366793 & -2.5412 & 0.007166 \tabularnewline
13 & -0.338239 & -2.3434 & 0.01165 \tabularnewline
14 & -0.306684 & -2.1248 & 0.019391 \tabularnewline
15 & -0.290038 & -2.0094 & 0.025065 \tabularnewline
16 & -0.286185 & -1.9827 & 0.026567 \tabularnewline
17 & -0.276446 & -1.9153 & 0.030713 \tabularnewline
18 & -0.243041 & -1.6838 & 0.049353 \tabularnewline
19 & -0.17806 & -1.2336 & 0.111672 \tabularnewline
20 & -0.109132 & -0.7561 & 0.226645 \tabularnewline
21 & -0.052117 & -0.3611 & 0.359814 \tabularnewline
22 & -0.039296 & -0.2723 & 0.393298 \tabularnewline
23 & -0.038932 & -0.2697 & 0.394262 \tabularnewline
24 & -0.042166 & -0.2921 & 0.385723 \tabularnewline
25 & -0.015516 & -0.1075 & 0.45742 \tabularnewline
26 & 0.044671 & 0.3095 & 0.379146 \tabularnewline
27 & 0.119726 & 0.8295 & 0.205467 \tabularnewline
28 & 0.17421 & 1.207 & 0.116681 \tabularnewline
29 & 0.183512 & 1.2714 & 0.104854 \tabularnewline
30 & 0.149828 & 1.038 & 0.152227 \tabularnewline
31 & 0.096906 & 0.6714 & 0.252596 \tabularnewline
32 & 0.051008 & 0.3534 & 0.362669 \tabularnewline
33 & 0.030799 & 0.2134 & 0.415965 \tabularnewline
34 & 0.029811 & 0.2065 & 0.418622 \tabularnewline
35 & 0.031475 & 0.2181 & 0.414151 \tabularnewline
36 & 0.028733 & 0.1991 & 0.421525 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60824&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.885157[/C][C]6.1325[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.680645[/C][C]4.7156[/C][C]1.1e-05[/C][/ROW]
[ROW][C]3[/C][C]0.46067[/C][C]3.1916[/C][C]0.001248[/C][/ROW]
[ROW][C]4[/C][C]0.299094[/C][C]2.0722[/C][C]0.021822[/C][/ROW]
[ROW][C]5[/C][C]0.190643[/C][C]1.3208[/C][C]0.096413[/C][/ROW]
[ROW][C]6[/C][C]0.109666[/C][C]0.7598[/C][C]0.225548[/C][/ROW]
[ROW][C]7[/C][C]0.0212[/C][C]0.1469[/C][C]0.441922[/C][/ROW]
[ROW][C]8[/C][C]-0.087645[/C][C]-0.6072[/C][C]0.273282[/C][/ROW]
[ROW][C]9[/C][C]-0.201391[/C][C]-1.3953[/C][C]0.084677[/C][/ROW]
[ROW][C]10[/C][C]-0.296152[/C][C]-2.0518[/C][C]0.022833[/C][/ROW]
[ROW][C]11[/C][C]-0.357782[/C][C]-2.4788[/C][C]0.008375[/C][/ROW]
[ROW][C]12[/C][C]-0.366793[/C][C]-2.5412[/C][C]0.007166[/C][/ROW]
[ROW][C]13[/C][C]-0.338239[/C][C]-2.3434[/C][C]0.01165[/C][/ROW]
[ROW][C]14[/C][C]-0.306684[/C][C]-2.1248[/C][C]0.019391[/C][/ROW]
[ROW][C]15[/C][C]-0.290038[/C][C]-2.0094[/C][C]0.025065[/C][/ROW]
[ROW][C]16[/C][C]-0.286185[/C][C]-1.9827[/C][C]0.026567[/C][/ROW]
[ROW][C]17[/C][C]-0.276446[/C][C]-1.9153[/C][C]0.030713[/C][/ROW]
[ROW][C]18[/C][C]-0.243041[/C][C]-1.6838[/C][C]0.049353[/C][/ROW]
[ROW][C]19[/C][C]-0.17806[/C][C]-1.2336[/C][C]0.111672[/C][/ROW]
[ROW][C]20[/C][C]-0.109132[/C][C]-0.7561[/C][C]0.226645[/C][/ROW]
[ROW][C]21[/C][C]-0.052117[/C][C]-0.3611[/C][C]0.359814[/C][/ROW]
[ROW][C]22[/C][C]-0.039296[/C][C]-0.2723[/C][C]0.393298[/C][/ROW]
[ROW][C]23[/C][C]-0.038932[/C][C]-0.2697[/C][C]0.394262[/C][/ROW]
[ROW][C]24[/C][C]-0.042166[/C][C]-0.2921[/C][C]0.385723[/C][/ROW]
[ROW][C]25[/C][C]-0.015516[/C][C]-0.1075[/C][C]0.45742[/C][/ROW]
[ROW][C]26[/C][C]0.044671[/C][C]0.3095[/C][C]0.379146[/C][/ROW]
[ROW][C]27[/C][C]0.119726[/C][C]0.8295[/C][C]0.205467[/C][/ROW]
[ROW][C]28[/C][C]0.17421[/C][C]1.207[/C][C]0.116681[/C][/ROW]
[ROW][C]29[/C][C]0.183512[/C][C]1.2714[/C][C]0.104854[/C][/ROW]
[ROW][C]30[/C][C]0.149828[/C][C]1.038[/C][C]0.152227[/C][/ROW]
[ROW][C]31[/C][C]0.096906[/C][C]0.6714[/C][C]0.252596[/C][/ROW]
[ROW][C]32[/C][C]0.051008[/C][C]0.3534[/C][C]0.362669[/C][/ROW]
[ROW][C]33[/C][C]0.030799[/C][C]0.2134[/C][C]0.415965[/C][/ROW]
[ROW][C]34[/C][C]0.029811[/C][C]0.2065[/C][C]0.418622[/C][/ROW]
[ROW][C]35[/C][C]0.031475[/C][C]0.2181[/C][C]0.414151[/C][/ROW]
[ROW][C]36[/C][C]0.028733[/C][C]0.1991[/C][C]0.421525[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60824&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60824&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.8851576.13250
20.6806454.71561.1e-05
30.460673.19160.001248
40.2990942.07220.021822
50.1906431.32080.096413
60.1096660.75980.225548
70.02120.14690.441922
8-0.087645-0.60720.273282
9-0.201391-1.39530.084677
10-0.296152-2.05180.022833
11-0.357782-2.47880.008375
12-0.366793-2.54120.007166
13-0.338239-2.34340.01165
14-0.306684-2.12480.019391
15-0.290038-2.00940.025065
16-0.286185-1.98270.026567
17-0.276446-1.91530.030713
18-0.243041-1.68380.049353
19-0.17806-1.23360.111672
20-0.109132-0.75610.226645
21-0.052117-0.36110.359814
22-0.039296-0.27230.393298
23-0.038932-0.26970.394262
24-0.042166-0.29210.385723
25-0.015516-0.10750.45742
260.0446710.30950.379146
270.1197260.82950.205467
280.174211.2070.116681
290.1835121.27140.104854
300.1498281.0380.152227
310.0969060.67140.252596
320.0510080.35340.362669
330.0307990.21340.415965
340.0298110.20650.418622
350.0314750.21810.414151
360.0287330.19910.421525







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8851576.13250
2-0.475101-3.29160.000937
3-0.044778-0.31020.378863
40.1830021.26790.10548
5-0.066073-0.45780.324592
6-0.103522-0.71720.238357
7-0.126135-0.87390.193265
8-0.127151-0.88090.191374
9-0.060699-0.42050.337985
10-0.049315-0.34170.367048
11-0.064256-0.44520.329095
120.0746790.51740.30363
13-0.018515-0.12830.449233
14-0.131313-0.90980.183746
15-0.044502-0.30830.379588
16-0.025403-0.1760.430518
17-0.017315-0.120.452506
180.008030.05560.477931
190.0250090.17330.431584
20-0.089835-0.62240.268314
21-0.009218-0.06390.474671
22-0.167655-1.16150.125581
230.0756460.52410.301315
24-0.030383-0.21050.417085
250.0465250.32230.3743
260.0790040.54740.293335
270.0031770.0220.491264
28-0.048588-0.33660.368933
29-0.062046-0.42990.334608
30-0.044344-0.30720.380002
31-0.03761-0.26060.397769
32-0.020118-0.13940.444867
33-0.017315-0.120.452508
34-0.002832-0.01960.492215
350.0018050.01250.495038
360.0417870.28950.38672

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.885157 & 6.1325 & 0 \tabularnewline
2 & -0.475101 & -3.2916 & 0.000937 \tabularnewline
3 & -0.044778 & -0.3102 & 0.378863 \tabularnewline
4 & 0.183002 & 1.2679 & 0.10548 \tabularnewline
5 & -0.066073 & -0.4578 & 0.324592 \tabularnewline
6 & -0.103522 & -0.7172 & 0.238357 \tabularnewline
7 & -0.126135 & -0.8739 & 0.193265 \tabularnewline
8 & -0.127151 & -0.8809 & 0.191374 \tabularnewline
9 & -0.060699 & -0.4205 & 0.337985 \tabularnewline
10 & -0.049315 & -0.3417 & 0.367048 \tabularnewline
11 & -0.064256 & -0.4452 & 0.329095 \tabularnewline
12 & 0.074679 & 0.5174 & 0.30363 \tabularnewline
13 & -0.018515 & -0.1283 & 0.449233 \tabularnewline
14 & -0.131313 & -0.9098 & 0.183746 \tabularnewline
15 & -0.044502 & -0.3083 & 0.379588 \tabularnewline
16 & -0.025403 & -0.176 & 0.430518 \tabularnewline
17 & -0.017315 & -0.12 & 0.452506 \tabularnewline
18 & 0.00803 & 0.0556 & 0.477931 \tabularnewline
19 & 0.025009 & 0.1733 & 0.431584 \tabularnewline
20 & -0.089835 & -0.6224 & 0.268314 \tabularnewline
21 & -0.009218 & -0.0639 & 0.474671 \tabularnewline
22 & -0.167655 & -1.1615 & 0.125581 \tabularnewline
23 & 0.075646 & 0.5241 & 0.301315 \tabularnewline
24 & -0.030383 & -0.2105 & 0.417085 \tabularnewline
25 & 0.046525 & 0.3223 & 0.3743 \tabularnewline
26 & 0.079004 & 0.5474 & 0.293335 \tabularnewline
27 & 0.003177 & 0.022 & 0.491264 \tabularnewline
28 & -0.048588 & -0.3366 & 0.368933 \tabularnewline
29 & -0.062046 & -0.4299 & 0.334608 \tabularnewline
30 & -0.044344 & -0.3072 & 0.380002 \tabularnewline
31 & -0.03761 & -0.2606 & 0.397769 \tabularnewline
32 & -0.020118 & -0.1394 & 0.444867 \tabularnewline
33 & -0.017315 & -0.12 & 0.452508 \tabularnewline
34 & -0.002832 & -0.0196 & 0.492215 \tabularnewline
35 & 0.001805 & 0.0125 & 0.495038 \tabularnewline
36 & 0.041787 & 0.2895 & 0.38672 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60824&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.885157[/C][C]6.1325[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.475101[/C][C]-3.2916[/C][C]0.000937[/C][/ROW]
[ROW][C]3[/C][C]-0.044778[/C][C]-0.3102[/C][C]0.378863[/C][/ROW]
[ROW][C]4[/C][C]0.183002[/C][C]1.2679[/C][C]0.10548[/C][/ROW]
[ROW][C]5[/C][C]-0.066073[/C][C]-0.4578[/C][C]0.324592[/C][/ROW]
[ROW][C]6[/C][C]-0.103522[/C][C]-0.7172[/C][C]0.238357[/C][/ROW]
[ROW][C]7[/C][C]-0.126135[/C][C]-0.8739[/C][C]0.193265[/C][/ROW]
[ROW][C]8[/C][C]-0.127151[/C][C]-0.8809[/C][C]0.191374[/C][/ROW]
[ROW][C]9[/C][C]-0.060699[/C][C]-0.4205[/C][C]0.337985[/C][/ROW]
[ROW][C]10[/C][C]-0.049315[/C][C]-0.3417[/C][C]0.367048[/C][/ROW]
[ROW][C]11[/C][C]-0.064256[/C][C]-0.4452[/C][C]0.329095[/C][/ROW]
[ROW][C]12[/C][C]0.074679[/C][C]0.5174[/C][C]0.30363[/C][/ROW]
[ROW][C]13[/C][C]-0.018515[/C][C]-0.1283[/C][C]0.449233[/C][/ROW]
[ROW][C]14[/C][C]-0.131313[/C][C]-0.9098[/C][C]0.183746[/C][/ROW]
[ROW][C]15[/C][C]-0.044502[/C][C]-0.3083[/C][C]0.379588[/C][/ROW]
[ROW][C]16[/C][C]-0.025403[/C][C]-0.176[/C][C]0.430518[/C][/ROW]
[ROW][C]17[/C][C]-0.017315[/C][C]-0.12[/C][C]0.452506[/C][/ROW]
[ROW][C]18[/C][C]0.00803[/C][C]0.0556[/C][C]0.477931[/C][/ROW]
[ROW][C]19[/C][C]0.025009[/C][C]0.1733[/C][C]0.431584[/C][/ROW]
[ROW][C]20[/C][C]-0.089835[/C][C]-0.6224[/C][C]0.268314[/C][/ROW]
[ROW][C]21[/C][C]-0.009218[/C][C]-0.0639[/C][C]0.474671[/C][/ROW]
[ROW][C]22[/C][C]-0.167655[/C][C]-1.1615[/C][C]0.125581[/C][/ROW]
[ROW][C]23[/C][C]0.075646[/C][C]0.5241[/C][C]0.301315[/C][/ROW]
[ROW][C]24[/C][C]-0.030383[/C][C]-0.2105[/C][C]0.417085[/C][/ROW]
[ROW][C]25[/C][C]0.046525[/C][C]0.3223[/C][C]0.3743[/C][/ROW]
[ROW][C]26[/C][C]0.079004[/C][C]0.5474[/C][C]0.293335[/C][/ROW]
[ROW][C]27[/C][C]0.003177[/C][C]0.022[/C][C]0.491264[/C][/ROW]
[ROW][C]28[/C][C]-0.048588[/C][C]-0.3366[/C][C]0.368933[/C][/ROW]
[ROW][C]29[/C][C]-0.062046[/C][C]-0.4299[/C][C]0.334608[/C][/ROW]
[ROW][C]30[/C][C]-0.044344[/C][C]-0.3072[/C][C]0.380002[/C][/ROW]
[ROW][C]31[/C][C]-0.03761[/C][C]-0.2606[/C][C]0.397769[/C][/ROW]
[ROW][C]32[/C][C]-0.020118[/C][C]-0.1394[/C][C]0.444867[/C][/ROW]
[ROW][C]33[/C][C]-0.017315[/C][C]-0.12[/C][C]0.452508[/C][/ROW]
[ROW][C]34[/C][C]-0.002832[/C][C]-0.0196[/C][C]0.492215[/C][/ROW]
[ROW][C]35[/C][C]0.001805[/C][C]0.0125[/C][C]0.495038[/C][/ROW]
[ROW][C]36[/C][C]0.041787[/C][C]0.2895[/C][C]0.38672[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60824&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60824&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.8851576.13250
2-0.475101-3.29160.000937
3-0.044778-0.31020.378863
40.1830021.26790.10548
5-0.066073-0.45780.324592
6-0.103522-0.71720.238357
7-0.126135-0.87390.193265
8-0.127151-0.88090.191374
9-0.060699-0.42050.337985
10-0.049315-0.34170.367048
11-0.064256-0.44520.329095
120.0746790.51740.30363
13-0.018515-0.12830.449233
14-0.131313-0.90980.183746
15-0.044502-0.30830.379588
16-0.025403-0.1760.430518
17-0.017315-0.120.452506
180.008030.05560.477931
190.0250090.17330.431584
20-0.089835-0.62240.268314
21-0.009218-0.06390.474671
22-0.167655-1.16150.125581
230.0756460.52410.301315
24-0.030383-0.21050.417085
250.0465250.32230.3743
260.0790040.54740.293335
270.0031770.0220.491264
28-0.048588-0.33660.368933
29-0.062046-0.42990.334608
30-0.044344-0.30720.380002
31-0.03761-0.26060.397769
32-0.020118-0.13940.444867
33-0.017315-0.120.452508
34-0.002832-0.01960.492215
350.0018050.01250.495038
360.0417870.28950.38672



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