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 computationWed, 25 Nov 2009 08:17:24 -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/25/t1259162395m5wu4ydot4l8wcj.htm/, Retrieved Tue, 07 May 2024 17:12:45 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59394, Retrieved Tue, 07 May 2024 17:12:45 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact166
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:26:39] [b98453cac15ba1066b407e146608df68]
-   PD          [(Partial) Autocorrelation Function] [] [2009-11-25 15:17:24] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.6
8.3
8.3
8.3
8.4
8.5
8.4
8.6
8.5
8.5
8.4
8.5
8.5
8.5
8.5
8.5
8.5
8.5
8.5
8.6
8.4
8.1
8.0
8.0
8.0
8.0
7.9
7.8
7.8
7.9
8.1
8.0
7.6
7.3
7.0
6.8
7.0
7.1
7.2
7.1
6.9
6.7
6.7
6.6
6.9
7.3
7.5
7.3
7.1
6.9
7.1
7.5
7.7
7.8
7.8
7.7
7.8
7.8
7.9
7.9




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=59394&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=59394&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59394&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.056854-0.4330.333314
2-0.062232-0.47390.31866
3-0.350635-2.67040.004907
4-0.287864-2.19230.016192
5-0.05126-0.39040.348841
60.2659712.02560.023709
70.1290740.9830.164845
80.1966231.49740.069852
9-0.05756-0.43840.331375
10-0.202842-1.54480.063917
11-0.11833-0.90120.185612
120.068260.51980.302574
13-0.142149-1.08260.14174
140.2021871.53980.064523
150.1515721.15430.126548
16-0.028223-0.21490.415284
17-0.045495-0.34650.365119
18-0.157726-1.20120.117277
19-0.136-1.03570.152311
200.1178610.89760.186555
210.0782630.5960.276737
220.0898490.68430.248264
230.0556140.42350.336733
24-0.225965-1.72090.0453
25-0.050685-0.3860.350452
260.1132850.86280.195913
270.0968910.73790.231775
28-0.005493-0.04180.483387
290.0165250.12590.450142
30-0.249845-1.90280.03102
310.0718720.54740.293116
32-0.012378-0.09430.462609
330.0893910.68080.24936
340.0724110.55150.291715
350.0339840.25880.398349
36-0.169892-1.29390.100421

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.056854 & -0.433 & 0.333314 \tabularnewline
2 & -0.062232 & -0.4739 & 0.31866 \tabularnewline
3 & -0.350635 & -2.6704 & 0.004907 \tabularnewline
4 & -0.287864 & -2.1923 & 0.016192 \tabularnewline
5 & -0.05126 & -0.3904 & 0.348841 \tabularnewline
6 & 0.265971 & 2.0256 & 0.023709 \tabularnewline
7 & 0.129074 & 0.983 & 0.164845 \tabularnewline
8 & 0.196623 & 1.4974 & 0.069852 \tabularnewline
9 & -0.05756 & -0.4384 & 0.331375 \tabularnewline
10 & -0.202842 & -1.5448 & 0.063917 \tabularnewline
11 & -0.11833 & -0.9012 & 0.185612 \tabularnewline
12 & 0.06826 & 0.5198 & 0.302574 \tabularnewline
13 & -0.142149 & -1.0826 & 0.14174 \tabularnewline
14 & 0.202187 & 1.5398 & 0.064523 \tabularnewline
15 & 0.151572 & 1.1543 & 0.126548 \tabularnewline
16 & -0.028223 & -0.2149 & 0.415284 \tabularnewline
17 & -0.045495 & -0.3465 & 0.365119 \tabularnewline
18 & -0.157726 & -1.2012 & 0.117277 \tabularnewline
19 & -0.136 & -1.0357 & 0.152311 \tabularnewline
20 & 0.117861 & 0.8976 & 0.186555 \tabularnewline
21 & 0.078263 & 0.596 & 0.276737 \tabularnewline
22 & 0.089849 & 0.6843 & 0.248264 \tabularnewline
23 & 0.055614 & 0.4235 & 0.336733 \tabularnewline
24 & -0.225965 & -1.7209 & 0.0453 \tabularnewline
25 & -0.050685 & -0.386 & 0.350452 \tabularnewline
26 & 0.113285 & 0.8628 & 0.195913 \tabularnewline
27 & 0.096891 & 0.7379 & 0.231775 \tabularnewline
28 & -0.005493 & -0.0418 & 0.483387 \tabularnewline
29 & 0.016525 & 0.1259 & 0.450142 \tabularnewline
30 & -0.249845 & -1.9028 & 0.03102 \tabularnewline
31 & 0.071872 & 0.5474 & 0.293116 \tabularnewline
32 & -0.012378 & -0.0943 & 0.462609 \tabularnewline
33 & 0.089391 & 0.6808 & 0.24936 \tabularnewline
34 & 0.072411 & 0.5515 & 0.291715 \tabularnewline
35 & 0.033984 & 0.2588 & 0.398349 \tabularnewline
36 & -0.169892 & -1.2939 & 0.100421 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59394&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.056854[/C][C]-0.433[/C][C]0.333314[/C][/ROW]
[ROW][C]2[/C][C]-0.062232[/C][C]-0.4739[/C][C]0.31866[/C][/ROW]
[ROW][C]3[/C][C]-0.350635[/C][C]-2.6704[/C][C]0.004907[/C][/ROW]
[ROW][C]4[/C][C]-0.287864[/C][C]-2.1923[/C][C]0.016192[/C][/ROW]
[ROW][C]5[/C][C]-0.05126[/C][C]-0.3904[/C][C]0.348841[/C][/ROW]
[ROW][C]6[/C][C]0.265971[/C][C]2.0256[/C][C]0.023709[/C][/ROW]
[ROW][C]7[/C][C]0.129074[/C][C]0.983[/C][C]0.164845[/C][/ROW]
[ROW][C]8[/C][C]0.196623[/C][C]1.4974[/C][C]0.069852[/C][/ROW]
[ROW][C]9[/C][C]-0.05756[/C][C]-0.4384[/C][C]0.331375[/C][/ROW]
[ROW][C]10[/C][C]-0.202842[/C][C]-1.5448[/C][C]0.063917[/C][/ROW]
[ROW][C]11[/C][C]-0.11833[/C][C]-0.9012[/C][C]0.185612[/C][/ROW]
[ROW][C]12[/C][C]0.06826[/C][C]0.5198[/C][C]0.302574[/C][/ROW]
[ROW][C]13[/C][C]-0.142149[/C][C]-1.0826[/C][C]0.14174[/C][/ROW]
[ROW][C]14[/C][C]0.202187[/C][C]1.5398[/C][C]0.064523[/C][/ROW]
[ROW][C]15[/C][C]0.151572[/C][C]1.1543[/C][C]0.126548[/C][/ROW]
[ROW][C]16[/C][C]-0.028223[/C][C]-0.2149[/C][C]0.415284[/C][/ROW]
[ROW][C]17[/C][C]-0.045495[/C][C]-0.3465[/C][C]0.365119[/C][/ROW]
[ROW][C]18[/C][C]-0.157726[/C][C]-1.2012[/C][C]0.117277[/C][/ROW]
[ROW][C]19[/C][C]-0.136[/C][C]-1.0357[/C][C]0.152311[/C][/ROW]
[ROW][C]20[/C][C]0.117861[/C][C]0.8976[/C][C]0.186555[/C][/ROW]
[ROW][C]21[/C][C]0.078263[/C][C]0.596[/C][C]0.276737[/C][/ROW]
[ROW][C]22[/C][C]0.089849[/C][C]0.6843[/C][C]0.248264[/C][/ROW]
[ROW][C]23[/C][C]0.055614[/C][C]0.4235[/C][C]0.336733[/C][/ROW]
[ROW][C]24[/C][C]-0.225965[/C][C]-1.7209[/C][C]0.0453[/C][/ROW]
[ROW][C]25[/C][C]-0.050685[/C][C]-0.386[/C][C]0.350452[/C][/ROW]
[ROW][C]26[/C][C]0.113285[/C][C]0.8628[/C][C]0.195913[/C][/ROW]
[ROW][C]27[/C][C]0.096891[/C][C]0.7379[/C][C]0.231775[/C][/ROW]
[ROW][C]28[/C][C]-0.005493[/C][C]-0.0418[/C][C]0.483387[/C][/ROW]
[ROW][C]29[/C][C]0.016525[/C][C]0.1259[/C][C]0.450142[/C][/ROW]
[ROW][C]30[/C][C]-0.249845[/C][C]-1.9028[/C][C]0.03102[/C][/ROW]
[ROW][C]31[/C][C]0.071872[/C][C]0.5474[/C][C]0.293116[/C][/ROW]
[ROW][C]32[/C][C]-0.012378[/C][C]-0.0943[/C][C]0.462609[/C][/ROW]
[ROW][C]33[/C][C]0.089391[/C][C]0.6808[/C][C]0.24936[/C][/ROW]
[ROW][C]34[/C][C]0.072411[/C][C]0.5515[/C][C]0.291715[/C][/ROW]
[ROW][C]35[/C][C]0.033984[/C][C]0.2588[/C][C]0.398349[/C][/ROW]
[ROW][C]36[/C][C]-0.169892[/C][C]-1.2939[/C][C]0.100421[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59394&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59394&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.056854-0.4330.333314
2-0.062232-0.47390.31866
3-0.350635-2.67040.004907
4-0.287864-2.19230.016192
5-0.05126-0.39040.348841
60.2659712.02560.023709
70.1290740.9830.164845
80.1966231.49740.069852
9-0.05756-0.43840.331375
10-0.202842-1.54480.063917
11-0.11833-0.90120.185612
120.068260.51980.302574
13-0.142149-1.08260.14174
140.2021871.53980.064523
150.1515721.15430.126548
16-0.028223-0.21490.415284
17-0.045495-0.34650.365119
18-0.157726-1.20120.117277
19-0.136-1.03570.152311
200.1178610.89760.186555
210.0782630.5960.276737
220.0898490.68430.248264
230.0556140.42350.336733
24-0.225965-1.72090.0453
25-0.050685-0.3860.350452
260.1132850.86280.195913
270.0968910.73790.231775
28-0.005493-0.04180.483387
290.0165250.12590.450142
30-0.249845-1.90280.03102
310.0718720.54740.293116
32-0.012378-0.09430.462609
330.0893910.68080.24936
340.0724110.55150.291715
350.0339840.25880.398349
36-0.169892-1.29390.100421







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.056854-0.4330.333314
2-0.065676-0.50020.309422
3-0.360858-2.74820.003987
4-0.397788-3.02950.001827
5-0.284749-2.16860.017114
6-0.021789-0.16590.43439
7-0.151018-1.15010.127407
80.0157420.11990.452492
90.0462020.35190.363109
10-0.057654-0.43910.331118
11-0.002039-0.01550.493832
120.1609811.2260.112578
13-0.230889-1.75840.041977
14-0.040022-0.30480.380804
150.1954961.48890.070972
16-0.034795-0.2650.395977
17-0.072236-0.55010.29217
18-0.028462-0.21680.414578
19-0.061019-0.46470.321941
20-0.036603-0.27880.39071
21-0.007932-0.06040.476018
22-0.030991-0.2360.407125
23-0.066401-0.50570.307494
24-0.234593-1.78660.039614
250.0258830.19710.422213
260.1117050.85070.199213
270.0618180.47080.319778
28-0.031354-0.23880.406056
290.0596590.45440.325635
30-0.171119-1.30320.098827
310.0351830.26790.394845
32-0.048882-0.37230.355523
33-0.084954-0.6470.260096
34-0.10095-0.76880.222561
350.0068510.05220.479283
36-0.07343-0.55920.28908

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.056854 & -0.433 & 0.333314 \tabularnewline
2 & -0.065676 & -0.5002 & 0.309422 \tabularnewline
3 & -0.360858 & -2.7482 & 0.003987 \tabularnewline
4 & -0.397788 & -3.0295 & 0.001827 \tabularnewline
5 & -0.284749 & -2.1686 & 0.017114 \tabularnewline
6 & -0.021789 & -0.1659 & 0.43439 \tabularnewline
7 & -0.151018 & -1.1501 & 0.127407 \tabularnewline
8 & 0.015742 & 0.1199 & 0.452492 \tabularnewline
9 & 0.046202 & 0.3519 & 0.363109 \tabularnewline
10 & -0.057654 & -0.4391 & 0.331118 \tabularnewline
11 & -0.002039 & -0.0155 & 0.493832 \tabularnewline
12 & 0.160981 & 1.226 & 0.112578 \tabularnewline
13 & -0.230889 & -1.7584 & 0.041977 \tabularnewline
14 & -0.040022 & -0.3048 & 0.380804 \tabularnewline
15 & 0.195496 & 1.4889 & 0.070972 \tabularnewline
16 & -0.034795 & -0.265 & 0.395977 \tabularnewline
17 & -0.072236 & -0.5501 & 0.29217 \tabularnewline
18 & -0.028462 & -0.2168 & 0.414578 \tabularnewline
19 & -0.061019 & -0.4647 & 0.321941 \tabularnewline
20 & -0.036603 & -0.2788 & 0.39071 \tabularnewline
21 & -0.007932 & -0.0604 & 0.476018 \tabularnewline
22 & -0.030991 & -0.236 & 0.407125 \tabularnewline
23 & -0.066401 & -0.5057 & 0.307494 \tabularnewline
24 & -0.234593 & -1.7866 & 0.039614 \tabularnewline
25 & 0.025883 & 0.1971 & 0.422213 \tabularnewline
26 & 0.111705 & 0.8507 & 0.199213 \tabularnewline
27 & 0.061818 & 0.4708 & 0.319778 \tabularnewline
28 & -0.031354 & -0.2388 & 0.406056 \tabularnewline
29 & 0.059659 & 0.4544 & 0.325635 \tabularnewline
30 & -0.171119 & -1.3032 & 0.098827 \tabularnewline
31 & 0.035183 & 0.2679 & 0.394845 \tabularnewline
32 & -0.048882 & -0.3723 & 0.355523 \tabularnewline
33 & -0.084954 & -0.647 & 0.260096 \tabularnewline
34 & -0.10095 & -0.7688 & 0.222561 \tabularnewline
35 & 0.006851 & 0.0522 & 0.479283 \tabularnewline
36 & -0.07343 & -0.5592 & 0.28908 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59394&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.056854[/C][C]-0.433[/C][C]0.333314[/C][/ROW]
[ROW][C]2[/C][C]-0.065676[/C][C]-0.5002[/C][C]0.309422[/C][/ROW]
[ROW][C]3[/C][C]-0.360858[/C][C]-2.7482[/C][C]0.003987[/C][/ROW]
[ROW][C]4[/C][C]-0.397788[/C][C]-3.0295[/C][C]0.001827[/C][/ROW]
[ROW][C]5[/C][C]-0.284749[/C][C]-2.1686[/C][C]0.017114[/C][/ROW]
[ROW][C]6[/C][C]-0.021789[/C][C]-0.1659[/C][C]0.43439[/C][/ROW]
[ROW][C]7[/C][C]-0.151018[/C][C]-1.1501[/C][C]0.127407[/C][/ROW]
[ROW][C]8[/C][C]0.015742[/C][C]0.1199[/C][C]0.452492[/C][/ROW]
[ROW][C]9[/C][C]0.046202[/C][C]0.3519[/C][C]0.363109[/C][/ROW]
[ROW][C]10[/C][C]-0.057654[/C][C]-0.4391[/C][C]0.331118[/C][/ROW]
[ROW][C]11[/C][C]-0.002039[/C][C]-0.0155[/C][C]0.493832[/C][/ROW]
[ROW][C]12[/C][C]0.160981[/C][C]1.226[/C][C]0.112578[/C][/ROW]
[ROW][C]13[/C][C]-0.230889[/C][C]-1.7584[/C][C]0.041977[/C][/ROW]
[ROW][C]14[/C][C]-0.040022[/C][C]-0.3048[/C][C]0.380804[/C][/ROW]
[ROW][C]15[/C][C]0.195496[/C][C]1.4889[/C][C]0.070972[/C][/ROW]
[ROW][C]16[/C][C]-0.034795[/C][C]-0.265[/C][C]0.395977[/C][/ROW]
[ROW][C]17[/C][C]-0.072236[/C][C]-0.5501[/C][C]0.29217[/C][/ROW]
[ROW][C]18[/C][C]-0.028462[/C][C]-0.2168[/C][C]0.414578[/C][/ROW]
[ROW][C]19[/C][C]-0.061019[/C][C]-0.4647[/C][C]0.321941[/C][/ROW]
[ROW][C]20[/C][C]-0.036603[/C][C]-0.2788[/C][C]0.39071[/C][/ROW]
[ROW][C]21[/C][C]-0.007932[/C][C]-0.0604[/C][C]0.476018[/C][/ROW]
[ROW][C]22[/C][C]-0.030991[/C][C]-0.236[/C][C]0.407125[/C][/ROW]
[ROW][C]23[/C][C]-0.066401[/C][C]-0.5057[/C][C]0.307494[/C][/ROW]
[ROW][C]24[/C][C]-0.234593[/C][C]-1.7866[/C][C]0.039614[/C][/ROW]
[ROW][C]25[/C][C]0.025883[/C][C]0.1971[/C][C]0.422213[/C][/ROW]
[ROW][C]26[/C][C]0.111705[/C][C]0.8507[/C][C]0.199213[/C][/ROW]
[ROW][C]27[/C][C]0.061818[/C][C]0.4708[/C][C]0.319778[/C][/ROW]
[ROW][C]28[/C][C]-0.031354[/C][C]-0.2388[/C][C]0.406056[/C][/ROW]
[ROW][C]29[/C][C]0.059659[/C][C]0.4544[/C][C]0.325635[/C][/ROW]
[ROW][C]30[/C][C]-0.171119[/C][C]-1.3032[/C][C]0.098827[/C][/ROW]
[ROW][C]31[/C][C]0.035183[/C][C]0.2679[/C][C]0.394845[/C][/ROW]
[ROW][C]32[/C][C]-0.048882[/C][C]-0.3723[/C][C]0.355523[/C][/ROW]
[ROW][C]33[/C][C]-0.084954[/C][C]-0.647[/C][C]0.260096[/C][/ROW]
[ROW][C]34[/C][C]-0.10095[/C][C]-0.7688[/C][C]0.222561[/C][/ROW]
[ROW][C]35[/C][C]0.006851[/C][C]0.0522[/C][C]0.479283[/C][/ROW]
[ROW][C]36[/C][C]-0.07343[/C][C]-0.5592[/C][C]0.28908[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59394&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59394&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.056854-0.4330.333314
2-0.065676-0.50020.309422
3-0.360858-2.74820.003987
4-0.397788-3.02950.001827
5-0.284749-2.16860.017114
6-0.021789-0.16590.43439
7-0.151018-1.15010.127407
80.0157420.11990.452492
90.0462020.35190.363109
10-0.057654-0.43910.331118
11-0.002039-0.01550.493832
120.1609811.2260.112578
13-0.230889-1.75840.041977
14-0.040022-0.30480.380804
150.1954961.48890.070972
16-0.034795-0.2650.395977
17-0.072236-0.55010.29217
18-0.028462-0.21680.414578
19-0.061019-0.46470.321941
20-0.036603-0.27880.39071
21-0.007932-0.06040.476018
22-0.030991-0.2360.407125
23-0.066401-0.50570.307494
24-0.234593-1.78660.039614
250.0258830.19710.422213
260.1117050.85070.199213
270.0618180.47080.319778
28-0.031354-0.23880.406056
290.0596590.45440.325635
30-0.171119-1.30320.098827
310.0351830.26790.394845
32-0.048882-0.37230.355523
33-0.084954-0.6470.260096
34-0.10095-0.76880.222561
350.0068510.05220.479283
36-0.07343-0.55920.28908



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