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 18:18:09 +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/t1292523361coery5u2h18vz9e.htm/, Retrieved Fri, 03 May 2024 09:38:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=111139, Retrieved Fri, 03 May 2024 09:38:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact182
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2010-12-16 18:18:09] [4afc4ea409ad669ec2851bc39795365d] [Current]
-   P     [(Partial) Autocorrelation Function] [paper review] [2011-01-12 10:23:10] [8b7e5d4d87654725a776c7f35eb4752f]
- RMP     [Univariate Data Series] [paper review] [2011-01-12 10:36:22] [8b7e5d4d87654725a776c7f35eb4752f]
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 time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 3 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111139&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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111139&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111139&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 time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8467346.55880
20.6225694.82245e-06
30.487523.77630.000184
40.4547353.52240.000412
50.483813.74760.000202
60.4798013.71650.000223
70.3935323.04830.00171
80.2422841.87670.03271
90.1289050.99850.161026
100.1033220.80030.213339
110.1802461.39620.083903
120.2091271.61990.055251
130.0454340.35190.363062
14-0.156331-1.21090.115335
15-0.268809-2.08220.020799
16-0.299792-2.32220.011817
17-0.280766-2.17480.016799
18-0.284505-2.20380.015695
19-0.33298-2.57930.006185
20-0.429183-3.32440.000757
21-0.487435-3.77570.000184
22-0.457291-3.54220.000387
23-0.3533-2.73670.004077
24-0.289529-2.24270.014312
25-0.366054-2.83540.003114
26-0.459373-3.55830.000368
27-0.48335-3.7440.000204
28-0.437973-3.39250.000616
29-0.350783-2.71720.004296
30-0.271784-2.10520.019733
31-0.23291-1.80410.038117
32-0.236961-1.83550.035695
33-0.215506-1.66930.050134
34-0.134689-1.04330.150497
35-0.012327-0.09550.462125
360.0673380.52160.301936

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.846734 & 6.5588 & 0 \tabularnewline
2 & 0.622569 & 4.8224 & 5e-06 \tabularnewline
3 & 0.48752 & 3.7763 & 0.000184 \tabularnewline
4 & 0.454735 & 3.5224 & 0.000412 \tabularnewline
5 & 0.48381 & 3.7476 & 0.000202 \tabularnewline
6 & 0.479801 & 3.7165 & 0.000223 \tabularnewline
7 & 0.393532 & 3.0483 & 0.00171 \tabularnewline
8 & 0.242284 & 1.8767 & 0.03271 \tabularnewline
9 & 0.128905 & 0.9985 & 0.161026 \tabularnewline
10 & 0.103322 & 0.8003 & 0.213339 \tabularnewline
11 & 0.180246 & 1.3962 & 0.083903 \tabularnewline
12 & 0.209127 & 1.6199 & 0.055251 \tabularnewline
13 & 0.045434 & 0.3519 & 0.363062 \tabularnewline
14 & -0.156331 & -1.2109 & 0.115335 \tabularnewline
15 & -0.268809 & -2.0822 & 0.020799 \tabularnewline
16 & -0.299792 & -2.3222 & 0.011817 \tabularnewline
17 & -0.280766 & -2.1748 & 0.016799 \tabularnewline
18 & -0.284505 & -2.2038 & 0.015695 \tabularnewline
19 & -0.33298 & -2.5793 & 0.006185 \tabularnewline
20 & -0.429183 & -3.3244 & 0.000757 \tabularnewline
21 & -0.487435 & -3.7757 & 0.000184 \tabularnewline
22 & -0.457291 & -3.5422 & 0.000387 \tabularnewline
23 & -0.3533 & -2.7367 & 0.004077 \tabularnewline
24 & -0.289529 & -2.2427 & 0.014312 \tabularnewline
25 & -0.366054 & -2.8354 & 0.003114 \tabularnewline
26 & -0.459373 & -3.5583 & 0.000368 \tabularnewline
27 & -0.48335 & -3.744 & 0.000204 \tabularnewline
28 & -0.437973 & -3.3925 & 0.000616 \tabularnewline
29 & -0.350783 & -2.7172 & 0.004296 \tabularnewline
30 & -0.271784 & -2.1052 & 0.019733 \tabularnewline
31 & -0.23291 & -1.8041 & 0.038117 \tabularnewline
32 & -0.236961 & -1.8355 & 0.035695 \tabularnewline
33 & -0.215506 & -1.6693 & 0.050134 \tabularnewline
34 & -0.134689 & -1.0433 & 0.150497 \tabularnewline
35 & -0.012327 & -0.0955 & 0.462125 \tabularnewline
36 & 0.067338 & 0.5216 & 0.301936 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111139&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.846734[/C][C]6.5588[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.622569[/C][C]4.8224[/C][C]5e-06[/C][/ROW]
[ROW][C]3[/C][C]0.48752[/C][C]3.7763[/C][C]0.000184[/C][/ROW]
[ROW][C]4[/C][C]0.454735[/C][C]3.5224[/C][C]0.000412[/C][/ROW]
[ROW][C]5[/C][C]0.48381[/C][C]3.7476[/C][C]0.000202[/C][/ROW]
[ROW][C]6[/C][C]0.479801[/C][C]3.7165[/C][C]0.000223[/C][/ROW]
[ROW][C]7[/C][C]0.393532[/C][C]3.0483[/C][C]0.00171[/C][/ROW]
[ROW][C]8[/C][C]0.242284[/C][C]1.8767[/C][C]0.03271[/C][/ROW]
[ROW][C]9[/C][C]0.128905[/C][C]0.9985[/C][C]0.161026[/C][/ROW]
[ROW][C]10[/C][C]0.103322[/C][C]0.8003[/C][C]0.213339[/C][/ROW]
[ROW][C]11[/C][C]0.180246[/C][C]1.3962[/C][C]0.083903[/C][/ROW]
[ROW][C]12[/C][C]0.209127[/C][C]1.6199[/C][C]0.055251[/C][/ROW]
[ROW][C]13[/C][C]0.045434[/C][C]0.3519[/C][C]0.363062[/C][/ROW]
[ROW][C]14[/C][C]-0.156331[/C][C]-1.2109[/C][C]0.115335[/C][/ROW]
[ROW][C]15[/C][C]-0.268809[/C][C]-2.0822[/C][C]0.020799[/C][/ROW]
[ROW][C]16[/C][C]-0.299792[/C][C]-2.3222[/C][C]0.011817[/C][/ROW]
[ROW][C]17[/C][C]-0.280766[/C][C]-2.1748[/C][C]0.016799[/C][/ROW]
[ROW][C]18[/C][C]-0.284505[/C][C]-2.2038[/C][C]0.015695[/C][/ROW]
[ROW][C]19[/C][C]-0.33298[/C][C]-2.5793[/C][C]0.006185[/C][/ROW]
[ROW][C]20[/C][C]-0.429183[/C][C]-3.3244[/C][C]0.000757[/C][/ROW]
[ROW][C]21[/C][C]-0.487435[/C][C]-3.7757[/C][C]0.000184[/C][/ROW]
[ROW][C]22[/C][C]-0.457291[/C][C]-3.5422[/C][C]0.000387[/C][/ROW]
[ROW][C]23[/C][C]-0.3533[/C][C]-2.7367[/C][C]0.004077[/C][/ROW]
[ROW][C]24[/C][C]-0.289529[/C][C]-2.2427[/C][C]0.014312[/C][/ROW]
[ROW][C]25[/C][C]-0.366054[/C][C]-2.8354[/C][C]0.003114[/C][/ROW]
[ROW][C]26[/C][C]-0.459373[/C][C]-3.5583[/C][C]0.000368[/C][/ROW]
[ROW][C]27[/C][C]-0.48335[/C][C]-3.744[/C][C]0.000204[/C][/ROW]
[ROW][C]28[/C][C]-0.437973[/C][C]-3.3925[/C][C]0.000616[/C][/ROW]
[ROW][C]29[/C][C]-0.350783[/C][C]-2.7172[/C][C]0.004296[/C][/ROW]
[ROW][C]30[/C][C]-0.271784[/C][C]-2.1052[/C][C]0.019733[/C][/ROW]
[ROW][C]31[/C][C]-0.23291[/C][C]-1.8041[/C][C]0.038117[/C][/ROW]
[ROW][C]32[/C][C]-0.236961[/C][C]-1.8355[/C][C]0.035695[/C][/ROW]
[ROW][C]33[/C][C]-0.215506[/C][C]-1.6693[/C][C]0.050134[/C][/ROW]
[ROW][C]34[/C][C]-0.134689[/C][C]-1.0433[/C][C]0.150497[/C][/ROW]
[ROW][C]35[/C][C]-0.012327[/C][C]-0.0955[/C][C]0.462125[/C][/ROW]
[ROW][C]36[/C][C]0.067338[/C][C]0.5216[/C][C]0.301936[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111139&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111139&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.8467346.55880
20.6225694.82245e-06
30.487523.77630.000184
40.4547353.52240.000412
50.483813.74760.000202
60.4798013.71650.000223
70.3935323.04830.00171
80.2422841.87670.03271
90.1289050.99850.161026
100.1033220.80030.213339
110.1802461.39620.083903
120.2091271.61990.055251
130.0454340.35190.363062
14-0.156331-1.21090.115335
15-0.268809-2.08220.020799
16-0.299792-2.32220.011817
17-0.280766-2.17480.016799
18-0.284505-2.20380.015695
19-0.33298-2.57930.006185
20-0.429183-3.32440.000757
21-0.487435-3.77570.000184
22-0.457291-3.54220.000387
23-0.3533-2.73670.004077
24-0.289529-2.24270.014312
25-0.366054-2.83540.003114
26-0.459373-3.55830.000368
27-0.48335-3.7440.000204
28-0.437973-3.39250.000616
29-0.350783-2.71720.004296
30-0.271784-2.10520.019733
31-0.23291-1.80410.038117
32-0.236961-1.83550.035695
33-0.215506-1.66930.050134
34-0.134689-1.04330.150497
35-0.012327-0.09550.462125
360.0673380.52160.301936







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8467346.55880
2-0.33348-2.58310.006123
30.2661142.06130.021807
40.1298881.00610.159203
50.1630721.26320.10571
6-0.084393-0.65370.257899
7-0.122544-0.94920.173159
8-0.188036-1.45650.075231
90.0572260.44330.329582
100.0220390.17070.432511
110.2689962.08360.020731
12-0.279328-2.16370.017241
13-0.491877-3.81010.000165
140.0984660.76270.22431
150.0619260.47970.316601
16-0.194966-1.51020.06812
17-0.085107-0.65920.256133
18-0.133482-1.03390.152655
190.1821961.41130.081663
20-0.088176-0.6830.248615
210.0417870.32370.373654
22-0.022484-0.17420.431163
23-0.053737-0.41620.339357
240.0068090.05270.479056
25-0.052866-0.40950.341817
26-0.054029-0.41850.338536
27-0.052104-0.40360.343972
28-0.036861-0.28550.388112
290.0969370.75090.227832
300.0068150.05280.479039
31-0.019153-0.14840.441278
320.0580930.450.327172
330.0467730.36230.359199
34-0.05583-0.43250.333479
35-0.013433-0.10410.458736
36-0.032962-0.25530.399673

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.846734 & 6.5588 & 0 \tabularnewline
2 & -0.33348 & -2.5831 & 0.006123 \tabularnewline
3 & 0.266114 & 2.0613 & 0.021807 \tabularnewline
4 & 0.129888 & 1.0061 & 0.159203 \tabularnewline
5 & 0.163072 & 1.2632 & 0.10571 \tabularnewline
6 & -0.084393 & -0.6537 & 0.257899 \tabularnewline
7 & -0.122544 & -0.9492 & 0.173159 \tabularnewline
8 & -0.188036 & -1.4565 & 0.075231 \tabularnewline
9 & 0.057226 & 0.4433 & 0.329582 \tabularnewline
10 & 0.022039 & 0.1707 & 0.432511 \tabularnewline
11 & 0.268996 & 2.0836 & 0.020731 \tabularnewline
12 & -0.279328 & -2.1637 & 0.017241 \tabularnewline
13 & -0.491877 & -3.8101 & 0.000165 \tabularnewline
14 & 0.098466 & 0.7627 & 0.22431 \tabularnewline
15 & 0.061926 & 0.4797 & 0.316601 \tabularnewline
16 & -0.194966 & -1.5102 & 0.06812 \tabularnewline
17 & -0.085107 & -0.6592 & 0.256133 \tabularnewline
18 & -0.133482 & -1.0339 & 0.152655 \tabularnewline
19 & 0.182196 & 1.4113 & 0.081663 \tabularnewline
20 & -0.088176 & -0.683 & 0.248615 \tabularnewline
21 & 0.041787 & 0.3237 & 0.373654 \tabularnewline
22 & -0.022484 & -0.1742 & 0.431163 \tabularnewline
23 & -0.053737 & -0.4162 & 0.339357 \tabularnewline
24 & 0.006809 & 0.0527 & 0.479056 \tabularnewline
25 & -0.052866 & -0.4095 & 0.341817 \tabularnewline
26 & -0.054029 & -0.4185 & 0.338536 \tabularnewline
27 & -0.052104 & -0.4036 & 0.343972 \tabularnewline
28 & -0.036861 & -0.2855 & 0.388112 \tabularnewline
29 & 0.096937 & 0.7509 & 0.227832 \tabularnewline
30 & 0.006815 & 0.0528 & 0.479039 \tabularnewline
31 & -0.019153 & -0.1484 & 0.441278 \tabularnewline
32 & 0.058093 & 0.45 & 0.327172 \tabularnewline
33 & 0.046773 & 0.3623 & 0.359199 \tabularnewline
34 & -0.05583 & -0.4325 & 0.333479 \tabularnewline
35 & -0.013433 & -0.1041 & 0.458736 \tabularnewline
36 & -0.032962 & -0.2553 & 0.399673 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=111139&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.846734[/C][C]6.5588[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.33348[/C][C]-2.5831[/C][C]0.006123[/C][/ROW]
[ROW][C]3[/C][C]0.266114[/C][C]2.0613[/C][C]0.021807[/C][/ROW]
[ROW][C]4[/C][C]0.129888[/C][C]1.0061[/C][C]0.159203[/C][/ROW]
[ROW][C]5[/C][C]0.163072[/C][C]1.2632[/C][C]0.10571[/C][/ROW]
[ROW][C]6[/C][C]-0.084393[/C][C]-0.6537[/C][C]0.257899[/C][/ROW]
[ROW][C]7[/C][C]-0.122544[/C][C]-0.9492[/C][C]0.173159[/C][/ROW]
[ROW][C]8[/C][C]-0.188036[/C][C]-1.4565[/C][C]0.075231[/C][/ROW]
[ROW][C]9[/C][C]0.057226[/C][C]0.4433[/C][C]0.329582[/C][/ROW]
[ROW][C]10[/C][C]0.022039[/C][C]0.1707[/C][C]0.432511[/C][/ROW]
[ROW][C]11[/C][C]0.268996[/C][C]2.0836[/C][C]0.020731[/C][/ROW]
[ROW][C]12[/C][C]-0.279328[/C][C]-2.1637[/C][C]0.017241[/C][/ROW]
[ROW][C]13[/C][C]-0.491877[/C][C]-3.8101[/C][C]0.000165[/C][/ROW]
[ROW][C]14[/C][C]0.098466[/C][C]0.7627[/C][C]0.22431[/C][/ROW]
[ROW][C]15[/C][C]0.061926[/C][C]0.4797[/C][C]0.316601[/C][/ROW]
[ROW][C]16[/C][C]-0.194966[/C][C]-1.5102[/C][C]0.06812[/C][/ROW]
[ROW][C]17[/C][C]-0.085107[/C][C]-0.6592[/C][C]0.256133[/C][/ROW]
[ROW][C]18[/C][C]-0.133482[/C][C]-1.0339[/C][C]0.152655[/C][/ROW]
[ROW][C]19[/C][C]0.182196[/C][C]1.4113[/C][C]0.081663[/C][/ROW]
[ROW][C]20[/C][C]-0.088176[/C][C]-0.683[/C][C]0.248615[/C][/ROW]
[ROW][C]21[/C][C]0.041787[/C][C]0.3237[/C][C]0.373654[/C][/ROW]
[ROW][C]22[/C][C]-0.022484[/C][C]-0.1742[/C][C]0.431163[/C][/ROW]
[ROW][C]23[/C][C]-0.053737[/C][C]-0.4162[/C][C]0.339357[/C][/ROW]
[ROW][C]24[/C][C]0.006809[/C][C]0.0527[/C][C]0.479056[/C][/ROW]
[ROW][C]25[/C][C]-0.052866[/C][C]-0.4095[/C][C]0.341817[/C][/ROW]
[ROW][C]26[/C][C]-0.054029[/C][C]-0.4185[/C][C]0.338536[/C][/ROW]
[ROW][C]27[/C][C]-0.052104[/C][C]-0.4036[/C][C]0.343972[/C][/ROW]
[ROW][C]28[/C][C]-0.036861[/C][C]-0.2855[/C][C]0.388112[/C][/ROW]
[ROW][C]29[/C][C]0.096937[/C][C]0.7509[/C][C]0.227832[/C][/ROW]
[ROW][C]30[/C][C]0.006815[/C][C]0.0528[/C][C]0.479039[/C][/ROW]
[ROW][C]31[/C][C]-0.019153[/C][C]-0.1484[/C][C]0.441278[/C][/ROW]
[ROW][C]32[/C][C]0.058093[/C][C]0.45[/C][C]0.327172[/C][/ROW]
[ROW][C]33[/C][C]0.046773[/C][C]0.3623[/C][C]0.359199[/C][/ROW]
[ROW][C]34[/C][C]-0.05583[/C][C]-0.4325[/C][C]0.333479[/C][/ROW]
[ROW][C]35[/C][C]-0.013433[/C][C]-0.1041[/C][C]0.458736[/C][/ROW]
[ROW][C]36[/C][C]-0.032962[/C][C]-0.2553[/C][C]0.399673[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=111139&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=111139&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.8467346.55880
2-0.33348-2.58310.006123
30.2661142.06130.021807
40.1298881.00610.159203
50.1630721.26320.10571
6-0.084393-0.65370.257899
7-0.122544-0.94920.173159
8-0.188036-1.45650.075231
90.0572260.44330.329582
100.0220390.17070.432511
110.2689962.08360.020731
12-0.279328-2.16370.017241
13-0.491877-3.81010.000165
140.0984660.76270.22431
150.0619260.47970.316601
16-0.194966-1.51020.06812
17-0.085107-0.65920.256133
18-0.133482-1.03390.152655
190.1821961.41130.081663
20-0.088176-0.6830.248615
210.0417870.32370.373654
22-0.022484-0.17420.431163
23-0.053737-0.41620.339357
240.0068090.05270.479056
25-0.052866-0.40950.341817
26-0.054029-0.41850.338536
27-0.052104-0.40360.343972
28-0.036861-0.28550.388112
290.0969370.75090.227832
300.0068150.05280.479039
31-0.019153-0.14840.441278
320.0580930.450.327172
330.0467730.36230.359199
34-0.05583-0.43250.333479
35-0.013433-0.10410.458736
36-0.032962-0.25530.399673



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