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 computationThu, 22 Oct 2015 16:57:18 +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/22/t1445529460n4h974rixkkgnvx.htm/, Retrieved Sat, 18 May 2024 05:43:33 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=282765, Retrieved Sat, 18 May 2024 05:43:33 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact122
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [trend eigen reeks] [2015-10-22 15:57:18] [002d4cc575a6d7b5895f2103ed304b4f] [Current]
Feedback Forum

Post a new message
Dataseries X:
24158
24359
24628
25021
25315
25481
26043
26207
26466
26276
26236
26211
26265
25996
25794
25752
25491
25092
25759
25624
25138
25042
25014
25244
25493
25269
25170
25332
24966
24851
25518
25403
25028
24895
24905
25317
25718
25822
25967
25907
25940
26247
26900
26980
26677
26701
26808
27469
27586
27567
27508
27444
27380
27500
28217
28355
27627
27565
27496
27453
27705
27462
27152
27016
26836
26722
27391
27139
26644
26455
26294
26437
26954
26620
26307
26003
25798
25603
26242
26051
25658
25489
25425
25183
24774
24977
24980
25081
25240
25419
26309
26600
26690
26889
27109
27646
28330
28332
28202
28163
28077
28351
28950
28972
28812
28979
29112
29139




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=282765&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 time2 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2235532.31240.011333
2-0.148341-1.53450.063935
30.0086820.08980.464304
4-0.004155-0.0430.482898
50.1845571.90910.029466
60.4015324.15353.3e-05
70.1114741.15310.125721
8-0.092527-0.95710.170336
9-0.155873-1.61240.054914
10-0.270837-2.80160.003019
110.0488450.50530.307211
120.4581664.73933e-06
13-0.031689-0.32780.371853
14-0.279179-2.88780.002347
15-0.152658-1.57910.058631
16-0.130935-1.35440.089231
170.050070.51790.302787
180.1786341.84780.033696
190.0438660.45380.325463
20-0.162685-1.68280.047663
21-0.258196-2.67080.004374
22-0.315524-3.26380.000738
230.002410.02490.49008
240.3864653.99765.9e-05
25-0.028379-0.29360.384835
26-0.358568-3.70910.000166
27-0.191113-1.97690.025314
28-0.146653-1.5170.066109
29-0.047521-0.49160.312018
300.1641891.69840.04617
310.0550530.56950.285114
32-0.173233-1.79190.037985
33-0.170677-1.76550.040166
34-0.219642-2.2720.012543
350.0263910.2730.392694
360.3529713.65120.000203

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.223553 & 2.3124 & 0.011333 \tabularnewline
2 & -0.148341 & -1.5345 & 0.063935 \tabularnewline
3 & 0.008682 & 0.0898 & 0.464304 \tabularnewline
4 & -0.004155 & -0.043 & 0.482898 \tabularnewline
5 & 0.184557 & 1.9091 & 0.029466 \tabularnewline
6 & 0.401532 & 4.1535 & 3.3e-05 \tabularnewline
7 & 0.111474 & 1.1531 & 0.125721 \tabularnewline
8 & -0.092527 & -0.9571 & 0.170336 \tabularnewline
9 & -0.155873 & -1.6124 & 0.054914 \tabularnewline
10 & -0.270837 & -2.8016 & 0.003019 \tabularnewline
11 & 0.048845 & 0.5053 & 0.307211 \tabularnewline
12 & 0.458166 & 4.7393 & 3e-06 \tabularnewline
13 & -0.031689 & -0.3278 & 0.371853 \tabularnewline
14 & -0.279179 & -2.8878 & 0.002347 \tabularnewline
15 & -0.152658 & -1.5791 & 0.058631 \tabularnewline
16 & -0.130935 & -1.3544 & 0.089231 \tabularnewline
17 & 0.05007 & 0.5179 & 0.302787 \tabularnewline
18 & 0.178634 & 1.8478 & 0.033696 \tabularnewline
19 & 0.043866 & 0.4538 & 0.325463 \tabularnewline
20 & -0.162685 & -1.6828 & 0.047663 \tabularnewline
21 & -0.258196 & -2.6708 & 0.004374 \tabularnewline
22 & -0.315524 & -3.2638 & 0.000738 \tabularnewline
23 & 0.00241 & 0.0249 & 0.49008 \tabularnewline
24 & 0.386465 & 3.9976 & 5.9e-05 \tabularnewline
25 & -0.028379 & -0.2936 & 0.384835 \tabularnewline
26 & -0.358568 & -3.7091 & 0.000166 \tabularnewline
27 & -0.191113 & -1.9769 & 0.025314 \tabularnewline
28 & -0.146653 & -1.517 & 0.066109 \tabularnewline
29 & -0.047521 & -0.4916 & 0.312018 \tabularnewline
30 & 0.164189 & 1.6984 & 0.04617 \tabularnewline
31 & 0.055053 & 0.5695 & 0.285114 \tabularnewline
32 & -0.173233 & -1.7919 & 0.037985 \tabularnewline
33 & -0.170677 & -1.7655 & 0.040166 \tabularnewline
34 & -0.219642 & -2.272 & 0.012543 \tabularnewline
35 & 0.026391 & 0.273 & 0.392694 \tabularnewline
36 & 0.352971 & 3.6512 & 0.000203 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=282765&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.223553[/C][C]2.3124[/C][C]0.011333[/C][/ROW]
[ROW][C]2[/C][C]-0.148341[/C][C]-1.5345[/C][C]0.063935[/C][/ROW]
[ROW][C]3[/C][C]0.008682[/C][C]0.0898[/C][C]0.464304[/C][/ROW]
[ROW][C]4[/C][C]-0.004155[/C][C]-0.043[/C][C]0.482898[/C][/ROW]
[ROW][C]5[/C][C]0.184557[/C][C]1.9091[/C][C]0.029466[/C][/ROW]
[ROW][C]6[/C][C]0.401532[/C][C]4.1535[/C][C]3.3e-05[/C][/ROW]
[ROW][C]7[/C][C]0.111474[/C][C]1.1531[/C][C]0.125721[/C][/ROW]
[ROW][C]8[/C][C]-0.092527[/C][C]-0.9571[/C][C]0.170336[/C][/ROW]
[ROW][C]9[/C][C]-0.155873[/C][C]-1.6124[/C][C]0.054914[/C][/ROW]
[ROW][C]10[/C][C]-0.270837[/C][C]-2.8016[/C][C]0.003019[/C][/ROW]
[ROW][C]11[/C][C]0.048845[/C][C]0.5053[/C][C]0.307211[/C][/ROW]
[ROW][C]12[/C][C]0.458166[/C][C]4.7393[/C][C]3e-06[/C][/ROW]
[ROW][C]13[/C][C]-0.031689[/C][C]-0.3278[/C][C]0.371853[/C][/ROW]
[ROW][C]14[/C][C]-0.279179[/C][C]-2.8878[/C][C]0.002347[/C][/ROW]
[ROW][C]15[/C][C]-0.152658[/C][C]-1.5791[/C][C]0.058631[/C][/ROW]
[ROW][C]16[/C][C]-0.130935[/C][C]-1.3544[/C][C]0.089231[/C][/ROW]
[ROW][C]17[/C][C]0.05007[/C][C]0.5179[/C][C]0.302787[/C][/ROW]
[ROW][C]18[/C][C]0.178634[/C][C]1.8478[/C][C]0.033696[/C][/ROW]
[ROW][C]19[/C][C]0.043866[/C][C]0.4538[/C][C]0.325463[/C][/ROW]
[ROW][C]20[/C][C]-0.162685[/C][C]-1.6828[/C][C]0.047663[/C][/ROW]
[ROW][C]21[/C][C]-0.258196[/C][C]-2.6708[/C][C]0.004374[/C][/ROW]
[ROW][C]22[/C][C]-0.315524[/C][C]-3.2638[/C][C]0.000738[/C][/ROW]
[ROW][C]23[/C][C]0.00241[/C][C]0.0249[/C][C]0.49008[/C][/ROW]
[ROW][C]24[/C][C]0.386465[/C][C]3.9976[/C][C]5.9e-05[/C][/ROW]
[ROW][C]25[/C][C]-0.028379[/C][C]-0.2936[/C][C]0.384835[/C][/ROW]
[ROW][C]26[/C][C]-0.358568[/C][C]-3.7091[/C][C]0.000166[/C][/ROW]
[ROW][C]27[/C][C]-0.191113[/C][C]-1.9769[/C][C]0.025314[/C][/ROW]
[ROW][C]28[/C][C]-0.146653[/C][C]-1.517[/C][C]0.066109[/C][/ROW]
[ROW][C]29[/C][C]-0.047521[/C][C]-0.4916[/C][C]0.312018[/C][/ROW]
[ROW][C]30[/C][C]0.164189[/C][C]1.6984[/C][C]0.04617[/C][/ROW]
[ROW][C]31[/C][C]0.055053[/C][C]0.5695[/C][C]0.285114[/C][/ROW]
[ROW][C]32[/C][C]-0.173233[/C][C]-1.7919[/C][C]0.037985[/C][/ROW]
[ROW][C]33[/C][C]-0.170677[/C][C]-1.7655[/C][C]0.040166[/C][/ROW]
[ROW][C]34[/C][C]-0.219642[/C][C]-2.272[/C][C]0.012543[/C][/ROW]
[ROW][C]35[/C][C]0.026391[/C][C]0.273[/C][C]0.392694[/C][/ROW]
[ROW][C]36[/C][C]0.352971[/C][C]3.6512[/C][C]0.000203[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=282765&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=282765&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.2235532.31240.011333
2-0.148341-1.53450.063935
30.0086820.08980.464304
4-0.004155-0.0430.482898
50.1845571.90910.029466
60.4015324.15353.3e-05
70.1114741.15310.125721
8-0.092527-0.95710.170336
9-0.155873-1.61240.054914
10-0.270837-2.80160.003019
110.0488450.50530.307211
120.4581664.73933e-06
13-0.031689-0.32780.371853
14-0.279179-2.88780.002347
15-0.152658-1.57910.058631
16-0.130935-1.35440.089231
170.050070.51790.302787
180.1786341.84780.033696
190.0438660.45380.325463
20-0.162685-1.68280.047663
21-0.258196-2.67080.004374
22-0.315524-3.26380.000738
230.002410.02490.49008
240.3864653.99765.9e-05
25-0.028379-0.29360.384835
26-0.358568-3.70910.000166
27-0.191113-1.97690.025314
28-0.146653-1.5170.066109
29-0.047521-0.49160.312018
300.1641891.69840.04617
310.0550530.56950.285114
32-0.173233-1.79190.037985
33-0.170677-1.76550.040166
34-0.219642-2.2720.012543
350.0263910.2730.392694
360.3529713.65120.000203







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2235532.31240.011333
2-0.208749-2.15930.016529
30.105031.08640.139863
4-0.072721-0.75220.22678
50.2494822.58070.005608
60.3130073.23780.000802
70.0168370.17420.431033
8-0.006835-0.07070.471885
9-0.194639-2.01340.023294
10-0.331459-3.42860.000431
11-0.017313-0.17910.429105
120.341963.53733e-04
13-0.170467-1.76330.04035
14-0.042891-0.44370.329089
15-0.022306-0.23070.408979
160.0323780.33490.369169
17-0.008278-0.08560.465963
18-0.090764-0.93890.174956
190.0899210.93020.177193
20-0.123983-1.28250.101221
21-0.113717-1.17630.121043
22-0.207963-2.15120.016856
23-0.045557-0.47120.319214
240.2375722.45750.007799
25-0.041366-0.42790.334794
26-0.149923-1.55080.061949
270.0035540.03680.48537
28-0.030206-0.31250.377652
29-0.144826-1.49810.068527
30-0.045012-0.46560.321221
31-0.037934-0.39240.347775
32-0.002614-0.0270.489239
330.0890250.92090.179593
34-0.039019-0.40360.343651
35-0.018185-0.18810.425574
36-0.033374-0.34520.365301

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.223553 & 2.3124 & 0.011333 \tabularnewline
2 & -0.208749 & -2.1593 & 0.016529 \tabularnewline
3 & 0.10503 & 1.0864 & 0.139863 \tabularnewline
4 & -0.072721 & -0.7522 & 0.22678 \tabularnewline
5 & 0.249482 & 2.5807 & 0.005608 \tabularnewline
6 & 0.313007 & 3.2378 & 0.000802 \tabularnewline
7 & 0.016837 & 0.1742 & 0.431033 \tabularnewline
8 & -0.006835 & -0.0707 & 0.471885 \tabularnewline
9 & -0.194639 & -2.0134 & 0.023294 \tabularnewline
10 & -0.331459 & -3.4286 & 0.000431 \tabularnewline
11 & -0.017313 & -0.1791 & 0.429105 \tabularnewline
12 & 0.34196 & 3.5373 & 3e-04 \tabularnewline
13 & -0.170467 & -1.7633 & 0.04035 \tabularnewline
14 & -0.042891 & -0.4437 & 0.329089 \tabularnewline
15 & -0.022306 & -0.2307 & 0.408979 \tabularnewline
16 & 0.032378 & 0.3349 & 0.369169 \tabularnewline
17 & -0.008278 & -0.0856 & 0.465963 \tabularnewline
18 & -0.090764 & -0.9389 & 0.174956 \tabularnewline
19 & 0.089921 & 0.9302 & 0.177193 \tabularnewline
20 & -0.123983 & -1.2825 & 0.101221 \tabularnewline
21 & -0.113717 & -1.1763 & 0.121043 \tabularnewline
22 & -0.207963 & -2.1512 & 0.016856 \tabularnewline
23 & -0.045557 & -0.4712 & 0.319214 \tabularnewline
24 & 0.237572 & 2.4575 & 0.007799 \tabularnewline
25 & -0.041366 & -0.4279 & 0.334794 \tabularnewline
26 & -0.149923 & -1.5508 & 0.061949 \tabularnewline
27 & 0.003554 & 0.0368 & 0.48537 \tabularnewline
28 & -0.030206 & -0.3125 & 0.377652 \tabularnewline
29 & -0.144826 & -1.4981 & 0.068527 \tabularnewline
30 & -0.045012 & -0.4656 & 0.321221 \tabularnewline
31 & -0.037934 & -0.3924 & 0.347775 \tabularnewline
32 & -0.002614 & -0.027 & 0.489239 \tabularnewline
33 & 0.089025 & 0.9209 & 0.179593 \tabularnewline
34 & -0.039019 & -0.4036 & 0.343651 \tabularnewline
35 & -0.018185 & -0.1881 & 0.425574 \tabularnewline
36 & -0.033374 & -0.3452 & 0.365301 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=282765&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.223553[/C][C]2.3124[/C][C]0.011333[/C][/ROW]
[ROW][C]2[/C][C]-0.208749[/C][C]-2.1593[/C][C]0.016529[/C][/ROW]
[ROW][C]3[/C][C]0.10503[/C][C]1.0864[/C][C]0.139863[/C][/ROW]
[ROW][C]4[/C][C]-0.072721[/C][C]-0.7522[/C][C]0.22678[/C][/ROW]
[ROW][C]5[/C][C]0.249482[/C][C]2.5807[/C][C]0.005608[/C][/ROW]
[ROW][C]6[/C][C]0.313007[/C][C]3.2378[/C][C]0.000802[/C][/ROW]
[ROW][C]7[/C][C]0.016837[/C][C]0.1742[/C][C]0.431033[/C][/ROW]
[ROW][C]8[/C][C]-0.006835[/C][C]-0.0707[/C][C]0.471885[/C][/ROW]
[ROW][C]9[/C][C]-0.194639[/C][C]-2.0134[/C][C]0.023294[/C][/ROW]
[ROW][C]10[/C][C]-0.331459[/C][C]-3.4286[/C][C]0.000431[/C][/ROW]
[ROW][C]11[/C][C]-0.017313[/C][C]-0.1791[/C][C]0.429105[/C][/ROW]
[ROW][C]12[/C][C]0.34196[/C][C]3.5373[/C][C]3e-04[/C][/ROW]
[ROW][C]13[/C][C]-0.170467[/C][C]-1.7633[/C][C]0.04035[/C][/ROW]
[ROW][C]14[/C][C]-0.042891[/C][C]-0.4437[/C][C]0.329089[/C][/ROW]
[ROW][C]15[/C][C]-0.022306[/C][C]-0.2307[/C][C]0.408979[/C][/ROW]
[ROW][C]16[/C][C]0.032378[/C][C]0.3349[/C][C]0.369169[/C][/ROW]
[ROW][C]17[/C][C]-0.008278[/C][C]-0.0856[/C][C]0.465963[/C][/ROW]
[ROW][C]18[/C][C]-0.090764[/C][C]-0.9389[/C][C]0.174956[/C][/ROW]
[ROW][C]19[/C][C]0.089921[/C][C]0.9302[/C][C]0.177193[/C][/ROW]
[ROW][C]20[/C][C]-0.123983[/C][C]-1.2825[/C][C]0.101221[/C][/ROW]
[ROW][C]21[/C][C]-0.113717[/C][C]-1.1763[/C][C]0.121043[/C][/ROW]
[ROW][C]22[/C][C]-0.207963[/C][C]-2.1512[/C][C]0.016856[/C][/ROW]
[ROW][C]23[/C][C]-0.045557[/C][C]-0.4712[/C][C]0.319214[/C][/ROW]
[ROW][C]24[/C][C]0.237572[/C][C]2.4575[/C][C]0.007799[/C][/ROW]
[ROW][C]25[/C][C]-0.041366[/C][C]-0.4279[/C][C]0.334794[/C][/ROW]
[ROW][C]26[/C][C]-0.149923[/C][C]-1.5508[/C][C]0.061949[/C][/ROW]
[ROW][C]27[/C][C]0.003554[/C][C]0.0368[/C][C]0.48537[/C][/ROW]
[ROW][C]28[/C][C]-0.030206[/C][C]-0.3125[/C][C]0.377652[/C][/ROW]
[ROW][C]29[/C][C]-0.144826[/C][C]-1.4981[/C][C]0.068527[/C][/ROW]
[ROW][C]30[/C][C]-0.045012[/C][C]-0.4656[/C][C]0.321221[/C][/ROW]
[ROW][C]31[/C][C]-0.037934[/C][C]-0.3924[/C][C]0.347775[/C][/ROW]
[ROW][C]32[/C][C]-0.002614[/C][C]-0.027[/C][C]0.489239[/C][/ROW]
[ROW][C]33[/C][C]0.089025[/C][C]0.9209[/C][C]0.179593[/C][/ROW]
[ROW][C]34[/C][C]-0.039019[/C][C]-0.4036[/C][C]0.343651[/C][/ROW]
[ROW][C]35[/C][C]-0.018185[/C][C]-0.1881[/C][C]0.425574[/C][/ROW]
[ROW][C]36[/C][C]-0.033374[/C][C]-0.3452[/C][C]0.365301[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=282765&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=282765&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.2235532.31240.011333
2-0.208749-2.15930.016529
30.105031.08640.139863
4-0.072721-0.75220.22678
50.2494822.58070.005608
60.3130073.23780.000802
70.0168370.17420.431033
8-0.006835-0.07070.471885
9-0.194639-2.01340.023294
10-0.331459-3.42860.000431
11-0.017313-0.17910.429105
120.341963.53733e-04
13-0.170467-1.76330.04035
14-0.042891-0.44370.329089
15-0.022306-0.23070.408979
160.0323780.33490.369169
17-0.008278-0.08560.465963
18-0.090764-0.93890.174956
190.0899210.93020.177193
20-0.123983-1.28250.101221
21-0.113717-1.17630.121043
22-0.207963-2.15120.016856
23-0.045557-0.47120.319214
240.2375722.45750.007799
25-0.041366-0.42790.334794
26-0.149923-1.55080.061949
270.0035540.03680.48537
28-0.030206-0.31250.377652
29-0.144826-1.49810.068527
30-0.045012-0.46560.321221
31-0.037934-0.39240.347775
32-0.002614-0.0270.489239
330.0890250.92090.179593
34-0.039019-0.40360.343651
35-0.018185-0.18810.425574
36-0.033374-0.34520.365301



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