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, 29 Nov 2009 10:46:18 -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/29/t12595169618z2umtvknh30noa.htm/, Retrieved Thu, 25 Apr 2024 21:39:27 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61666, Retrieved Thu, 25 Apr 2024 21:39:27 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact154
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [ws81a] [2009-11-29 17:46:18] [b406b824746c89e17d2637b66f6fb2ee] [Current]
Feedback Forum

Post a new message
Dataseries X:
104.89
105.15
105.24
105.57
105.62
106.17
106.27
106.41
106.94
107.16
107.32
107.32
107.35
107.55
107.87
108.37
108.38
107.92
108.03
108.14
108.3
108.64
108.66
109.04
109.03
109.03
109.54
109.75
109.83
109.65
109.82
109.95
110.12
110.15
110.21
109.99
110.14
110.14
110.81
110.97
110.99
109.73
109.81
110.02
110.18
110.21
110.25
110.36
110.51
110.6
110.95
111.18
111.19
111.69
111.7
111.83
111.77
111.73
112.01
111.86
112.04




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61666&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.0123450.09560.462069
2-0.064206-0.49730.310385
3-0.264672-2.05010.022364
4-0.006574-0.05090.47978
50.1355851.05020.148911
60.121070.93780.176052
70.0629030.48720.31393
80.0265390.20560.418913
9-0.269675-2.08890.020484
10-0.027598-0.21380.415723
110.0603840.46770.320836
120.0780460.60450.27388
130.0847460.65640.257025
14-0.15225-1.17930.121463
15-0.01034-0.08010.468216
160.0418060.32380.373596
170.0518770.40180.344615
180.0849460.6580.256531
19-0.033082-0.25630.399316
20-0.080036-0.620.268817
21-0.129688-1.00460.159573
220.0052380.04060.483884
230.0856210.66320.254867
240.2139821.65750.05132
250.0504810.3910.348581
26-0.186153-1.44190.07726
27-0.064808-0.5020.308753
28-0.025738-0.19940.421325
290.033760.26150.397301
300.0895250.69350.24535
31-0.045235-0.35040.363638
32-0.044375-0.34370.366127
33-0.141745-1.0980.138306
34-0.046953-0.36370.35868
350.0789880.61180.271478
36-0.205959-1.59530.057944

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.012345 & 0.0956 & 0.462069 \tabularnewline
2 & -0.064206 & -0.4973 & 0.310385 \tabularnewline
3 & -0.264672 & -2.0501 & 0.022364 \tabularnewline
4 & -0.006574 & -0.0509 & 0.47978 \tabularnewline
5 & 0.135585 & 1.0502 & 0.148911 \tabularnewline
6 & 0.12107 & 0.9378 & 0.176052 \tabularnewline
7 & 0.062903 & 0.4872 & 0.31393 \tabularnewline
8 & 0.026539 & 0.2056 & 0.418913 \tabularnewline
9 & -0.269675 & -2.0889 & 0.020484 \tabularnewline
10 & -0.027598 & -0.2138 & 0.415723 \tabularnewline
11 & 0.060384 & 0.4677 & 0.320836 \tabularnewline
12 & 0.078046 & 0.6045 & 0.27388 \tabularnewline
13 & 0.084746 & 0.6564 & 0.257025 \tabularnewline
14 & -0.15225 & -1.1793 & 0.121463 \tabularnewline
15 & -0.01034 & -0.0801 & 0.468216 \tabularnewline
16 & 0.041806 & 0.3238 & 0.373596 \tabularnewline
17 & 0.051877 & 0.4018 & 0.344615 \tabularnewline
18 & 0.084946 & 0.658 & 0.256531 \tabularnewline
19 & -0.033082 & -0.2563 & 0.399316 \tabularnewline
20 & -0.080036 & -0.62 & 0.268817 \tabularnewline
21 & -0.129688 & -1.0046 & 0.159573 \tabularnewline
22 & 0.005238 & 0.0406 & 0.483884 \tabularnewline
23 & 0.085621 & 0.6632 & 0.254867 \tabularnewline
24 & 0.213982 & 1.6575 & 0.05132 \tabularnewline
25 & 0.050481 & 0.391 & 0.348581 \tabularnewline
26 & -0.186153 & -1.4419 & 0.07726 \tabularnewline
27 & -0.064808 & -0.502 & 0.308753 \tabularnewline
28 & -0.025738 & -0.1994 & 0.421325 \tabularnewline
29 & 0.03376 & 0.2615 & 0.397301 \tabularnewline
30 & 0.089525 & 0.6935 & 0.24535 \tabularnewline
31 & -0.045235 & -0.3504 & 0.363638 \tabularnewline
32 & -0.044375 & -0.3437 & 0.366127 \tabularnewline
33 & -0.141745 & -1.098 & 0.138306 \tabularnewline
34 & -0.046953 & -0.3637 & 0.35868 \tabularnewline
35 & 0.078988 & 0.6118 & 0.271478 \tabularnewline
36 & -0.205959 & -1.5953 & 0.057944 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61666&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.012345[/C][C]0.0956[/C][C]0.462069[/C][/ROW]
[ROW][C]2[/C][C]-0.064206[/C][C]-0.4973[/C][C]0.310385[/C][/ROW]
[ROW][C]3[/C][C]-0.264672[/C][C]-2.0501[/C][C]0.022364[/C][/ROW]
[ROW][C]4[/C][C]-0.006574[/C][C]-0.0509[/C][C]0.47978[/C][/ROW]
[ROW][C]5[/C][C]0.135585[/C][C]1.0502[/C][C]0.148911[/C][/ROW]
[ROW][C]6[/C][C]0.12107[/C][C]0.9378[/C][C]0.176052[/C][/ROW]
[ROW][C]7[/C][C]0.062903[/C][C]0.4872[/C][C]0.31393[/C][/ROW]
[ROW][C]8[/C][C]0.026539[/C][C]0.2056[/C][C]0.418913[/C][/ROW]
[ROW][C]9[/C][C]-0.269675[/C][C]-2.0889[/C][C]0.020484[/C][/ROW]
[ROW][C]10[/C][C]-0.027598[/C][C]-0.2138[/C][C]0.415723[/C][/ROW]
[ROW][C]11[/C][C]0.060384[/C][C]0.4677[/C][C]0.320836[/C][/ROW]
[ROW][C]12[/C][C]0.078046[/C][C]0.6045[/C][C]0.27388[/C][/ROW]
[ROW][C]13[/C][C]0.084746[/C][C]0.6564[/C][C]0.257025[/C][/ROW]
[ROW][C]14[/C][C]-0.15225[/C][C]-1.1793[/C][C]0.121463[/C][/ROW]
[ROW][C]15[/C][C]-0.01034[/C][C]-0.0801[/C][C]0.468216[/C][/ROW]
[ROW][C]16[/C][C]0.041806[/C][C]0.3238[/C][C]0.373596[/C][/ROW]
[ROW][C]17[/C][C]0.051877[/C][C]0.4018[/C][C]0.344615[/C][/ROW]
[ROW][C]18[/C][C]0.084946[/C][C]0.658[/C][C]0.256531[/C][/ROW]
[ROW][C]19[/C][C]-0.033082[/C][C]-0.2563[/C][C]0.399316[/C][/ROW]
[ROW][C]20[/C][C]-0.080036[/C][C]-0.62[/C][C]0.268817[/C][/ROW]
[ROW][C]21[/C][C]-0.129688[/C][C]-1.0046[/C][C]0.159573[/C][/ROW]
[ROW][C]22[/C][C]0.005238[/C][C]0.0406[/C][C]0.483884[/C][/ROW]
[ROW][C]23[/C][C]0.085621[/C][C]0.6632[/C][C]0.254867[/C][/ROW]
[ROW][C]24[/C][C]0.213982[/C][C]1.6575[/C][C]0.05132[/C][/ROW]
[ROW][C]25[/C][C]0.050481[/C][C]0.391[/C][C]0.348581[/C][/ROW]
[ROW][C]26[/C][C]-0.186153[/C][C]-1.4419[/C][C]0.07726[/C][/ROW]
[ROW][C]27[/C][C]-0.064808[/C][C]-0.502[/C][C]0.308753[/C][/ROW]
[ROW][C]28[/C][C]-0.025738[/C][C]-0.1994[/C][C]0.421325[/C][/ROW]
[ROW][C]29[/C][C]0.03376[/C][C]0.2615[/C][C]0.397301[/C][/ROW]
[ROW][C]30[/C][C]0.089525[/C][C]0.6935[/C][C]0.24535[/C][/ROW]
[ROW][C]31[/C][C]-0.045235[/C][C]-0.3504[/C][C]0.363638[/C][/ROW]
[ROW][C]32[/C][C]-0.044375[/C][C]-0.3437[/C][C]0.366127[/C][/ROW]
[ROW][C]33[/C][C]-0.141745[/C][C]-1.098[/C][C]0.138306[/C][/ROW]
[ROW][C]34[/C][C]-0.046953[/C][C]-0.3637[/C][C]0.35868[/C][/ROW]
[ROW][C]35[/C][C]0.078988[/C][C]0.6118[/C][C]0.271478[/C][/ROW]
[ROW][C]36[/C][C]-0.205959[/C][C]-1.5953[/C][C]0.057944[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61666&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61666&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.0123450.09560.462069
2-0.064206-0.49730.310385
3-0.264672-2.05010.022364
4-0.006574-0.05090.47978
50.1355851.05020.148911
60.121070.93780.176052
70.0629030.48720.31393
80.0265390.20560.418913
9-0.269675-2.08890.020484
10-0.027598-0.21380.415723
110.0603840.46770.320836
120.0780460.60450.27388
130.0847460.65640.257025
14-0.15225-1.17930.121463
15-0.01034-0.08010.468216
160.0418060.32380.373596
170.0518770.40180.344615
180.0849460.6580.256531
19-0.033082-0.25630.399316
20-0.080036-0.620.268817
21-0.129688-1.00460.159573
220.0052380.04060.483884
230.0856210.66320.254867
240.2139821.65750.05132
250.0504810.3910.348581
26-0.186153-1.44190.07726
27-0.064808-0.5020.308753
28-0.025738-0.19940.421325
290.033760.26150.397301
300.0895250.69350.24535
31-0.045235-0.35040.363638
32-0.044375-0.34370.366127
33-0.141745-1.0980.138306
34-0.046953-0.36370.35868
350.0789880.61180.271478
36-0.205959-1.59530.057944







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0123450.09560.462069
2-0.064368-0.49860.309945
3-0.264169-2.04620.022561
4-0.008902-0.0690.472628
50.1105970.85670.197514
60.0563460.43650.332037
70.0786590.60930.272315
80.1082510.83850.202538
9-0.240875-1.86580.033479
10-0.009763-0.07560.469984
110.0609340.4720.319323
12-0.083539-0.64710.260022
130.0754220.58420.280632
14-0.081914-0.63450.264081
150.018430.14280.443479
160.1088580.84320.201229
170.0218340.16910.433132
180.018790.14550.442384
190.0121760.09430.462588
20-0.063231-0.48980.313037
21-0.149396-1.15720.125885
220.0406570.31490.376954
23-0.039645-0.30710.37992
240.1840861.42590.079536
250.1629921.26250.105821
26-0.18017-1.39560.083991
270.117170.90760.183863
28-0.032372-0.25080.401431
29-0.203741-1.57820.059892
300.0776610.60160.274866
31-0.095095-0.73660.232118
32-0.128513-0.99550.161755
330.0761820.59010.278669
34-0.021825-0.16910.433162
35-0.092143-0.71370.239079
36-0.194112-1.50360.068967

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.012345 & 0.0956 & 0.462069 \tabularnewline
2 & -0.064368 & -0.4986 & 0.309945 \tabularnewline
3 & -0.264169 & -2.0462 & 0.022561 \tabularnewline
4 & -0.008902 & -0.069 & 0.472628 \tabularnewline
5 & 0.110597 & 0.8567 & 0.197514 \tabularnewline
6 & 0.056346 & 0.4365 & 0.332037 \tabularnewline
7 & 0.078659 & 0.6093 & 0.272315 \tabularnewline
8 & 0.108251 & 0.8385 & 0.202538 \tabularnewline
9 & -0.240875 & -1.8658 & 0.033479 \tabularnewline
10 & -0.009763 & -0.0756 & 0.469984 \tabularnewline
11 & 0.060934 & 0.472 & 0.319323 \tabularnewline
12 & -0.083539 & -0.6471 & 0.260022 \tabularnewline
13 & 0.075422 & 0.5842 & 0.280632 \tabularnewline
14 & -0.081914 & -0.6345 & 0.264081 \tabularnewline
15 & 0.01843 & 0.1428 & 0.443479 \tabularnewline
16 & 0.108858 & 0.8432 & 0.201229 \tabularnewline
17 & 0.021834 & 0.1691 & 0.433132 \tabularnewline
18 & 0.01879 & 0.1455 & 0.442384 \tabularnewline
19 & 0.012176 & 0.0943 & 0.462588 \tabularnewline
20 & -0.063231 & -0.4898 & 0.313037 \tabularnewline
21 & -0.149396 & -1.1572 & 0.125885 \tabularnewline
22 & 0.040657 & 0.3149 & 0.376954 \tabularnewline
23 & -0.039645 & -0.3071 & 0.37992 \tabularnewline
24 & 0.184086 & 1.4259 & 0.079536 \tabularnewline
25 & 0.162992 & 1.2625 & 0.105821 \tabularnewline
26 & -0.18017 & -1.3956 & 0.083991 \tabularnewline
27 & 0.11717 & 0.9076 & 0.183863 \tabularnewline
28 & -0.032372 & -0.2508 & 0.401431 \tabularnewline
29 & -0.203741 & -1.5782 & 0.059892 \tabularnewline
30 & 0.077661 & 0.6016 & 0.274866 \tabularnewline
31 & -0.095095 & -0.7366 & 0.232118 \tabularnewline
32 & -0.128513 & -0.9955 & 0.161755 \tabularnewline
33 & 0.076182 & 0.5901 & 0.278669 \tabularnewline
34 & -0.021825 & -0.1691 & 0.433162 \tabularnewline
35 & -0.092143 & -0.7137 & 0.239079 \tabularnewline
36 & -0.194112 & -1.5036 & 0.068967 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61666&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.012345[/C][C]0.0956[/C][C]0.462069[/C][/ROW]
[ROW][C]2[/C][C]-0.064368[/C][C]-0.4986[/C][C]0.309945[/C][/ROW]
[ROW][C]3[/C][C]-0.264169[/C][C]-2.0462[/C][C]0.022561[/C][/ROW]
[ROW][C]4[/C][C]-0.008902[/C][C]-0.069[/C][C]0.472628[/C][/ROW]
[ROW][C]5[/C][C]0.110597[/C][C]0.8567[/C][C]0.197514[/C][/ROW]
[ROW][C]6[/C][C]0.056346[/C][C]0.4365[/C][C]0.332037[/C][/ROW]
[ROW][C]7[/C][C]0.078659[/C][C]0.6093[/C][C]0.272315[/C][/ROW]
[ROW][C]8[/C][C]0.108251[/C][C]0.8385[/C][C]0.202538[/C][/ROW]
[ROW][C]9[/C][C]-0.240875[/C][C]-1.8658[/C][C]0.033479[/C][/ROW]
[ROW][C]10[/C][C]-0.009763[/C][C]-0.0756[/C][C]0.469984[/C][/ROW]
[ROW][C]11[/C][C]0.060934[/C][C]0.472[/C][C]0.319323[/C][/ROW]
[ROW][C]12[/C][C]-0.083539[/C][C]-0.6471[/C][C]0.260022[/C][/ROW]
[ROW][C]13[/C][C]0.075422[/C][C]0.5842[/C][C]0.280632[/C][/ROW]
[ROW][C]14[/C][C]-0.081914[/C][C]-0.6345[/C][C]0.264081[/C][/ROW]
[ROW][C]15[/C][C]0.01843[/C][C]0.1428[/C][C]0.443479[/C][/ROW]
[ROW][C]16[/C][C]0.108858[/C][C]0.8432[/C][C]0.201229[/C][/ROW]
[ROW][C]17[/C][C]0.021834[/C][C]0.1691[/C][C]0.433132[/C][/ROW]
[ROW][C]18[/C][C]0.01879[/C][C]0.1455[/C][C]0.442384[/C][/ROW]
[ROW][C]19[/C][C]0.012176[/C][C]0.0943[/C][C]0.462588[/C][/ROW]
[ROW][C]20[/C][C]-0.063231[/C][C]-0.4898[/C][C]0.313037[/C][/ROW]
[ROW][C]21[/C][C]-0.149396[/C][C]-1.1572[/C][C]0.125885[/C][/ROW]
[ROW][C]22[/C][C]0.040657[/C][C]0.3149[/C][C]0.376954[/C][/ROW]
[ROW][C]23[/C][C]-0.039645[/C][C]-0.3071[/C][C]0.37992[/C][/ROW]
[ROW][C]24[/C][C]0.184086[/C][C]1.4259[/C][C]0.079536[/C][/ROW]
[ROW][C]25[/C][C]0.162992[/C][C]1.2625[/C][C]0.105821[/C][/ROW]
[ROW][C]26[/C][C]-0.18017[/C][C]-1.3956[/C][C]0.083991[/C][/ROW]
[ROW][C]27[/C][C]0.11717[/C][C]0.9076[/C][C]0.183863[/C][/ROW]
[ROW][C]28[/C][C]-0.032372[/C][C]-0.2508[/C][C]0.401431[/C][/ROW]
[ROW][C]29[/C][C]-0.203741[/C][C]-1.5782[/C][C]0.059892[/C][/ROW]
[ROW][C]30[/C][C]0.077661[/C][C]0.6016[/C][C]0.274866[/C][/ROW]
[ROW][C]31[/C][C]-0.095095[/C][C]-0.7366[/C][C]0.232118[/C][/ROW]
[ROW][C]32[/C][C]-0.128513[/C][C]-0.9955[/C][C]0.161755[/C][/ROW]
[ROW][C]33[/C][C]0.076182[/C][C]0.5901[/C][C]0.278669[/C][/ROW]
[ROW][C]34[/C][C]-0.021825[/C][C]-0.1691[/C][C]0.433162[/C][/ROW]
[ROW][C]35[/C][C]-0.092143[/C][C]-0.7137[/C][C]0.239079[/C][/ROW]
[ROW][C]36[/C][C]-0.194112[/C][C]-1.5036[/C][C]0.068967[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61666&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61666&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.0123450.09560.462069
2-0.064368-0.49860.309945
3-0.264169-2.04620.022561
4-0.008902-0.0690.472628
50.1105970.85670.197514
60.0563460.43650.332037
70.0786590.60930.272315
80.1082510.83850.202538
9-0.240875-1.86580.033479
10-0.009763-0.07560.469984
110.0609340.4720.319323
12-0.083539-0.64710.260022
130.0754220.58420.280632
14-0.081914-0.63450.264081
150.018430.14280.443479
160.1088580.84320.201229
170.0218340.16910.433132
180.018790.14550.442384
190.0121760.09430.462588
20-0.063231-0.48980.313037
21-0.149396-1.15720.125885
220.0406570.31490.376954
23-0.039645-0.30710.37992
240.1840861.42590.079536
250.1629921.26250.105821
26-0.18017-1.39560.083991
270.117170.90760.183863
28-0.032372-0.25080.401431
29-0.203741-1.57820.059892
300.0776610.60160.274866
31-0.095095-0.73660.232118
32-0.128513-0.99550.161755
330.0761820.59010.278669
34-0.021825-0.16910.433162
35-0.092143-0.71370.239079
36-0.194112-1.50360.068967



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