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 computationMon, 26 Oct 2015 13:08:53 +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/2015/Oct/26/t1445864985l919mpanqx9o2yu.htm/, Retrieved Tue, 14 May 2024 10:25:26 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=283080, Retrieved Tue, 14 May 2024 10:25:26 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact177
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [] [2015-10-08 12:37:41] [32b17a345b130fdf5cc88718ed94a974]
- R P     [(Partial) Autocorrelation Function] [H4 Task 24_2 Auto...] [2015-10-26 13:08:53] [1ebd241c410d245f512b4b5f98d948fd] [Current]
Feedback Forum

Post a new message
Dataseries X:
29.90
28.77
15.64
23.73
25.65
21.81
28.97
24.29
25.33
28.84
19.99
19.75
22.70
23.28
24.15
20.38
27.75
27.31
25.61
22.64
26.05
28.07
21.02
25.00
17.93
35.45
17.70
28.53
26.55
26.51
30.78
26.83
27.49
25.89
20.44
19.79
18.14
27.98
35.90
34.38
21.58
21.53
31.14
28.25
25.16
20.51
30.05
20.17
32.37
22.46
25.40
19.82
18.14
20.10
20.25
19.73
24.74
26.17
20.14
31.71
26.66
20.75
20.01
26.67
23.91
26.81
29.31
31.76
22.99
23.94
27.04
20.28
23.32




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=283080&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'Gwilym Jenkins' @ jenkins.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.577803-4.47561.7e-05
20.1781951.38030.086309
3-0.142694-1.10530.13672
40.1185970.91860.180979
5-0.080502-0.62360.267637
6-0.010767-0.08340.466905
70.0007620.00590.497654
80.022130.17140.432236
90.0174920.13550.446339
10-0.09751-0.75530.226509
110.3608952.79550.003475
12-0.484496-3.75290.000198
130.2610852.02240.023802
14-0.083063-0.64340.261208
150.0312930.24240.404649
16-0.086312-0.66860.253168
170.0715560.55430.290728
180.0186070.14410.442941
190.0627010.48570.314481
20-0.237908-1.84280.035148
210.3030522.34740.01111
22-0.150637-1.16680.123947
230.0168350.13040.448341
24-0.046624-0.36120.359627
250.0853040.66080.255647
26-0.064775-0.50170.308842
270.0115760.08970.464426
28-0.001068-0.00830.496712
290.061960.47990.316507
30-0.074314-0.57560.283508
31-0.064917-0.50280.308458
320.244851.89660.031349
33-0.311286-2.41120.009489
340.2724222.11020.019511
35-0.203689-1.57780.059939
360.1491071.1550.126339

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.577803 & -4.4756 & 1.7e-05 \tabularnewline
2 & 0.178195 & 1.3803 & 0.086309 \tabularnewline
3 & -0.142694 & -1.1053 & 0.13672 \tabularnewline
4 & 0.118597 & 0.9186 & 0.180979 \tabularnewline
5 & -0.080502 & -0.6236 & 0.267637 \tabularnewline
6 & -0.010767 & -0.0834 & 0.466905 \tabularnewline
7 & 0.000762 & 0.0059 & 0.497654 \tabularnewline
8 & 0.02213 & 0.1714 & 0.432236 \tabularnewline
9 & 0.017492 & 0.1355 & 0.446339 \tabularnewline
10 & -0.09751 & -0.7553 & 0.226509 \tabularnewline
11 & 0.360895 & 2.7955 & 0.003475 \tabularnewline
12 & -0.484496 & -3.7529 & 0.000198 \tabularnewline
13 & 0.261085 & 2.0224 & 0.023802 \tabularnewline
14 & -0.083063 & -0.6434 & 0.261208 \tabularnewline
15 & 0.031293 & 0.2424 & 0.404649 \tabularnewline
16 & -0.086312 & -0.6686 & 0.253168 \tabularnewline
17 & 0.071556 & 0.5543 & 0.290728 \tabularnewline
18 & 0.018607 & 0.1441 & 0.442941 \tabularnewline
19 & 0.062701 & 0.4857 & 0.314481 \tabularnewline
20 & -0.237908 & -1.8428 & 0.035148 \tabularnewline
21 & 0.303052 & 2.3474 & 0.01111 \tabularnewline
22 & -0.150637 & -1.1668 & 0.123947 \tabularnewline
23 & 0.016835 & 0.1304 & 0.448341 \tabularnewline
24 & -0.046624 & -0.3612 & 0.359627 \tabularnewline
25 & 0.085304 & 0.6608 & 0.255647 \tabularnewline
26 & -0.064775 & -0.5017 & 0.308842 \tabularnewline
27 & 0.011576 & 0.0897 & 0.464426 \tabularnewline
28 & -0.001068 & -0.0083 & 0.496712 \tabularnewline
29 & 0.06196 & 0.4799 & 0.316507 \tabularnewline
30 & -0.074314 & -0.5756 & 0.283508 \tabularnewline
31 & -0.064917 & -0.5028 & 0.308458 \tabularnewline
32 & 0.24485 & 1.8966 & 0.031349 \tabularnewline
33 & -0.311286 & -2.4112 & 0.009489 \tabularnewline
34 & 0.272422 & 2.1102 & 0.019511 \tabularnewline
35 & -0.203689 & -1.5778 & 0.059939 \tabularnewline
36 & 0.149107 & 1.155 & 0.126339 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=283080&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.577803[/C][C]-4.4756[/C][C]1.7e-05[/C][/ROW]
[ROW][C]2[/C][C]0.178195[/C][C]1.3803[/C][C]0.086309[/C][/ROW]
[ROW][C]3[/C][C]-0.142694[/C][C]-1.1053[/C][C]0.13672[/C][/ROW]
[ROW][C]4[/C][C]0.118597[/C][C]0.9186[/C][C]0.180979[/C][/ROW]
[ROW][C]5[/C][C]-0.080502[/C][C]-0.6236[/C][C]0.267637[/C][/ROW]
[ROW][C]6[/C][C]-0.010767[/C][C]-0.0834[/C][C]0.466905[/C][/ROW]
[ROW][C]7[/C][C]0.000762[/C][C]0.0059[/C][C]0.497654[/C][/ROW]
[ROW][C]8[/C][C]0.02213[/C][C]0.1714[/C][C]0.432236[/C][/ROW]
[ROW][C]9[/C][C]0.017492[/C][C]0.1355[/C][C]0.446339[/C][/ROW]
[ROW][C]10[/C][C]-0.09751[/C][C]-0.7553[/C][C]0.226509[/C][/ROW]
[ROW][C]11[/C][C]0.360895[/C][C]2.7955[/C][C]0.003475[/C][/ROW]
[ROW][C]12[/C][C]-0.484496[/C][C]-3.7529[/C][C]0.000198[/C][/ROW]
[ROW][C]13[/C][C]0.261085[/C][C]2.0224[/C][C]0.023802[/C][/ROW]
[ROW][C]14[/C][C]-0.083063[/C][C]-0.6434[/C][C]0.261208[/C][/ROW]
[ROW][C]15[/C][C]0.031293[/C][C]0.2424[/C][C]0.404649[/C][/ROW]
[ROW][C]16[/C][C]-0.086312[/C][C]-0.6686[/C][C]0.253168[/C][/ROW]
[ROW][C]17[/C][C]0.071556[/C][C]0.5543[/C][C]0.290728[/C][/ROW]
[ROW][C]18[/C][C]0.018607[/C][C]0.1441[/C][C]0.442941[/C][/ROW]
[ROW][C]19[/C][C]0.062701[/C][C]0.4857[/C][C]0.314481[/C][/ROW]
[ROW][C]20[/C][C]-0.237908[/C][C]-1.8428[/C][C]0.035148[/C][/ROW]
[ROW][C]21[/C][C]0.303052[/C][C]2.3474[/C][C]0.01111[/C][/ROW]
[ROW][C]22[/C][C]-0.150637[/C][C]-1.1668[/C][C]0.123947[/C][/ROW]
[ROW][C]23[/C][C]0.016835[/C][C]0.1304[/C][C]0.448341[/C][/ROW]
[ROW][C]24[/C][C]-0.046624[/C][C]-0.3612[/C][C]0.359627[/C][/ROW]
[ROW][C]25[/C][C]0.085304[/C][C]0.6608[/C][C]0.255647[/C][/ROW]
[ROW][C]26[/C][C]-0.064775[/C][C]-0.5017[/C][C]0.308842[/C][/ROW]
[ROW][C]27[/C][C]0.011576[/C][C]0.0897[/C][C]0.464426[/C][/ROW]
[ROW][C]28[/C][C]-0.001068[/C][C]-0.0083[/C][C]0.496712[/C][/ROW]
[ROW][C]29[/C][C]0.06196[/C][C]0.4799[/C][C]0.316507[/C][/ROW]
[ROW][C]30[/C][C]-0.074314[/C][C]-0.5756[/C][C]0.283508[/C][/ROW]
[ROW][C]31[/C][C]-0.064917[/C][C]-0.5028[/C][C]0.308458[/C][/ROW]
[ROW][C]32[/C][C]0.24485[/C][C]1.8966[/C][C]0.031349[/C][/ROW]
[ROW][C]33[/C][C]-0.311286[/C][C]-2.4112[/C][C]0.009489[/C][/ROW]
[ROW][C]34[/C][C]0.272422[/C][C]2.1102[/C][C]0.019511[/C][/ROW]
[ROW][C]35[/C][C]-0.203689[/C][C]-1.5778[/C][C]0.059939[/C][/ROW]
[ROW][C]36[/C][C]0.149107[/C][C]1.155[/C][C]0.126339[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=283080&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=283080&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.577803-4.47561.7e-05
20.1781951.38030.086309
3-0.142694-1.10530.13672
40.1185970.91860.180979
5-0.080502-0.62360.267637
6-0.010767-0.08340.466905
70.0007620.00590.497654
80.022130.17140.432236
90.0174920.13550.446339
10-0.09751-0.75530.226509
110.3608952.79550.003475
12-0.484496-3.75290.000198
130.2610852.02240.023802
14-0.083063-0.64340.261208
150.0312930.24240.404649
16-0.086312-0.66860.253168
170.0715560.55430.290728
180.0186070.14410.442941
190.0627010.48570.314481
20-0.237908-1.84280.035148
210.3030522.34740.01111
22-0.150637-1.16680.123947
230.0168350.13040.448341
24-0.046624-0.36120.359627
250.0853040.66080.255647
26-0.064775-0.50170.308842
270.0115760.08970.464426
28-0.001068-0.00830.496712
290.061960.47990.316507
30-0.074314-0.57560.283508
31-0.064917-0.50280.308458
320.244851.89660.031349
33-0.311286-2.41120.009489
340.2724222.11020.019511
35-0.203689-1.57780.059939
360.1491071.1550.126339







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.577803-4.47561.7e-05
2-0.233677-1.81010.037648
3-0.239282-1.85350.034367
4-0.096547-0.74790.228735
5-0.08461-0.65540.257361
6-0.152894-1.18430.12048
7-0.148841-1.15290.126758
8-0.108418-0.83980.202178
9-0.041614-0.32230.374158
10-0.172969-1.33980.09268
110.3788632.93470.002363
12-0.110365-0.85490.198009
13-0.141506-1.09610.138708
140.0246340.19080.424659
15-0.120013-0.92960.178147
16-0.153894-1.19210.118965
17-0.065412-0.50670.307119
18-0.031227-0.24190.404848
190.0765830.59320.277636
20-0.296484-2.29660.012576
210.1224430.94840.173355
22-0.050839-0.39380.347564
230.1999861.54910.06331
24-0.06292-0.48740.313884
250.0262980.20370.419636
260.0770920.59710.276328
27-0.07027-0.54430.294122
28-0.076009-0.58880.279115
290.0706460.54720.293127
30-0.077598-0.60110.275027
31-0.021178-0.1640.435125
32-0.10932-0.84680.200239
33-0.045932-0.35580.361625
340.1019290.78950.216452
350.0561120.43460.33269
36-0.057791-0.44760.32801

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.577803 & -4.4756 & 1.7e-05 \tabularnewline
2 & -0.233677 & -1.8101 & 0.037648 \tabularnewline
3 & -0.239282 & -1.8535 & 0.034367 \tabularnewline
4 & -0.096547 & -0.7479 & 0.228735 \tabularnewline
5 & -0.08461 & -0.6554 & 0.257361 \tabularnewline
6 & -0.152894 & -1.1843 & 0.12048 \tabularnewline
7 & -0.148841 & -1.1529 & 0.126758 \tabularnewline
8 & -0.108418 & -0.8398 & 0.202178 \tabularnewline
9 & -0.041614 & -0.3223 & 0.374158 \tabularnewline
10 & -0.172969 & -1.3398 & 0.09268 \tabularnewline
11 & 0.378863 & 2.9347 & 0.002363 \tabularnewline
12 & -0.110365 & -0.8549 & 0.198009 \tabularnewline
13 & -0.141506 & -1.0961 & 0.138708 \tabularnewline
14 & 0.024634 & 0.1908 & 0.424659 \tabularnewline
15 & -0.120013 & -0.9296 & 0.178147 \tabularnewline
16 & -0.153894 & -1.1921 & 0.118965 \tabularnewline
17 & -0.065412 & -0.5067 & 0.307119 \tabularnewline
18 & -0.031227 & -0.2419 & 0.404848 \tabularnewline
19 & 0.076583 & 0.5932 & 0.277636 \tabularnewline
20 & -0.296484 & -2.2966 & 0.012576 \tabularnewline
21 & 0.122443 & 0.9484 & 0.173355 \tabularnewline
22 & -0.050839 & -0.3938 & 0.347564 \tabularnewline
23 & 0.199986 & 1.5491 & 0.06331 \tabularnewline
24 & -0.06292 & -0.4874 & 0.313884 \tabularnewline
25 & 0.026298 & 0.2037 & 0.419636 \tabularnewline
26 & 0.077092 & 0.5971 & 0.276328 \tabularnewline
27 & -0.07027 & -0.5443 & 0.294122 \tabularnewline
28 & -0.076009 & -0.5888 & 0.279115 \tabularnewline
29 & 0.070646 & 0.5472 & 0.293127 \tabularnewline
30 & -0.077598 & -0.6011 & 0.275027 \tabularnewline
31 & -0.021178 & -0.164 & 0.435125 \tabularnewline
32 & -0.10932 & -0.8468 & 0.200239 \tabularnewline
33 & -0.045932 & -0.3558 & 0.361625 \tabularnewline
34 & 0.101929 & 0.7895 & 0.216452 \tabularnewline
35 & 0.056112 & 0.4346 & 0.33269 \tabularnewline
36 & -0.057791 & -0.4476 & 0.32801 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=283080&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.577803[/C][C]-4.4756[/C][C]1.7e-05[/C][/ROW]
[ROW][C]2[/C][C]-0.233677[/C][C]-1.8101[/C][C]0.037648[/C][/ROW]
[ROW][C]3[/C][C]-0.239282[/C][C]-1.8535[/C][C]0.034367[/C][/ROW]
[ROW][C]4[/C][C]-0.096547[/C][C]-0.7479[/C][C]0.228735[/C][/ROW]
[ROW][C]5[/C][C]-0.08461[/C][C]-0.6554[/C][C]0.257361[/C][/ROW]
[ROW][C]6[/C][C]-0.152894[/C][C]-1.1843[/C][C]0.12048[/C][/ROW]
[ROW][C]7[/C][C]-0.148841[/C][C]-1.1529[/C][C]0.126758[/C][/ROW]
[ROW][C]8[/C][C]-0.108418[/C][C]-0.8398[/C][C]0.202178[/C][/ROW]
[ROW][C]9[/C][C]-0.041614[/C][C]-0.3223[/C][C]0.374158[/C][/ROW]
[ROW][C]10[/C][C]-0.172969[/C][C]-1.3398[/C][C]0.09268[/C][/ROW]
[ROW][C]11[/C][C]0.378863[/C][C]2.9347[/C][C]0.002363[/C][/ROW]
[ROW][C]12[/C][C]-0.110365[/C][C]-0.8549[/C][C]0.198009[/C][/ROW]
[ROW][C]13[/C][C]-0.141506[/C][C]-1.0961[/C][C]0.138708[/C][/ROW]
[ROW][C]14[/C][C]0.024634[/C][C]0.1908[/C][C]0.424659[/C][/ROW]
[ROW][C]15[/C][C]-0.120013[/C][C]-0.9296[/C][C]0.178147[/C][/ROW]
[ROW][C]16[/C][C]-0.153894[/C][C]-1.1921[/C][C]0.118965[/C][/ROW]
[ROW][C]17[/C][C]-0.065412[/C][C]-0.5067[/C][C]0.307119[/C][/ROW]
[ROW][C]18[/C][C]-0.031227[/C][C]-0.2419[/C][C]0.404848[/C][/ROW]
[ROW][C]19[/C][C]0.076583[/C][C]0.5932[/C][C]0.277636[/C][/ROW]
[ROW][C]20[/C][C]-0.296484[/C][C]-2.2966[/C][C]0.012576[/C][/ROW]
[ROW][C]21[/C][C]0.122443[/C][C]0.9484[/C][C]0.173355[/C][/ROW]
[ROW][C]22[/C][C]-0.050839[/C][C]-0.3938[/C][C]0.347564[/C][/ROW]
[ROW][C]23[/C][C]0.199986[/C][C]1.5491[/C][C]0.06331[/C][/ROW]
[ROW][C]24[/C][C]-0.06292[/C][C]-0.4874[/C][C]0.313884[/C][/ROW]
[ROW][C]25[/C][C]0.026298[/C][C]0.2037[/C][C]0.419636[/C][/ROW]
[ROW][C]26[/C][C]0.077092[/C][C]0.5971[/C][C]0.276328[/C][/ROW]
[ROW][C]27[/C][C]-0.07027[/C][C]-0.5443[/C][C]0.294122[/C][/ROW]
[ROW][C]28[/C][C]-0.076009[/C][C]-0.5888[/C][C]0.279115[/C][/ROW]
[ROW][C]29[/C][C]0.070646[/C][C]0.5472[/C][C]0.293127[/C][/ROW]
[ROW][C]30[/C][C]-0.077598[/C][C]-0.6011[/C][C]0.275027[/C][/ROW]
[ROW][C]31[/C][C]-0.021178[/C][C]-0.164[/C][C]0.435125[/C][/ROW]
[ROW][C]32[/C][C]-0.10932[/C][C]-0.8468[/C][C]0.200239[/C][/ROW]
[ROW][C]33[/C][C]-0.045932[/C][C]-0.3558[/C][C]0.361625[/C][/ROW]
[ROW][C]34[/C][C]0.101929[/C][C]0.7895[/C][C]0.216452[/C][/ROW]
[ROW][C]35[/C][C]0.056112[/C][C]0.4346[/C][C]0.33269[/C][/ROW]
[ROW][C]36[/C][C]-0.057791[/C][C]-0.4476[/C][C]0.32801[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=283080&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=283080&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.577803-4.47561.7e-05
2-0.233677-1.81010.037648
3-0.239282-1.85350.034367
4-0.096547-0.74790.228735
5-0.08461-0.65540.257361
6-0.152894-1.18430.12048
7-0.148841-1.15290.126758
8-0.108418-0.83980.202178
9-0.041614-0.32230.374158
10-0.172969-1.33980.09268
110.3788632.93470.002363
12-0.110365-0.85490.198009
13-0.141506-1.09610.138708
140.0246340.19080.424659
15-0.120013-0.92960.178147
16-0.153894-1.19210.118965
17-0.065412-0.50670.307119
18-0.031227-0.24190.404848
190.0765830.59320.277636
20-0.296484-2.29660.012576
210.1224430.94840.173355
22-0.050839-0.39380.347564
230.1999861.54910.06331
24-0.06292-0.48740.313884
250.0262980.20370.419636
260.0770920.59710.276328
27-0.07027-0.54430.294122
28-0.076009-0.58880.279115
290.0706460.54720.293127
30-0.077598-0.60110.275027
31-0.021178-0.1640.435125
32-0.10932-0.84680.200239
33-0.045932-0.35580.361625
340.1019290.78950.216452
350.0561120.43460.33269
36-0.057791-0.44760.32801



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