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 computationWed, 29 Dec 2010 13:10:17 +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/29/t1293628063syz8ks9lmxgpape.htm/, Retrieved Fri, 03 May 2024 09:29:31 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=116790, Retrieved Fri, 03 May 2024 09:29:31 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact149
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [ARIMA Forecasting] [estimation of ARM...] [2007-12-06 10:08:23] [dc28704e2f48edede7e5c93fa6811a5e]
- RMPD  [ARIMA Forecasting] [Forecasting beste...] [2009-12-14 19:02:57] [54d83950395cfb8ca1091bdb7440f70a]
- RMPD      [(Partial) Autocorrelation Function] [] [2010-12-29 13:10:17] [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 time7 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 7 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116790&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]7 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116790&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116790&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 time7 seconds
R Server'George Udny Yule' @ 72.249.76.132







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.20081.37660.087577
20.2554991.75160.043182
30.3448372.36410.011129
40.1621211.11140.136015
50.060960.41790.338953
60.1711291.17320.123313
70.0093350.0640.474622
80.0671590.46040.323669
9-0.041113-0.28190.389645
10-0.123404-0.8460.200916
110.1134060.77750.220389
12-0.184841-1.26720.105662
13-0.144395-0.98990.163641
14-0.018069-0.12390.450972
15-0.097657-0.66950.253225
16-0.132927-0.91130.183393
17-0.051368-0.35220.363145
18-0.177352-1.21590.115054
19-0.136012-0.93250.177934
20-0.139226-0.95450.172361
21-0.301049-2.06390.022287
22-0.146977-1.00760.159397
23-0.165927-1.13750.13054
24-0.188024-1.2890.101848
25-0.014488-0.09930.460651
26-0.075957-0.52070.302498
27-0.131824-0.90370.185372
28-0.071108-0.48750.314088
29-0.04586-0.31440.377303
30-0.030214-0.20710.418399
310.0540570.37060.356301
32-0.004969-0.03410.486484
330.0897360.61520.270695
340.0197510.13540.446434
350.0769510.52760.300146
360.0555260.38070.352582

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.2008 & 1.3766 & 0.087577 \tabularnewline
2 & 0.255499 & 1.7516 & 0.043182 \tabularnewline
3 & 0.344837 & 2.3641 & 0.011129 \tabularnewline
4 & 0.162121 & 1.1114 & 0.136015 \tabularnewline
5 & 0.06096 & 0.4179 & 0.338953 \tabularnewline
6 & 0.171129 & 1.1732 & 0.123313 \tabularnewline
7 & 0.009335 & 0.064 & 0.474622 \tabularnewline
8 & 0.067159 & 0.4604 & 0.323669 \tabularnewline
9 & -0.041113 & -0.2819 & 0.389645 \tabularnewline
10 & -0.123404 & -0.846 & 0.200916 \tabularnewline
11 & 0.113406 & 0.7775 & 0.220389 \tabularnewline
12 & -0.184841 & -1.2672 & 0.105662 \tabularnewline
13 & -0.144395 & -0.9899 & 0.163641 \tabularnewline
14 & -0.018069 & -0.1239 & 0.450972 \tabularnewline
15 & -0.097657 & -0.6695 & 0.253225 \tabularnewline
16 & -0.132927 & -0.9113 & 0.183393 \tabularnewline
17 & -0.051368 & -0.3522 & 0.363145 \tabularnewline
18 & -0.177352 & -1.2159 & 0.115054 \tabularnewline
19 & -0.136012 & -0.9325 & 0.177934 \tabularnewline
20 & -0.139226 & -0.9545 & 0.172361 \tabularnewline
21 & -0.301049 & -2.0639 & 0.022287 \tabularnewline
22 & -0.146977 & -1.0076 & 0.159397 \tabularnewline
23 & -0.165927 & -1.1375 & 0.13054 \tabularnewline
24 & -0.188024 & -1.289 & 0.101848 \tabularnewline
25 & -0.014488 & -0.0993 & 0.460651 \tabularnewline
26 & -0.075957 & -0.5207 & 0.302498 \tabularnewline
27 & -0.131824 & -0.9037 & 0.185372 \tabularnewline
28 & -0.071108 & -0.4875 & 0.314088 \tabularnewline
29 & -0.04586 & -0.3144 & 0.377303 \tabularnewline
30 & -0.030214 & -0.2071 & 0.418399 \tabularnewline
31 & 0.054057 & 0.3706 & 0.356301 \tabularnewline
32 & -0.004969 & -0.0341 & 0.486484 \tabularnewline
33 & 0.089736 & 0.6152 & 0.270695 \tabularnewline
34 & 0.019751 & 0.1354 & 0.446434 \tabularnewline
35 & 0.076951 & 0.5276 & 0.300146 \tabularnewline
36 & 0.055526 & 0.3807 & 0.352582 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116790&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.2008[/C][C]1.3766[/C][C]0.087577[/C][/ROW]
[ROW][C]2[/C][C]0.255499[/C][C]1.7516[/C][C]0.043182[/C][/ROW]
[ROW][C]3[/C][C]0.344837[/C][C]2.3641[/C][C]0.011129[/C][/ROW]
[ROW][C]4[/C][C]0.162121[/C][C]1.1114[/C][C]0.136015[/C][/ROW]
[ROW][C]5[/C][C]0.06096[/C][C]0.4179[/C][C]0.338953[/C][/ROW]
[ROW][C]6[/C][C]0.171129[/C][C]1.1732[/C][C]0.123313[/C][/ROW]
[ROW][C]7[/C][C]0.009335[/C][C]0.064[/C][C]0.474622[/C][/ROW]
[ROW][C]8[/C][C]0.067159[/C][C]0.4604[/C][C]0.323669[/C][/ROW]
[ROW][C]9[/C][C]-0.041113[/C][C]-0.2819[/C][C]0.389645[/C][/ROW]
[ROW][C]10[/C][C]-0.123404[/C][C]-0.846[/C][C]0.200916[/C][/ROW]
[ROW][C]11[/C][C]0.113406[/C][C]0.7775[/C][C]0.220389[/C][/ROW]
[ROW][C]12[/C][C]-0.184841[/C][C]-1.2672[/C][C]0.105662[/C][/ROW]
[ROW][C]13[/C][C]-0.144395[/C][C]-0.9899[/C][C]0.163641[/C][/ROW]
[ROW][C]14[/C][C]-0.018069[/C][C]-0.1239[/C][C]0.450972[/C][/ROW]
[ROW][C]15[/C][C]-0.097657[/C][C]-0.6695[/C][C]0.253225[/C][/ROW]
[ROW][C]16[/C][C]-0.132927[/C][C]-0.9113[/C][C]0.183393[/C][/ROW]
[ROW][C]17[/C][C]-0.051368[/C][C]-0.3522[/C][C]0.363145[/C][/ROW]
[ROW][C]18[/C][C]-0.177352[/C][C]-1.2159[/C][C]0.115054[/C][/ROW]
[ROW][C]19[/C][C]-0.136012[/C][C]-0.9325[/C][C]0.177934[/C][/ROW]
[ROW][C]20[/C][C]-0.139226[/C][C]-0.9545[/C][C]0.172361[/C][/ROW]
[ROW][C]21[/C][C]-0.301049[/C][C]-2.0639[/C][C]0.022287[/C][/ROW]
[ROW][C]22[/C][C]-0.146977[/C][C]-1.0076[/C][C]0.159397[/C][/ROW]
[ROW][C]23[/C][C]-0.165927[/C][C]-1.1375[/C][C]0.13054[/C][/ROW]
[ROW][C]24[/C][C]-0.188024[/C][C]-1.289[/C][C]0.101848[/C][/ROW]
[ROW][C]25[/C][C]-0.014488[/C][C]-0.0993[/C][C]0.460651[/C][/ROW]
[ROW][C]26[/C][C]-0.075957[/C][C]-0.5207[/C][C]0.302498[/C][/ROW]
[ROW][C]27[/C][C]-0.131824[/C][C]-0.9037[/C][C]0.185372[/C][/ROW]
[ROW][C]28[/C][C]-0.071108[/C][C]-0.4875[/C][C]0.314088[/C][/ROW]
[ROW][C]29[/C][C]-0.04586[/C][C]-0.3144[/C][C]0.377303[/C][/ROW]
[ROW][C]30[/C][C]-0.030214[/C][C]-0.2071[/C][C]0.418399[/C][/ROW]
[ROW][C]31[/C][C]0.054057[/C][C]0.3706[/C][C]0.356301[/C][/ROW]
[ROW][C]32[/C][C]-0.004969[/C][C]-0.0341[/C][C]0.486484[/C][/ROW]
[ROW][C]33[/C][C]0.089736[/C][C]0.6152[/C][C]0.270695[/C][/ROW]
[ROW][C]34[/C][C]0.019751[/C][C]0.1354[/C][C]0.446434[/C][/ROW]
[ROW][C]35[/C][C]0.076951[/C][C]0.5276[/C][C]0.300146[/C][/ROW]
[ROW][C]36[/C][C]0.055526[/C][C]0.3807[/C][C]0.352582[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116790&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116790&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.20081.37660.087577
20.2554991.75160.043182
30.3448372.36410.011129
40.1621211.11140.136015
50.060960.41790.338953
60.1711291.17320.123313
70.0093350.0640.474622
80.0671590.46040.323669
9-0.041113-0.28190.389645
10-0.123404-0.8460.200916
110.1134060.77750.220389
12-0.184841-1.26720.105662
13-0.144395-0.98990.163641
14-0.018069-0.12390.450972
15-0.097657-0.66950.253225
16-0.132927-0.91130.183393
17-0.051368-0.35220.363145
18-0.177352-1.21590.115054
19-0.136012-0.93250.177934
20-0.139226-0.95450.172361
21-0.301049-2.06390.022287
22-0.146977-1.00760.159397
23-0.165927-1.13750.13054
24-0.188024-1.2890.101848
25-0.014488-0.09930.460651
26-0.075957-0.52070.302498
27-0.131824-0.90370.185372
28-0.071108-0.48750.314088
29-0.04586-0.31440.377303
30-0.030214-0.20710.418399
310.0540570.37060.356301
32-0.004969-0.03410.486484
330.0897360.61520.270695
340.0197510.13540.446434
350.0769510.52760.300146
360.0555260.38070.352582







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.20081.37660.087577
20.2242191.53720.065479
30.2852791.95580.028225
40.0325390.22310.412222
5-0.10887-0.74640.229579
60.0484960.33250.370505
7-0.068974-0.47290.31925
80.0499740.34260.366711
9-0.111274-0.76290.22468
10-0.150489-1.03170.153746
110.194421.33290.094499
12-0.178275-1.22220.113864
13-0.070224-0.48140.316223
14-0.000731-0.0050.498012
150.0291940.20010.421116
160.0141740.09720.461502
17-0.084693-0.58060.282133
18-0.102742-0.70440.242342
19-0.080939-0.55490.290801
20-0.027215-0.18660.426397
21-0.204336-1.40090.083912
22-0.099475-0.6820.249304
230.0388730.26650.395509
240.0276170.18930.425323
250.1190890.81640.209186
26-0.052397-0.35920.360521
27-0.078639-0.53910.296175
28-0.113131-0.77560.220939
290.0170820.11710.453637
300.0196470.13470.446716
310.0052370.03590.485757
320.0337890.23160.408909
330.0071080.04870.48067
34-0.0835-0.57240.284874
350.0592620.40630.34319
36-0.071448-0.48980.31327

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.2008 & 1.3766 & 0.087577 \tabularnewline
2 & 0.224219 & 1.5372 & 0.065479 \tabularnewline
3 & 0.285279 & 1.9558 & 0.028225 \tabularnewline
4 & 0.032539 & 0.2231 & 0.412222 \tabularnewline
5 & -0.10887 & -0.7464 & 0.229579 \tabularnewline
6 & 0.048496 & 0.3325 & 0.370505 \tabularnewline
7 & -0.068974 & -0.4729 & 0.31925 \tabularnewline
8 & 0.049974 & 0.3426 & 0.366711 \tabularnewline
9 & -0.111274 & -0.7629 & 0.22468 \tabularnewline
10 & -0.150489 & -1.0317 & 0.153746 \tabularnewline
11 & 0.19442 & 1.3329 & 0.094499 \tabularnewline
12 & -0.178275 & -1.2222 & 0.113864 \tabularnewline
13 & -0.070224 & -0.4814 & 0.316223 \tabularnewline
14 & -0.000731 & -0.005 & 0.498012 \tabularnewline
15 & 0.029194 & 0.2001 & 0.421116 \tabularnewline
16 & 0.014174 & 0.0972 & 0.461502 \tabularnewline
17 & -0.084693 & -0.5806 & 0.282133 \tabularnewline
18 & -0.102742 & -0.7044 & 0.242342 \tabularnewline
19 & -0.080939 & -0.5549 & 0.290801 \tabularnewline
20 & -0.027215 & -0.1866 & 0.426397 \tabularnewline
21 & -0.204336 & -1.4009 & 0.083912 \tabularnewline
22 & -0.099475 & -0.682 & 0.249304 \tabularnewline
23 & 0.038873 & 0.2665 & 0.395509 \tabularnewline
24 & 0.027617 & 0.1893 & 0.425323 \tabularnewline
25 & 0.119089 & 0.8164 & 0.209186 \tabularnewline
26 & -0.052397 & -0.3592 & 0.360521 \tabularnewline
27 & -0.078639 & -0.5391 & 0.296175 \tabularnewline
28 & -0.113131 & -0.7756 & 0.220939 \tabularnewline
29 & 0.017082 & 0.1171 & 0.453637 \tabularnewline
30 & 0.019647 & 0.1347 & 0.446716 \tabularnewline
31 & 0.005237 & 0.0359 & 0.485757 \tabularnewline
32 & 0.033789 & 0.2316 & 0.408909 \tabularnewline
33 & 0.007108 & 0.0487 & 0.48067 \tabularnewline
34 & -0.0835 & -0.5724 & 0.284874 \tabularnewline
35 & 0.059262 & 0.4063 & 0.34319 \tabularnewline
36 & -0.071448 & -0.4898 & 0.31327 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116790&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.2008[/C][C]1.3766[/C][C]0.087577[/C][/ROW]
[ROW][C]2[/C][C]0.224219[/C][C]1.5372[/C][C]0.065479[/C][/ROW]
[ROW][C]3[/C][C]0.285279[/C][C]1.9558[/C][C]0.028225[/C][/ROW]
[ROW][C]4[/C][C]0.032539[/C][C]0.2231[/C][C]0.412222[/C][/ROW]
[ROW][C]5[/C][C]-0.10887[/C][C]-0.7464[/C][C]0.229579[/C][/ROW]
[ROW][C]6[/C][C]0.048496[/C][C]0.3325[/C][C]0.370505[/C][/ROW]
[ROW][C]7[/C][C]-0.068974[/C][C]-0.4729[/C][C]0.31925[/C][/ROW]
[ROW][C]8[/C][C]0.049974[/C][C]0.3426[/C][C]0.366711[/C][/ROW]
[ROW][C]9[/C][C]-0.111274[/C][C]-0.7629[/C][C]0.22468[/C][/ROW]
[ROW][C]10[/C][C]-0.150489[/C][C]-1.0317[/C][C]0.153746[/C][/ROW]
[ROW][C]11[/C][C]0.19442[/C][C]1.3329[/C][C]0.094499[/C][/ROW]
[ROW][C]12[/C][C]-0.178275[/C][C]-1.2222[/C][C]0.113864[/C][/ROW]
[ROW][C]13[/C][C]-0.070224[/C][C]-0.4814[/C][C]0.316223[/C][/ROW]
[ROW][C]14[/C][C]-0.000731[/C][C]-0.005[/C][C]0.498012[/C][/ROW]
[ROW][C]15[/C][C]0.029194[/C][C]0.2001[/C][C]0.421116[/C][/ROW]
[ROW][C]16[/C][C]0.014174[/C][C]0.0972[/C][C]0.461502[/C][/ROW]
[ROW][C]17[/C][C]-0.084693[/C][C]-0.5806[/C][C]0.282133[/C][/ROW]
[ROW][C]18[/C][C]-0.102742[/C][C]-0.7044[/C][C]0.242342[/C][/ROW]
[ROW][C]19[/C][C]-0.080939[/C][C]-0.5549[/C][C]0.290801[/C][/ROW]
[ROW][C]20[/C][C]-0.027215[/C][C]-0.1866[/C][C]0.426397[/C][/ROW]
[ROW][C]21[/C][C]-0.204336[/C][C]-1.4009[/C][C]0.083912[/C][/ROW]
[ROW][C]22[/C][C]-0.099475[/C][C]-0.682[/C][C]0.249304[/C][/ROW]
[ROW][C]23[/C][C]0.038873[/C][C]0.2665[/C][C]0.395509[/C][/ROW]
[ROW][C]24[/C][C]0.027617[/C][C]0.1893[/C][C]0.425323[/C][/ROW]
[ROW][C]25[/C][C]0.119089[/C][C]0.8164[/C][C]0.209186[/C][/ROW]
[ROW][C]26[/C][C]-0.052397[/C][C]-0.3592[/C][C]0.360521[/C][/ROW]
[ROW][C]27[/C][C]-0.078639[/C][C]-0.5391[/C][C]0.296175[/C][/ROW]
[ROW][C]28[/C][C]-0.113131[/C][C]-0.7756[/C][C]0.220939[/C][/ROW]
[ROW][C]29[/C][C]0.017082[/C][C]0.1171[/C][C]0.453637[/C][/ROW]
[ROW][C]30[/C][C]0.019647[/C][C]0.1347[/C][C]0.446716[/C][/ROW]
[ROW][C]31[/C][C]0.005237[/C][C]0.0359[/C][C]0.485757[/C][/ROW]
[ROW][C]32[/C][C]0.033789[/C][C]0.2316[/C][C]0.408909[/C][/ROW]
[ROW][C]33[/C][C]0.007108[/C][C]0.0487[/C][C]0.48067[/C][/ROW]
[ROW][C]34[/C][C]-0.0835[/C][C]-0.5724[/C][C]0.284874[/C][/ROW]
[ROW][C]35[/C][C]0.059262[/C][C]0.4063[/C][C]0.34319[/C][/ROW]
[ROW][C]36[/C][C]-0.071448[/C][C]-0.4898[/C][C]0.31327[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116790&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116790&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.20081.37660.087577
20.2242191.53720.065479
30.2852791.95580.028225
40.0325390.22310.412222
5-0.10887-0.74640.229579
60.0484960.33250.370505
7-0.068974-0.47290.31925
80.0499740.34260.366711
9-0.111274-0.76290.22468
10-0.150489-1.03170.153746
110.194421.33290.094499
12-0.178275-1.22220.113864
13-0.070224-0.48140.316223
14-0.000731-0.0050.498012
150.0291940.20010.421116
160.0141740.09720.461502
17-0.084693-0.58060.282133
18-0.102742-0.70440.242342
19-0.080939-0.55490.290801
20-0.027215-0.18660.426397
21-0.204336-1.40090.083912
22-0.099475-0.6820.249304
230.0388730.26650.395509
240.0276170.18930.425323
250.1190890.81640.209186
26-0.052397-0.35920.360521
27-0.078639-0.53910.296175
28-0.113131-0.77560.220939
290.0170820.11710.453637
300.0196470.13470.446716
310.0052370.03590.485757
320.0337890.23160.408909
330.0071080.04870.48067
34-0.0835-0.57240.284874
350.0592620.40630.34319
36-0.071448-0.48980.31327



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