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 04:47:28 -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/t1259322533x4k6shaltrxex3q.htm/, Retrieved Mon, 29 Apr 2024 01:44:43 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60589, Retrieved Mon, 29 Apr 2024 01:44:43 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact131
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]
-    D          [(Partial) Autocorrelation Function] [WS8 methode 1 link1] [2009-11-27 11:47:28] [5d37783481a916b2505b66314b556267] [Current]
Feedback Forum

Post a new message
Dataseries X:
3.75
3.75
3.55
3.5
3.5
3.1
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3.21
3.25
3.25
3.45
3.5
3.5
3.64
3.75
3.93
4
4.17
4.25
4.39
4.5
4.5
4.65
4.75
4.75
4.9
5
5
5
5
5
5
5
5
5
5
5
5
5.18
5.25
5.25
4.49
3.92
3.25




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60589&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.9784088.30210
20.9433848.00490
30.9017897.65190
40.8657017.34570
50.8292447.03640
60.7914366.71560
70.7487526.35340
80.7032055.96690
90.6550365.55820
100.6045855.13011e-06
110.5519644.68366e-06
120.4980594.22623.4e-05
130.4417873.74870.000178
140.38373.25580.000863
150.3251342.75890.003675
160.2663192.25980.01343
170.2094181.7770.039899
180.1552261.31710.095984
190.1024030.86890.19389
200.0503430.42720.335265
210.0008390.00710.49717
22-0.046764-0.39680.346341
23-0.093057-0.78960.216173
24-0.135822-1.15250.126466
25-0.175032-1.48520.070928
26-0.212305-1.80150.037908
27-0.244819-2.07740.020668
28-0.274647-2.33050.011294
29-0.300223-2.54750.006493
30-0.324485-2.75330.003731
31-0.345662-2.9330.002249
32-0.365198-3.09880.001386
33-0.38148-3.2370.000914
34-0.392439-3.330.000686
35-0.401299-3.40510.000542
36-0.406655-3.45060.00047

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.978408 & 8.3021 & 0 \tabularnewline
2 & 0.943384 & 8.0049 & 0 \tabularnewline
3 & 0.901789 & 7.6519 & 0 \tabularnewline
4 & 0.865701 & 7.3457 & 0 \tabularnewline
5 & 0.829244 & 7.0364 & 0 \tabularnewline
6 & 0.791436 & 6.7156 & 0 \tabularnewline
7 & 0.748752 & 6.3534 & 0 \tabularnewline
8 & 0.703205 & 5.9669 & 0 \tabularnewline
9 & 0.655036 & 5.5582 & 0 \tabularnewline
10 & 0.604585 & 5.1301 & 1e-06 \tabularnewline
11 & 0.551964 & 4.6836 & 6e-06 \tabularnewline
12 & 0.498059 & 4.2262 & 3.4e-05 \tabularnewline
13 & 0.441787 & 3.7487 & 0.000178 \tabularnewline
14 & 0.3837 & 3.2558 & 0.000863 \tabularnewline
15 & 0.325134 & 2.7589 & 0.003675 \tabularnewline
16 & 0.266319 & 2.2598 & 0.01343 \tabularnewline
17 & 0.209418 & 1.777 & 0.039899 \tabularnewline
18 & 0.155226 & 1.3171 & 0.095984 \tabularnewline
19 & 0.102403 & 0.8689 & 0.19389 \tabularnewline
20 & 0.050343 & 0.4272 & 0.335265 \tabularnewline
21 & 0.000839 & 0.0071 & 0.49717 \tabularnewline
22 & -0.046764 & -0.3968 & 0.346341 \tabularnewline
23 & -0.093057 & -0.7896 & 0.216173 \tabularnewline
24 & -0.135822 & -1.1525 & 0.126466 \tabularnewline
25 & -0.175032 & -1.4852 & 0.070928 \tabularnewline
26 & -0.212305 & -1.8015 & 0.037908 \tabularnewline
27 & -0.244819 & -2.0774 & 0.020668 \tabularnewline
28 & -0.274647 & -2.3305 & 0.011294 \tabularnewline
29 & -0.300223 & -2.5475 & 0.006493 \tabularnewline
30 & -0.324485 & -2.7533 & 0.003731 \tabularnewline
31 & -0.345662 & -2.933 & 0.002249 \tabularnewline
32 & -0.365198 & -3.0988 & 0.001386 \tabularnewline
33 & -0.38148 & -3.237 & 0.000914 \tabularnewline
34 & -0.392439 & -3.33 & 0.000686 \tabularnewline
35 & -0.401299 & -3.4051 & 0.000542 \tabularnewline
36 & -0.406655 & -3.4506 & 0.00047 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60589&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.978408[/C][C]8.3021[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.943384[/C][C]8.0049[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.901789[/C][C]7.6519[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.865701[/C][C]7.3457[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0.829244[/C][C]7.0364[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0.791436[/C][C]6.7156[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0.748752[/C][C]6.3534[/C][C]0[/C][/ROW]
[ROW][C]8[/C][C]0.703205[/C][C]5.9669[/C][C]0[/C][/ROW]
[ROW][C]9[/C][C]0.655036[/C][C]5.5582[/C][C]0[/C][/ROW]
[ROW][C]10[/C][C]0.604585[/C][C]5.1301[/C][C]1e-06[/C][/ROW]
[ROW][C]11[/C][C]0.551964[/C][C]4.6836[/C][C]6e-06[/C][/ROW]
[ROW][C]12[/C][C]0.498059[/C][C]4.2262[/C][C]3.4e-05[/C][/ROW]
[ROW][C]13[/C][C]0.441787[/C][C]3.7487[/C][C]0.000178[/C][/ROW]
[ROW][C]14[/C][C]0.3837[/C][C]3.2558[/C][C]0.000863[/C][/ROW]
[ROW][C]15[/C][C]0.325134[/C][C]2.7589[/C][C]0.003675[/C][/ROW]
[ROW][C]16[/C][C]0.266319[/C][C]2.2598[/C][C]0.01343[/C][/ROW]
[ROW][C]17[/C][C]0.209418[/C][C]1.777[/C][C]0.039899[/C][/ROW]
[ROW][C]18[/C][C]0.155226[/C][C]1.3171[/C][C]0.095984[/C][/ROW]
[ROW][C]19[/C][C]0.102403[/C][C]0.8689[/C][C]0.19389[/C][/ROW]
[ROW][C]20[/C][C]0.050343[/C][C]0.4272[/C][C]0.335265[/C][/ROW]
[ROW][C]21[/C][C]0.000839[/C][C]0.0071[/C][C]0.49717[/C][/ROW]
[ROW][C]22[/C][C]-0.046764[/C][C]-0.3968[/C][C]0.346341[/C][/ROW]
[ROW][C]23[/C][C]-0.093057[/C][C]-0.7896[/C][C]0.216173[/C][/ROW]
[ROW][C]24[/C][C]-0.135822[/C][C]-1.1525[/C][C]0.126466[/C][/ROW]
[ROW][C]25[/C][C]-0.175032[/C][C]-1.4852[/C][C]0.070928[/C][/ROW]
[ROW][C]26[/C][C]-0.212305[/C][C]-1.8015[/C][C]0.037908[/C][/ROW]
[ROW][C]27[/C][C]-0.244819[/C][C]-2.0774[/C][C]0.020668[/C][/ROW]
[ROW][C]28[/C][C]-0.274647[/C][C]-2.3305[/C][C]0.011294[/C][/ROW]
[ROW][C]29[/C][C]-0.300223[/C][C]-2.5475[/C][C]0.006493[/C][/ROW]
[ROW][C]30[/C][C]-0.324485[/C][C]-2.7533[/C][C]0.003731[/C][/ROW]
[ROW][C]31[/C][C]-0.345662[/C][C]-2.933[/C][C]0.002249[/C][/ROW]
[ROW][C]32[/C][C]-0.365198[/C][C]-3.0988[/C][C]0.001386[/C][/ROW]
[ROW][C]33[/C][C]-0.38148[/C][C]-3.237[/C][C]0.000914[/C][/ROW]
[ROW][C]34[/C][C]-0.392439[/C][C]-3.33[/C][C]0.000686[/C][/ROW]
[ROW][C]35[/C][C]-0.401299[/C][C]-3.4051[/C][C]0.000542[/C][/ROW]
[ROW][C]36[/C][C]-0.406655[/C][C]-3.4506[/C][C]0.00047[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60589&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60589&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.9784088.30210
20.9433848.00490
30.9017897.65190
40.8657017.34570
50.8292447.03640
60.7914366.71560
70.7487526.35340
80.7032055.96690
90.6550365.55820
100.6045855.13011e-06
110.5519644.68366e-06
120.4980594.22623.4e-05
130.4417873.74870.000178
140.38373.25580.000863
150.3251342.75890.003675
160.2663192.25980.01343
170.2094181.7770.039899
180.1552261.31710.095984
190.1024030.86890.19389
200.0503430.42720.335265
210.0008390.00710.49717
22-0.046764-0.39680.346341
23-0.093057-0.78960.216173
24-0.135822-1.15250.126466
25-0.175032-1.48520.070928
26-0.212305-1.80150.037908
27-0.244819-2.07740.020668
28-0.274647-2.33050.011294
29-0.300223-2.54750.006493
30-0.324485-2.75330.003731
31-0.345662-2.9330.002249
32-0.365198-3.09880.001386
33-0.38148-3.2370.000914
34-0.392439-3.330.000686
35-0.401299-3.40510.000542
36-0.406655-3.45060.00047







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9784088.30210
2-0.325308-2.76030.00366
3-0.083909-0.7120.239384
40.1929381.63710.052984
5-0.128181-1.08770.140188
6-0.07556-0.64110.261732
7-0.070493-0.59820.275807
8-0.050085-0.4250.336056
9-0.05862-0.49740.31021
10-0.084203-0.71450.238618
11-0.053381-0.4530.325972
12-0.038662-0.32810.37191
13-0.092424-0.78420.217736
14-0.059236-0.50260.308379
15-0.01686-0.14310.443321
16-0.060297-0.51160.305234
170.0057710.0490.480541
180.0124880.1060.457952
19-0.055306-0.46930.320141
20-0.023498-0.19940.421261
210.0369720.31370.377322
22-0.038385-0.32570.372794
23-0.052091-0.4420.329904
240.0545240.46270.322504
25-0.001476-0.01250.495021
26-0.070608-0.59910.275484
270.0785750.66670.253538
28-0.030893-0.26210.396982
290.0022170.01880.492523
30-0.047719-0.40490.343371
310.0039510.03350.486673
32-0.018515-0.15710.437802
33-0.025522-0.21660.414582
340.0743760.63110.264986
35-0.078406-0.66530.253993
360.0154330.1310.448088

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.978408 & 8.3021 & 0 \tabularnewline
2 & -0.325308 & -2.7603 & 0.00366 \tabularnewline
3 & -0.083909 & -0.712 & 0.239384 \tabularnewline
4 & 0.192938 & 1.6371 & 0.052984 \tabularnewline
5 & -0.128181 & -1.0877 & 0.140188 \tabularnewline
6 & -0.07556 & -0.6411 & 0.261732 \tabularnewline
7 & -0.070493 & -0.5982 & 0.275807 \tabularnewline
8 & -0.050085 & -0.425 & 0.336056 \tabularnewline
9 & -0.05862 & -0.4974 & 0.31021 \tabularnewline
10 & -0.084203 & -0.7145 & 0.238618 \tabularnewline
11 & -0.053381 & -0.453 & 0.325972 \tabularnewline
12 & -0.038662 & -0.3281 & 0.37191 \tabularnewline
13 & -0.092424 & -0.7842 & 0.217736 \tabularnewline
14 & -0.059236 & -0.5026 & 0.308379 \tabularnewline
15 & -0.01686 & -0.1431 & 0.443321 \tabularnewline
16 & -0.060297 & -0.5116 & 0.305234 \tabularnewline
17 & 0.005771 & 0.049 & 0.480541 \tabularnewline
18 & 0.012488 & 0.106 & 0.457952 \tabularnewline
19 & -0.055306 & -0.4693 & 0.320141 \tabularnewline
20 & -0.023498 & -0.1994 & 0.421261 \tabularnewline
21 & 0.036972 & 0.3137 & 0.377322 \tabularnewline
22 & -0.038385 & -0.3257 & 0.372794 \tabularnewline
23 & -0.052091 & -0.442 & 0.329904 \tabularnewline
24 & 0.054524 & 0.4627 & 0.322504 \tabularnewline
25 & -0.001476 & -0.0125 & 0.495021 \tabularnewline
26 & -0.070608 & -0.5991 & 0.275484 \tabularnewline
27 & 0.078575 & 0.6667 & 0.253538 \tabularnewline
28 & -0.030893 & -0.2621 & 0.396982 \tabularnewline
29 & 0.002217 & 0.0188 & 0.492523 \tabularnewline
30 & -0.047719 & -0.4049 & 0.343371 \tabularnewline
31 & 0.003951 & 0.0335 & 0.486673 \tabularnewline
32 & -0.018515 & -0.1571 & 0.437802 \tabularnewline
33 & -0.025522 & -0.2166 & 0.414582 \tabularnewline
34 & 0.074376 & 0.6311 & 0.264986 \tabularnewline
35 & -0.078406 & -0.6653 & 0.253993 \tabularnewline
36 & 0.015433 & 0.131 & 0.448088 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60589&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.978408[/C][C]8.3021[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.325308[/C][C]-2.7603[/C][C]0.00366[/C][/ROW]
[ROW][C]3[/C][C]-0.083909[/C][C]-0.712[/C][C]0.239384[/C][/ROW]
[ROW][C]4[/C][C]0.192938[/C][C]1.6371[/C][C]0.052984[/C][/ROW]
[ROW][C]5[/C][C]-0.128181[/C][C]-1.0877[/C][C]0.140188[/C][/ROW]
[ROW][C]6[/C][C]-0.07556[/C][C]-0.6411[/C][C]0.261732[/C][/ROW]
[ROW][C]7[/C][C]-0.070493[/C][C]-0.5982[/C][C]0.275807[/C][/ROW]
[ROW][C]8[/C][C]-0.050085[/C][C]-0.425[/C][C]0.336056[/C][/ROW]
[ROW][C]9[/C][C]-0.05862[/C][C]-0.4974[/C][C]0.31021[/C][/ROW]
[ROW][C]10[/C][C]-0.084203[/C][C]-0.7145[/C][C]0.238618[/C][/ROW]
[ROW][C]11[/C][C]-0.053381[/C][C]-0.453[/C][C]0.325972[/C][/ROW]
[ROW][C]12[/C][C]-0.038662[/C][C]-0.3281[/C][C]0.37191[/C][/ROW]
[ROW][C]13[/C][C]-0.092424[/C][C]-0.7842[/C][C]0.217736[/C][/ROW]
[ROW][C]14[/C][C]-0.059236[/C][C]-0.5026[/C][C]0.308379[/C][/ROW]
[ROW][C]15[/C][C]-0.01686[/C][C]-0.1431[/C][C]0.443321[/C][/ROW]
[ROW][C]16[/C][C]-0.060297[/C][C]-0.5116[/C][C]0.305234[/C][/ROW]
[ROW][C]17[/C][C]0.005771[/C][C]0.049[/C][C]0.480541[/C][/ROW]
[ROW][C]18[/C][C]0.012488[/C][C]0.106[/C][C]0.457952[/C][/ROW]
[ROW][C]19[/C][C]-0.055306[/C][C]-0.4693[/C][C]0.320141[/C][/ROW]
[ROW][C]20[/C][C]-0.023498[/C][C]-0.1994[/C][C]0.421261[/C][/ROW]
[ROW][C]21[/C][C]0.036972[/C][C]0.3137[/C][C]0.377322[/C][/ROW]
[ROW][C]22[/C][C]-0.038385[/C][C]-0.3257[/C][C]0.372794[/C][/ROW]
[ROW][C]23[/C][C]-0.052091[/C][C]-0.442[/C][C]0.329904[/C][/ROW]
[ROW][C]24[/C][C]0.054524[/C][C]0.4627[/C][C]0.322504[/C][/ROW]
[ROW][C]25[/C][C]-0.001476[/C][C]-0.0125[/C][C]0.495021[/C][/ROW]
[ROW][C]26[/C][C]-0.070608[/C][C]-0.5991[/C][C]0.275484[/C][/ROW]
[ROW][C]27[/C][C]0.078575[/C][C]0.6667[/C][C]0.253538[/C][/ROW]
[ROW][C]28[/C][C]-0.030893[/C][C]-0.2621[/C][C]0.396982[/C][/ROW]
[ROW][C]29[/C][C]0.002217[/C][C]0.0188[/C][C]0.492523[/C][/ROW]
[ROW][C]30[/C][C]-0.047719[/C][C]-0.4049[/C][C]0.343371[/C][/ROW]
[ROW][C]31[/C][C]0.003951[/C][C]0.0335[/C][C]0.486673[/C][/ROW]
[ROW][C]32[/C][C]-0.018515[/C][C]-0.1571[/C][C]0.437802[/C][/ROW]
[ROW][C]33[/C][C]-0.025522[/C][C]-0.2166[/C][C]0.414582[/C][/ROW]
[ROW][C]34[/C][C]0.074376[/C][C]0.6311[/C][C]0.264986[/C][/ROW]
[ROW][C]35[/C][C]-0.078406[/C][C]-0.6653[/C][C]0.253993[/C][/ROW]
[ROW][C]36[/C][C]0.015433[/C][C]0.131[/C][C]0.448088[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60589&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60589&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.9784088.30210
2-0.325308-2.76030.00366
3-0.083909-0.7120.239384
40.1929381.63710.052984
5-0.128181-1.08770.140188
6-0.07556-0.64110.261732
7-0.070493-0.59820.275807
8-0.050085-0.4250.336056
9-0.05862-0.49740.31021
10-0.084203-0.71450.238618
11-0.053381-0.4530.325972
12-0.038662-0.32810.37191
13-0.092424-0.78420.217736
14-0.059236-0.50260.308379
15-0.01686-0.14310.443321
16-0.060297-0.51160.305234
170.0057710.0490.480541
180.0124880.1060.457952
19-0.055306-0.46930.320141
20-0.023498-0.19940.421261
210.0369720.31370.377322
22-0.038385-0.32570.372794
23-0.052091-0.4420.329904
240.0545240.46270.322504
25-0.001476-0.01250.495021
26-0.070608-0.59910.275484
270.0785750.66670.253538
28-0.030893-0.26210.396982
290.0022170.01880.492523
30-0.047719-0.40490.343371
310.0039510.03350.486673
32-0.018515-0.15710.437802
33-0.025522-0.21660.414582
340.0743760.63110.264986
35-0.078406-0.66530.253993
360.0154330.1310.448088



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