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 computationFri, 27 Nov 2009 11:43:31 -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/Nov/27/t12593474912k6mbza5nppvhvk.htm/, Retrieved Sun, 28 Apr 2024 22:39:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61108, Retrieved Sun, 28 Apr 2024 22:39:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKVN WS8
Estimated Impact136
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-12 13:32:37] [76963dc1903f0f612b6153510a3818cf]
- R  D  [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-17 12:14:40] [76963dc1903f0f612b6153510a3818cf]
-         [Univariate Explorative Data Analysis] [Run Sequence Plot...] [2008-12-22 18:19:51] [1ce0d16c8f4225c977b42c8fa93bc163]
- RMP       [(Partial) Autocorrelation Function] [Identifying Integ...] [2009-11-22 12:16:10] [b98453cac15ba1066b407e146608df68]
-   PD          [(Partial) Autocorrelation Function] [ACF D=1 WS8] [2009-11-27 18:43:31] [f1100e00818182135823a11ccbd0f3b9] [Current]
Feedback Forum

Post a new message
Dataseries X:
9487
8700
9627
8947
9283
8829
9947
9628
9318
9605
8640
9214
9567
8547
9185
9470
9123
9278
10170
9434
9655
9429
8739
9552
9687
9019
9672
9206
9069
9788
10312
10105
9863
9656
9295
9946
9701
9049
10190
9706
9765
9893
9994
10433
10073
10112
9266
9820
10097
9115
10411
9678
10408
10153
10368
10581
10597
10680
9738
9556




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61108&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' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.051707-0.35820.360869
2-0.062324-0.43180.333912
3-0.0709-0.49120.312759
4-0.066798-0.46280.322803
50.2626271.81950.037535
60.0456450.31620.376598
7-0.1594-1.10440.137473
80.0939950.65120.259005
90.1733361.20090.11784
10-0.139791-0.96850.168825
11-0.143806-0.99630.162046
12-0.131041-0.90790.184239
13-0.038176-0.26450.396267
140.2717351.88260.032909
15-0.070393-0.48770.313993
16-0.106635-0.73880.231817
170.0078730.05450.478364
180.012040.08340.466935
19-0.02901-0.2010.42078
20-0.066312-0.45940.324002
21-0.104404-0.72330.236493
220.0154830.10730.45751
230.2517171.74390.043785
24-0.114595-0.79390.215571
25-0.064242-0.44510.329131
26-0.051018-0.35350.362644
27-0.018046-0.1250.450513
280.1082070.74970.228552
29-0.037083-0.25690.399169
30-0.024861-0.17220.431985
31-0.019979-0.13840.445243
320.0820370.56840.286216
330.0265230.18380.427488
34-0.044697-0.30970.379077
350.0271450.18810.425809
36-0.090267-0.62540.267339

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.051707 & -0.3582 & 0.360869 \tabularnewline
2 & -0.062324 & -0.4318 & 0.333912 \tabularnewline
3 & -0.0709 & -0.4912 & 0.312759 \tabularnewline
4 & -0.066798 & -0.4628 & 0.322803 \tabularnewline
5 & 0.262627 & 1.8195 & 0.037535 \tabularnewline
6 & 0.045645 & 0.3162 & 0.376598 \tabularnewline
7 & -0.1594 & -1.1044 & 0.137473 \tabularnewline
8 & 0.093995 & 0.6512 & 0.259005 \tabularnewline
9 & 0.173336 & 1.2009 & 0.11784 \tabularnewline
10 & -0.139791 & -0.9685 & 0.168825 \tabularnewline
11 & -0.143806 & -0.9963 & 0.162046 \tabularnewline
12 & -0.131041 & -0.9079 & 0.184239 \tabularnewline
13 & -0.038176 & -0.2645 & 0.396267 \tabularnewline
14 & 0.271735 & 1.8826 & 0.032909 \tabularnewline
15 & -0.070393 & -0.4877 & 0.313993 \tabularnewline
16 & -0.106635 & -0.7388 & 0.231817 \tabularnewline
17 & 0.007873 & 0.0545 & 0.478364 \tabularnewline
18 & 0.01204 & 0.0834 & 0.466935 \tabularnewline
19 & -0.02901 & -0.201 & 0.42078 \tabularnewline
20 & -0.066312 & -0.4594 & 0.324002 \tabularnewline
21 & -0.104404 & -0.7233 & 0.236493 \tabularnewline
22 & 0.015483 & 0.1073 & 0.45751 \tabularnewline
23 & 0.251717 & 1.7439 & 0.043785 \tabularnewline
24 & -0.114595 & -0.7939 & 0.215571 \tabularnewline
25 & -0.064242 & -0.4451 & 0.329131 \tabularnewline
26 & -0.051018 & -0.3535 & 0.362644 \tabularnewline
27 & -0.018046 & -0.125 & 0.450513 \tabularnewline
28 & 0.108207 & 0.7497 & 0.228552 \tabularnewline
29 & -0.037083 & -0.2569 & 0.399169 \tabularnewline
30 & -0.024861 & -0.1722 & 0.431985 \tabularnewline
31 & -0.019979 & -0.1384 & 0.445243 \tabularnewline
32 & 0.082037 & 0.5684 & 0.286216 \tabularnewline
33 & 0.026523 & 0.1838 & 0.427488 \tabularnewline
34 & -0.044697 & -0.3097 & 0.379077 \tabularnewline
35 & 0.027145 & 0.1881 & 0.425809 \tabularnewline
36 & -0.090267 & -0.6254 & 0.267339 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61108&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.051707[/C][C]-0.3582[/C][C]0.360869[/C][/ROW]
[ROW][C]2[/C][C]-0.062324[/C][C]-0.4318[/C][C]0.333912[/C][/ROW]
[ROW][C]3[/C][C]-0.0709[/C][C]-0.4912[/C][C]0.312759[/C][/ROW]
[ROW][C]4[/C][C]-0.066798[/C][C]-0.4628[/C][C]0.322803[/C][/ROW]
[ROW][C]5[/C][C]0.262627[/C][C]1.8195[/C][C]0.037535[/C][/ROW]
[ROW][C]6[/C][C]0.045645[/C][C]0.3162[/C][C]0.376598[/C][/ROW]
[ROW][C]7[/C][C]-0.1594[/C][C]-1.1044[/C][C]0.137473[/C][/ROW]
[ROW][C]8[/C][C]0.093995[/C][C]0.6512[/C][C]0.259005[/C][/ROW]
[ROW][C]9[/C][C]0.173336[/C][C]1.2009[/C][C]0.11784[/C][/ROW]
[ROW][C]10[/C][C]-0.139791[/C][C]-0.9685[/C][C]0.168825[/C][/ROW]
[ROW][C]11[/C][C]-0.143806[/C][C]-0.9963[/C][C]0.162046[/C][/ROW]
[ROW][C]12[/C][C]-0.131041[/C][C]-0.9079[/C][C]0.184239[/C][/ROW]
[ROW][C]13[/C][C]-0.038176[/C][C]-0.2645[/C][C]0.396267[/C][/ROW]
[ROW][C]14[/C][C]0.271735[/C][C]1.8826[/C][C]0.032909[/C][/ROW]
[ROW][C]15[/C][C]-0.070393[/C][C]-0.4877[/C][C]0.313993[/C][/ROW]
[ROW][C]16[/C][C]-0.106635[/C][C]-0.7388[/C][C]0.231817[/C][/ROW]
[ROW][C]17[/C][C]0.007873[/C][C]0.0545[/C][C]0.478364[/C][/ROW]
[ROW][C]18[/C][C]0.01204[/C][C]0.0834[/C][C]0.466935[/C][/ROW]
[ROW][C]19[/C][C]-0.02901[/C][C]-0.201[/C][C]0.42078[/C][/ROW]
[ROW][C]20[/C][C]-0.066312[/C][C]-0.4594[/C][C]0.324002[/C][/ROW]
[ROW][C]21[/C][C]-0.104404[/C][C]-0.7233[/C][C]0.236493[/C][/ROW]
[ROW][C]22[/C][C]0.015483[/C][C]0.1073[/C][C]0.45751[/C][/ROW]
[ROW][C]23[/C][C]0.251717[/C][C]1.7439[/C][C]0.043785[/C][/ROW]
[ROW][C]24[/C][C]-0.114595[/C][C]-0.7939[/C][C]0.215571[/C][/ROW]
[ROW][C]25[/C][C]-0.064242[/C][C]-0.4451[/C][C]0.329131[/C][/ROW]
[ROW][C]26[/C][C]-0.051018[/C][C]-0.3535[/C][C]0.362644[/C][/ROW]
[ROW][C]27[/C][C]-0.018046[/C][C]-0.125[/C][C]0.450513[/C][/ROW]
[ROW][C]28[/C][C]0.108207[/C][C]0.7497[/C][C]0.228552[/C][/ROW]
[ROW][C]29[/C][C]-0.037083[/C][C]-0.2569[/C][C]0.399169[/C][/ROW]
[ROW][C]30[/C][C]-0.024861[/C][C]-0.1722[/C][C]0.431985[/C][/ROW]
[ROW][C]31[/C][C]-0.019979[/C][C]-0.1384[/C][C]0.445243[/C][/ROW]
[ROW][C]32[/C][C]0.082037[/C][C]0.5684[/C][C]0.286216[/C][/ROW]
[ROW][C]33[/C][C]0.026523[/C][C]0.1838[/C][C]0.427488[/C][/ROW]
[ROW][C]34[/C][C]-0.044697[/C][C]-0.3097[/C][C]0.379077[/C][/ROW]
[ROW][C]35[/C][C]0.027145[/C][C]0.1881[/C][C]0.425809[/C][/ROW]
[ROW][C]36[/C][C]-0.090267[/C][C]-0.6254[/C][C]0.267339[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61108&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61108&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.051707-0.35820.360869
2-0.062324-0.43180.333912
3-0.0709-0.49120.312759
4-0.066798-0.46280.322803
50.2626271.81950.037535
60.0456450.31620.376598
7-0.1594-1.10440.137473
80.0939950.65120.259005
90.1733361.20090.11784
10-0.139791-0.96850.168825
11-0.143806-0.99630.162046
12-0.131041-0.90790.184239
13-0.038176-0.26450.396267
140.2717351.88260.032909
15-0.070393-0.48770.313993
16-0.106635-0.73880.231817
170.0078730.05450.478364
180.012040.08340.466935
19-0.02901-0.2010.42078
20-0.066312-0.45940.324002
21-0.104404-0.72330.236493
220.0154830.10730.45751
230.2517171.74390.043785
24-0.114595-0.79390.215571
25-0.064242-0.44510.329131
26-0.051018-0.35350.362644
27-0.018046-0.1250.450513
280.1082070.74970.228552
29-0.037083-0.25690.399169
30-0.024861-0.17220.431985
31-0.019979-0.13840.445243
320.0820370.56840.286216
330.0265230.18380.427488
34-0.044697-0.30970.379077
350.0271450.18810.425809
36-0.090267-0.62540.267339







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.051707-0.35820.360869
2-0.065172-0.45150.326822
3-0.078243-0.54210.295135
4-0.080486-0.55760.289847
50.2483381.72050.045888
60.0635780.44050.330783
7-0.144803-1.00320.160392
80.1258470.87190.193803
90.2406741.66740.05097
10-0.235197-1.62950.054877
11-0.232987-1.61420.056522
12-0.000416-0.00290.498856
13-0.094456-0.65440.257986
140.0572220.39640.346766
150.0256060.17740.429969
160.03740.25910.398327
170.0054260.03760.485084
180.0588250.40760.342707
19-0.075063-0.52010.302709
20-0.091099-0.63110.265468
21-0.049192-0.34080.367366
22-0.103536-0.71730.238326
230.1262420.87460.193065
24-0.02116-0.14660.442029
250.001820.01260.494997
260.011760.08150.467702
270.0462330.32030.375061
28-0.044876-0.31090.378609
29-0.032284-0.22370.411981
300.0627820.4350.332768
31-0.146558-1.01540.157507
32-0.034728-0.24060.405443
330.1607611.11380.135459
340.0133770.09270.463271
350.0251650.17430.431164
36-0.036416-0.25230.400945

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.051707 & -0.3582 & 0.360869 \tabularnewline
2 & -0.065172 & -0.4515 & 0.326822 \tabularnewline
3 & -0.078243 & -0.5421 & 0.295135 \tabularnewline
4 & -0.080486 & -0.5576 & 0.289847 \tabularnewline
5 & 0.248338 & 1.7205 & 0.045888 \tabularnewline
6 & 0.063578 & 0.4405 & 0.330783 \tabularnewline
7 & -0.144803 & -1.0032 & 0.160392 \tabularnewline
8 & 0.125847 & 0.8719 & 0.193803 \tabularnewline
9 & 0.240674 & 1.6674 & 0.05097 \tabularnewline
10 & -0.235197 & -1.6295 & 0.054877 \tabularnewline
11 & -0.232987 & -1.6142 & 0.056522 \tabularnewline
12 & -0.000416 & -0.0029 & 0.498856 \tabularnewline
13 & -0.094456 & -0.6544 & 0.257986 \tabularnewline
14 & 0.057222 & 0.3964 & 0.346766 \tabularnewline
15 & 0.025606 & 0.1774 & 0.429969 \tabularnewline
16 & 0.0374 & 0.2591 & 0.398327 \tabularnewline
17 & 0.005426 & 0.0376 & 0.485084 \tabularnewline
18 & 0.058825 & 0.4076 & 0.342707 \tabularnewline
19 & -0.075063 & -0.5201 & 0.302709 \tabularnewline
20 & -0.091099 & -0.6311 & 0.265468 \tabularnewline
21 & -0.049192 & -0.3408 & 0.367366 \tabularnewline
22 & -0.103536 & -0.7173 & 0.238326 \tabularnewline
23 & 0.126242 & 0.8746 & 0.193065 \tabularnewline
24 & -0.02116 & -0.1466 & 0.442029 \tabularnewline
25 & 0.00182 & 0.0126 & 0.494997 \tabularnewline
26 & 0.01176 & 0.0815 & 0.467702 \tabularnewline
27 & 0.046233 & 0.3203 & 0.375061 \tabularnewline
28 & -0.044876 & -0.3109 & 0.378609 \tabularnewline
29 & -0.032284 & -0.2237 & 0.411981 \tabularnewline
30 & 0.062782 & 0.435 & 0.332768 \tabularnewline
31 & -0.146558 & -1.0154 & 0.157507 \tabularnewline
32 & -0.034728 & -0.2406 & 0.405443 \tabularnewline
33 & 0.160761 & 1.1138 & 0.135459 \tabularnewline
34 & 0.013377 & 0.0927 & 0.463271 \tabularnewline
35 & 0.025165 & 0.1743 & 0.431164 \tabularnewline
36 & -0.036416 & -0.2523 & 0.400945 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61108&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.051707[/C][C]-0.3582[/C][C]0.360869[/C][/ROW]
[ROW][C]2[/C][C]-0.065172[/C][C]-0.4515[/C][C]0.326822[/C][/ROW]
[ROW][C]3[/C][C]-0.078243[/C][C]-0.5421[/C][C]0.295135[/C][/ROW]
[ROW][C]4[/C][C]-0.080486[/C][C]-0.5576[/C][C]0.289847[/C][/ROW]
[ROW][C]5[/C][C]0.248338[/C][C]1.7205[/C][C]0.045888[/C][/ROW]
[ROW][C]6[/C][C]0.063578[/C][C]0.4405[/C][C]0.330783[/C][/ROW]
[ROW][C]7[/C][C]-0.144803[/C][C]-1.0032[/C][C]0.160392[/C][/ROW]
[ROW][C]8[/C][C]0.125847[/C][C]0.8719[/C][C]0.193803[/C][/ROW]
[ROW][C]9[/C][C]0.240674[/C][C]1.6674[/C][C]0.05097[/C][/ROW]
[ROW][C]10[/C][C]-0.235197[/C][C]-1.6295[/C][C]0.054877[/C][/ROW]
[ROW][C]11[/C][C]-0.232987[/C][C]-1.6142[/C][C]0.056522[/C][/ROW]
[ROW][C]12[/C][C]-0.000416[/C][C]-0.0029[/C][C]0.498856[/C][/ROW]
[ROW][C]13[/C][C]-0.094456[/C][C]-0.6544[/C][C]0.257986[/C][/ROW]
[ROW][C]14[/C][C]0.057222[/C][C]0.3964[/C][C]0.346766[/C][/ROW]
[ROW][C]15[/C][C]0.025606[/C][C]0.1774[/C][C]0.429969[/C][/ROW]
[ROW][C]16[/C][C]0.0374[/C][C]0.2591[/C][C]0.398327[/C][/ROW]
[ROW][C]17[/C][C]0.005426[/C][C]0.0376[/C][C]0.485084[/C][/ROW]
[ROW][C]18[/C][C]0.058825[/C][C]0.4076[/C][C]0.342707[/C][/ROW]
[ROW][C]19[/C][C]-0.075063[/C][C]-0.5201[/C][C]0.302709[/C][/ROW]
[ROW][C]20[/C][C]-0.091099[/C][C]-0.6311[/C][C]0.265468[/C][/ROW]
[ROW][C]21[/C][C]-0.049192[/C][C]-0.3408[/C][C]0.367366[/C][/ROW]
[ROW][C]22[/C][C]-0.103536[/C][C]-0.7173[/C][C]0.238326[/C][/ROW]
[ROW][C]23[/C][C]0.126242[/C][C]0.8746[/C][C]0.193065[/C][/ROW]
[ROW][C]24[/C][C]-0.02116[/C][C]-0.1466[/C][C]0.442029[/C][/ROW]
[ROW][C]25[/C][C]0.00182[/C][C]0.0126[/C][C]0.494997[/C][/ROW]
[ROW][C]26[/C][C]0.01176[/C][C]0.0815[/C][C]0.467702[/C][/ROW]
[ROW][C]27[/C][C]0.046233[/C][C]0.3203[/C][C]0.375061[/C][/ROW]
[ROW][C]28[/C][C]-0.044876[/C][C]-0.3109[/C][C]0.378609[/C][/ROW]
[ROW][C]29[/C][C]-0.032284[/C][C]-0.2237[/C][C]0.411981[/C][/ROW]
[ROW][C]30[/C][C]0.062782[/C][C]0.435[/C][C]0.332768[/C][/ROW]
[ROW][C]31[/C][C]-0.146558[/C][C]-1.0154[/C][C]0.157507[/C][/ROW]
[ROW][C]32[/C][C]-0.034728[/C][C]-0.2406[/C][C]0.405443[/C][/ROW]
[ROW][C]33[/C][C]0.160761[/C][C]1.1138[/C][C]0.135459[/C][/ROW]
[ROW][C]34[/C][C]0.013377[/C][C]0.0927[/C][C]0.463271[/C][/ROW]
[ROW][C]35[/C][C]0.025165[/C][C]0.1743[/C][C]0.431164[/C][/ROW]
[ROW][C]36[/C][C]-0.036416[/C][C]-0.2523[/C][C]0.400945[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61108&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61108&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.051707-0.35820.360869
2-0.065172-0.45150.326822
3-0.078243-0.54210.295135
4-0.080486-0.55760.289847
50.2483381.72050.045888
60.0635780.44050.330783
7-0.144803-1.00320.160392
80.1258470.87190.193803
90.2406741.66740.05097
10-0.235197-1.62950.054877
11-0.232987-1.61420.056522
12-0.000416-0.00290.498856
13-0.094456-0.65440.257986
140.0572220.39640.346766
150.0256060.17740.429969
160.03740.25910.398327
170.0054260.03760.485084
180.0588250.40760.342707
19-0.075063-0.52010.302709
20-0.091099-0.63110.265468
21-0.049192-0.34080.367366
22-0.103536-0.71730.238326
230.1262420.87460.193065
24-0.02116-0.14660.442029
250.001820.01260.494997
260.011760.08150.467702
270.0462330.32030.375061
28-0.044876-0.31090.378609
29-0.032284-0.22370.411981
300.0627820.4350.332768
31-0.146558-1.01540.157507
32-0.034728-0.24060.405443
330.1607611.11380.135459
340.0133770.09270.463271
350.0251650.17430.431164
36-0.036416-0.25230.400945



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