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 computationFri, 23 Oct 2015 14:08:44 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2015/Oct/23/t1445605778tut8wvt8y17varo.htm/, Retrieved Mon, 13 May 2024 22:30:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=282901, Retrieved Mon, 13 May 2024 22:30:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact84
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [autocorrelatie co...] [2015-10-23 13:08:44] [4bedbbf2e5251222bc39a0f973d05821] [Current]
Feedback Forum

Post a new message
Dataseries X:
89,56
89,84
89,97
90,65
91,17
91,35
91,41
91,55
91,63
91,54
91,74
91,87
92,13
92,14
92,05
92
92,51
92,67
92,68
92,77
92,85
92,71
92,73
92,28
92,49
92,46
92,55
92,24
92,41
92,83
92,85
93,04
93,04
92,83
92,96
92,83
93,01
93,21
93,58
94,07
94,57
95,03
95,21
95,89
96,43
96,35
96,71
96,32
97,23
97,88
98,2
98,56
99,31
99,69
99,77
101,06
101,77
101,91
102,52
102,09
102,22
102,74
103,56
104,4
104,76
104,86
104,84
104,96
104,83
104,58
104,8
104,17




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Sir Ronald Aylmer Fisher' @ fisher.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 Ronald Aylmer Fisher' @ fisher.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=282901&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 Ronald Aylmer Fisher' @ fisher.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=282901&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=282901&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 Ronald Aylmer Fisher' @ fisher.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9640458.18020
20.9230247.83210
30.8807417.47330
40.8371357.10330
50.7929846.72870
60.7477576.34490
70.7002395.94170
80.6511155.52490
90.6021235.10921e-06
100.5546914.70676e-06
110.5101224.32852.4e-05
120.4673883.96598.5e-05
130.4229653.5890.000301
140.3748723.18090.001083
150.3273872.7780.003485
160.2788372.3660.010338
170.2356771.99980.024648
180.1986491.68560.048102
190.1612391.36820.087758
200.1252431.06270.14573
210.0926750.78640.217114
220.060660.51470.304164
230.0295120.25040.401487
24-0.000487-0.00410.498359
25-0.026844-0.22780.410232
26-0.055524-0.47110.319485
27-0.082989-0.70420.241794
28-0.112744-0.95670.170969
29-0.139052-1.17990.120963
30-0.160347-1.36060.088943
31-0.180498-1.53160.065004
32-0.197708-1.67760.04888
33-0.212908-1.80660.037503
34-0.227105-1.9270.02896
35-0.239559-2.03270.022884
36-0.251808-2.13670.018012

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.964045 & 8.1802 & 0 \tabularnewline
2 & 0.923024 & 7.8321 & 0 \tabularnewline
3 & 0.880741 & 7.4733 & 0 \tabularnewline
4 & 0.837135 & 7.1033 & 0 \tabularnewline
5 & 0.792984 & 6.7287 & 0 \tabularnewline
6 & 0.747757 & 6.3449 & 0 \tabularnewline
7 & 0.700239 & 5.9417 & 0 \tabularnewline
8 & 0.651115 & 5.5249 & 0 \tabularnewline
9 & 0.602123 & 5.1092 & 1e-06 \tabularnewline
10 & 0.554691 & 4.7067 & 6e-06 \tabularnewline
11 & 0.510122 & 4.3285 & 2.4e-05 \tabularnewline
12 & 0.467388 & 3.9659 & 8.5e-05 \tabularnewline
13 & 0.422965 & 3.589 & 0.000301 \tabularnewline
14 & 0.374872 & 3.1809 & 0.001083 \tabularnewline
15 & 0.327387 & 2.778 & 0.003485 \tabularnewline
16 & 0.278837 & 2.366 & 0.010338 \tabularnewline
17 & 0.235677 & 1.9998 & 0.024648 \tabularnewline
18 & 0.198649 & 1.6856 & 0.048102 \tabularnewline
19 & 0.161239 & 1.3682 & 0.087758 \tabularnewline
20 & 0.125243 & 1.0627 & 0.14573 \tabularnewline
21 & 0.092675 & 0.7864 & 0.217114 \tabularnewline
22 & 0.06066 & 0.5147 & 0.304164 \tabularnewline
23 & 0.029512 & 0.2504 & 0.401487 \tabularnewline
24 & -0.000487 & -0.0041 & 0.498359 \tabularnewline
25 & -0.026844 & -0.2278 & 0.410232 \tabularnewline
26 & -0.055524 & -0.4711 & 0.319485 \tabularnewline
27 & -0.082989 & -0.7042 & 0.241794 \tabularnewline
28 & -0.112744 & -0.9567 & 0.170969 \tabularnewline
29 & -0.139052 & -1.1799 & 0.120963 \tabularnewline
30 & -0.160347 & -1.3606 & 0.088943 \tabularnewline
31 & -0.180498 & -1.5316 & 0.065004 \tabularnewline
32 & -0.197708 & -1.6776 & 0.04888 \tabularnewline
33 & -0.212908 & -1.8066 & 0.037503 \tabularnewline
34 & -0.227105 & -1.927 & 0.02896 \tabularnewline
35 & -0.239559 & -2.0327 & 0.022884 \tabularnewline
36 & -0.251808 & -2.1367 & 0.018012 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=282901&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.964045[/C][C]8.1802[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.923024[/C][C]7.8321[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.880741[/C][C]7.4733[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.837135[/C][C]7.1033[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0.792984[/C][C]6.7287[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0.747757[/C][C]6.3449[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0.700239[/C][C]5.9417[/C][C]0[/C][/ROW]
[ROW][C]8[/C][C]0.651115[/C][C]5.5249[/C][C]0[/C][/ROW]
[ROW][C]9[/C][C]0.602123[/C][C]5.1092[/C][C]1e-06[/C][/ROW]
[ROW][C]10[/C][C]0.554691[/C][C]4.7067[/C][C]6e-06[/C][/ROW]
[ROW][C]11[/C][C]0.510122[/C][C]4.3285[/C][C]2.4e-05[/C][/ROW]
[ROW][C]12[/C][C]0.467388[/C][C]3.9659[/C][C]8.5e-05[/C][/ROW]
[ROW][C]13[/C][C]0.422965[/C][C]3.589[/C][C]0.000301[/C][/ROW]
[ROW][C]14[/C][C]0.374872[/C][C]3.1809[/C][C]0.001083[/C][/ROW]
[ROW][C]15[/C][C]0.327387[/C][C]2.778[/C][C]0.003485[/C][/ROW]
[ROW][C]16[/C][C]0.278837[/C][C]2.366[/C][C]0.010338[/C][/ROW]
[ROW][C]17[/C][C]0.235677[/C][C]1.9998[/C][C]0.024648[/C][/ROW]
[ROW][C]18[/C][C]0.198649[/C][C]1.6856[/C][C]0.048102[/C][/ROW]
[ROW][C]19[/C][C]0.161239[/C][C]1.3682[/C][C]0.087758[/C][/ROW]
[ROW][C]20[/C][C]0.125243[/C][C]1.0627[/C][C]0.14573[/C][/ROW]
[ROW][C]21[/C][C]0.092675[/C][C]0.7864[/C][C]0.217114[/C][/ROW]
[ROW][C]22[/C][C]0.06066[/C][C]0.5147[/C][C]0.304164[/C][/ROW]
[ROW][C]23[/C][C]0.029512[/C][C]0.2504[/C][C]0.401487[/C][/ROW]
[ROW][C]24[/C][C]-0.000487[/C][C]-0.0041[/C][C]0.498359[/C][/ROW]
[ROW][C]25[/C][C]-0.026844[/C][C]-0.2278[/C][C]0.410232[/C][/ROW]
[ROW][C]26[/C][C]-0.055524[/C][C]-0.4711[/C][C]0.319485[/C][/ROW]
[ROW][C]27[/C][C]-0.082989[/C][C]-0.7042[/C][C]0.241794[/C][/ROW]
[ROW][C]28[/C][C]-0.112744[/C][C]-0.9567[/C][C]0.170969[/C][/ROW]
[ROW][C]29[/C][C]-0.139052[/C][C]-1.1799[/C][C]0.120963[/C][/ROW]
[ROW][C]30[/C][C]-0.160347[/C][C]-1.3606[/C][C]0.088943[/C][/ROW]
[ROW][C]31[/C][C]-0.180498[/C][C]-1.5316[/C][C]0.065004[/C][/ROW]
[ROW][C]32[/C][C]-0.197708[/C][C]-1.6776[/C][C]0.04888[/C][/ROW]
[ROW][C]33[/C][C]-0.212908[/C][C]-1.8066[/C][C]0.037503[/C][/ROW]
[ROW][C]34[/C][C]-0.227105[/C][C]-1.927[/C][C]0.02896[/C][/ROW]
[ROW][C]35[/C][C]-0.239559[/C][C]-2.0327[/C][C]0.022884[/C][/ROW]
[ROW][C]36[/C][C]-0.251808[/C][C]-2.1367[/C][C]0.018012[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=282901&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=282901&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.9640458.18020
20.9230247.83210
30.8807417.47330
40.8371357.10330
50.7929846.72870
60.7477576.34490
70.7002395.94170
80.6511155.52490
90.6021235.10921e-06
100.5546914.70676e-06
110.5101224.32852.4e-05
120.4673883.96598.5e-05
130.4229653.5890.000301
140.3748723.18090.001083
150.3273872.7780.003485
160.2788372.3660.010338
170.2356771.99980.024648
180.1986491.68560.048102
190.1612391.36820.087758
200.1252431.06270.14573
210.0926750.78640.217114
220.060660.51470.304164
230.0295120.25040.401487
24-0.000487-0.00410.498359
25-0.026844-0.22780.410232
26-0.055524-0.47110.319485
27-0.082989-0.70420.241794
28-0.112744-0.95670.170969
29-0.139052-1.17990.120963
30-0.160347-1.36060.088943
31-0.180498-1.53160.065004
32-0.197708-1.67760.04888
33-0.212908-1.80660.037503
34-0.227105-1.9270.02896
35-0.239559-2.03270.022884
36-0.251808-2.13670.018012







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9640458.18020
2-0.090036-0.7640.223688
3-0.03447-0.29250.385378
4-0.039316-0.33360.369823
5-0.028987-0.2460.403205
6-0.038746-0.32880.37164
7-0.056437-0.47890.316735
8-0.046559-0.39510.346981
9-0.024247-0.20570.418787
10-0.007202-0.06110.47572
110.0088040.07470.470329
12-0.007738-0.06570.473914
13-0.056688-0.4810.315983
14-0.081951-0.69540.244529
15-0.020805-0.17650.430184
16-0.053383-0.4530.325967
170.0404580.34330.366187
180.0433970.36820.356889
19-0.046038-0.39060.348606
20-0.009958-0.08450.466449
210.0154120.13080.44816
22-0.031063-0.26360.396428
23-0.030115-0.25550.399519
24-0.030306-0.25720.398897
250.0139610.11850.453016
26-0.06855-0.58170.281303
27-0.006474-0.05490.478172
28-0.064088-0.54380.294129
290.0200960.17050.432538
300.02230.18920.425226
31-0.027208-0.23090.409035
320.0083230.07060.471948
33-0.010061-0.08540.466102
34-0.011276-0.09570.46202
35-0.004629-0.03930.484389
36-0.038859-0.32970.37128

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.964045 & 8.1802 & 0 \tabularnewline
2 & -0.090036 & -0.764 & 0.223688 \tabularnewline
3 & -0.03447 & -0.2925 & 0.385378 \tabularnewline
4 & -0.039316 & -0.3336 & 0.369823 \tabularnewline
5 & -0.028987 & -0.246 & 0.403205 \tabularnewline
6 & -0.038746 & -0.3288 & 0.37164 \tabularnewline
7 & -0.056437 & -0.4789 & 0.316735 \tabularnewline
8 & -0.046559 & -0.3951 & 0.346981 \tabularnewline
9 & -0.024247 & -0.2057 & 0.418787 \tabularnewline
10 & -0.007202 & -0.0611 & 0.47572 \tabularnewline
11 & 0.008804 & 0.0747 & 0.470329 \tabularnewline
12 & -0.007738 & -0.0657 & 0.473914 \tabularnewline
13 & -0.056688 & -0.481 & 0.315983 \tabularnewline
14 & -0.081951 & -0.6954 & 0.244529 \tabularnewline
15 & -0.020805 & -0.1765 & 0.430184 \tabularnewline
16 & -0.053383 & -0.453 & 0.325967 \tabularnewline
17 & 0.040458 & 0.3433 & 0.366187 \tabularnewline
18 & 0.043397 & 0.3682 & 0.356889 \tabularnewline
19 & -0.046038 & -0.3906 & 0.348606 \tabularnewline
20 & -0.009958 & -0.0845 & 0.466449 \tabularnewline
21 & 0.015412 & 0.1308 & 0.44816 \tabularnewline
22 & -0.031063 & -0.2636 & 0.396428 \tabularnewline
23 & -0.030115 & -0.2555 & 0.399519 \tabularnewline
24 & -0.030306 & -0.2572 & 0.398897 \tabularnewline
25 & 0.013961 & 0.1185 & 0.453016 \tabularnewline
26 & -0.06855 & -0.5817 & 0.281303 \tabularnewline
27 & -0.006474 & -0.0549 & 0.478172 \tabularnewline
28 & -0.064088 & -0.5438 & 0.294129 \tabularnewline
29 & 0.020096 & 0.1705 & 0.432538 \tabularnewline
30 & 0.0223 & 0.1892 & 0.425226 \tabularnewline
31 & -0.027208 & -0.2309 & 0.409035 \tabularnewline
32 & 0.008323 & 0.0706 & 0.471948 \tabularnewline
33 & -0.010061 & -0.0854 & 0.466102 \tabularnewline
34 & -0.011276 & -0.0957 & 0.46202 \tabularnewline
35 & -0.004629 & -0.0393 & 0.484389 \tabularnewline
36 & -0.038859 & -0.3297 & 0.37128 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=282901&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.964045[/C][C]8.1802[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.090036[/C][C]-0.764[/C][C]0.223688[/C][/ROW]
[ROW][C]3[/C][C]-0.03447[/C][C]-0.2925[/C][C]0.385378[/C][/ROW]
[ROW][C]4[/C][C]-0.039316[/C][C]-0.3336[/C][C]0.369823[/C][/ROW]
[ROW][C]5[/C][C]-0.028987[/C][C]-0.246[/C][C]0.403205[/C][/ROW]
[ROW][C]6[/C][C]-0.038746[/C][C]-0.3288[/C][C]0.37164[/C][/ROW]
[ROW][C]7[/C][C]-0.056437[/C][C]-0.4789[/C][C]0.316735[/C][/ROW]
[ROW][C]8[/C][C]-0.046559[/C][C]-0.3951[/C][C]0.346981[/C][/ROW]
[ROW][C]9[/C][C]-0.024247[/C][C]-0.2057[/C][C]0.418787[/C][/ROW]
[ROW][C]10[/C][C]-0.007202[/C][C]-0.0611[/C][C]0.47572[/C][/ROW]
[ROW][C]11[/C][C]0.008804[/C][C]0.0747[/C][C]0.470329[/C][/ROW]
[ROW][C]12[/C][C]-0.007738[/C][C]-0.0657[/C][C]0.473914[/C][/ROW]
[ROW][C]13[/C][C]-0.056688[/C][C]-0.481[/C][C]0.315983[/C][/ROW]
[ROW][C]14[/C][C]-0.081951[/C][C]-0.6954[/C][C]0.244529[/C][/ROW]
[ROW][C]15[/C][C]-0.020805[/C][C]-0.1765[/C][C]0.430184[/C][/ROW]
[ROW][C]16[/C][C]-0.053383[/C][C]-0.453[/C][C]0.325967[/C][/ROW]
[ROW][C]17[/C][C]0.040458[/C][C]0.3433[/C][C]0.366187[/C][/ROW]
[ROW][C]18[/C][C]0.043397[/C][C]0.3682[/C][C]0.356889[/C][/ROW]
[ROW][C]19[/C][C]-0.046038[/C][C]-0.3906[/C][C]0.348606[/C][/ROW]
[ROW][C]20[/C][C]-0.009958[/C][C]-0.0845[/C][C]0.466449[/C][/ROW]
[ROW][C]21[/C][C]0.015412[/C][C]0.1308[/C][C]0.44816[/C][/ROW]
[ROW][C]22[/C][C]-0.031063[/C][C]-0.2636[/C][C]0.396428[/C][/ROW]
[ROW][C]23[/C][C]-0.030115[/C][C]-0.2555[/C][C]0.399519[/C][/ROW]
[ROW][C]24[/C][C]-0.030306[/C][C]-0.2572[/C][C]0.398897[/C][/ROW]
[ROW][C]25[/C][C]0.013961[/C][C]0.1185[/C][C]0.453016[/C][/ROW]
[ROW][C]26[/C][C]-0.06855[/C][C]-0.5817[/C][C]0.281303[/C][/ROW]
[ROW][C]27[/C][C]-0.006474[/C][C]-0.0549[/C][C]0.478172[/C][/ROW]
[ROW][C]28[/C][C]-0.064088[/C][C]-0.5438[/C][C]0.294129[/C][/ROW]
[ROW][C]29[/C][C]0.020096[/C][C]0.1705[/C][C]0.432538[/C][/ROW]
[ROW][C]30[/C][C]0.0223[/C][C]0.1892[/C][C]0.425226[/C][/ROW]
[ROW][C]31[/C][C]-0.027208[/C][C]-0.2309[/C][C]0.409035[/C][/ROW]
[ROW][C]32[/C][C]0.008323[/C][C]0.0706[/C][C]0.471948[/C][/ROW]
[ROW][C]33[/C][C]-0.010061[/C][C]-0.0854[/C][C]0.466102[/C][/ROW]
[ROW][C]34[/C][C]-0.011276[/C][C]-0.0957[/C][C]0.46202[/C][/ROW]
[ROW][C]35[/C][C]-0.004629[/C][C]-0.0393[/C][C]0.484389[/C][/ROW]
[ROW][C]36[/C][C]-0.038859[/C][C]-0.3297[/C][C]0.37128[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=282901&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=282901&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.9640458.18020
2-0.090036-0.7640.223688
3-0.03447-0.29250.385378
4-0.039316-0.33360.369823
5-0.028987-0.2460.403205
6-0.038746-0.32880.37164
7-0.056437-0.47890.316735
8-0.046559-0.39510.346981
9-0.024247-0.20570.418787
10-0.007202-0.06110.47572
110.0088040.07470.470329
12-0.007738-0.06570.473914
13-0.056688-0.4810.315983
14-0.081951-0.69540.244529
15-0.020805-0.17650.430184
16-0.053383-0.4530.325967
170.0404580.34330.366187
180.0433970.36820.356889
19-0.046038-0.39060.348606
20-0.009958-0.08450.466449
210.0154120.13080.44816
22-0.031063-0.26360.396428
23-0.030115-0.25550.399519
24-0.030306-0.25720.398897
250.0139610.11850.453016
26-0.06855-0.58170.281303
27-0.006474-0.05490.478172
28-0.064088-0.54380.294129
290.0200960.17050.432538
300.02230.18920.425226
31-0.027208-0.23090.409035
320.0083230.07060.471948
33-0.010061-0.08540.466102
34-0.011276-0.09570.46202
35-0.004629-0.03930.484389
36-0.038859-0.32970.37128



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