Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_autocorrelation.wasp
Title produced by software(Partial) Autocorrelation Function
Date of computationSat, 12 Mar 2016 10:44:18 +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/2016/Mar/12/t1457779535ulxa9dd4skj2ntq.htm/, Retrieved Sun, 05 May 2024 11:19:53 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=293892, Retrieved Sun, 05 May 2024 11:19:53 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact105
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2016-03-12 10:44:18] [61c097ebb29f326c4ba7deaf9e51d3ff] [Current]
Feedback Forum

Post a new message
Dataseries X:
94,65
94,16
93,91
93,21
92,81
93,55
93,03
93,25
94,24
93,23
93,52
92,05
93,42
95,15
95,12
95,46
94,92
95,63
94,96
95,1
95,22
93,77
95,01
94,87
95,01
96,68
94,94
93,9
94,83
96,27
96,51
96,69
97,47
96,41
98,68
99,3
99,22
99,7
98
98,51
98,6
98,14
99,14
98,25
99,72
99,23
101,32
101,07
101,66
103,09
102,3
100,01
98,78
99,46
99,73
99,52
98,97
97,97
99,37
99,14
99,89
100,29
99,57
101,11
101,44
100,81
101,26
99,86
100,57
100,35
101,15
101,33
102,09
101,79
102,83
102,5
102,22
102,43
102,89
102,12
103,25
103,36
103,5
103,68




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Sir Maurice George Kendall' @ kendall.wessa.net

