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 computationSun, 25 Mar 2012 07:03:19 -0400
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Mar/25/t13326735132maqi1gf5k96d9o.htm/, Retrieved Sun, 28 Apr 2024 10:40:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=164057, Retrieved Sun, 28 Apr 2024 10:40:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKDGP2W12
Estimated Impact169
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2012-03-25 11:03:19] [f07e76401259632505cd233a7687c846] [Current]
Feedback Forum

Post a new message
Dataseries X:
9,24
9,29
9,39
9,42
9,42
9,43
9,5
9,53
9,58
9,58
9,6
9,61
9,65
9,71
9,78
9,79
9,84
9,87
9,9
9,95
9,96
9,98
10,01
10
10,03
10,05
10,06
10,09
10,24
10,23
10,27
10,28
10,29
10,44
10,51
10,52
10,57
10,62
10,71
10,73
10,74
10,75
10,79
10,81
10,87
10,92
10,95
10,94
10,97
10,99
11,04
11,09
11,12
11,11
11,14
11,2
11,25
11,3
11,31
11,31




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=164057&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'Herman Ole Andreas Wold' @ wold.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9506587.36380
20.9005516.97560
30.8529866.60720
40.8064916.24710
50.7594885.8830
60.7120515.51550
70.6657615.1571e-06
80.6182014.78866e-06
90.5717664.42892e-05
100.5251064.06757e-05
110.4789983.71030.000227
120.4314073.34170.000719
130.3840952.97520.002107
140.3370792.6110.005693
150.2919792.26170.013677
160.2473831.91620.030052
170.205341.59060.058482
180.1630351.26290.105762
190.1215330.94140.175139
200.0808190.6260.266838
210.0386490.29940.382844
22-0.003732-0.02890.488516
23-0.043246-0.3350.369403
24-0.082984-0.64280.261405
25-0.121041-0.93760.176111
26-0.159403-1.23470.110872
27-0.19637-1.52110.066747
28-0.22738-1.76130.041643
29-0.25259-1.95660.027529
30-0.27916-2.16240.017294
31-0.303642-2.3520.010986
32-0.329905-2.55540.006579
33-0.350916-2.71820.004284
34-0.364681-2.82480.003207
35-0.375736-2.91040.002529
36-0.38656-2.99430.001996

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.950658 & 7.3638 & 0 \tabularnewline
2 & 0.900551 & 6.9756 & 0 \tabularnewline
3 & 0.852986 & 6.6072 & 0 \tabularnewline
4 & 0.806491 & 6.2471 & 0 \tabularnewline
5 & 0.759488 & 5.883 & 0 \tabularnewline
6 & 0.712051 & 5.5155 & 0 \tabularnewline
7 & 0.665761 & 5.157 & 1e-06 \tabularnewline
8 & 0.618201 & 4.7886 & 6e-06 \tabularnewline
9 & 0.571766 & 4.4289 & 2e-05 \tabularnewline
10 & 0.525106 & 4.0675 & 7e-05 \tabularnewline
11 & 0.478998 & 3.7103 & 0.000227 \tabularnewline
12 & 0.431407 & 3.3417 & 0.000719 \tabularnewline
13 & 0.384095 & 2.9752 & 0.002107 \tabularnewline
14 & 0.337079 & 2.611 & 0.005693 \tabularnewline
15 & 0.291979 & 2.2617 & 0.013677 \tabularnewline
16 & 0.247383 & 1.9162 & 0.030052 \tabularnewline
17 & 0.20534 & 1.5906 & 0.058482 \tabularnewline
18 & 0.163035 & 1.2629 & 0.105762 \tabularnewline
19 & 0.121533 & 0.9414 & 0.175139 \tabularnewline
20 & 0.080819 & 0.626 & 0.266838 \tabularnewline
21 & 0.038649 & 0.2994 & 0.382844 \tabularnewline
22 & -0.003732 & -0.0289 & 0.488516 \tabularnewline
23 & -0.043246 & -0.335 & 0.369403 \tabularnewline
24 & -0.082984 & -0.6428 & 0.261405 \tabularnewline
25 & -0.121041 & -0.9376 & 0.176111 \tabularnewline
26 & -0.159403 & -1.2347 & 0.110872 \tabularnewline
27 & -0.19637 & -1.5211 & 0.066747 \tabularnewline
28 & -0.22738 & -1.7613 & 0.041643 \tabularnewline
29 & -0.25259 & -1.9566 & 0.027529 \tabularnewline
30 & -0.27916 & -2.1624 & 0.017294 \tabularnewline
31 & -0.303642 & -2.352 & 0.010986 \tabularnewline
32 & -0.329905 & -2.5554 & 0.006579 \tabularnewline
33 & -0.350916 & -2.7182 & 0.004284 \tabularnewline
34 & -0.364681 & -2.8248 & 0.003207 \tabularnewline
35 & -0.375736 & -2.9104 & 0.002529 \tabularnewline
36 & -0.38656 & -2.9943 & 0.001996 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=164057&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.950658[/C][C]7.3638[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.900551[/C][C]6.9756[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.852986[/C][C]6.6072[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.806491[/C][C]6.2471[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0.759488[/C][C]5.883[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0.712051[/C][C]5.5155[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0.665761[/C][C]5.157[/C][C]1e-06[/C][/ROW]
[ROW][C]8[/C][C]0.618201[/C][C]4.7886[/C][C]6e-06[/C][/ROW]
[ROW][C]9[/C][C]0.571766[/C][C]4.4289[/C][C]2e-05[/C][/ROW]
[ROW][C]10[/C][C]0.525106[/C][C]4.0675[/C][C]7e-05[/C][/ROW]
[ROW][C]11[/C][C]0.478998[/C][C]3.7103[/C][C]0.000227[/C][/ROW]
[ROW][C]12[/C][C]0.431407[/C][C]3.3417[/C][C]0.000719[/C][/ROW]
[ROW][C]13[/C][C]0.384095[/C][C]2.9752[/C][C]0.002107[/C][/ROW]
[ROW][C]14[/C][C]0.337079[/C][C]2.611[/C][C]0.005693[/C][/ROW]
[ROW][C]15[/C][C]0.291979[/C][C]2.2617[/C][C]0.013677[/C][/ROW]
[ROW][C]16[/C][C]0.247383[/C][C]1.9162[/C][C]0.030052[/C][/ROW]
[ROW][C]17[/C][C]0.20534[/C][C]1.5906[/C][C]0.058482[/C][/ROW]
[ROW][C]18[/C][C]0.163035[/C][C]1.2629[/C][C]0.105762[/C][/ROW]
[ROW][C]19[/C][C]0.121533[/C][C]0.9414[/C][C]0.175139[/C][/ROW]
[ROW][C]20[/C][C]0.080819[/C][C]0.626[/C][C]0.266838[/C][/ROW]
[ROW][C]21[/C][C]0.038649[/C][C]0.2994[/C][C]0.382844[/C][/ROW]
[ROW][C]22[/C][C]-0.003732[/C][C]-0.0289[/C][C]0.488516[/C][/ROW]
[ROW][C]23[/C][C]-0.043246[/C][C]-0.335[/C][C]0.369403[/C][/ROW]
[ROW][C]24[/C][C]-0.082984[/C][C]-0.6428[/C][C]0.261405[/C][/ROW]
[ROW][C]25[/C][C]-0.121041[/C][C]-0.9376[/C][C]0.176111[/C][/ROW]
[ROW][C]26[/C][C]-0.159403[/C][C]-1.2347[/C][C]0.110872[/C][/ROW]
[ROW][C]27[/C][C]-0.19637[/C][C]-1.5211[/C][C]0.066747[/C][/ROW]
[ROW][C]28[/C][C]-0.22738[/C][C]-1.7613[/C][C]0.041643[/C][/ROW]
[ROW][C]29[/C][C]-0.25259[/C][C]-1.9566[/C][C]0.027529[/C][/ROW]
[ROW][C]30[/C][C]-0.27916[/C][C]-2.1624[/C][C]0.017294[/C][/ROW]
[ROW][C]31[/C][C]-0.303642[/C][C]-2.352[/C][C]0.010986[/C][/ROW]
[ROW][C]32[/C][C]-0.329905[/C][C]-2.5554[/C][C]0.006579[/C][/ROW]
[ROW][C]33[/C][C]-0.350916[/C][C]-2.7182[/C][C]0.004284[/C][/ROW]
[ROW][C]34[/C][C]-0.364681[/C][C]-2.8248[/C][C]0.003207[/C][/ROW]
[ROW][C]35[/C][C]-0.375736[/C][C]-2.9104[/C][C]0.002529[/C][/ROW]
[ROW][C]36[/C][C]-0.38656[/C][C]-2.9943[/C][C]0.001996[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=164057&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=164057&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.9506587.36380
20.9005516.97560
30.8529866.60720
40.8064916.24710
50.7594885.8830
60.7120515.51550
70.6657615.1571e-06
80.6182014.78866e-06
90.5717664.42892e-05
100.5251064.06757e-05
110.4789983.71030.000227
120.4314073.34170.000719
130.3840952.97520.002107
140.3370792.6110.005693
150.2919792.26170.013677
160.2473831.91620.030052
170.205341.59060.058482
180.1630351.26290.105762
190.1215330.94140.175139
200.0808190.6260.266838
210.0386490.29940.382844
22-0.003732-0.02890.488516
23-0.043246-0.3350.369403
24-0.082984-0.64280.261405
25-0.121041-0.93760.176111
26-0.159403-1.23470.110872
27-0.19637-1.52110.066747
28-0.22738-1.76130.041643
29-0.25259-1.95660.027529
30-0.27916-2.16240.017294
31-0.303642-2.3520.010986
32-0.329905-2.55540.006579
33-0.350916-2.71820.004284
34-0.364681-2.82480.003207
35-0.375736-2.91040.002529
36-0.38656-2.99430.001996







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9506587.36380
2-0.033247-0.25750.398825
30.0001350.0010.499584
4-0.01497-0.1160.454037
5-0.030572-0.23680.406807
6-0.030619-0.23720.406666
7-0.015813-0.12250.451462
8-0.041551-0.32190.374341
9-0.016891-0.13080.448172
10-0.032495-0.25170.401063
11-0.024562-0.19030.424874
12-0.046671-0.36150.359493
13-0.029657-0.22970.409545
14-0.032156-0.24910.402074
15-0.01481-0.11470.454525
16-0.03016-0.23360.408039
17-0.007596-0.05880.476639
18-0.038391-0.29740.383604
19-0.026239-0.20320.419814
20-0.029455-0.22820.410149
21-0.052889-0.40970.341752
22-0.043066-0.33360.369927
23-0.011775-0.09120.463814
24-0.0464-0.35940.360273
25-0.023597-0.18280.427792
26-0.048211-0.37340.355067
27-0.031241-0.2420.404805
280.0153270.11870.452946
290.0186070.14410.442942
30-0.053115-0.41140.341112
31-0.014171-0.10980.456479
32-0.062364-0.48310.315402
330.0127450.09870.460845
340.0331610.25690.39908
35-0.006626-0.05130.479618
36-0.030578-0.23690.406789

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.950658 & 7.3638 & 0 \tabularnewline
2 & -0.033247 & -0.2575 & 0.398825 \tabularnewline
3 & 0.000135 & 0.001 & 0.499584 \tabularnewline
4 & -0.01497 & -0.116 & 0.454037 \tabularnewline
5 & -0.030572 & -0.2368 & 0.406807 \tabularnewline
6 & -0.030619 & -0.2372 & 0.406666 \tabularnewline
7 & -0.015813 & -0.1225 & 0.451462 \tabularnewline
8 & -0.041551 & -0.3219 & 0.374341 \tabularnewline
9 & -0.016891 & -0.1308 & 0.448172 \tabularnewline
10 & -0.032495 & -0.2517 & 0.401063 \tabularnewline
11 & -0.024562 & -0.1903 & 0.424874 \tabularnewline
12 & -0.046671 & -0.3615 & 0.359493 \tabularnewline
13 & -0.029657 & -0.2297 & 0.409545 \tabularnewline
14 & -0.032156 & -0.2491 & 0.402074 \tabularnewline
15 & -0.01481 & -0.1147 & 0.454525 \tabularnewline
16 & -0.03016 & -0.2336 & 0.408039 \tabularnewline
17 & -0.007596 & -0.0588 & 0.476639 \tabularnewline
18 & -0.038391 & -0.2974 & 0.383604 \tabularnewline
19 & -0.026239 & -0.2032 & 0.419814 \tabularnewline
20 & -0.029455 & -0.2282 & 0.410149 \tabularnewline
21 & -0.052889 & -0.4097 & 0.341752 \tabularnewline
22 & -0.043066 & -0.3336 & 0.369927 \tabularnewline
23 & -0.011775 & -0.0912 & 0.463814 \tabularnewline
24 & -0.0464 & -0.3594 & 0.360273 \tabularnewline
25 & -0.023597 & -0.1828 & 0.427792 \tabularnewline
26 & -0.048211 & -0.3734 & 0.355067 \tabularnewline
27 & -0.031241 & -0.242 & 0.404805 \tabularnewline
28 & 0.015327 & 0.1187 & 0.452946 \tabularnewline
29 & 0.018607 & 0.1441 & 0.442942 \tabularnewline
30 & -0.053115 & -0.4114 & 0.341112 \tabularnewline
31 & -0.014171 & -0.1098 & 0.456479 \tabularnewline
32 & -0.062364 & -0.4831 & 0.315402 \tabularnewline
33 & 0.012745 & 0.0987 & 0.460845 \tabularnewline
34 & 0.033161 & 0.2569 & 0.39908 \tabularnewline
35 & -0.006626 & -0.0513 & 0.479618 \tabularnewline
36 & -0.030578 & -0.2369 & 0.406789 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=164057&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.950658[/C][C]7.3638[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.033247[/C][C]-0.2575[/C][C]0.398825[/C][/ROW]
[ROW][C]3[/C][C]0.000135[/C][C]0.001[/C][C]0.499584[/C][/ROW]
[ROW][C]4[/C][C]-0.01497[/C][C]-0.116[/C][C]0.454037[/C][/ROW]
[ROW][C]5[/C][C]-0.030572[/C][C]-0.2368[/C][C]0.406807[/C][/ROW]
[ROW][C]6[/C][C]-0.030619[/C][C]-0.2372[/C][C]0.406666[/C][/ROW]
[ROW][C]7[/C][C]-0.015813[/C][C]-0.1225[/C][C]0.451462[/C][/ROW]
[ROW][C]8[/C][C]-0.041551[/C][C]-0.3219[/C][C]0.374341[/C][/ROW]
[ROW][C]9[/C][C]-0.016891[/C][C]-0.1308[/C][C]0.448172[/C][/ROW]
[ROW][C]10[/C][C]-0.032495[/C][C]-0.2517[/C][C]0.401063[/C][/ROW]
[ROW][C]11[/C][C]-0.024562[/C][C]-0.1903[/C][C]0.424874[/C][/ROW]
[ROW][C]12[/C][C]-0.046671[/C][C]-0.3615[/C][C]0.359493[/C][/ROW]
[ROW][C]13[/C][C]-0.029657[/C][C]-0.2297[/C][C]0.409545[/C][/ROW]
[ROW][C]14[/C][C]-0.032156[/C][C]-0.2491[/C][C]0.402074[/C][/ROW]
[ROW][C]15[/C][C]-0.01481[/C][C]-0.1147[/C][C]0.454525[/C][/ROW]
[ROW][C]16[/C][C]-0.03016[/C][C]-0.2336[/C][C]0.408039[/C][/ROW]
[ROW][C]17[/C][C]-0.007596[/C][C]-0.0588[/C][C]0.476639[/C][/ROW]
[ROW][C]18[/C][C]-0.038391[/C][C]-0.2974[/C][C]0.383604[/C][/ROW]
[ROW][C]19[/C][C]-0.026239[/C][C]-0.2032[/C][C]0.419814[/C][/ROW]
[ROW][C]20[/C][C]-0.029455[/C][C]-0.2282[/C][C]0.410149[/C][/ROW]
[ROW][C]21[/C][C]-0.052889[/C][C]-0.4097[/C][C]0.341752[/C][/ROW]
[ROW][C]22[/C][C]-0.043066[/C][C]-0.3336[/C][C]0.369927[/C][/ROW]
[ROW][C]23[/C][C]-0.011775[/C][C]-0.0912[/C][C]0.463814[/C][/ROW]
[ROW][C]24[/C][C]-0.0464[/C][C]-0.3594[/C][C]0.360273[/C][/ROW]
[ROW][C]25[/C][C]-0.023597[/C][C]-0.1828[/C][C]0.427792[/C][/ROW]
[ROW][C]26[/C][C]-0.048211[/C][C]-0.3734[/C][C]0.355067[/C][/ROW]
[ROW][C]27[/C][C]-0.031241[/C][C]-0.242[/C][C]0.404805[/C][/ROW]
[ROW][C]28[/C][C]0.015327[/C][C]0.1187[/C][C]0.452946[/C][/ROW]
[ROW][C]29[/C][C]0.018607[/C][C]0.1441[/C][C]0.442942[/C][/ROW]
[ROW][C]30[/C][C]-0.053115[/C][C]-0.4114[/C][C]0.341112[/C][/ROW]
[ROW][C]31[/C][C]-0.014171[/C][C]-0.1098[/C][C]0.456479[/C][/ROW]
[ROW][C]32[/C][C]-0.062364[/C][C]-0.4831[/C][C]0.315402[/C][/ROW]
[ROW][C]33[/C][C]0.012745[/C][C]0.0987[/C][C]0.460845[/C][/ROW]
[ROW][C]34[/C][C]0.033161[/C][C]0.2569[/C][C]0.39908[/C][/ROW]
[ROW][C]35[/C][C]-0.006626[/C][C]-0.0513[/C][C]0.479618[/C][/ROW]
[ROW][C]36[/C][C]-0.030578[/C][C]-0.2369[/C][C]0.406789[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=164057&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=164057&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.9506587.36380
2-0.033247-0.25750.398825
30.0001350.0010.499584
4-0.01497-0.1160.454037
5-0.030572-0.23680.406807
6-0.030619-0.23720.406666
7-0.015813-0.12250.451462
8-0.041551-0.32190.374341
9-0.016891-0.13080.448172
10-0.032495-0.25170.401063
11-0.024562-0.19030.424874
12-0.046671-0.36150.359493
13-0.029657-0.22970.409545
14-0.032156-0.24910.402074
15-0.01481-0.11470.454525
16-0.03016-0.23360.408039
17-0.007596-0.05880.476639
18-0.038391-0.29740.383604
19-0.026239-0.20320.419814
20-0.029455-0.22820.410149
21-0.052889-0.40970.341752
22-0.043066-0.33360.369927
23-0.011775-0.09120.463814
24-0.0464-0.35940.360273
25-0.023597-0.18280.427792
26-0.048211-0.37340.355067
27-0.031241-0.2420.404805
280.0153270.11870.452946
290.0186070.14410.442942
30-0.053115-0.41140.341112
31-0.014171-0.10980.456479
32-0.062364-0.48310.315402
330.0127450.09870.460845
340.0331610.25690.39908
35-0.006626-0.05130.479618
36-0.030578-0.23690.406789



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