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 computationSun, 25 Nov 2012 09:55:07 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Nov/25/t13538553273wwjkgzp2vh3clb.htm/, Retrieved Mon, 29 Apr 2024 07:19:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=192702, Retrieved Mon, 29 Apr 2024 07:19:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact106
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [] [2008-12-08 19:22:39] [d2d412c7f4d35ffbf5ee5ee89db327d4]
- RMP   [(Partial) Autocorrelation Function] [] [2011-12-06 19:50:56] [b98453cac15ba1066b407e146608df68]
- R  D      [(Partial) Autocorrelation Function] [ws9] [2012-11-25 14:55:07] [0fc4686e0b584a6b9d6d9039dcebbcd5] [Current]
Feedback Forum

Post a new message
Dataseries X:
55362
873127
1107897
1555964
1671159
1493308
2957796
2638691
1305669
1280496
921900
867888
652586
913831
1108544
1555827
1699283
1509458
3268975
2425016
1312703
1365498
934453
775019
651142
843192
1146766
1652601
1465906
1652734
2922334
2702805
1458956
1410363
1019279
936574
708917
885295
1099663
1576220
1487870
1488635
2882530
2677026
1404398
1344370
936865
872705
628151
953712
1160384
1400618
1661511
1495347
2918786
2775677
1407026
1370199
964526
850851
683118
847224
1073256
1514326
1503734
1507712
2865698
2788128
1391596
1366378
946295
859626




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=192702&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'Herman Ole Andreas Wold' @ wold.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.19035-1.47440.072795
20.1282660.99350.162217
30.0585320.45340.325953
4-0.004423-0.03430.486391
50.0601160.46570.321575
60.1255060.97220.167436
7-0.236219-1.82970.036129
8-0.032543-0.25210.400922
90.0181890.14090.444215
10-0.147581-1.14320.128758
110.0680140.52680.300125
12-0.289574-2.2430.0143
130.0341360.26440.396183
140.0168970.13090.448152
150.0454190.35180.363106
16-0.123672-0.9580.170964
170.1231490.95390.17198
18-0.080981-0.62730.266428
190.1735181.34410.091993
200.103340.80050.213298
210.1160760.89910.186092
220.0204450.15840.437351
230.1968241.52460.066307
24-0.021063-0.16320.435474
250.0164110.12710.449636
26-0.019509-0.15110.440195
27-0.103263-0.79990.21347
280.0176880.1370.445741
29-0.122035-0.94530.174153
30-0.158061-1.22430.112805
310.023650.18320.427634
320.0116190.090.464292
33-0.192822-1.49360.070261
340.070890.54910.292484
35-0.135956-1.05310.148257
360.0172590.13370.447047

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.19035 & -1.4744 & 0.072795 \tabularnewline
2 & 0.128266 & 0.9935 & 0.162217 \tabularnewline
3 & 0.058532 & 0.4534 & 0.325953 \tabularnewline
4 & -0.004423 & -0.0343 & 0.486391 \tabularnewline
5 & 0.060116 & 0.4657 & 0.321575 \tabularnewline
6 & 0.125506 & 0.9722 & 0.167436 \tabularnewline
7 & -0.236219 & -1.8297 & 0.036129 \tabularnewline
8 & -0.032543 & -0.2521 & 0.400922 \tabularnewline
9 & 0.018189 & 0.1409 & 0.444215 \tabularnewline
10 & -0.147581 & -1.1432 & 0.128758 \tabularnewline
11 & 0.068014 & 0.5268 & 0.300125 \tabularnewline
12 & -0.289574 & -2.243 & 0.0143 \tabularnewline
13 & 0.034136 & 0.2644 & 0.396183 \tabularnewline
14 & 0.016897 & 0.1309 & 0.448152 \tabularnewline
15 & 0.045419 & 0.3518 & 0.363106 \tabularnewline
16 & -0.123672 & -0.958 & 0.170964 \tabularnewline
17 & 0.123149 & 0.9539 & 0.17198 \tabularnewline
18 & -0.080981 & -0.6273 & 0.266428 \tabularnewline
19 & 0.173518 & 1.3441 & 0.091993 \tabularnewline
20 & 0.10334 & 0.8005 & 0.213298 \tabularnewline
21 & 0.116076 & 0.8991 & 0.186092 \tabularnewline
22 & 0.020445 & 0.1584 & 0.437351 \tabularnewline
23 & 0.196824 & 1.5246 & 0.066307 \tabularnewline
24 & -0.021063 & -0.1632 & 0.435474 \tabularnewline
25 & 0.016411 & 0.1271 & 0.449636 \tabularnewline
26 & -0.019509 & -0.1511 & 0.440195 \tabularnewline
27 & -0.103263 & -0.7999 & 0.21347 \tabularnewline
28 & 0.017688 & 0.137 & 0.445741 \tabularnewline
29 & -0.122035 & -0.9453 & 0.174153 \tabularnewline
30 & -0.158061 & -1.2243 & 0.112805 \tabularnewline
31 & 0.02365 & 0.1832 & 0.427634 \tabularnewline
32 & 0.011619 & 0.09 & 0.464292 \tabularnewline
33 & -0.192822 & -1.4936 & 0.070261 \tabularnewline
34 & 0.07089 & 0.5491 & 0.292484 \tabularnewline
35 & -0.135956 & -1.0531 & 0.148257 \tabularnewline
36 & 0.017259 & 0.1337 & 0.447047 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=192702&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.19035[/C][C]-1.4744[/C][C]0.072795[/C][/ROW]
[ROW][C]2[/C][C]0.128266[/C][C]0.9935[/C][C]0.162217[/C][/ROW]
[ROW][C]3[/C][C]0.058532[/C][C]0.4534[/C][C]0.325953[/C][/ROW]
[ROW][C]4[/C][C]-0.004423[/C][C]-0.0343[/C][C]0.486391[/C][/ROW]
[ROW][C]5[/C][C]0.060116[/C][C]0.4657[/C][C]0.321575[/C][/ROW]
[ROW][C]6[/C][C]0.125506[/C][C]0.9722[/C][C]0.167436[/C][/ROW]
[ROW][C]7[/C][C]-0.236219[/C][C]-1.8297[/C][C]0.036129[/C][/ROW]
[ROW][C]8[/C][C]-0.032543[/C][C]-0.2521[/C][C]0.400922[/C][/ROW]
[ROW][C]9[/C][C]0.018189[/C][C]0.1409[/C][C]0.444215[/C][/ROW]
[ROW][C]10[/C][C]-0.147581[/C][C]-1.1432[/C][C]0.128758[/C][/ROW]
[ROW][C]11[/C][C]0.068014[/C][C]0.5268[/C][C]0.300125[/C][/ROW]
[ROW][C]12[/C][C]-0.289574[/C][C]-2.243[/C][C]0.0143[/C][/ROW]
[ROW][C]13[/C][C]0.034136[/C][C]0.2644[/C][C]0.396183[/C][/ROW]
[ROW][C]14[/C][C]0.016897[/C][C]0.1309[/C][C]0.448152[/C][/ROW]
[ROW][C]15[/C][C]0.045419[/C][C]0.3518[/C][C]0.363106[/C][/ROW]
[ROW][C]16[/C][C]-0.123672[/C][C]-0.958[/C][C]0.170964[/C][/ROW]
[ROW][C]17[/C][C]0.123149[/C][C]0.9539[/C][C]0.17198[/C][/ROW]
[ROW][C]18[/C][C]-0.080981[/C][C]-0.6273[/C][C]0.266428[/C][/ROW]
[ROW][C]19[/C][C]0.173518[/C][C]1.3441[/C][C]0.091993[/C][/ROW]
[ROW][C]20[/C][C]0.10334[/C][C]0.8005[/C][C]0.213298[/C][/ROW]
[ROW][C]21[/C][C]0.116076[/C][C]0.8991[/C][C]0.186092[/C][/ROW]
[ROW][C]22[/C][C]0.020445[/C][C]0.1584[/C][C]0.437351[/C][/ROW]
[ROW][C]23[/C][C]0.196824[/C][C]1.5246[/C][C]0.066307[/C][/ROW]
[ROW][C]24[/C][C]-0.021063[/C][C]-0.1632[/C][C]0.435474[/C][/ROW]
[ROW][C]25[/C][C]0.016411[/C][C]0.1271[/C][C]0.449636[/C][/ROW]
[ROW][C]26[/C][C]-0.019509[/C][C]-0.1511[/C][C]0.440195[/C][/ROW]
[ROW][C]27[/C][C]-0.103263[/C][C]-0.7999[/C][C]0.21347[/C][/ROW]
[ROW][C]28[/C][C]0.017688[/C][C]0.137[/C][C]0.445741[/C][/ROW]
[ROW][C]29[/C][C]-0.122035[/C][C]-0.9453[/C][C]0.174153[/C][/ROW]
[ROW][C]30[/C][C]-0.158061[/C][C]-1.2243[/C][C]0.112805[/C][/ROW]
[ROW][C]31[/C][C]0.02365[/C][C]0.1832[/C][C]0.427634[/C][/ROW]
[ROW][C]32[/C][C]0.011619[/C][C]0.09[/C][C]0.464292[/C][/ROW]
[ROW][C]33[/C][C]-0.192822[/C][C]-1.4936[/C][C]0.070261[/C][/ROW]
[ROW][C]34[/C][C]0.07089[/C][C]0.5491[/C][C]0.292484[/C][/ROW]
[ROW][C]35[/C][C]-0.135956[/C][C]-1.0531[/C][C]0.148257[/C][/ROW]
[ROW][C]36[/C][C]0.017259[/C][C]0.1337[/C][C]0.447047[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=192702&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=192702&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.19035-1.47440.072795
20.1282660.99350.162217
30.0585320.45340.325953
4-0.004423-0.03430.486391
50.0601160.46570.321575
60.1255060.97220.167436
7-0.236219-1.82970.036129
8-0.032543-0.25210.400922
90.0181890.14090.444215
10-0.147581-1.14320.128758
110.0680140.52680.300125
12-0.289574-2.2430.0143
130.0341360.26440.396183
140.0168970.13090.448152
150.0454190.35180.363106
16-0.123672-0.9580.170964
170.1231490.95390.17198
18-0.080981-0.62730.266428
190.1735181.34410.091993
200.103340.80050.213298
210.1160760.89910.186092
220.0204450.15840.437351
230.1968241.52460.066307
24-0.021063-0.16320.435474
250.0164110.12710.449636
26-0.019509-0.15110.440195
27-0.103263-0.79990.21347
280.0176880.1370.445741
29-0.122035-0.94530.174153
30-0.158061-1.22430.112805
310.023650.18320.427634
320.0116190.090.464292
33-0.192822-1.49360.070261
340.070890.54910.292484
35-0.135956-1.05310.148257
360.0172590.13370.447047







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.19035-1.47440.072795
20.0954930.73970.231188
30.103450.80130.213053
40.0120570.09340.46295
50.043930.34030.367417
60.1452251.12490.132553
7-0.216619-1.67790.049282
8-0.17079-1.32290.095439
90.0253780.19660.422411
10-0.098722-0.76470.223724
110.0175130.13570.446275
12-0.25709-1.99140.025497
130.0221220.17140.43226
140.0716090.55470.290586
150.0710210.55010.292137
16-0.110523-0.85610.197672
170.0652870.50570.307457
180.0364590.28240.389299
190.0476420.3690.3567
200.0812810.62960.265674
210.2119761.6420.052915
220.0343840.26630.395447
230.1506681.16710.1239
24-0.053944-0.41780.338775
25-0.050465-0.39090.348628
26-0.078212-0.60580.273457
27-0.072121-0.55860.289242
28-0.052592-0.40740.342591
29-0.080558-0.6240.267496
30-0.162262-1.25690.106835
310.1256310.97310.167198
320.1605631.24370.10922
33-0.075887-0.58780.279429
34-0.089221-0.69110.246083
350.0265510.20570.418877
36-0.029325-0.22710.410541

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.19035 & -1.4744 & 0.072795 \tabularnewline
2 & 0.095493 & 0.7397 & 0.231188 \tabularnewline
3 & 0.10345 & 0.8013 & 0.213053 \tabularnewline
4 & 0.012057 & 0.0934 & 0.46295 \tabularnewline
5 & 0.04393 & 0.3403 & 0.367417 \tabularnewline
6 & 0.145225 & 1.1249 & 0.132553 \tabularnewline
7 & -0.216619 & -1.6779 & 0.049282 \tabularnewline
8 & -0.17079 & -1.3229 & 0.095439 \tabularnewline
9 & 0.025378 & 0.1966 & 0.422411 \tabularnewline
10 & -0.098722 & -0.7647 & 0.223724 \tabularnewline
11 & 0.017513 & 0.1357 & 0.446275 \tabularnewline
12 & -0.25709 & -1.9914 & 0.025497 \tabularnewline
13 & 0.022122 & 0.1714 & 0.43226 \tabularnewline
14 & 0.071609 & 0.5547 & 0.290586 \tabularnewline
15 & 0.071021 & 0.5501 & 0.292137 \tabularnewline
16 & -0.110523 & -0.8561 & 0.197672 \tabularnewline
17 & 0.065287 & 0.5057 & 0.307457 \tabularnewline
18 & 0.036459 & 0.2824 & 0.389299 \tabularnewline
19 & 0.047642 & 0.369 & 0.3567 \tabularnewline
20 & 0.081281 & 0.6296 & 0.265674 \tabularnewline
21 & 0.211976 & 1.642 & 0.052915 \tabularnewline
22 & 0.034384 & 0.2663 & 0.395447 \tabularnewline
23 & 0.150668 & 1.1671 & 0.1239 \tabularnewline
24 & -0.053944 & -0.4178 & 0.338775 \tabularnewline
25 & -0.050465 & -0.3909 & 0.348628 \tabularnewline
26 & -0.078212 & -0.6058 & 0.273457 \tabularnewline
27 & -0.072121 & -0.5586 & 0.289242 \tabularnewline
28 & -0.052592 & -0.4074 & 0.342591 \tabularnewline
29 & -0.080558 & -0.624 & 0.267496 \tabularnewline
30 & -0.162262 & -1.2569 & 0.106835 \tabularnewline
31 & 0.125631 & 0.9731 & 0.167198 \tabularnewline
32 & 0.160563 & 1.2437 & 0.10922 \tabularnewline
33 & -0.075887 & -0.5878 & 0.279429 \tabularnewline
34 & -0.089221 & -0.6911 & 0.246083 \tabularnewline
35 & 0.026551 & 0.2057 & 0.418877 \tabularnewline
36 & -0.029325 & -0.2271 & 0.410541 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=192702&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.19035[/C][C]-1.4744[/C][C]0.072795[/C][/ROW]
[ROW][C]2[/C][C]0.095493[/C][C]0.7397[/C][C]0.231188[/C][/ROW]
[ROW][C]3[/C][C]0.10345[/C][C]0.8013[/C][C]0.213053[/C][/ROW]
[ROW][C]4[/C][C]0.012057[/C][C]0.0934[/C][C]0.46295[/C][/ROW]
[ROW][C]5[/C][C]0.04393[/C][C]0.3403[/C][C]0.367417[/C][/ROW]
[ROW][C]6[/C][C]0.145225[/C][C]1.1249[/C][C]0.132553[/C][/ROW]
[ROW][C]7[/C][C]-0.216619[/C][C]-1.6779[/C][C]0.049282[/C][/ROW]
[ROW][C]8[/C][C]-0.17079[/C][C]-1.3229[/C][C]0.095439[/C][/ROW]
[ROW][C]9[/C][C]0.025378[/C][C]0.1966[/C][C]0.422411[/C][/ROW]
[ROW][C]10[/C][C]-0.098722[/C][C]-0.7647[/C][C]0.223724[/C][/ROW]
[ROW][C]11[/C][C]0.017513[/C][C]0.1357[/C][C]0.446275[/C][/ROW]
[ROW][C]12[/C][C]-0.25709[/C][C]-1.9914[/C][C]0.025497[/C][/ROW]
[ROW][C]13[/C][C]0.022122[/C][C]0.1714[/C][C]0.43226[/C][/ROW]
[ROW][C]14[/C][C]0.071609[/C][C]0.5547[/C][C]0.290586[/C][/ROW]
[ROW][C]15[/C][C]0.071021[/C][C]0.5501[/C][C]0.292137[/C][/ROW]
[ROW][C]16[/C][C]-0.110523[/C][C]-0.8561[/C][C]0.197672[/C][/ROW]
[ROW][C]17[/C][C]0.065287[/C][C]0.5057[/C][C]0.307457[/C][/ROW]
[ROW][C]18[/C][C]0.036459[/C][C]0.2824[/C][C]0.389299[/C][/ROW]
[ROW][C]19[/C][C]0.047642[/C][C]0.369[/C][C]0.3567[/C][/ROW]
[ROW][C]20[/C][C]0.081281[/C][C]0.6296[/C][C]0.265674[/C][/ROW]
[ROW][C]21[/C][C]0.211976[/C][C]1.642[/C][C]0.052915[/C][/ROW]
[ROW][C]22[/C][C]0.034384[/C][C]0.2663[/C][C]0.395447[/C][/ROW]
[ROW][C]23[/C][C]0.150668[/C][C]1.1671[/C][C]0.1239[/C][/ROW]
[ROW][C]24[/C][C]-0.053944[/C][C]-0.4178[/C][C]0.338775[/C][/ROW]
[ROW][C]25[/C][C]-0.050465[/C][C]-0.3909[/C][C]0.348628[/C][/ROW]
[ROW][C]26[/C][C]-0.078212[/C][C]-0.6058[/C][C]0.273457[/C][/ROW]
[ROW][C]27[/C][C]-0.072121[/C][C]-0.5586[/C][C]0.289242[/C][/ROW]
[ROW][C]28[/C][C]-0.052592[/C][C]-0.4074[/C][C]0.342591[/C][/ROW]
[ROW][C]29[/C][C]-0.080558[/C][C]-0.624[/C][C]0.267496[/C][/ROW]
[ROW][C]30[/C][C]-0.162262[/C][C]-1.2569[/C][C]0.106835[/C][/ROW]
[ROW][C]31[/C][C]0.125631[/C][C]0.9731[/C][C]0.167198[/C][/ROW]
[ROW][C]32[/C][C]0.160563[/C][C]1.2437[/C][C]0.10922[/C][/ROW]
[ROW][C]33[/C][C]-0.075887[/C][C]-0.5878[/C][C]0.279429[/C][/ROW]
[ROW][C]34[/C][C]-0.089221[/C][C]-0.6911[/C][C]0.246083[/C][/ROW]
[ROW][C]35[/C][C]0.026551[/C][C]0.2057[/C][C]0.418877[/C][/ROW]
[ROW][C]36[/C][C]-0.029325[/C][C]-0.2271[/C][C]0.410541[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=192702&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=192702&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.19035-1.47440.072795
20.0954930.73970.231188
30.103450.80130.213053
40.0120570.09340.46295
50.043930.34030.367417
60.1452251.12490.132553
7-0.216619-1.67790.049282
8-0.17079-1.32290.095439
90.0253780.19660.422411
10-0.098722-0.76470.223724
110.0175130.13570.446275
12-0.25709-1.99140.025497
130.0221220.17140.43226
140.0716090.55470.290586
150.0710210.55010.292137
16-0.110523-0.85610.197672
170.0652870.50570.307457
180.0364590.28240.389299
190.0476420.3690.3567
200.0812810.62960.265674
210.2119761.6420.052915
220.0343840.26630.395447
230.1506681.16710.1239
24-0.053944-0.41780.338775
25-0.050465-0.39090.348628
26-0.078212-0.60580.273457
27-0.072121-0.55860.289242
28-0.052592-0.40740.342591
29-0.080558-0.6240.267496
30-0.162262-1.25690.106835
310.1256310.97310.167198
320.1605631.24370.10922
33-0.075887-0.58780.279429
34-0.089221-0.69110.246083
350.0265510.20570.418877
36-0.029325-0.22710.410541



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