\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 & 'Sir Maurice George Kendall' @ kendall.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=293892&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]'Sir Maurice George Kendall' @ kendall.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=293892&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=293892&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'Sir Maurice George Kendall' @ kendall.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9365548.58370
20.8896178.15350
30.8406727.70490
40.7905967.24590
50.7609086.97380
60.7112636.51880
70.6680336.12260
80.6272995.74930
90.5995815.49530
100.5705455.22911e-06
110.5361254.91372e-06
120.5063344.64066e-06
130.4621094.23532.9e-05
140.4450744.07925.1e-05
150.4237383.88360.000102
160.3934823.60630.000263
170.3731883.42030.000484
180.3294713.01970.001676
190.295752.71060.004071
200.255442.34110.010797
210.2193022.00990.023824
220.1921561.76110.040927
230.1608651.47440.072063
240.1508221.38230.085271
250.120571.1050.136149
260.104450.95730.170582
270.0896190.82140.20688
280.0626360.57410.283727
290.0469370.43020.334081
300.0218620.20040.420839
310.0022230.02040.491898
32-0.012612-0.11560.454128
33-0.036127-0.33110.370692
34-0.068938-0.63180.264607
35-0.10962-1.00470.158968
36-0.135333-1.24030.10915

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.936554 & 8.5837 & 0 \tabularnewline
2 & 0.889617 & 8.1535 & 0 \tabularnewline
3 & 0.840672 & 7.7049 & 0 \tabularnewline
4 & 0.790596 & 7.2459 & 0 \tabularnewline
5 & 0.760908 & 6.9738 & 0 \tabularnewline
6 & 0.711263 & 6.5188 & 0 \tabularnewline
7 & 0.668033 & 6.1226 & 0 \tabularnewline
8 & 0.627299 & 5.7493 & 0 \tabularnewline
9 & 0.599581 & 5.4953 & 0 \tabularnewline
10 & 0.570545 & 5.2291 & 1e-06 \tabularnewline
11 & 0.536125 & 4.9137 & 2e-06 \tabularnewline
12 & 0.506334 & 4.6406 & 6e-06 \tabularnewline
13 & 0.462109 & 4.2353 & 2.9e-05 \tabularnewline
14 & 0.445074 & 4.0792 & 5.1e-05 \tabularnewline
15 & 0.423738 & 3.8836 & 0.000102 \tabularnewline
16 & 0.393482 & 3.6063 & 0.000263 \tabularnewline
17 & 0.373188 & 3.4203 & 0.000484 \tabularnewline
18 & 0.329471 & 3.0197 & 0.001676 \tabularnewline
19 & 0.29575 & 2.7106 & 0.004071 \tabularnewline
20 & 0.25544 & 2.3411 & 0.010797 \tabularnewline
21 & 0.219302 & 2.0099 & 0.023824 \tabularnewline
22 & 0.192156 & 1.7611 & 0.040927 \tabularnewline
23 & 0.160865 & 1.4744 & 0.072063 \tabularnewline
24 & 0.150822 & 1.3823 & 0.085271 \tabularnewline
25 & 0.12057 & 1.105 & 0.136149 \tabularnewline
26 & 0.10445 & 0.9573 & 0.170582 \tabularnewline
27 & 0.089619 & 0.8214 & 0.20688 \tabularnewline
28 & 0.062636 & 0.5741 & 0.283727 \tabularnewline
29 & 0.046937 & 0.4302 & 0.334081 \tabularnewline
30 & 0.021862 & 0.2004 & 0.420839 \tabularnewline
31 & 0.002223 & 0.0204 & 0.491898 \tabularnewline
32 & -0.012612 & -0.1156 & 0.454128 \tabularnewline
33 & -0.036127 & -0.3311 & 0.370692 \tabularnewline
34 & -0.068938 & -0.6318 & 0.264607 \tabularnewline
35 & -0.10962 & -1.0047 & 0.158968 \tabularnewline
36 & -0.135333 & -1.2403 & 0.10915 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=293892&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.936554[/C][C]8.5837[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.889617[/C][C]8.1535[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.840672[/C][C]7.7049[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.790596[/C][C]7.2459[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0.760908[/C][C]6.9738[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0.711263[/C][C]6.5188[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0.668033[/C][C]6.1226[/C][C]0[/C][/ROW]
[ROW][C]8[/C][C]0.627299[/C][C]5.7493[/C][C]0[/C][/ROW]
[ROW][C]9[/C][C]0.599581[/C][C]5.4953[/C][C]0[/C][/ROW]
[ROW][C]10[/C][C]0.570545[/C][C]5.2291[/C][C]1e-06[/C][/ROW]
[ROW][C]11[/C][C]0.536125[/C][C]4.9137[/C][C]2e-06[/C][/ROW]
[ROW][C]12[/C][C]0.506334[/C][C]4.6406[/C][C]6e-06[/C][/ROW]
[ROW][C]13[/C][C]0.462109[/C][C]4.2353[/C][C]2.9e-05[/C][/ROW]
[ROW][C]14[/C][C]0.445074[/C][C]4.0792[/C][C]5.1e-05[/C][/ROW]
[ROW][C]15[/C][C]0.423738[/C][C]3.8836[/C][C]0.000102[/C][/ROW]
[ROW][C]16[/C][C]0.393482[/C][C]3.6063[/C][C]0.000263[/C][/ROW]
[ROW][C]17[/C][C]0.373188[/C][C]3.4203[/C][C]0.000484[/C][/ROW]
[ROW][C]18[/C][C]0.329471[/C][C]3.0197[/C][C]0.001676[/C][/ROW]
[ROW][C]19[/C][C]0.29575[/C][C]2.7106[/C][C]0.004071[/C][/ROW]
[ROW][C]20[/C][C]0.25544[/C][C]2.3411[/C][C]0.010797[/C][/ROW]
[ROW][C]21[/C][C]0.219302[/C][C]2.0099[/C][C]0.023824[/C][/ROW]
[ROW][C]22[/C][C]0.192156[/C][C]1.7611[/C][C]0.040927[/C][/ROW]
[ROW][C]23[/C][C]0.160865[/C][C]1.4744[/C][C]0.072063[/C][/ROW]
[ROW][C]24[/C][C]0.150822[/C][C]1.3823[/C][C]0.085271[/C][/ROW]
[ROW][C]25[/C][C]0.12057[/C][C]1.105[/C][C]0.136149[/C][/ROW]
[ROW][C]26[/C][C]0.10445[/C][C]0.9573[/C][C]0.170582[/C][/ROW]
[ROW][C]27[/C][C]0.089619[/C][C]0.8214[/C][C]0.20688[/C][/ROW]
[ROW][C]28[/C][C]0.062636[/C][C]0.5741[/C][C]0.283727[/C][/ROW]
[ROW][C]29[/C][C]0.046937[/C][C]0.4302[/C][C]0.334081[/C][/ROW]
[ROW][C]30[/C][C]0.021862[/C][C]0.2004[/C][C]0.420839[/C][/ROW]
[ROW][C]31[/C][C]0.002223[/C][C]0.0204[/C][C]0.491898[/C][/ROW]
[ROW][C]32[/C][C]-0.012612[/C][C]-0.1156[/C][C]0.454128[/C][/ROW]
[ROW][C]33[/C][C]-0.036127[/C][C]-0.3311[/C][C]0.370692[/C][/ROW]
[ROW][C]34[/C][C]-0.068938[/C][C]-0.6318[/C][C]0.264607[/C][/ROW]
[ROW][C]35[/C][C]-0.10962[/C][C]-1.0047[/C][C]0.158968[/C][/ROW]
[ROW][C]36[/C][C]-0.135333[/C][C]-1.2403[/C][C]0.10915[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=293892&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=293892&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.9365548.58370
20.8896178.15350
30.8406727.70490
40.7905967.24590
50.7609086.97380
60.7112636.51880
70.6680336.12260
80.6272995.74930
90.5995815.49530
100.5705455.22911e-06
110.5361254.91372e-06
120.5063344.64066e-06
130.4621094.23532.9e-05
140.4450744.07925.1e-05
150.4237383.88360.000102
160.3934823.60630.000263
170.3731883.42030.000484
180.3294713.01970.001676
190.295752.71060.004071
200.255442.34110.010797
210.2193022.00990.023824
220.1921561.76110.040927
230.1608651.47440.072063
240.1508221.38230.085271
250.120571.1050.136149
260.104450.95730.170582
270.0896190.82140.20688
280.0626360.57410.283727
290.0469370.43020.334081
300.0218620.20040.420839
310.0022230.02040.491898
32-0.012612-0.11560.454128
33-0.036127-0.33110.370692
34-0.068938-0.63180.264607
35-0.10962-1.00470.158968
36-0.135333-1.24030.10915







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9365548.58370
20.1016120.93130.177186
3-0.024728-0.22660.410629
4-0.037804-0.34650.364926
50.1374561.25980.105614
6-0.144024-1.320.095211
7-0.010541-0.09660.461635
80.0050860.04660.481468
90.1161841.06480.144999
10-0.049478-0.45350.325689
11-0.042917-0.39330.347532
120.0106950.0980.461076
13-0.105625-0.96810.167895
140.1482861.35910.088882
15-0.008129-0.07450.470392
16-0.076932-0.70510.241351
170.0224750.2060.41865
18-0.128278-1.17570.12152
19-0.036223-0.3320.370362
20-0.083286-0.76330.223702
210.030240.27720.391172
220.0406270.37240.355284
23-0.008306-0.07610.46975
240.1146261.05060.148236
25-0.13566-1.24330.1086
260.0260750.2390.40585
270.0310980.2850.388166
28-0.076572-0.70180.242375
29-0.026891-0.24650.402964
300.0223260.20460.41918
31-0.038385-0.35180.362934
320.0212820.19510.422911
33-0.090306-0.82770.205102
34-0.136903-1.25470.106527
35-0.063122-0.57850.28223
360.0609050.55820.289095

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.936554 & 8.5837 & 0 \tabularnewline
2 & 0.101612 & 0.9313 & 0.177186 \tabularnewline
3 & -0.024728 & -0.2266 & 0.410629 \tabularnewline
4 & -0.037804 & -0.3465 & 0.364926 \tabularnewline
5 & 0.137456 & 1.2598 & 0.105614 \tabularnewline
6 & -0.144024 & -1.32 & 0.095211 \tabularnewline
7 & -0.010541 & -0.0966 & 0.461635 \tabularnewline
8 & 0.005086 & 0.0466 & 0.481468 \tabularnewline
9 & 0.116184 & 1.0648 & 0.144999 \tabularnewline
10 & -0.049478 & -0.4535 & 0.325689 \tabularnewline
11 & -0.042917 & -0.3933 & 0.347532 \tabularnewline
12 & 0.010695 & 0.098 & 0.461076 \tabularnewline
13 & -0.105625 & -0.9681 & 0.167895 \tabularnewline
14 & 0.148286 & 1.3591 & 0.088882 \tabularnewline
15 & -0.008129 & -0.0745 & 0.470392 \tabularnewline
16 & -0.076932 & -0.7051 & 0.241351 \tabularnewline
17 & 0.022475 & 0.206 & 0.41865 \tabularnewline
18 & -0.128278 & -1.1757 & 0.12152 \tabularnewline
19 & -0.036223 & -0.332 & 0.370362 \tabularnewline
20 & -0.083286 & -0.7633 & 0.223702 \tabularnewline
21 & 0.03024 & 0.2772 & 0.391172 \tabularnewline
22 & 0.040627 & 0.3724 & 0.355284 \tabularnewline
23 & -0.008306 & -0.0761 & 0.46975 \tabularnewline
24 & 0.114626 & 1.0506 & 0.148236 \tabularnewline
25 & -0.13566 & -1.2433 & 0.1086 \tabularnewline
26 & 0.026075 & 0.239 & 0.40585 \tabularnewline
27 & 0.031098 & 0.285 & 0.388166 \tabularnewline
28 & -0.076572 & -0.7018 & 0.242375 \tabularnewline
29 & -0.026891 & -0.2465 & 0.402964 \tabularnewline
30 & 0.022326 & 0.2046 & 0.41918 \tabularnewline
31 & -0.038385 & -0.3518 & 0.362934 \tabularnewline
32 & 0.021282 & 0.1951 & 0.422911 \tabularnewline
33 & -0.090306 & -0.8277 & 0.205102 \tabularnewline
34 & -0.136903 & -1.2547 & 0.106527 \tabularnewline
35 & -0.063122 & -0.5785 & 0.28223 \tabularnewline
36 & 0.060905 & 0.5582 & 0.289095 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=293892&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.936554[/C][C]8.5837[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.101612[/C][C]0.9313[/C][C]0.177186[/C][/ROW]
[ROW][C]3[/C][C]-0.024728[/C][C]-0.2266[/C][C]0.410629[/C][/ROW]
[ROW][C]4[/C][C]-0.037804[/C][C]-0.3465[/C][C]0.364926[/C][/ROW]
[ROW][C]5[/C][C]0.137456[/C][C]1.2598[/C][C]0.105614[/C][/ROW]
[ROW][C]6[/C][C]-0.144024[/C][C]-1.32[/C][C]0.095211[/C][/ROW]
[ROW][C]7[/C][C]-0.010541[/C][C]-0.0966[/C][C]0.461635[/C][/ROW]
[ROW][C]8[/C][C]0.005086[/C][C]0.0466[/C][C]0.481468[/C][/ROW]
[ROW][C]9[/C][C]0.116184[/C][C]1.0648[/C][C]0.144999[/C][/ROW]
[ROW][C]10[/C][C]-0.049478[/C][C]-0.4535[/C][C]0.325689[/C][/ROW]
[ROW][C]11[/C][C]-0.042917[/C][C]-0.3933[/C][C]0.347532[/C][/ROW]
[ROW][C]12[/C][C]0.010695[/C][C]0.098[/C][C]0.461076[/C][/ROW]
[ROW][C]13[/C][C]-0.105625[/C][C]-0.9681[/C][C]0.167895[/C][/ROW]
[ROW][C]14[/C][C]0.148286[/C][C]1.3591[/C][C]0.088882[/C][/ROW]
[ROW][C]15[/C][C]-0.008129[/C][C]-0.0745[/C][C]0.470392[/C][/ROW]
[ROW][C]16[/C][C]-0.076932[/C][C]-0.7051[/C][C]0.241351[/C][/ROW]
[ROW][C]17[/C][C]0.022475[/C][C]0.206[/C][C]0.41865[/C][/ROW]
[ROW][C]18[/C][C]-0.128278[/C][C]-1.1757[/C][C]0.12152[/C][/ROW]
[ROW][C]19[/C][C]-0.036223[/C][C]-0.332[/C][C]0.370362[/C][/ROW]
[ROW][C]20[/C][C]-0.083286[/C][C]-0.7633[/C][C]0.223702[/C][/ROW]
[ROW][C]21[/C][C]0.03024[/C][C]0.2772[/C][C]0.391172[/C][/ROW]
[ROW][C]22[/C][C]0.040627[/C][C]0.3724[/C][C]0.355284[/C][/ROW]
[ROW][C]23[/C][C]-0.008306[/C][C]-0.0761[/C][C]0.46975[/C][/ROW]
[ROW][C]24[/C][C]0.114626[/C][C]1.0506[/C][C]0.148236[/C][/ROW]
[ROW][C]25[/C][C]-0.13566[/C][C]-1.2433[/C][C]0.1086[/C][/ROW]
[ROW][C]26[/C][C]0.026075[/C][C]0.239[/C][C]0.40585[/C][/ROW]
[ROW][C]27[/C][C]0.031098[/C][C]0.285[/C][C]0.388166[/C][/ROW]
[ROW][C]28[/C][C]-0.076572[/C][C]-0.7018[/C][C]0.242375[/C][/ROW]
[ROW][C]29[/C][C]-0.026891[/C][C]-0.2465[/C][C]0.402964[/C][/ROW]
[ROW][C]30[/C][C]0.022326[/C][C]0.2046[/C][C]0.41918[/C][/ROW]
[ROW][C]31[/C][C]-0.038385[/C][C]-0.3518[/C][C]0.362934[/C][/ROW]
[ROW][C]32[/C][C]0.021282[/C][C]0.1951[/C][C]0.422911[/C][/ROW]
[ROW][C]33[/C][C]-0.090306[/C][C]-0.8277[/C][C]0.205102[/C][/ROW]
[ROW][C]34[/C][C]-0.136903[/C][C]-1.2547[/C][C]0.106527[/C][/ROW]
[ROW][C]35[/C][C]-0.063122[/C][C]-0.5785[/C][C]0.28223[/C][/ROW]
[ROW][C]36[/C][C]0.060905[/C][C]0.5582[/C][C]0.289095[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=293892&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=293892&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.9365548.58370
20.1016120.93130.177186
3-0.024728-0.22660.410629
4-0.037804-0.34650.364926
50.1374561.25980.105614
6-0.144024-1.320.095211
7-0.010541-0.09660.461635
80.0050860.04660.481468
90.1161841.06480.144999
10-0.049478-0.45350.325689
11-0.042917-0.39330.347532
120.0106950.0980.461076
13-0.105625-0.96810.167895
140.1482861.35910.088882
15-0.008129-0.07450.470392
16-0.076932-0.70510.241351
170.0224750.2060.41865
18-0.128278-1.17570.12152
19-0.036223-0.3320.370362
20-0.083286-0.76330.223702
210.030240.27720.391172
220.0406270.37240.355284
23-0.008306-0.07610.46975
240.1146261.05060.148236
25-0.13566-1.24330.1086
260.0260750.2390.40585
270.0310980.2850.388166
28-0.076572-0.70180.242375
29-0.026891-0.24650.402964
300.0223260.20460.41918
31-0.038385-0.35180.362934
320.0212820.19510.422911
33-0.090306-0.82770.205102
34-0.136903-1.25470.106527
35-0.063122-0.57850.28223
360.0609050.55820.289095



Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; 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)
x <- na.omit(x)
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')