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, 04 Dec 2009 12:04:07 -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/04/t1259953507nv0ofx3629ngj7w.htm/, Retrieved Sat, 27 Apr 2024 13:29:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64045, Retrieved Sat, 27 Apr 2024 13:29:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact103
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [data set] [2008-12-01 19:54:57] [b98453cac15ba1066b407e146608df68]
- RMP   [(Partial) Autocorrelation Function] [] [2009-11-27 14:46:03] [b98453cac15ba1066b407e146608df68]
-   PD      [(Partial) Autocorrelation Function] [] [2009-12-04 19:04:07] [90c9838c596c9c0a7d0d4c412ffe5b98] [Current]
Feedback Forum

Post a new message
Dataseries X:
6802.96
7132.68
7073.29
7264.5
7105.33
7218.71
7225.72
7354.25
7745.46
8070.26
8366.33
8667.51
8854.34
9218.1
9332.9
9358.31
9248.66
9401.2
9652.04
9957.38
10110.63
10169.26
10343.78
10750.21
11337.5
11786.96
12083.04
12007.74
11745.93
11051.51
11445.9
11924.88
12247.63
12690.91
12910.7
13202.12
13654.67
13862.82
13523.93
14211.17
14510.35
14289.23
14111.82
13086.59
13351.54
13747.69
12855.61
12926.93
12121.95
11731.65
11639.51
12163.78
12029.53
11234.18
9852.13
9709.04
9332.75
7108.6
6691.49
6143.05




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64045&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
10.3340622.5660.006424
20.209711.61080.056279
30.2541091.95180.027854
40.1761351.35290.090622
50.2623762.01540.024215
60.1345971.03390.15271
70.0795840.61130.271676
80.1543081.18530.120334
90.1258380.96660.16885
100.0643040.49390.311595
110.2752382.11410.01937
120.0533360.40970.341761
130.0398760.30630.38023
140.1909731.46690.073858
150.0433560.3330.370148
160.07350.56460.287256
17-0.055841-0.42890.334772
18-0.159063-1.22180.113324
19-0.002067-0.01590.493693
20-0.057238-0.43970.330897
21-0.077848-0.5980.276077
22-0.124132-0.95350.17212
23-0.134331-1.03180.153186
24-0.119847-0.92060.180513
250.003110.02390.490511
26-0.051753-0.39750.346207
27-0.035488-0.27260.39306
280.0268240.2060.418734
29-0.042158-0.32380.373609
30-0.056717-0.43570.33234
31-0.087943-0.67550.250998
32-0.096919-0.74450.229779
33-0.157282-1.20810.115913
34-0.136184-1.04610.149902
35-0.158793-1.21970.113713
36-0.083806-0.64370.261124

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.334062 & 2.566 & 0.006424 \tabularnewline
2 & 0.20971 & 1.6108 & 0.056279 \tabularnewline
3 & 0.254109 & 1.9518 & 0.027854 \tabularnewline
4 & 0.176135 & 1.3529 & 0.090622 \tabularnewline
5 & 0.262376 & 2.0154 & 0.024215 \tabularnewline
6 & 0.134597 & 1.0339 & 0.15271 \tabularnewline
7 & 0.079584 & 0.6113 & 0.271676 \tabularnewline
8 & 0.154308 & 1.1853 & 0.120334 \tabularnewline
9 & 0.125838 & 0.9666 & 0.16885 \tabularnewline
10 & 0.064304 & 0.4939 & 0.311595 \tabularnewline
11 & 0.275238 & 2.1141 & 0.01937 \tabularnewline
12 & 0.053336 & 0.4097 & 0.341761 \tabularnewline
13 & 0.039876 & 0.3063 & 0.38023 \tabularnewline
14 & 0.190973 & 1.4669 & 0.073858 \tabularnewline
15 & 0.043356 & 0.333 & 0.370148 \tabularnewline
16 & 0.0735 & 0.5646 & 0.287256 \tabularnewline
17 & -0.055841 & -0.4289 & 0.334772 \tabularnewline
18 & -0.159063 & -1.2218 & 0.113324 \tabularnewline
19 & -0.002067 & -0.0159 & 0.493693 \tabularnewline
20 & -0.057238 & -0.4397 & 0.330897 \tabularnewline
21 & -0.077848 & -0.598 & 0.276077 \tabularnewline
22 & -0.124132 & -0.9535 & 0.17212 \tabularnewline
23 & -0.134331 & -1.0318 & 0.153186 \tabularnewline
24 & -0.119847 & -0.9206 & 0.180513 \tabularnewline
25 & 0.00311 & 0.0239 & 0.490511 \tabularnewline
26 & -0.051753 & -0.3975 & 0.346207 \tabularnewline
27 & -0.035488 & -0.2726 & 0.39306 \tabularnewline
28 & 0.026824 & 0.206 & 0.418734 \tabularnewline
29 & -0.042158 & -0.3238 & 0.373609 \tabularnewline
30 & -0.056717 & -0.4357 & 0.33234 \tabularnewline
31 & -0.087943 & -0.6755 & 0.250998 \tabularnewline
32 & -0.096919 & -0.7445 & 0.229779 \tabularnewline
33 & -0.157282 & -1.2081 & 0.115913 \tabularnewline
34 & -0.136184 & -1.0461 & 0.149902 \tabularnewline
35 & -0.158793 & -1.2197 & 0.113713 \tabularnewline
36 & -0.083806 & -0.6437 & 0.261124 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64045&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.334062[/C][C]2.566[/C][C]0.006424[/C][/ROW]
[ROW][C]2[/C][C]0.20971[/C][C]1.6108[/C][C]0.056279[/C][/ROW]
[ROW][C]3[/C][C]0.254109[/C][C]1.9518[/C][C]0.027854[/C][/ROW]
[ROW][C]4[/C][C]0.176135[/C][C]1.3529[/C][C]0.090622[/C][/ROW]
[ROW][C]5[/C][C]0.262376[/C][C]2.0154[/C][C]0.024215[/C][/ROW]
[ROW][C]6[/C][C]0.134597[/C][C]1.0339[/C][C]0.15271[/C][/ROW]
[ROW][C]7[/C][C]0.079584[/C][C]0.6113[/C][C]0.271676[/C][/ROW]
[ROW][C]8[/C][C]0.154308[/C][C]1.1853[/C][C]0.120334[/C][/ROW]
[ROW][C]9[/C][C]0.125838[/C][C]0.9666[/C][C]0.16885[/C][/ROW]
[ROW][C]10[/C][C]0.064304[/C][C]0.4939[/C][C]0.311595[/C][/ROW]
[ROW][C]11[/C][C]0.275238[/C][C]2.1141[/C][C]0.01937[/C][/ROW]
[ROW][C]12[/C][C]0.053336[/C][C]0.4097[/C][C]0.341761[/C][/ROW]
[ROW][C]13[/C][C]0.039876[/C][C]0.3063[/C][C]0.38023[/C][/ROW]
[ROW][C]14[/C][C]0.190973[/C][C]1.4669[/C][C]0.073858[/C][/ROW]
[ROW][C]15[/C][C]0.043356[/C][C]0.333[/C][C]0.370148[/C][/ROW]
[ROW][C]16[/C][C]0.0735[/C][C]0.5646[/C][C]0.287256[/C][/ROW]
[ROW][C]17[/C][C]-0.055841[/C][C]-0.4289[/C][C]0.334772[/C][/ROW]
[ROW][C]18[/C][C]-0.159063[/C][C]-1.2218[/C][C]0.113324[/C][/ROW]
[ROW][C]19[/C][C]-0.002067[/C][C]-0.0159[/C][C]0.493693[/C][/ROW]
[ROW][C]20[/C][C]-0.057238[/C][C]-0.4397[/C][C]0.330897[/C][/ROW]
[ROW][C]21[/C][C]-0.077848[/C][C]-0.598[/C][C]0.276077[/C][/ROW]
[ROW][C]22[/C][C]-0.124132[/C][C]-0.9535[/C][C]0.17212[/C][/ROW]
[ROW][C]23[/C][C]-0.134331[/C][C]-1.0318[/C][C]0.153186[/C][/ROW]
[ROW][C]24[/C][C]-0.119847[/C][C]-0.9206[/C][C]0.180513[/C][/ROW]
[ROW][C]25[/C][C]0.00311[/C][C]0.0239[/C][C]0.490511[/C][/ROW]
[ROW][C]26[/C][C]-0.051753[/C][C]-0.3975[/C][C]0.346207[/C][/ROW]
[ROW][C]27[/C][C]-0.035488[/C][C]-0.2726[/C][C]0.39306[/C][/ROW]
[ROW][C]28[/C][C]0.026824[/C][C]0.206[/C][C]0.418734[/C][/ROW]
[ROW][C]29[/C][C]-0.042158[/C][C]-0.3238[/C][C]0.373609[/C][/ROW]
[ROW][C]30[/C][C]-0.056717[/C][C]-0.4357[/C][C]0.33234[/C][/ROW]
[ROW][C]31[/C][C]-0.087943[/C][C]-0.6755[/C][C]0.250998[/C][/ROW]
[ROW][C]32[/C][C]-0.096919[/C][C]-0.7445[/C][C]0.229779[/C][/ROW]
[ROW][C]33[/C][C]-0.157282[/C][C]-1.2081[/C][C]0.115913[/C][/ROW]
[ROW][C]34[/C][C]-0.136184[/C][C]-1.0461[/C][C]0.149902[/C][/ROW]
[ROW][C]35[/C][C]-0.158793[/C][C]-1.2197[/C][C]0.113713[/C][/ROW]
[ROW][C]36[/C][C]-0.083806[/C][C]-0.6437[/C][C]0.261124[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64045&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64045&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
10.3340622.5660.006424
20.209711.61080.056279
30.2541091.95180.027854
40.1761351.35290.090622
50.2623762.01540.024215
60.1345971.03390.15271
70.0795840.61130.271676
80.1543081.18530.120334
90.1258380.96660.16885
100.0643040.49390.311595
110.2752382.11410.01937
120.0533360.40970.341761
130.0398760.30630.38023
140.1909731.46690.073858
150.0433560.3330.370148
160.07350.56460.287256
17-0.055841-0.42890.334772
18-0.159063-1.22180.113324
19-0.002067-0.01590.493693
20-0.057238-0.43970.330897
21-0.077848-0.5980.276077
22-0.124132-0.95350.17212
23-0.134331-1.03180.153186
24-0.119847-0.92060.180513
250.003110.02390.490511
26-0.051753-0.39750.346207
27-0.035488-0.27260.39306
280.0268240.2060.418734
29-0.042158-0.32380.373609
30-0.056717-0.43570.33234
31-0.087943-0.67550.250998
32-0.096919-0.74450.229779
33-0.157282-1.20810.115913
34-0.136184-1.04610.149902
35-0.158793-1.21970.113713
36-0.083806-0.64370.261124







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3340622.5660.006424
20.1104370.84830.199854
30.1765071.35580.090169
40.0405190.31120.378359
50.1795391.37910.08654
6-0.044786-0.3440.366033
7-0.01907-0.14650.442021
80.0645770.4960.310858
90.0329120.25280.400649
10-0.04661-0.3580.360802
110.2641022.02860.02351
12-0.150753-1.1580.125775
13-0.012435-0.09550.462115
140.1232870.9470.173754
15-0.065606-0.50390.308093
16-0.048786-0.37470.354603
17-0.115625-0.88810.189039
18-0.158044-1.2140.1148
190.0160890.12360.451033
20-0.036696-0.28190.389515
210.02590.19890.421497
22-0.180557-1.38690.085347
230.0351810.27020.393962
24-0.059296-0.45550.325226
250.0632080.48550.314556
260.0440880.33860.368039
270.0577940.44390.329361
280.0762730.58590.280102
290.06410.49240.312147
30-0.14126-1.0850.141158
310.0229870.17660.430226
32-0.039434-0.30290.381517
33-0.09634-0.740.231117
34-0.04305-0.33070.371031
35-0.076937-0.5910.2784
360.0056580.04350.48274

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.334062 & 2.566 & 0.006424 \tabularnewline
2 & 0.110437 & 0.8483 & 0.199854 \tabularnewline
3 & 0.176507 & 1.3558 & 0.090169 \tabularnewline
4 & 0.040519 & 0.3112 & 0.378359 \tabularnewline
5 & 0.179539 & 1.3791 & 0.08654 \tabularnewline
6 & -0.044786 & -0.344 & 0.366033 \tabularnewline
7 & -0.01907 & -0.1465 & 0.442021 \tabularnewline
8 & 0.064577 & 0.496 & 0.310858 \tabularnewline
9 & 0.032912 & 0.2528 & 0.400649 \tabularnewline
10 & -0.04661 & -0.358 & 0.360802 \tabularnewline
11 & 0.264102 & 2.0286 & 0.02351 \tabularnewline
12 & -0.150753 & -1.158 & 0.125775 \tabularnewline
13 & -0.012435 & -0.0955 & 0.462115 \tabularnewline
14 & 0.123287 & 0.947 & 0.173754 \tabularnewline
15 & -0.065606 & -0.5039 & 0.308093 \tabularnewline
16 & -0.048786 & -0.3747 & 0.354603 \tabularnewline
17 & -0.115625 & -0.8881 & 0.189039 \tabularnewline
18 & -0.158044 & -1.214 & 0.1148 \tabularnewline
19 & 0.016089 & 0.1236 & 0.451033 \tabularnewline
20 & -0.036696 & -0.2819 & 0.389515 \tabularnewline
21 & 0.0259 & 0.1989 & 0.421497 \tabularnewline
22 & -0.180557 & -1.3869 & 0.085347 \tabularnewline
23 & 0.035181 & 0.2702 & 0.393962 \tabularnewline
24 & -0.059296 & -0.4555 & 0.325226 \tabularnewline
25 & 0.063208 & 0.4855 & 0.314556 \tabularnewline
26 & 0.044088 & 0.3386 & 0.368039 \tabularnewline
27 & 0.057794 & 0.4439 & 0.329361 \tabularnewline
28 & 0.076273 & 0.5859 & 0.280102 \tabularnewline
29 & 0.0641 & 0.4924 & 0.312147 \tabularnewline
30 & -0.14126 & -1.085 & 0.141158 \tabularnewline
31 & 0.022987 & 0.1766 & 0.430226 \tabularnewline
32 & -0.039434 & -0.3029 & 0.381517 \tabularnewline
33 & -0.09634 & -0.74 & 0.231117 \tabularnewline
34 & -0.04305 & -0.3307 & 0.371031 \tabularnewline
35 & -0.076937 & -0.591 & 0.2784 \tabularnewline
36 & 0.005658 & 0.0435 & 0.48274 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64045&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.334062[/C][C]2.566[/C][C]0.006424[/C][/ROW]
[ROW][C]2[/C][C]0.110437[/C][C]0.8483[/C][C]0.199854[/C][/ROW]
[ROW][C]3[/C][C]0.176507[/C][C]1.3558[/C][C]0.090169[/C][/ROW]
[ROW][C]4[/C][C]0.040519[/C][C]0.3112[/C][C]0.378359[/C][/ROW]
[ROW][C]5[/C][C]0.179539[/C][C]1.3791[/C][C]0.08654[/C][/ROW]
[ROW][C]6[/C][C]-0.044786[/C][C]-0.344[/C][C]0.366033[/C][/ROW]
[ROW][C]7[/C][C]-0.01907[/C][C]-0.1465[/C][C]0.442021[/C][/ROW]
[ROW][C]8[/C][C]0.064577[/C][C]0.496[/C][C]0.310858[/C][/ROW]
[ROW][C]9[/C][C]0.032912[/C][C]0.2528[/C][C]0.400649[/C][/ROW]
[ROW][C]10[/C][C]-0.04661[/C][C]-0.358[/C][C]0.360802[/C][/ROW]
[ROW][C]11[/C][C]0.264102[/C][C]2.0286[/C][C]0.02351[/C][/ROW]
[ROW][C]12[/C][C]-0.150753[/C][C]-1.158[/C][C]0.125775[/C][/ROW]
[ROW][C]13[/C][C]-0.012435[/C][C]-0.0955[/C][C]0.462115[/C][/ROW]
[ROW][C]14[/C][C]0.123287[/C][C]0.947[/C][C]0.173754[/C][/ROW]
[ROW][C]15[/C][C]-0.065606[/C][C]-0.5039[/C][C]0.308093[/C][/ROW]
[ROW][C]16[/C][C]-0.048786[/C][C]-0.3747[/C][C]0.354603[/C][/ROW]
[ROW][C]17[/C][C]-0.115625[/C][C]-0.8881[/C][C]0.189039[/C][/ROW]
[ROW][C]18[/C][C]-0.158044[/C][C]-1.214[/C][C]0.1148[/C][/ROW]
[ROW][C]19[/C][C]0.016089[/C][C]0.1236[/C][C]0.451033[/C][/ROW]
[ROW][C]20[/C][C]-0.036696[/C][C]-0.2819[/C][C]0.389515[/C][/ROW]
[ROW][C]21[/C][C]0.0259[/C][C]0.1989[/C][C]0.421497[/C][/ROW]
[ROW][C]22[/C][C]-0.180557[/C][C]-1.3869[/C][C]0.085347[/C][/ROW]
[ROW][C]23[/C][C]0.035181[/C][C]0.2702[/C][C]0.393962[/C][/ROW]
[ROW][C]24[/C][C]-0.059296[/C][C]-0.4555[/C][C]0.325226[/C][/ROW]
[ROW][C]25[/C][C]0.063208[/C][C]0.4855[/C][C]0.314556[/C][/ROW]
[ROW][C]26[/C][C]0.044088[/C][C]0.3386[/C][C]0.368039[/C][/ROW]
[ROW][C]27[/C][C]0.057794[/C][C]0.4439[/C][C]0.329361[/C][/ROW]
[ROW][C]28[/C][C]0.076273[/C][C]0.5859[/C][C]0.280102[/C][/ROW]
[ROW][C]29[/C][C]0.0641[/C][C]0.4924[/C][C]0.312147[/C][/ROW]
[ROW][C]30[/C][C]-0.14126[/C][C]-1.085[/C][C]0.141158[/C][/ROW]
[ROW][C]31[/C][C]0.022987[/C][C]0.1766[/C][C]0.430226[/C][/ROW]
[ROW][C]32[/C][C]-0.039434[/C][C]-0.3029[/C][C]0.381517[/C][/ROW]
[ROW][C]33[/C][C]-0.09634[/C][C]-0.74[/C][C]0.231117[/C][/ROW]
[ROW][C]34[/C][C]-0.04305[/C][C]-0.3307[/C][C]0.371031[/C][/ROW]
[ROW][C]35[/C][C]-0.076937[/C][C]-0.591[/C][C]0.2784[/C][/ROW]
[ROW][C]36[/C][C]0.005658[/C][C]0.0435[/C][C]0.48274[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64045&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64045&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
10.3340622.5660.006424
20.1104370.84830.199854
30.1765071.35580.090169
40.0405190.31120.378359
50.1795391.37910.08654
6-0.044786-0.3440.366033
7-0.01907-0.14650.442021
80.0645770.4960.310858
90.0329120.25280.400649
10-0.04661-0.3580.360802
110.2641022.02860.02351
12-0.150753-1.1580.125775
13-0.012435-0.09550.462115
140.1232870.9470.173754
15-0.065606-0.50390.308093
16-0.048786-0.37470.354603
17-0.115625-0.88810.189039
18-0.158044-1.2140.1148
190.0160890.12360.451033
20-0.036696-0.28190.389515
210.02590.19890.421497
22-0.180557-1.38690.085347
230.0351810.27020.393962
24-0.059296-0.45550.325226
250.0632080.48550.314556
260.0440880.33860.368039
270.0577940.44390.329361
280.0762730.58590.280102
290.06410.49240.312147
30-0.14126-1.0850.141158
310.0229870.17660.430226
32-0.039434-0.30290.381517
33-0.09634-0.740.231117
34-0.04305-0.33070.371031
35-0.076937-0.5910.2784
360.0056580.04350.48274



Parameters (Session):
par1 = Aandelenkoers ; par2 = belgostat ; par3 = euronext brussel ;
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; 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')