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 computationThu, 16 Dec 2010 19:13:15 +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/16/t1292526937oemqiraiqdebmk5.htm/, Retrieved Fri, 03 May 2024 12:54:42 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=111213, Retrieved Fri, 03 May 2024 12:54:42 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact133
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2010-12-16 19:13:15] [4afc4ea409ad669ec2851bc39795365d] [Current]
Feedback Forum

Post a new message
Dataseries X:
597141
593408
590072
579799
574205
572775
572942
619567
625809
619916
587625
565742
557274
560576
548854
531673
525919
511038
498662
555362
564591
541657
527070
509846
514258
516922
507561
492622
490243
469357
477580
528379
533590
517945
506174
501866
516141
528222
532638
536322
536535
523597
536214
586570
596594
580523
564478
557560
575093
580112
574761
563250
551531
537034
544686
600991
604378
586111
563668
548604




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111213&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]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111213&T=0

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.52598-3.56740.000428
2-0.017211-0.11670.45379
30.1593871.0810.142663
4-0.017831-0.12090.452135
5-0.151968-1.03070.154035
60.1535231.04120.151603
7-0.149083-1.01110.158621
80.1228760.83340.204467
9-0.047849-0.32450.373505
10-0.186469-1.26470.106175
110.3475442.35720.011363
12-0.210792-1.42970.079785
13-0.061209-0.41510.339986
140.1370020.92920.178819
15-0.021892-0.14850.441308
16-0.072303-0.49040.313097
170.1097350.74430.230252
18-0.072381-0.49090.312911
190.0184190.12490.450563
200.1133080.76850.223061
21-0.203948-1.38320.086634
220.0924340.62690.266905
230.0055620.03770.485036
24-0.120152-0.81490.209662
250.1291830.87620.192747
26-0.003255-0.02210.491241
27-0.074877-0.50780.306995
280.0127340.08640.465776
290.0500190.33920.367983
30-0.079273-0.53770.296703
310.0992140.67290.252188
32-0.094651-0.6420.262044
330.1093030.74130.231131
34-0.088048-0.59720.276661
350.0639820.43390.333178
360.0065650.04450.482338

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.52598 & -3.5674 & 0.000428 \tabularnewline
2 & -0.017211 & -0.1167 & 0.45379 \tabularnewline
3 & 0.159387 & 1.081 & 0.142663 \tabularnewline
4 & -0.017831 & -0.1209 & 0.452135 \tabularnewline
5 & -0.151968 & -1.0307 & 0.154035 \tabularnewline
6 & 0.153523 & 1.0412 & 0.151603 \tabularnewline
7 & -0.149083 & -1.0111 & 0.158621 \tabularnewline
8 & 0.122876 & 0.8334 & 0.204467 \tabularnewline
9 & -0.047849 & -0.3245 & 0.373505 \tabularnewline
10 & -0.186469 & -1.2647 & 0.106175 \tabularnewline
11 & 0.347544 & 2.3572 & 0.011363 \tabularnewline
12 & -0.210792 & -1.4297 & 0.079785 \tabularnewline
13 & -0.061209 & -0.4151 & 0.339986 \tabularnewline
14 & 0.137002 & 0.9292 & 0.178819 \tabularnewline
15 & -0.021892 & -0.1485 & 0.441308 \tabularnewline
16 & -0.072303 & -0.4904 & 0.313097 \tabularnewline
17 & 0.109735 & 0.7443 & 0.230252 \tabularnewline
18 & -0.072381 & -0.4909 & 0.312911 \tabularnewline
19 & 0.018419 & 0.1249 & 0.450563 \tabularnewline
20 & 0.113308 & 0.7685 & 0.223061 \tabularnewline
21 & -0.203948 & -1.3832 & 0.086634 \tabularnewline
22 & 0.092434 & 0.6269 & 0.266905 \tabularnewline
23 & 0.005562 & 0.0377 & 0.485036 \tabularnewline
24 & -0.120152 & -0.8149 & 0.209662 \tabularnewline
25 & 0.129183 & 0.8762 & 0.192747 \tabularnewline
26 & -0.003255 & -0.0221 & 0.491241 \tabularnewline
27 & -0.074877 & -0.5078 & 0.306995 \tabularnewline
28 & 0.012734 & 0.0864 & 0.465776 \tabularnewline
29 & 0.050019 & 0.3392 & 0.367983 \tabularnewline
30 & -0.079273 & -0.5377 & 0.296703 \tabularnewline
31 & 0.099214 & 0.6729 & 0.252188 \tabularnewline
32 & -0.094651 & -0.642 & 0.262044 \tabularnewline
33 & 0.109303 & 0.7413 & 0.231131 \tabularnewline
34 & -0.088048 & -0.5972 & 0.276661 \tabularnewline
35 & 0.063982 & 0.4339 & 0.333178 \tabularnewline
36 & 0.006565 & 0.0445 & 0.482338 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111213&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.52598[/C][C]-3.5674[/C][C]0.000428[/C][/ROW]
[ROW][C]2[/C][C]-0.017211[/C][C]-0.1167[/C][C]0.45379[/C][/ROW]
[ROW][C]3[/C][C]0.159387[/C][C]1.081[/C][C]0.142663[/C][/ROW]
[ROW][C]4[/C][C]-0.017831[/C][C]-0.1209[/C][C]0.452135[/C][/ROW]
[ROW][C]5[/C][C]-0.151968[/C][C]-1.0307[/C][C]0.154035[/C][/ROW]
[ROW][C]6[/C][C]0.153523[/C][C]1.0412[/C][C]0.151603[/C][/ROW]
[ROW][C]7[/C][C]-0.149083[/C][C]-1.0111[/C][C]0.158621[/C][/ROW]
[ROW][C]8[/C][C]0.122876[/C][C]0.8334[/C][C]0.204467[/C][/ROW]
[ROW][C]9[/C][C]-0.047849[/C][C]-0.3245[/C][C]0.373505[/C][/ROW]
[ROW][C]10[/C][C]-0.186469[/C][C]-1.2647[/C][C]0.106175[/C][/ROW]
[ROW][C]11[/C][C]0.347544[/C][C]2.3572[/C][C]0.011363[/C][/ROW]
[ROW][C]12[/C][C]-0.210792[/C][C]-1.4297[/C][C]0.079785[/C][/ROW]
[ROW][C]13[/C][C]-0.061209[/C][C]-0.4151[/C][C]0.339986[/C][/ROW]
[ROW][C]14[/C][C]0.137002[/C][C]0.9292[/C][C]0.178819[/C][/ROW]
[ROW][C]15[/C][C]-0.021892[/C][C]-0.1485[/C][C]0.441308[/C][/ROW]
[ROW][C]16[/C][C]-0.072303[/C][C]-0.4904[/C][C]0.313097[/C][/ROW]
[ROW][C]17[/C][C]0.109735[/C][C]0.7443[/C][C]0.230252[/C][/ROW]
[ROW][C]18[/C][C]-0.072381[/C][C]-0.4909[/C][C]0.312911[/C][/ROW]
[ROW][C]19[/C][C]0.018419[/C][C]0.1249[/C][C]0.450563[/C][/ROW]
[ROW][C]20[/C][C]0.113308[/C][C]0.7685[/C][C]0.223061[/C][/ROW]
[ROW][C]21[/C][C]-0.203948[/C][C]-1.3832[/C][C]0.086634[/C][/ROW]
[ROW][C]22[/C][C]0.092434[/C][C]0.6269[/C][C]0.266905[/C][/ROW]
[ROW][C]23[/C][C]0.005562[/C][C]0.0377[/C][C]0.485036[/C][/ROW]
[ROW][C]24[/C][C]-0.120152[/C][C]-0.8149[/C][C]0.209662[/C][/ROW]
[ROW][C]25[/C][C]0.129183[/C][C]0.8762[/C][C]0.192747[/C][/ROW]
[ROW][C]26[/C][C]-0.003255[/C][C]-0.0221[/C][C]0.491241[/C][/ROW]
[ROW][C]27[/C][C]-0.074877[/C][C]-0.5078[/C][C]0.306995[/C][/ROW]
[ROW][C]28[/C][C]0.012734[/C][C]0.0864[/C][C]0.465776[/C][/ROW]
[ROW][C]29[/C][C]0.050019[/C][C]0.3392[/C][C]0.367983[/C][/ROW]
[ROW][C]30[/C][C]-0.079273[/C][C]-0.5377[/C][C]0.296703[/C][/ROW]
[ROW][C]31[/C][C]0.099214[/C][C]0.6729[/C][C]0.252188[/C][/ROW]
[ROW][C]32[/C][C]-0.094651[/C][C]-0.642[/C][C]0.262044[/C][/ROW]
[ROW][C]33[/C][C]0.109303[/C][C]0.7413[/C][C]0.231131[/C][/ROW]
[ROW][C]34[/C][C]-0.088048[/C][C]-0.5972[/C][C]0.276661[/C][/ROW]
[ROW][C]35[/C][C]0.063982[/C][C]0.4339[/C][C]0.333178[/C][/ROW]
[ROW][C]36[/C][C]0.006565[/C][C]0.0445[/C][C]0.482338[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111213&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111213&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
1-0.52598-3.56740.000428
2-0.017211-0.11670.45379
30.1593871.0810.142663
4-0.017831-0.12090.452135
5-0.151968-1.03070.154035
60.1535231.04120.151603
7-0.149083-1.01110.158621
80.1228760.83340.204467
9-0.047849-0.32450.373505
10-0.186469-1.26470.106175
110.3475442.35720.011363
12-0.210792-1.42970.079785
13-0.061209-0.41510.339986
140.1370020.92920.178819
15-0.021892-0.14850.441308
16-0.072303-0.49040.313097
170.1097350.74430.230252
18-0.072381-0.49090.312911
190.0184190.12490.450563
200.1133080.76850.223061
21-0.203948-1.38320.086634
220.0924340.62690.266905
230.0055620.03770.485036
24-0.120152-0.81490.209662
250.1291830.87620.192747
26-0.003255-0.02210.491241
27-0.074877-0.50780.306995
280.0127340.08640.465776
290.0500190.33920.367983
30-0.079273-0.53770.296703
310.0992140.67290.252188
32-0.094651-0.6420.262044
330.1093030.74130.231131
34-0.088048-0.59720.276661
350.0639820.43390.333178
360.0065650.04450.482338







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.52598-3.56740.000428
2-0.406261-2.75540.004186
3-0.110983-0.75270.227726
40.0678410.46010.323798
5-0.098659-0.66910.253375
6-0.012713-0.08620.465831
7-0.184935-1.25430.108037
8-0.008041-0.05450.478372
90.0024150.01640.4935
10-0.310375-2.10510.020388
110.1069430.72530.235964
12-0.009565-0.06490.474277
13-0.075024-0.50880.30665
14-0.090648-0.61480.270856
15-0.077235-0.52380.301454
160.0343530.2330.408399
170.0120950.0820.467488
180.031290.21220.416438
19-0.053719-0.36430.358636
200.1589861.07830.143262
210.0217460.14750.441695
22-0.168054-1.13980.130135
23-0.117021-0.79370.21573
24-0.183578-1.24510.109702
250.0364110.2470.403022
260.0243950.16550.434656
270.0069970.04750.481179
28-0.151337-1.02640.155031
29-0.094121-0.63840.263202
30-0.070543-0.47840.317299
31-0.130893-0.88780.189644
32-0.056326-0.3820.352102
330.0825110.55960.289228
34-0.05676-0.3850.351018
350.0351570.23840.406296
36-0.010493-0.07120.471786

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.52598 & -3.5674 & 0.000428 \tabularnewline
2 & -0.406261 & -2.7554 & 0.004186 \tabularnewline
3 & -0.110983 & -0.7527 & 0.227726 \tabularnewline
4 & 0.067841 & 0.4601 & 0.323798 \tabularnewline
5 & -0.098659 & -0.6691 & 0.253375 \tabularnewline
6 & -0.012713 & -0.0862 & 0.465831 \tabularnewline
7 & -0.184935 & -1.2543 & 0.108037 \tabularnewline
8 & -0.008041 & -0.0545 & 0.478372 \tabularnewline
9 & 0.002415 & 0.0164 & 0.4935 \tabularnewline
10 & -0.310375 & -2.1051 & 0.020388 \tabularnewline
11 & 0.106943 & 0.7253 & 0.235964 \tabularnewline
12 & -0.009565 & -0.0649 & 0.474277 \tabularnewline
13 & -0.075024 & -0.5088 & 0.30665 \tabularnewline
14 & -0.090648 & -0.6148 & 0.270856 \tabularnewline
15 & -0.077235 & -0.5238 & 0.301454 \tabularnewline
16 & 0.034353 & 0.233 & 0.408399 \tabularnewline
17 & 0.012095 & 0.082 & 0.467488 \tabularnewline
18 & 0.03129 & 0.2122 & 0.416438 \tabularnewline
19 & -0.053719 & -0.3643 & 0.358636 \tabularnewline
20 & 0.158986 & 1.0783 & 0.143262 \tabularnewline
21 & 0.021746 & 0.1475 & 0.441695 \tabularnewline
22 & -0.168054 & -1.1398 & 0.130135 \tabularnewline
23 & -0.117021 & -0.7937 & 0.21573 \tabularnewline
24 & -0.183578 & -1.2451 & 0.109702 \tabularnewline
25 & 0.036411 & 0.247 & 0.403022 \tabularnewline
26 & 0.024395 & 0.1655 & 0.434656 \tabularnewline
27 & 0.006997 & 0.0475 & 0.481179 \tabularnewline
28 & -0.151337 & -1.0264 & 0.155031 \tabularnewline
29 & -0.094121 & -0.6384 & 0.263202 \tabularnewline
30 & -0.070543 & -0.4784 & 0.317299 \tabularnewline
31 & -0.130893 & -0.8878 & 0.189644 \tabularnewline
32 & -0.056326 & -0.382 & 0.352102 \tabularnewline
33 & 0.082511 & 0.5596 & 0.289228 \tabularnewline
34 & -0.05676 & -0.385 & 0.351018 \tabularnewline
35 & 0.035157 & 0.2384 & 0.406296 \tabularnewline
36 & -0.010493 & -0.0712 & 0.471786 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111213&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.52598[/C][C]-3.5674[/C][C]0.000428[/C][/ROW]
[ROW][C]2[/C][C]-0.406261[/C][C]-2.7554[/C][C]0.004186[/C][/ROW]
[ROW][C]3[/C][C]-0.110983[/C][C]-0.7527[/C][C]0.227726[/C][/ROW]
[ROW][C]4[/C][C]0.067841[/C][C]0.4601[/C][C]0.323798[/C][/ROW]
[ROW][C]5[/C][C]-0.098659[/C][C]-0.6691[/C][C]0.253375[/C][/ROW]
[ROW][C]6[/C][C]-0.012713[/C][C]-0.0862[/C][C]0.465831[/C][/ROW]
[ROW][C]7[/C][C]-0.184935[/C][C]-1.2543[/C][C]0.108037[/C][/ROW]
[ROW][C]8[/C][C]-0.008041[/C][C]-0.0545[/C][C]0.478372[/C][/ROW]
[ROW][C]9[/C][C]0.002415[/C][C]0.0164[/C][C]0.4935[/C][/ROW]
[ROW][C]10[/C][C]-0.310375[/C][C]-2.1051[/C][C]0.020388[/C][/ROW]
[ROW][C]11[/C][C]0.106943[/C][C]0.7253[/C][C]0.235964[/C][/ROW]
[ROW][C]12[/C][C]-0.009565[/C][C]-0.0649[/C][C]0.474277[/C][/ROW]
[ROW][C]13[/C][C]-0.075024[/C][C]-0.5088[/C][C]0.30665[/C][/ROW]
[ROW][C]14[/C][C]-0.090648[/C][C]-0.6148[/C][C]0.270856[/C][/ROW]
[ROW][C]15[/C][C]-0.077235[/C][C]-0.5238[/C][C]0.301454[/C][/ROW]
[ROW][C]16[/C][C]0.034353[/C][C]0.233[/C][C]0.408399[/C][/ROW]
[ROW][C]17[/C][C]0.012095[/C][C]0.082[/C][C]0.467488[/C][/ROW]
[ROW][C]18[/C][C]0.03129[/C][C]0.2122[/C][C]0.416438[/C][/ROW]
[ROW][C]19[/C][C]-0.053719[/C][C]-0.3643[/C][C]0.358636[/C][/ROW]
[ROW][C]20[/C][C]0.158986[/C][C]1.0783[/C][C]0.143262[/C][/ROW]
[ROW][C]21[/C][C]0.021746[/C][C]0.1475[/C][C]0.441695[/C][/ROW]
[ROW][C]22[/C][C]-0.168054[/C][C]-1.1398[/C][C]0.130135[/C][/ROW]
[ROW][C]23[/C][C]-0.117021[/C][C]-0.7937[/C][C]0.21573[/C][/ROW]
[ROW][C]24[/C][C]-0.183578[/C][C]-1.2451[/C][C]0.109702[/C][/ROW]
[ROW][C]25[/C][C]0.036411[/C][C]0.247[/C][C]0.403022[/C][/ROW]
[ROW][C]26[/C][C]0.024395[/C][C]0.1655[/C][C]0.434656[/C][/ROW]
[ROW][C]27[/C][C]0.006997[/C][C]0.0475[/C][C]0.481179[/C][/ROW]
[ROW][C]28[/C][C]-0.151337[/C][C]-1.0264[/C][C]0.155031[/C][/ROW]
[ROW][C]29[/C][C]-0.094121[/C][C]-0.6384[/C][C]0.263202[/C][/ROW]
[ROW][C]30[/C][C]-0.070543[/C][C]-0.4784[/C][C]0.317299[/C][/ROW]
[ROW][C]31[/C][C]-0.130893[/C][C]-0.8878[/C][C]0.189644[/C][/ROW]
[ROW][C]32[/C][C]-0.056326[/C][C]-0.382[/C][C]0.352102[/C][/ROW]
[ROW][C]33[/C][C]0.082511[/C][C]0.5596[/C][C]0.289228[/C][/ROW]
[ROW][C]34[/C][C]-0.05676[/C][C]-0.385[/C][C]0.351018[/C][/ROW]
[ROW][C]35[/C][C]0.035157[/C][C]0.2384[/C][C]0.406296[/C][/ROW]
[ROW][C]36[/C][C]-0.010493[/C][C]-0.0712[/C][C]0.471786[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111213&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111213&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
1-0.52598-3.56740.000428
2-0.406261-2.75540.004186
3-0.110983-0.75270.227726
40.0678410.46010.323798
5-0.098659-0.66910.253375
6-0.012713-0.08620.465831
7-0.184935-1.25430.108037
8-0.008041-0.05450.478372
90.0024150.01640.4935
10-0.310375-2.10510.020388
110.1069430.72530.235964
12-0.009565-0.06490.474277
13-0.075024-0.50880.30665
14-0.090648-0.61480.270856
15-0.077235-0.52380.301454
160.0343530.2330.408399
170.0120950.0820.467488
180.031290.21220.416438
19-0.053719-0.36430.358636
200.1589861.07830.143262
210.0217460.14750.441695
22-0.168054-1.13980.130135
23-0.117021-0.79370.21573
24-0.183578-1.24510.109702
250.0364110.2470.403022
260.0243950.16550.434656
270.0069970.04750.481179
28-0.151337-1.02640.155031
29-0.094121-0.63840.263202
30-0.070543-0.47840.317299
31-0.130893-0.88780.189644
32-0.056326-0.3820.352102
330.0825110.55960.289228
34-0.05676-0.3850.351018
350.0351570.23840.406296
36-0.010493-0.07120.471786



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