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 computationMon, 27 Dec 2010 22:07:51 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/27/t12934875528ekcbbvi5bs3vkz.htm/, Retrieved Mon, 06 May 2024 11:31:36 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=116160, Retrieved Mon, 06 May 2024 11:31:36 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact115
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Spectral Analysis] [] [2010-12-27 20:46:00] [f57e4c4cbbe8f12a19647529ae7266aa]
- RMP     [(Partial) Autocorrelation Function] [] [2010-12-27 22:07:51] [c984196f1244e05baf3e7c2e52d47a33] [Current]
Feedback Forum

Post a new message
Dataseries X:
110.43
114.77
132.21
122.86
118.5
130.3
113.25
104.54
132.78
122.99
133.14
125.83
122.99
125.7
148.47
120.75
136.7
139.17
123.47
112.76
137.99
139.75
140.22
121.6
132.33
130.34
149.05
130.47
139.29
146.55
137.79
122.95
139.51
155.77
143.95
125.07
142.35
144.34
145.87
156.01
146.74
156.45
152.29
122.56
154.59
149.68
118.75
109.22
104.19
107.33
114.07
107.92
103.53
117.3
112.09
95.08
123.28
121.98
121.74
119.93
115.11




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116160&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.5451544.25783.6e-05
20.3893353.04080.001737
30.4962353.87570.000131
40.4515833.5270.000402
50.3263882.54920.006664
60.3118612.43570.0089
70.1335921.04340.150443
80.1593751.24480.108991
9-0.006271-0.0490.48055
10-0.178376-1.39320.084314
11-0.058628-0.45790.324325
120.1449871.13240.130951
13-0.157168-1.22750.112172
14-0.27827-2.17340.016823
15-0.187966-1.46810.073613
16-0.117102-0.91460.182002
17-0.171916-1.34270.092172
18-0.167742-1.31010.097536
19-0.159963-1.24930.108155
20-0.153783-1.20110.117181
21-0.259931-2.03010.023355
22-0.250473-1.95630.027509
23-0.151324-1.18190.120921
24-0.044057-0.34410.365978
25-0.14005-1.09380.139167
26-0.288076-2.24990.014035
27-0.173927-1.35840.089667
28-0.059679-0.46610.3214
29-0.171749-1.34140.092381
30-0.128032-10.160639
31-0.092127-0.71950.23728
32-0.17223-1.34520.091777
33-0.206095-1.60970.056319
34-0.160537-1.25380.107343
35-0.154027-1.2030.116815
36-0.052949-0.41350.340328

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.545154 & 4.2578 & 3.6e-05 \tabularnewline
2 & 0.389335 & 3.0408 & 0.001737 \tabularnewline
3 & 0.496235 & 3.8757 & 0.000131 \tabularnewline
4 & 0.451583 & 3.527 & 0.000402 \tabularnewline
5 & 0.326388 & 2.5492 & 0.006664 \tabularnewline
6 & 0.311861 & 2.4357 & 0.0089 \tabularnewline
7 & 0.133592 & 1.0434 & 0.150443 \tabularnewline
8 & 0.159375 & 1.2448 & 0.108991 \tabularnewline
9 & -0.006271 & -0.049 & 0.48055 \tabularnewline
10 & -0.178376 & -1.3932 & 0.084314 \tabularnewline
11 & -0.058628 & -0.4579 & 0.324325 \tabularnewline
12 & 0.144987 & 1.1324 & 0.130951 \tabularnewline
13 & -0.157168 & -1.2275 & 0.112172 \tabularnewline
14 & -0.27827 & -2.1734 & 0.016823 \tabularnewline
15 & -0.187966 & -1.4681 & 0.073613 \tabularnewline
16 & -0.117102 & -0.9146 & 0.182002 \tabularnewline
17 & -0.171916 & -1.3427 & 0.092172 \tabularnewline
18 & -0.167742 & -1.3101 & 0.097536 \tabularnewline
19 & -0.159963 & -1.2493 & 0.108155 \tabularnewline
20 & -0.153783 & -1.2011 & 0.117181 \tabularnewline
21 & -0.259931 & -2.0301 & 0.023355 \tabularnewline
22 & -0.250473 & -1.9563 & 0.027509 \tabularnewline
23 & -0.151324 & -1.1819 & 0.120921 \tabularnewline
24 & -0.044057 & -0.3441 & 0.365978 \tabularnewline
25 & -0.14005 & -1.0938 & 0.139167 \tabularnewline
26 & -0.288076 & -2.2499 & 0.014035 \tabularnewline
27 & -0.173927 & -1.3584 & 0.089667 \tabularnewline
28 & -0.059679 & -0.4661 & 0.3214 \tabularnewline
29 & -0.171749 & -1.3414 & 0.092381 \tabularnewline
30 & -0.128032 & -1 & 0.160639 \tabularnewline
31 & -0.092127 & -0.7195 & 0.23728 \tabularnewline
32 & -0.17223 & -1.3452 & 0.091777 \tabularnewline
33 & -0.206095 & -1.6097 & 0.056319 \tabularnewline
34 & -0.160537 & -1.2538 & 0.107343 \tabularnewline
35 & -0.154027 & -1.203 & 0.116815 \tabularnewline
36 & -0.052949 & -0.4135 & 0.340328 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116160&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.545154[/C][C]4.2578[/C][C]3.6e-05[/C][/ROW]
[ROW][C]2[/C][C]0.389335[/C][C]3.0408[/C][C]0.001737[/C][/ROW]
[ROW][C]3[/C][C]0.496235[/C][C]3.8757[/C][C]0.000131[/C][/ROW]
[ROW][C]4[/C][C]0.451583[/C][C]3.527[/C][C]0.000402[/C][/ROW]
[ROW][C]5[/C][C]0.326388[/C][C]2.5492[/C][C]0.006664[/C][/ROW]
[ROW][C]6[/C][C]0.311861[/C][C]2.4357[/C][C]0.0089[/C][/ROW]
[ROW][C]7[/C][C]0.133592[/C][C]1.0434[/C][C]0.150443[/C][/ROW]
[ROW][C]8[/C][C]0.159375[/C][C]1.2448[/C][C]0.108991[/C][/ROW]
[ROW][C]9[/C][C]-0.006271[/C][C]-0.049[/C][C]0.48055[/C][/ROW]
[ROW][C]10[/C][C]-0.178376[/C][C]-1.3932[/C][C]0.084314[/C][/ROW]
[ROW][C]11[/C][C]-0.058628[/C][C]-0.4579[/C][C]0.324325[/C][/ROW]
[ROW][C]12[/C][C]0.144987[/C][C]1.1324[/C][C]0.130951[/C][/ROW]
[ROW][C]13[/C][C]-0.157168[/C][C]-1.2275[/C][C]0.112172[/C][/ROW]
[ROW][C]14[/C][C]-0.27827[/C][C]-2.1734[/C][C]0.016823[/C][/ROW]
[ROW][C]15[/C][C]-0.187966[/C][C]-1.4681[/C][C]0.073613[/C][/ROW]
[ROW][C]16[/C][C]-0.117102[/C][C]-0.9146[/C][C]0.182002[/C][/ROW]
[ROW][C]17[/C][C]-0.171916[/C][C]-1.3427[/C][C]0.092172[/C][/ROW]
[ROW][C]18[/C][C]-0.167742[/C][C]-1.3101[/C][C]0.097536[/C][/ROW]
[ROW][C]19[/C][C]-0.159963[/C][C]-1.2493[/C][C]0.108155[/C][/ROW]
[ROW][C]20[/C][C]-0.153783[/C][C]-1.2011[/C][C]0.117181[/C][/ROW]
[ROW][C]21[/C][C]-0.259931[/C][C]-2.0301[/C][C]0.023355[/C][/ROW]
[ROW][C]22[/C][C]-0.250473[/C][C]-1.9563[/C][C]0.027509[/C][/ROW]
[ROW][C]23[/C][C]-0.151324[/C][C]-1.1819[/C][C]0.120921[/C][/ROW]
[ROW][C]24[/C][C]-0.044057[/C][C]-0.3441[/C][C]0.365978[/C][/ROW]
[ROW][C]25[/C][C]-0.14005[/C][C]-1.0938[/C][C]0.139167[/C][/ROW]
[ROW][C]26[/C][C]-0.288076[/C][C]-2.2499[/C][C]0.014035[/C][/ROW]
[ROW][C]27[/C][C]-0.173927[/C][C]-1.3584[/C][C]0.089667[/C][/ROW]
[ROW][C]28[/C][C]-0.059679[/C][C]-0.4661[/C][C]0.3214[/C][/ROW]
[ROW][C]29[/C][C]-0.171749[/C][C]-1.3414[/C][C]0.092381[/C][/ROW]
[ROW][C]30[/C][C]-0.128032[/C][C]-1[/C][C]0.160639[/C][/ROW]
[ROW][C]31[/C][C]-0.092127[/C][C]-0.7195[/C][C]0.23728[/C][/ROW]
[ROW][C]32[/C][C]-0.17223[/C][C]-1.3452[/C][C]0.091777[/C][/ROW]
[ROW][C]33[/C][C]-0.206095[/C][C]-1.6097[/C][C]0.056319[/C][/ROW]
[ROW][C]34[/C][C]-0.160537[/C][C]-1.2538[/C][C]0.107343[/C][/ROW]
[ROW][C]35[/C][C]-0.154027[/C][C]-1.203[/C][C]0.116815[/C][/ROW]
[ROW][C]36[/C][C]-0.052949[/C][C]-0.4135[/C][C]0.340328[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116160&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116160&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.5451544.25783.6e-05
20.3893353.04080.001737
30.4962353.87570.000131
40.4515833.5270.000402
50.3263882.54920.006664
60.3118612.43570.0089
70.1335921.04340.150443
80.1593751.24480.108991
9-0.006271-0.0490.48055
10-0.178376-1.39320.084314
11-0.058628-0.45790.324325
120.1449871.13240.130951
13-0.157168-1.22750.112172
14-0.27827-2.17340.016823
15-0.187966-1.46810.073613
16-0.117102-0.91460.182002
17-0.171916-1.34270.092172
18-0.167742-1.31010.097536
19-0.159963-1.24930.108155
20-0.153783-1.20110.117181
21-0.259931-2.03010.023355
22-0.250473-1.95630.027509
23-0.151324-1.18190.120921
24-0.044057-0.34410.365978
25-0.14005-1.09380.139167
26-0.288076-2.24990.014035
27-0.173927-1.35840.089667
28-0.059679-0.46610.3214
29-0.171749-1.34140.092381
30-0.128032-10.160639
31-0.092127-0.71950.23728
32-0.17223-1.34520.091777
33-0.206095-1.60970.056319
34-0.160537-1.25380.107343
35-0.154027-1.2030.116815
36-0.052949-0.41350.340328







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5451544.25783.6e-05
20.1311061.0240.154946
30.3479542.71760.004274
40.1031150.80540.211871
5-0.016998-0.13280.447411
60.0176920.13820.445276
7-0.283351-2.2130.015323
80.0743150.58040.281886
9-0.343195-2.68040.004721
10-0.206787-1.61510.055729
110.1449431.1320.131024
120.4477333.49690.000442
13-0.133348-1.04150.150881
14-0.250712-1.95810.027397
15-0.136751-1.06810.144851
160.0578460.45180.326511
17-0.00743-0.0580.476958
18-0.044481-0.34740.364739
190.1042240.8140.209402
20-0.170871-1.33450.093492
21-0.076638-0.59860.275841
220.1171750.91520.181854
23-0.040107-0.31320.37758
24-0.143997-1.12470.132572
250.0840930.65680.256894
26-0.066505-0.51940.302673
270.0241240.18840.42559
28-0.037287-0.29120.385936
29-0.117443-0.91730.181309
30-0.03221-0.25160.401109
31-0.149484-1.16750.123775
320.0084180.06570.473898
33-0.036039-0.28150.38965
340.0331050.25860.398422
35-0.122073-0.95340.172069
360.0251040.19610.422605

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.545154 & 4.2578 & 3.6e-05 \tabularnewline
2 & 0.131106 & 1.024 & 0.154946 \tabularnewline
3 & 0.347954 & 2.7176 & 0.004274 \tabularnewline
4 & 0.103115 & 0.8054 & 0.211871 \tabularnewline
5 & -0.016998 & -0.1328 & 0.447411 \tabularnewline
6 & 0.017692 & 0.1382 & 0.445276 \tabularnewline
7 & -0.283351 & -2.213 & 0.015323 \tabularnewline
8 & 0.074315 & 0.5804 & 0.281886 \tabularnewline
9 & -0.343195 & -2.6804 & 0.004721 \tabularnewline
10 & -0.206787 & -1.6151 & 0.055729 \tabularnewline
11 & 0.144943 & 1.132 & 0.131024 \tabularnewline
12 & 0.447733 & 3.4969 & 0.000442 \tabularnewline
13 & -0.133348 & -1.0415 & 0.150881 \tabularnewline
14 & -0.250712 & -1.9581 & 0.027397 \tabularnewline
15 & -0.136751 & -1.0681 & 0.144851 \tabularnewline
16 & 0.057846 & 0.4518 & 0.326511 \tabularnewline
17 & -0.00743 & -0.058 & 0.476958 \tabularnewline
18 & -0.044481 & -0.3474 & 0.364739 \tabularnewline
19 & 0.104224 & 0.814 & 0.209402 \tabularnewline
20 & -0.170871 & -1.3345 & 0.093492 \tabularnewline
21 & -0.076638 & -0.5986 & 0.275841 \tabularnewline
22 & 0.117175 & 0.9152 & 0.181854 \tabularnewline
23 & -0.040107 & -0.3132 & 0.37758 \tabularnewline
24 & -0.143997 & -1.1247 & 0.132572 \tabularnewline
25 & 0.084093 & 0.6568 & 0.256894 \tabularnewline
26 & -0.066505 & -0.5194 & 0.302673 \tabularnewline
27 & 0.024124 & 0.1884 & 0.42559 \tabularnewline
28 & -0.037287 & -0.2912 & 0.385936 \tabularnewline
29 & -0.117443 & -0.9173 & 0.181309 \tabularnewline
30 & -0.03221 & -0.2516 & 0.401109 \tabularnewline
31 & -0.149484 & -1.1675 & 0.123775 \tabularnewline
32 & 0.008418 & 0.0657 & 0.473898 \tabularnewline
33 & -0.036039 & -0.2815 & 0.38965 \tabularnewline
34 & 0.033105 & 0.2586 & 0.398422 \tabularnewline
35 & -0.122073 & -0.9534 & 0.172069 \tabularnewline
36 & 0.025104 & 0.1961 & 0.422605 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116160&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.545154[/C][C]4.2578[/C][C]3.6e-05[/C][/ROW]
[ROW][C]2[/C][C]0.131106[/C][C]1.024[/C][C]0.154946[/C][/ROW]
[ROW][C]3[/C][C]0.347954[/C][C]2.7176[/C][C]0.004274[/C][/ROW]
[ROW][C]4[/C][C]0.103115[/C][C]0.8054[/C][C]0.211871[/C][/ROW]
[ROW][C]5[/C][C]-0.016998[/C][C]-0.1328[/C][C]0.447411[/C][/ROW]
[ROW][C]6[/C][C]0.017692[/C][C]0.1382[/C][C]0.445276[/C][/ROW]
[ROW][C]7[/C][C]-0.283351[/C][C]-2.213[/C][C]0.015323[/C][/ROW]
[ROW][C]8[/C][C]0.074315[/C][C]0.5804[/C][C]0.281886[/C][/ROW]
[ROW][C]9[/C][C]-0.343195[/C][C]-2.6804[/C][C]0.004721[/C][/ROW]
[ROW][C]10[/C][C]-0.206787[/C][C]-1.6151[/C][C]0.055729[/C][/ROW]
[ROW][C]11[/C][C]0.144943[/C][C]1.132[/C][C]0.131024[/C][/ROW]
[ROW][C]12[/C][C]0.447733[/C][C]3.4969[/C][C]0.000442[/C][/ROW]
[ROW][C]13[/C][C]-0.133348[/C][C]-1.0415[/C][C]0.150881[/C][/ROW]
[ROW][C]14[/C][C]-0.250712[/C][C]-1.9581[/C][C]0.027397[/C][/ROW]
[ROW][C]15[/C][C]-0.136751[/C][C]-1.0681[/C][C]0.144851[/C][/ROW]
[ROW][C]16[/C][C]0.057846[/C][C]0.4518[/C][C]0.326511[/C][/ROW]
[ROW][C]17[/C][C]-0.00743[/C][C]-0.058[/C][C]0.476958[/C][/ROW]
[ROW][C]18[/C][C]-0.044481[/C][C]-0.3474[/C][C]0.364739[/C][/ROW]
[ROW][C]19[/C][C]0.104224[/C][C]0.814[/C][C]0.209402[/C][/ROW]
[ROW][C]20[/C][C]-0.170871[/C][C]-1.3345[/C][C]0.093492[/C][/ROW]
[ROW][C]21[/C][C]-0.076638[/C][C]-0.5986[/C][C]0.275841[/C][/ROW]
[ROW][C]22[/C][C]0.117175[/C][C]0.9152[/C][C]0.181854[/C][/ROW]
[ROW][C]23[/C][C]-0.040107[/C][C]-0.3132[/C][C]0.37758[/C][/ROW]
[ROW][C]24[/C][C]-0.143997[/C][C]-1.1247[/C][C]0.132572[/C][/ROW]
[ROW][C]25[/C][C]0.084093[/C][C]0.6568[/C][C]0.256894[/C][/ROW]
[ROW][C]26[/C][C]-0.066505[/C][C]-0.5194[/C][C]0.302673[/C][/ROW]
[ROW][C]27[/C][C]0.024124[/C][C]0.1884[/C][C]0.42559[/C][/ROW]
[ROW][C]28[/C][C]-0.037287[/C][C]-0.2912[/C][C]0.385936[/C][/ROW]
[ROW][C]29[/C][C]-0.117443[/C][C]-0.9173[/C][C]0.181309[/C][/ROW]
[ROW][C]30[/C][C]-0.03221[/C][C]-0.2516[/C][C]0.401109[/C][/ROW]
[ROW][C]31[/C][C]-0.149484[/C][C]-1.1675[/C][C]0.123775[/C][/ROW]
[ROW][C]32[/C][C]0.008418[/C][C]0.0657[/C][C]0.473898[/C][/ROW]
[ROW][C]33[/C][C]-0.036039[/C][C]-0.2815[/C][C]0.38965[/C][/ROW]
[ROW][C]34[/C][C]0.033105[/C][C]0.2586[/C][C]0.398422[/C][/ROW]
[ROW][C]35[/C][C]-0.122073[/C][C]-0.9534[/C][C]0.172069[/C][/ROW]
[ROW][C]36[/C][C]0.025104[/C][C]0.1961[/C][C]0.422605[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116160&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116160&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.5451544.25783.6e-05
20.1311061.0240.154946
30.3479542.71760.004274
40.1031150.80540.211871
5-0.016998-0.13280.447411
60.0176920.13820.445276
7-0.283351-2.2130.015323
80.0743150.58040.281886
9-0.343195-2.68040.004721
10-0.206787-1.61510.055729
110.1449431.1320.131024
120.4477333.49690.000442
13-0.133348-1.04150.150881
14-0.250712-1.95810.027397
15-0.136751-1.06810.144851
160.0578460.45180.326511
17-0.00743-0.0580.476958
18-0.044481-0.34740.364739
190.1042240.8140.209402
20-0.170871-1.33450.093492
21-0.076638-0.59860.275841
220.1171750.91520.181854
23-0.040107-0.31320.37758
24-0.143997-1.12470.132572
250.0840930.65680.256894
26-0.066505-0.51940.302673
270.0241240.18840.42559
28-0.037287-0.29120.385936
29-0.117443-0.91730.181309
30-0.03221-0.25160.401109
31-0.149484-1.16750.123775
320.0084180.06570.473898
33-0.036039-0.28150.38965
340.0331050.25860.398422
35-0.122073-0.95340.172069
360.0251040.19610.422605



Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ; par8 = ;
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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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')