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 computationSat, 26 Dec 2009 09:58:38 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/26/t12618468045qsitc9r5u6oejd.htm/, Retrieved Mon, 29 Apr 2024 07:22:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70764, Retrieved Mon, 29 Apr 2024 07:22:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact197
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [Paper] [2009-12-21 20:42:12] [0df1a6455bedfaf424729b1e006090d0]
- RMPD    [(Partial) Autocorrelation Function] [Paper] [2009-12-26 16:58:38] [e2f800c9186517d2e5c4a809848912a7] [Current]
Feedback Forum

Post a new message
Dataseries X:
1.2613
1.2646
1.2262
1.1985
1.2007
1.2138
1.2266
1.2176
1.2218
1.249
1.2991
1.3408
1.3119
1.3014
1.3201
1.2938
1.2694
1.2165
1.2037
1.2292
1.2256
1.2015
1.1786
1.1856
1.2103
1.1938
1.202
1.2271
1.277
1.265
1.2684
1.2811
1.2727
1.2611
1.2881
1.3213
1.2999
1.3074
1.3242
1.3516
1.3511
1.3419
1.3716
1.3622
1.3896
1.4227
1.4684
1.457
1.4718
1.4748
1.5527
1.5751
1.5557
1.5553
1.577
1.4975
1.437
1.3322
1.2732
1.3449




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70764&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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.123377-0.83680.203521
2-0.22667-1.53740.065529
3-0.15171-1.02890.154442
40.0662630.44940.32762
50.078990.53570.297362
6-0.011748-0.07970.468418
7-0.135383-0.91820.181649
8-0.104875-0.71130.240246
90.1299410.88130.191368
100.031780.21550.415149
110.1531071.03840.152251
12-0.301813-2.0470.023198
13-0.023293-0.1580.437581
140.0759820.51530.304393
150.1347750.91410.182719
16-0.082227-0.55770.28988
17-0.009818-0.06660.473597
180.1125790.76350.224517
19-0.099833-0.67710.250868
200.0100340.06810.473019
210.0398170.27010.394164
220.0364740.24740.402857
23-0.112124-0.76050.225429
24-0.047715-0.32360.373847
250.069270.46980.320355
260.1264660.85770.197744
27-0.019622-0.13310.447354
28-0.15247-1.03410.153247
29-0.063021-0.42740.33553
300.019530.13250.447598
310.0543560.36870.357035
320.0754150.51150.305728
33-0.161932-1.09830.1389
340.0250630.170.432883
350.1394450.94580.174606
360.0963960.65380.258251

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.123377 & -0.8368 & 0.203521 \tabularnewline
2 & -0.22667 & -1.5374 & 0.065529 \tabularnewline
3 & -0.15171 & -1.0289 & 0.154442 \tabularnewline
4 & 0.066263 & 0.4494 & 0.32762 \tabularnewline
5 & 0.07899 & 0.5357 & 0.297362 \tabularnewline
6 & -0.011748 & -0.0797 & 0.468418 \tabularnewline
7 & -0.135383 & -0.9182 & 0.181649 \tabularnewline
8 & -0.104875 & -0.7113 & 0.240246 \tabularnewline
9 & 0.129941 & 0.8813 & 0.191368 \tabularnewline
10 & 0.03178 & 0.2155 & 0.415149 \tabularnewline
11 & 0.153107 & 1.0384 & 0.152251 \tabularnewline
12 & -0.301813 & -2.047 & 0.023198 \tabularnewline
13 & -0.023293 & -0.158 & 0.437581 \tabularnewline
14 & 0.075982 & 0.5153 & 0.304393 \tabularnewline
15 & 0.134775 & 0.9141 & 0.182719 \tabularnewline
16 & -0.082227 & -0.5577 & 0.28988 \tabularnewline
17 & -0.009818 & -0.0666 & 0.473597 \tabularnewline
18 & 0.112579 & 0.7635 & 0.224517 \tabularnewline
19 & -0.099833 & -0.6771 & 0.250868 \tabularnewline
20 & 0.010034 & 0.0681 & 0.473019 \tabularnewline
21 & 0.039817 & 0.2701 & 0.394164 \tabularnewline
22 & 0.036474 & 0.2474 & 0.402857 \tabularnewline
23 & -0.112124 & -0.7605 & 0.225429 \tabularnewline
24 & -0.047715 & -0.3236 & 0.373847 \tabularnewline
25 & 0.06927 & 0.4698 & 0.320355 \tabularnewline
26 & 0.126466 & 0.8577 & 0.197744 \tabularnewline
27 & -0.019622 & -0.1331 & 0.447354 \tabularnewline
28 & -0.15247 & -1.0341 & 0.153247 \tabularnewline
29 & -0.063021 & -0.4274 & 0.33553 \tabularnewline
30 & 0.01953 & 0.1325 & 0.447598 \tabularnewline
31 & 0.054356 & 0.3687 & 0.357035 \tabularnewline
32 & 0.075415 & 0.5115 & 0.305728 \tabularnewline
33 & -0.161932 & -1.0983 & 0.1389 \tabularnewline
34 & 0.025063 & 0.17 & 0.432883 \tabularnewline
35 & 0.139445 & 0.9458 & 0.174606 \tabularnewline
36 & 0.096396 & 0.6538 & 0.258251 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70764&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.123377[/C][C]-0.8368[/C][C]0.203521[/C][/ROW]
[ROW][C]2[/C][C]-0.22667[/C][C]-1.5374[/C][C]0.065529[/C][/ROW]
[ROW][C]3[/C][C]-0.15171[/C][C]-1.0289[/C][C]0.154442[/C][/ROW]
[ROW][C]4[/C][C]0.066263[/C][C]0.4494[/C][C]0.32762[/C][/ROW]
[ROW][C]5[/C][C]0.07899[/C][C]0.5357[/C][C]0.297362[/C][/ROW]
[ROW][C]6[/C][C]-0.011748[/C][C]-0.0797[/C][C]0.468418[/C][/ROW]
[ROW][C]7[/C][C]-0.135383[/C][C]-0.9182[/C][C]0.181649[/C][/ROW]
[ROW][C]8[/C][C]-0.104875[/C][C]-0.7113[/C][C]0.240246[/C][/ROW]
[ROW][C]9[/C][C]0.129941[/C][C]0.8813[/C][C]0.191368[/C][/ROW]
[ROW][C]10[/C][C]0.03178[/C][C]0.2155[/C][C]0.415149[/C][/ROW]
[ROW][C]11[/C][C]0.153107[/C][C]1.0384[/C][C]0.152251[/C][/ROW]
[ROW][C]12[/C][C]-0.301813[/C][C]-2.047[/C][C]0.023198[/C][/ROW]
[ROW][C]13[/C][C]-0.023293[/C][C]-0.158[/C][C]0.437581[/C][/ROW]
[ROW][C]14[/C][C]0.075982[/C][C]0.5153[/C][C]0.304393[/C][/ROW]
[ROW][C]15[/C][C]0.134775[/C][C]0.9141[/C][C]0.182719[/C][/ROW]
[ROW][C]16[/C][C]-0.082227[/C][C]-0.5577[/C][C]0.28988[/C][/ROW]
[ROW][C]17[/C][C]-0.009818[/C][C]-0.0666[/C][C]0.473597[/C][/ROW]
[ROW][C]18[/C][C]0.112579[/C][C]0.7635[/C][C]0.224517[/C][/ROW]
[ROW][C]19[/C][C]-0.099833[/C][C]-0.6771[/C][C]0.250868[/C][/ROW]
[ROW][C]20[/C][C]0.010034[/C][C]0.0681[/C][C]0.473019[/C][/ROW]
[ROW][C]21[/C][C]0.039817[/C][C]0.2701[/C][C]0.394164[/C][/ROW]
[ROW][C]22[/C][C]0.036474[/C][C]0.2474[/C][C]0.402857[/C][/ROW]
[ROW][C]23[/C][C]-0.112124[/C][C]-0.7605[/C][C]0.225429[/C][/ROW]
[ROW][C]24[/C][C]-0.047715[/C][C]-0.3236[/C][C]0.373847[/C][/ROW]
[ROW][C]25[/C][C]0.06927[/C][C]0.4698[/C][C]0.320355[/C][/ROW]
[ROW][C]26[/C][C]0.126466[/C][C]0.8577[/C][C]0.197744[/C][/ROW]
[ROW][C]27[/C][C]-0.019622[/C][C]-0.1331[/C][C]0.447354[/C][/ROW]
[ROW][C]28[/C][C]-0.15247[/C][C]-1.0341[/C][C]0.153247[/C][/ROW]
[ROW][C]29[/C][C]-0.063021[/C][C]-0.4274[/C][C]0.33553[/C][/ROW]
[ROW][C]30[/C][C]0.01953[/C][C]0.1325[/C][C]0.447598[/C][/ROW]
[ROW][C]31[/C][C]0.054356[/C][C]0.3687[/C][C]0.357035[/C][/ROW]
[ROW][C]32[/C][C]0.075415[/C][C]0.5115[/C][C]0.305728[/C][/ROW]
[ROW][C]33[/C][C]-0.161932[/C][C]-1.0983[/C][C]0.1389[/C][/ROW]
[ROW][C]34[/C][C]0.025063[/C][C]0.17[/C][C]0.432883[/C][/ROW]
[ROW][C]35[/C][C]0.139445[/C][C]0.9458[/C][C]0.174606[/C][/ROW]
[ROW][C]36[/C][C]0.096396[/C][C]0.6538[/C][C]0.258251[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70764&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70764&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.123377-0.83680.203521
2-0.22667-1.53740.065529
3-0.15171-1.02890.154442
40.0662630.44940.32762
50.078990.53570.297362
6-0.011748-0.07970.468418
7-0.135383-0.91820.181649
8-0.104875-0.71130.240246
90.1299410.88130.191368
100.031780.21550.415149
110.1531071.03840.152251
12-0.301813-2.0470.023198
13-0.023293-0.1580.437581
140.0759820.51530.304393
150.1347750.91410.182719
16-0.082227-0.55770.28988
17-0.009818-0.06660.473597
180.1125790.76350.224517
19-0.099833-0.67710.250868
200.0100340.06810.473019
210.0398170.27010.394164
220.0364740.24740.402857
23-0.112124-0.76050.225429
24-0.047715-0.32360.373847
250.069270.46980.320355
260.1264660.85770.197744
27-0.019622-0.13310.447354
28-0.15247-1.03410.153247
29-0.063021-0.42740.33553
300.019530.13250.447598
310.0543560.36870.357035
320.0754150.51150.305728
33-0.161932-1.09830.1389
340.0250630.170.432883
350.1394450.94580.174606
360.0963960.65380.258251







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.123377-0.83680.203521
2-0.245631-1.6660.05126
3-0.234341-1.58940.059413
4-0.066935-0.4540.325992
5-0.018542-0.12580.450236
6-0.035003-0.23740.4067
7-0.137008-0.92920.178809
8-0.179445-1.21710.114895
9-0.008113-0.0550.478178
10-0.074055-0.50230.308939
110.15791.07090.144893
12-0.257018-1.74320.043992
13-0.071576-0.48550.314831
14-0.077148-0.52320.301659
15-0.002326-0.01580.49374
16-0.092446-0.6270.266881
170.0273480.18550.426833
180.1462350.99180.163239
19-0.126403-0.85730.19786
20-0.060395-0.40960.341994
210.0792710.53760.296707
220.0213410.14470.442772
23-0.003975-0.0270.489305
24-0.140204-0.95090.17331
250.0599380.40650.343122
260.0791630.53690.296958
270.0554950.37640.354181
28-0.112184-0.76090.225309
29-0.114817-0.77870.220064
300.0137250.09310.463118
31-0.133054-0.90240.185768
320.0011350.00770.496946
33-0.175523-1.19050.119987
340.0809230.54880.292882
350.0270890.18370.427517
36-0.049536-0.3360.369211

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.123377 & -0.8368 & 0.203521 \tabularnewline
2 & -0.245631 & -1.666 & 0.05126 \tabularnewline
3 & -0.234341 & -1.5894 & 0.059413 \tabularnewline
4 & -0.066935 & -0.454 & 0.325992 \tabularnewline
5 & -0.018542 & -0.1258 & 0.450236 \tabularnewline
6 & -0.035003 & -0.2374 & 0.4067 \tabularnewline
7 & -0.137008 & -0.9292 & 0.178809 \tabularnewline
8 & -0.179445 & -1.2171 & 0.114895 \tabularnewline
9 & -0.008113 & -0.055 & 0.478178 \tabularnewline
10 & -0.074055 & -0.5023 & 0.308939 \tabularnewline
11 & 0.1579 & 1.0709 & 0.144893 \tabularnewline
12 & -0.257018 & -1.7432 & 0.043992 \tabularnewline
13 & -0.071576 & -0.4855 & 0.314831 \tabularnewline
14 & -0.077148 & -0.5232 & 0.301659 \tabularnewline
15 & -0.002326 & -0.0158 & 0.49374 \tabularnewline
16 & -0.092446 & -0.627 & 0.266881 \tabularnewline
17 & 0.027348 & 0.1855 & 0.426833 \tabularnewline
18 & 0.146235 & 0.9918 & 0.163239 \tabularnewline
19 & -0.126403 & -0.8573 & 0.19786 \tabularnewline
20 & -0.060395 & -0.4096 & 0.341994 \tabularnewline
21 & 0.079271 & 0.5376 & 0.296707 \tabularnewline
22 & 0.021341 & 0.1447 & 0.442772 \tabularnewline
23 & -0.003975 & -0.027 & 0.489305 \tabularnewline
24 & -0.140204 & -0.9509 & 0.17331 \tabularnewline
25 & 0.059938 & 0.4065 & 0.343122 \tabularnewline
26 & 0.079163 & 0.5369 & 0.296958 \tabularnewline
27 & 0.055495 & 0.3764 & 0.354181 \tabularnewline
28 & -0.112184 & -0.7609 & 0.225309 \tabularnewline
29 & -0.114817 & -0.7787 & 0.220064 \tabularnewline
30 & 0.013725 & 0.0931 & 0.463118 \tabularnewline
31 & -0.133054 & -0.9024 & 0.185768 \tabularnewline
32 & 0.001135 & 0.0077 & 0.496946 \tabularnewline
33 & -0.175523 & -1.1905 & 0.119987 \tabularnewline
34 & 0.080923 & 0.5488 & 0.292882 \tabularnewline
35 & 0.027089 & 0.1837 & 0.427517 \tabularnewline
36 & -0.049536 & -0.336 & 0.369211 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70764&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.123377[/C][C]-0.8368[/C][C]0.203521[/C][/ROW]
[ROW][C]2[/C][C]-0.245631[/C][C]-1.666[/C][C]0.05126[/C][/ROW]
[ROW][C]3[/C][C]-0.234341[/C][C]-1.5894[/C][C]0.059413[/C][/ROW]
[ROW][C]4[/C][C]-0.066935[/C][C]-0.454[/C][C]0.325992[/C][/ROW]
[ROW][C]5[/C][C]-0.018542[/C][C]-0.1258[/C][C]0.450236[/C][/ROW]
[ROW][C]6[/C][C]-0.035003[/C][C]-0.2374[/C][C]0.4067[/C][/ROW]
[ROW][C]7[/C][C]-0.137008[/C][C]-0.9292[/C][C]0.178809[/C][/ROW]
[ROW][C]8[/C][C]-0.179445[/C][C]-1.2171[/C][C]0.114895[/C][/ROW]
[ROW][C]9[/C][C]-0.008113[/C][C]-0.055[/C][C]0.478178[/C][/ROW]
[ROW][C]10[/C][C]-0.074055[/C][C]-0.5023[/C][C]0.308939[/C][/ROW]
[ROW][C]11[/C][C]0.1579[/C][C]1.0709[/C][C]0.144893[/C][/ROW]
[ROW][C]12[/C][C]-0.257018[/C][C]-1.7432[/C][C]0.043992[/C][/ROW]
[ROW][C]13[/C][C]-0.071576[/C][C]-0.4855[/C][C]0.314831[/C][/ROW]
[ROW][C]14[/C][C]-0.077148[/C][C]-0.5232[/C][C]0.301659[/C][/ROW]
[ROW][C]15[/C][C]-0.002326[/C][C]-0.0158[/C][C]0.49374[/C][/ROW]
[ROW][C]16[/C][C]-0.092446[/C][C]-0.627[/C][C]0.266881[/C][/ROW]
[ROW][C]17[/C][C]0.027348[/C][C]0.1855[/C][C]0.426833[/C][/ROW]
[ROW][C]18[/C][C]0.146235[/C][C]0.9918[/C][C]0.163239[/C][/ROW]
[ROW][C]19[/C][C]-0.126403[/C][C]-0.8573[/C][C]0.19786[/C][/ROW]
[ROW][C]20[/C][C]-0.060395[/C][C]-0.4096[/C][C]0.341994[/C][/ROW]
[ROW][C]21[/C][C]0.079271[/C][C]0.5376[/C][C]0.296707[/C][/ROW]
[ROW][C]22[/C][C]0.021341[/C][C]0.1447[/C][C]0.442772[/C][/ROW]
[ROW][C]23[/C][C]-0.003975[/C][C]-0.027[/C][C]0.489305[/C][/ROW]
[ROW][C]24[/C][C]-0.140204[/C][C]-0.9509[/C][C]0.17331[/C][/ROW]
[ROW][C]25[/C][C]0.059938[/C][C]0.4065[/C][C]0.343122[/C][/ROW]
[ROW][C]26[/C][C]0.079163[/C][C]0.5369[/C][C]0.296958[/C][/ROW]
[ROW][C]27[/C][C]0.055495[/C][C]0.3764[/C][C]0.354181[/C][/ROW]
[ROW][C]28[/C][C]-0.112184[/C][C]-0.7609[/C][C]0.225309[/C][/ROW]
[ROW][C]29[/C][C]-0.114817[/C][C]-0.7787[/C][C]0.220064[/C][/ROW]
[ROW][C]30[/C][C]0.013725[/C][C]0.0931[/C][C]0.463118[/C][/ROW]
[ROW][C]31[/C][C]-0.133054[/C][C]-0.9024[/C][C]0.185768[/C][/ROW]
[ROW][C]32[/C][C]0.001135[/C][C]0.0077[/C][C]0.496946[/C][/ROW]
[ROW][C]33[/C][C]-0.175523[/C][C]-1.1905[/C][C]0.119987[/C][/ROW]
[ROW][C]34[/C][C]0.080923[/C][C]0.5488[/C][C]0.292882[/C][/ROW]
[ROW][C]35[/C][C]0.027089[/C][C]0.1837[/C][C]0.427517[/C][/ROW]
[ROW][C]36[/C][C]-0.049536[/C][C]-0.336[/C][C]0.369211[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70764&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70764&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.123377-0.83680.203521
2-0.245631-1.6660.05126
3-0.234341-1.58940.059413
4-0.066935-0.4540.325992
5-0.018542-0.12580.450236
6-0.035003-0.23740.4067
7-0.137008-0.92920.178809
8-0.179445-1.21710.114895
9-0.008113-0.0550.478178
10-0.074055-0.50230.308939
110.15791.07090.144893
12-0.257018-1.74320.043992
13-0.071576-0.48550.314831
14-0.077148-0.52320.301659
15-0.002326-0.01580.49374
16-0.092446-0.6270.266881
170.0273480.18550.426833
180.1462350.99180.163239
19-0.126403-0.85730.19786
20-0.060395-0.40960.341994
210.0792710.53760.296707
220.0213410.14470.442772
23-0.003975-0.0270.489305
24-0.140204-0.95090.17331
250.0599380.40650.343122
260.0791630.53690.296958
270.0554950.37640.354181
28-0.112184-0.76090.225309
29-0.114817-0.77870.220064
300.0137250.09310.463118
31-0.133054-0.90240.185768
320.0011350.00770.496946
33-0.175523-1.19050.119987
340.0809230.54880.292882
350.0270890.18370.427517
36-0.049536-0.3360.369211



Parameters (Session):
par1 = 1 ;
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 2 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
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 (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
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')