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:54:29 +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/t1445529299guiq2vatw9bpgoh.htm/, Retrieved Sat, 18 May 2024 18:31:43 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=282764, Retrieved Sat, 18 May 2024 18:31:43 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact129
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [autocorrelation e...] [2015-10-22 15:54:29] [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 time1 seconds
R Server'Gertrude Mary Cox' @ cox.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 & 1 seconds \tabularnewline
R Server & 'Gertrude Mary Cox' @ cox.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=282764&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]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gertrude Mary Cox' @ cox.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=282764&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=282764&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 time1 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9258649.62190
20.8389928.71910
30.766827.9690
40.7015857.29110
50.6369546.61940
60.5618825.83920
70.4783874.97151e-06
80.394124.09584.1e-05
90.3175953.30050.000654
100.247152.56850.005791
110.1908771.98370.024916
120.1302671.35380.089318
130.0517620.53790.295869
14-0.019661-0.20430.419241
15-0.072328-0.75170.226946
16-0.112557-1.16970.122344
17-0.146966-1.52730.064803
18-0.185993-1.93290.027934
19-0.211491-2.19790.015046
20-0.23885-2.48220.007299
21-0.260086-2.70290.003993
22-0.264238-2.7460.003534
23-0.248287-2.58030.005607
24-0.225735-2.34590.010403
25-0.232406-2.41520.008702
26-0.245148-2.54760.006126
27-0.237336-2.46650.007609
28-0.218031-2.26580.012727
29-0.202075-2.10.019028
30-0.188864-1.96270.026125
31-0.165887-1.7240.043789
32-0.152203-1.58170.058316
33-0.136964-1.42340.078756
34-0.118683-1.23340.110055
35-0.092309-0.95930.169775
36-0.068503-0.71190.239028

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.925864 & 9.6219 & 0 \tabularnewline
2 & 0.838992 & 8.7191 & 0 \tabularnewline
3 & 0.76682 & 7.969 & 0 \tabularnewline
4 & 0.701585 & 7.2911 & 0 \tabularnewline
5 & 0.636954 & 6.6194 & 0 \tabularnewline
6 & 0.561882 & 5.8392 & 0 \tabularnewline
7 & 0.478387 & 4.9715 & 1e-06 \tabularnewline
8 & 0.39412 & 4.0958 & 4.1e-05 \tabularnewline
9 & 0.317595 & 3.3005 & 0.000654 \tabularnewline
10 & 0.24715 & 2.5685 & 0.005791 \tabularnewline
11 & 0.190877 & 1.9837 & 0.024916 \tabularnewline
12 & 0.130267 & 1.3538 & 0.089318 \tabularnewline
13 & 0.051762 & 0.5379 & 0.295869 \tabularnewline
14 & -0.019661 & -0.2043 & 0.419241 \tabularnewline
15 & -0.072328 & -0.7517 & 0.226946 \tabularnewline
16 & -0.112557 & -1.1697 & 0.122344 \tabularnewline
17 & -0.146966 & -1.5273 & 0.064803 \tabularnewline
18 & -0.185993 & -1.9329 & 0.027934 \tabularnewline
19 & -0.211491 & -2.1979 & 0.015046 \tabularnewline
20 & -0.23885 & -2.4822 & 0.007299 \tabularnewline
21 & -0.260086 & -2.7029 & 0.003993 \tabularnewline
22 & -0.264238 & -2.746 & 0.003534 \tabularnewline
23 & -0.248287 & -2.5803 & 0.005607 \tabularnewline
24 & -0.225735 & -2.3459 & 0.010403 \tabularnewline
25 & -0.232406 & -2.4152 & 0.008702 \tabularnewline
26 & -0.245148 & -2.5476 & 0.006126 \tabularnewline
27 & -0.237336 & -2.4665 & 0.007609 \tabularnewline
28 & -0.218031 & -2.2658 & 0.012727 \tabularnewline
29 & -0.202075 & -2.1 & 0.019028 \tabularnewline
30 & -0.188864 & -1.9627 & 0.026125 \tabularnewline
31 & -0.165887 & -1.724 & 0.043789 \tabularnewline
32 & -0.152203 & -1.5817 & 0.058316 \tabularnewline
33 & -0.136964 & -1.4234 & 0.078756 \tabularnewline
34 & -0.118683 & -1.2334 & 0.110055 \tabularnewline
35 & -0.092309 & -0.9593 & 0.169775 \tabularnewline
36 & -0.068503 & -0.7119 & 0.239028 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=282764&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.925864[/C][C]9.6219[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.838992[/C][C]8.7191[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.76682[/C][C]7.969[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.701585[/C][C]7.2911[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0.636954[/C][C]6.6194[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0.561882[/C][C]5.8392[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0.478387[/C][C]4.9715[/C][C]1e-06[/C][/ROW]
[ROW][C]8[/C][C]0.39412[/C][C]4.0958[/C][C]4.1e-05[/C][/ROW]
[ROW][C]9[/C][C]0.317595[/C][C]3.3005[/C][C]0.000654[/C][/ROW]
[ROW][C]10[/C][C]0.24715[/C][C]2.5685[/C][C]0.005791[/C][/ROW]
[ROW][C]11[/C][C]0.190877[/C][C]1.9837[/C][C]0.024916[/C][/ROW]
[ROW][C]12[/C][C]0.130267[/C][C]1.3538[/C][C]0.089318[/C][/ROW]
[ROW][C]13[/C][C]0.051762[/C][C]0.5379[/C][C]0.295869[/C][/ROW]
[ROW][C]14[/C][C]-0.019661[/C][C]-0.2043[/C][C]0.419241[/C][/ROW]
[ROW][C]15[/C][C]-0.072328[/C][C]-0.7517[/C][C]0.226946[/C][/ROW]
[ROW][C]16[/C][C]-0.112557[/C][C]-1.1697[/C][C]0.122344[/C][/ROW]
[ROW][C]17[/C][C]-0.146966[/C][C]-1.5273[/C][C]0.064803[/C][/ROW]
[ROW][C]18[/C][C]-0.185993[/C][C]-1.9329[/C][C]0.027934[/C][/ROW]
[ROW][C]19[/C][C]-0.211491[/C][C]-2.1979[/C][C]0.015046[/C][/ROW]
[ROW][C]20[/C][C]-0.23885[/C][C]-2.4822[/C][C]0.007299[/C][/ROW]
[ROW][C]21[/C][C]-0.260086[/C][C]-2.7029[/C][C]0.003993[/C][/ROW]
[ROW][C]22[/C][C]-0.264238[/C][C]-2.746[/C][C]0.003534[/C][/ROW]
[ROW][C]23[/C][C]-0.248287[/C][C]-2.5803[/C][C]0.005607[/C][/ROW]
[ROW][C]24[/C][C]-0.225735[/C][C]-2.3459[/C][C]0.010403[/C][/ROW]
[ROW][C]25[/C][C]-0.232406[/C][C]-2.4152[/C][C]0.008702[/C][/ROW]
[ROW][C]26[/C][C]-0.245148[/C][C]-2.5476[/C][C]0.006126[/C][/ROW]
[ROW][C]27[/C][C]-0.237336[/C][C]-2.4665[/C][C]0.007609[/C][/ROW]
[ROW][C]28[/C][C]-0.218031[/C][C]-2.2658[/C][C]0.012727[/C][/ROW]
[ROW][C]29[/C][C]-0.202075[/C][C]-2.1[/C][C]0.019028[/C][/ROW]
[ROW][C]30[/C][C]-0.188864[/C][C]-1.9627[/C][C]0.026125[/C][/ROW]
[ROW][C]31[/C][C]-0.165887[/C][C]-1.724[/C][C]0.043789[/C][/ROW]
[ROW][C]32[/C][C]-0.152203[/C][C]-1.5817[/C][C]0.058316[/C][/ROW]
[ROW][C]33[/C][C]-0.136964[/C][C]-1.4234[/C][C]0.078756[/C][/ROW]
[ROW][C]34[/C][C]-0.118683[/C][C]-1.2334[/C][C]0.110055[/C][/ROW]
[ROW][C]35[/C][C]-0.092309[/C][C]-0.9593[/C][C]0.169775[/C][/ROW]
[ROW][C]36[/C][C]-0.068503[/C][C]-0.7119[/C][C]0.239028[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=282764&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=282764&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.9258649.62190
20.8389928.71910
30.766827.9690
40.7015857.29110
50.6369546.61940
60.5618825.83920
70.4783874.97151e-06
80.394124.09584.1e-05
90.3175953.30050.000654
100.247152.56850.005791
110.1908771.98370.024916
120.1302671.35380.089318
130.0517620.53790.295869
14-0.019661-0.20430.419241
15-0.072328-0.75170.226946
16-0.112557-1.16970.122344
17-0.146966-1.52730.064803
18-0.185993-1.93290.027934
19-0.211491-2.19790.015046
20-0.23885-2.48220.007299
21-0.260086-2.70290.003993
22-0.264238-2.7460.003534
23-0.248287-2.58030.005607
24-0.225735-2.34590.010403
25-0.232406-2.41520.008702
26-0.245148-2.54760.006126
27-0.237336-2.46650.007609
28-0.218031-2.26580.012727
29-0.202075-2.10.019028
30-0.188864-1.96270.026125
31-0.165887-1.7240.043789
32-0.152203-1.58170.058316
33-0.136964-1.42340.078756
34-0.118683-1.23340.110055
35-0.092309-0.95930.169775
36-0.068503-0.71190.239028







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9258649.62190
2-0.127696-1.32710.093645
30.064530.67060.251949
4-0.010349-0.10760.457274
5-0.031316-0.32540.372736
6-0.108055-1.12290.131976
7-0.093285-0.96940.167244
8-0.065461-0.68030.248887
9-0.017349-0.18030.42863
10-0.028763-0.29890.38279
110.0521970.54250.294312
12-0.083471-0.86750.193807
13-0.155178-1.61270.054869
14-0.004606-0.04790.480956
150.0296950.30860.37911
16-0.000366-0.00380.498488
17-0.005117-0.05320.478846
18-0.057538-0.59790.275563
190.0746640.77590.219744
20-0.096653-1.00450.158703
21-0.00149-0.01550.493836
220.0544970.56640.286165
230.0914510.95040.172018
240.0372530.38710.349707
25-0.194175-2.01790.023039
26-0.045784-0.47580.317588
270.0741350.77040.221362
28-0.010044-0.10440.458532
29-0.031585-0.32820.371683
300.0050070.0520.479298
310.0899980.93530.175863
32-0.074204-0.77120.221151
33-0.00242-0.02510.489991
34-0.020075-0.20860.417568
350.0342120.35550.36144
36-0.020769-0.21580.41476

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.925864 & 9.6219 & 0 \tabularnewline
2 & -0.127696 & -1.3271 & 0.093645 \tabularnewline
3 & 0.06453 & 0.6706 & 0.251949 \tabularnewline
4 & -0.010349 & -0.1076 & 0.457274 \tabularnewline
5 & -0.031316 & -0.3254 & 0.372736 \tabularnewline
6 & -0.108055 & -1.1229 & 0.131976 \tabularnewline
7 & -0.093285 & -0.9694 & 0.167244 \tabularnewline
8 & -0.065461 & -0.6803 & 0.248887 \tabularnewline
9 & -0.017349 & -0.1803 & 0.42863 \tabularnewline
10 & -0.028763 & -0.2989 & 0.38279 \tabularnewline
11 & 0.052197 & 0.5425 & 0.294312 \tabularnewline
12 & -0.083471 & -0.8675 & 0.193807 \tabularnewline
13 & -0.155178 & -1.6127 & 0.054869 \tabularnewline
14 & -0.004606 & -0.0479 & 0.480956 \tabularnewline
15 & 0.029695 & 0.3086 & 0.37911 \tabularnewline
16 & -0.000366 & -0.0038 & 0.498488 \tabularnewline
17 & -0.005117 & -0.0532 & 0.478846 \tabularnewline
18 & -0.057538 & -0.5979 & 0.275563 \tabularnewline
19 & 0.074664 & 0.7759 & 0.219744 \tabularnewline
20 & -0.096653 & -1.0045 & 0.158703 \tabularnewline
21 & -0.00149 & -0.0155 & 0.493836 \tabularnewline
22 & 0.054497 & 0.5664 & 0.286165 \tabularnewline
23 & 0.091451 & 0.9504 & 0.172018 \tabularnewline
24 & 0.037253 & 0.3871 & 0.349707 \tabularnewline
25 & -0.194175 & -2.0179 & 0.023039 \tabularnewline
26 & -0.045784 & -0.4758 & 0.317588 \tabularnewline
27 & 0.074135 & 0.7704 & 0.221362 \tabularnewline
28 & -0.010044 & -0.1044 & 0.458532 \tabularnewline
29 & -0.031585 & -0.3282 & 0.371683 \tabularnewline
30 & 0.005007 & 0.052 & 0.479298 \tabularnewline
31 & 0.089998 & 0.9353 & 0.175863 \tabularnewline
32 & -0.074204 & -0.7712 & 0.221151 \tabularnewline
33 & -0.00242 & -0.0251 & 0.489991 \tabularnewline
34 & -0.020075 & -0.2086 & 0.417568 \tabularnewline
35 & 0.034212 & 0.3555 & 0.36144 \tabularnewline
36 & -0.020769 & -0.2158 & 0.41476 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=282764&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.925864[/C][C]9.6219[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.127696[/C][C]-1.3271[/C][C]0.093645[/C][/ROW]
[ROW][C]3[/C][C]0.06453[/C][C]0.6706[/C][C]0.251949[/C][/ROW]
[ROW][C]4[/C][C]-0.010349[/C][C]-0.1076[/C][C]0.457274[/C][/ROW]
[ROW][C]5[/C][C]-0.031316[/C][C]-0.3254[/C][C]0.372736[/C][/ROW]
[ROW][C]6[/C][C]-0.108055[/C][C]-1.1229[/C][C]0.131976[/C][/ROW]
[ROW][C]7[/C][C]-0.093285[/C][C]-0.9694[/C][C]0.167244[/C][/ROW]
[ROW][C]8[/C][C]-0.065461[/C][C]-0.6803[/C][C]0.248887[/C][/ROW]
[ROW][C]9[/C][C]-0.017349[/C][C]-0.1803[/C][C]0.42863[/C][/ROW]
[ROW][C]10[/C][C]-0.028763[/C][C]-0.2989[/C][C]0.38279[/C][/ROW]
[ROW][C]11[/C][C]0.052197[/C][C]0.5425[/C][C]0.294312[/C][/ROW]
[ROW][C]12[/C][C]-0.083471[/C][C]-0.8675[/C][C]0.193807[/C][/ROW]
[ROW][C]13[/C][C]-0.155178[/C][C]-1.6127[/C][C]0.054869[/C][/ROW]
[ROW][C]14[/C][C]-0.004606[/C][C]-0.0479[/C][C]0.480956[/C][/ROW]
[ROW][C]15[/C][C]0.029695[/C][C]0.3086[/C][C]0.37911[/C][/ROW]
[ROW][C]16[/C][C]-0.000366[/C][C]-0.0038[/C][C]0.498488[/C][/ROW]
[ROW][C]17[/C][C]-0.005117[/C][C]-0.0532[/C][C]0.478846[/C][/ROW]
[ROW][C]18[/C][C]-0.057538[/C][C]-0.5979[/C][C]0.275563[/C][/ROW]
[ROW][C]19[/C][C]0.074664[/C][C]0.7759[/C][C]0.219744[/C][/ROW]
[ROW][C]20[/C][C]-0.096653[/C][C]-1.0045[/C][C]0.158703[/C][/ROW]
[ROW][C]21[/C][C]-0.00149[/C][C]-0.0155[/C][C]0.493836[/C][/ROW]
[ROW][C]22[/C][C]0.054497[/C][C]0.5664[/C][C]0.286165[/C][/ROW]
[ROW][C]23[/C][C]0.091451[/C][C]0.9504[/C][C]0.172018[/C][/ROW]
[ROW][C]24[/C][C]0.037253[/C][C]0.3871[/C][C]0.349707[/C][/ROW]
[ROW][C]25[/C][C]-0.194175[/C][C]-2.0179[/C][C]0.023039[/C][/ROW]
[ROW][C]26[/C][C]-0.045784[/C][C]-0.4758[/C][C]0.317588[/C][/ROW]
[ROW][C]27[/C][C]0.074135[/C][C]0.7704[/C][C]0.221362[/C][/ROW]
[ROW][C]28[/C][C]-0.010044[/C][C]-0.1044[/C][C]0.458532[/C][/ROW]
[ROW][C]29[/C][C]-0.031585[/C][C]-0.3282[/C][C]0.371683[/C][/ROW]
[ROW][C]30[/C][C]0.005007[/C][C]0.052[/C][C]0.479298[/C][/ROW]
[ROW][C]31[/C][C]0.089998[/C][C]0.9353[/C][C]0.175863[/C][/ROW]
[ROW][C]32[/C][C]-0.074204[/C][C]-0.7712[/C][C]0.221151[/C][/ROW]
[ROW][C]33[/C][C]-0.00242[/C][C]-0.0251[/C][C]0.489991[/C][/ROW]
[ROW][C]34[/C][C]-0.020075[/C][C]-0.2086[/C][C]0.417568[/C][/ROW]
[ROW][C]35[/C][C]0.034212[/C][C]0.3555[/C][C]0.36144[/C][/ROW]
[ROW][C]36[/C][C]-0.020769[/C][C]-0.2158[/C][C]0.41476[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=282764&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=282764&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.9258649.62190
2-0.127696-1.32710.093645
30.064530.67060.251949
4-0.010349-0.10760.457274
5-0.031316-0.32540.372736
6-0.108055-1.12290.131976
7-0.093285-0.96940.167244
8-0.065461-0.68030.248887
9-0.017349-0.18030.42863
10-0.028763-0.29890.38279
110.0521970.54250.294312
12-0.083471-0.86750.193807
13-0.155178-1.61270.054869
14-0.004606-0.04790.480956
150.0296950.30860.37911
16-0.000366-0.00380.498488
17-0.005117-0.05320.478846
18-0.057538-0.59790.275563
190.0746640.77590.219744
20-0.096653-1.00450.158703
21-0.00149-0.01550.493836
220.0544970.56640.286165
230.0914510.95040.172018
240.0372530.38710.349707
25-0.194175-2.01790.023039
26-0.045784-0.47580.317588
270.0741350.77040.221362
28-0.010044-0.10440.458532
29-0.031585-0.32820.371683
300.0050070.0520.479298
310.0899980.93530.175863
32-0.074204-0.77120.221151
33-0.00242-0.02510.489991
34-0.020075-0.20860.417568
350.0342120.35550.36144
36-0.020769-0.21580.41476



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