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 computationThu, 03 Dec 2009 13:23: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/Dec/03/t1259871871l0p8vdemo7gym6z.htm/, Retrieved Thu, 25 Apr 2024 01:08:56 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63110, Retrieved Thu, 25 Apr 2024 01:08:56 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact135
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:47:30] [b98453cac15ba1066b407e146608df68]
- R  D      [(Partial) Autocorrelation Function] [ACF met d=1 en D=0] [2009-12-03 20:23:18] [7d2d29a9bcbcfc0ea3924e19a42d8563] [Current]
Feedback Forum

Post a new message
Dataseries X:
104.08
103.86
107.47
111.1
117.33
119.04
123.68
125.9
124.54
119.39
118.8
114.81
117.9
120.53
125.15
126.49
131.85
127.4
131.08
122.37
124.34
119.61
119.97
116.46
117.03
120.96
124.71
127.08
131.91
137.69
142.46
144.32
138.06
124.45
126.71
121.83
122.51
125.48
127.77
128.03
132.84
133.41
139.99
138.53
136.12
124.75
122.88
121.46
118.4
122.45
128.94
133.25
137.94
140.04
130.74
131.55
129.47
125.45
127.87
124.68




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63110&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 time0 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1806271.38740.085265
20.2867752.20280.015765
3-0.134379-1.03220.1531
4-0.218756-1.68030.049094
5-0.438401-3.36740.00067
6-0.206869-1.5890.058703
7-0.398104-3.05790.001674
8-0.053832-0.41350.340372
90.0348040.26730.395071
100.2160781.65970.051138
110.1773641.36240.089132
120.396773.04760.001724
130.196411.50870.068362
140.1789281.37440.087263
15-0.092681-0.71190.239667
16-0.038114-0.29280.385365
17-0.400393-3.07550.001591
18-0.18799-1.4440.077017
19-0.289451-2.22330.015019
20-0.142755-1.09650.138652
210.0808660.62110.268449
220.279042.14330.01811
230.0929540.7140.239022
240.375642.88530.002726
250.0606130.46560.321615
260.1545831.18740.11992
27-0.032613-0.25050.401532
28-0.055893-0.42930.334626
29-0.234746-1.80310.038239
30-0.142382-1.09370.139276
31-0.182418-1.40120.0832
32-0.094851-0.72860.234574
33-0.035188-0.27030.393943
340.0611850.470.320053
350.1504161.15540.126299
360.1453351.11630.134401

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.180627 & 1.3874 & 0.085265 \tabularnewline
2 & 0.286775 & 2.2028 & 0.015765 \tabularnewline
3 & -0.134379 & -1.0322 & 0.1531 \tabularnewline
4 & -0.218756 & -1.6803 & 0.049094 \tabularnewline
5 & -0.438401 & -3.3674 & 0.00067 \tabularnewline
6 & -0.206869 & -1.589 & 0.058703 \tabularnewline
7 & -0.398104 & -3.0579 & 0.001674 \tabularnewline
8 & -0.053832 & -0.4135 & 0.340372 \tabularnewline
9 & 0.034804 & 0.2673 & 0.395071 \tabularnewline
10 & 0.216078 & 1.6597 & 0.051138 \tabularnewline
11 & 0.177364 & 1.3624 & 0.089132 \tabularnewline
12 & 0.39677 & 3.0476 & 0.001724 \tabularnewline
13 & 0.19641 & 1.5087 & 0.068362 \tabularnewline
14 & 0.178928 & 1.3744 & 0.087263 \tabularnewline
15 & -0.092681 & -0.7119 & 0.239667 \tabularnewline
16 & -0.038114 & -0.2928 & 0.385365 \tabularnewline
17 & -0.400393 & -3.0755 & 0.001591 \tabularnewline
18 & -0.18799 & -1.444 & 0.077017 \tabularnewline
19 & -0.289451 & -2.2233 & 0.015019 \tabularnewline
20 & -0.142755 & -1.0965 & 0.138652 \tabularnewline
21 & 0.080866 & 0.6211 & 0.268449 \tabularnewline
22 & 0.27904 & 2.1433 & 0.01811 \tabularnewline
23 & 0.092954 & 0.714 & 0.239022 \tabularnewline
24 & 0.37564 & 2.8853 & 0.002726 \tabularnewline
25 & 0.060613 & 0.4656 & 0.321615 \tabularnewline
26 & 0.154583 & 1.1874 & 0.11992 \tabularnewline
27 & -0.032613 & -0.2505 & 0.401532 \tabularnewline
28 & -0.055893 & -0.4293 & 0.334626 \tabularnewline
29 & -0.234746 & -1.8031 & 0.038239 \tabularnewline
30 & -0.142382 & -1.0937 & 0.139276 \tabularnewline
31 & -0.182418 & -1.4012 & 0.0832 \tabularnewline
32 & -0.094851 & -0.7286 & 0.234574 \tabularnewline
33 & -0.035188 & -0.2703 & 0.393943 \tabularnewline
34 & 0.061185 & 0.47 & 0.320053 \tabularnewline
35 & 0.150416 & 1.1554 & 0.126299 \tabularnewline
36 & 0.145335 & 1.1163 & 0.134401 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63110&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.180627[/C][C]1.3874[/C][C]0.085265[/C][/ROW]
[ROW][C]2[/C][C]0.286775[/C][C]2.2028[/C][C]0.015765[/C][/ROW]
[ROW][C]3[/C][C]-0.134379[/C][C]-1.0322[/C][C]0.1531[/C][/ROW]
[ROW][C]4[/C][C]-0.218756[/C][C]-1.6803[/C][C]0.049094[/C][/ROW]
[ROW][C]5[/C][C]-0.438401[/C][C]-3.3674[/C][C]0.00067[/C][/ROW]
[ROW][C]6[/C][C]-0.206869[/C][C]-1.589[/C][C]0.058703[/C][/ROW]
[ROW][C]7[/C][C]-0.398104[/C][C]-3.0579[/C][C]0.001674[/C][/ROW]
[ROW][C]8[/C][C]-0.053832[/C][C]-0.4135[/C][C]0.340372[/C][/ROW]
[ROW][C]9[/C][C]0.034804[/C][C]0.2673[/C][C]0.395071[/C][/ROW]
[ROW][C]10[/C][C]0.216078[/C][C]1.6597[/C][C]0.051138[/C][/ROW]
[ROW][C]11[/C][C]0.177364[/C][C]1.3624[/C][C]0.089132[/C][/ROW]
[ROW][C]12[/C][C]0.39677[/C][C]3.0476[/C][C]0.001724[/C][/ROW]
[ROW][C]13[/C][C]0.19641[/C][C]1.5087[/C][C]0.068362[/C][/ROW]
[ROW][C]14[/C][C]0.178928[/C][C]1.3744[/C][C]0.087263[/C][/ROW]
[ROW][C]15[/C][C]-0.092681[/C][C]-0.7119[/C][C]0.239667[/C][/ROW]
[ROW][C]16[/C][C]-0.038114[/C][C]-0.2928[/C][C]0.385365[/C][/ROW]
[ROW][C]17[/C][C]-0.400393[/C][C]-3.0755[/C][C]0.001591[/C][/ROW]
[ROW][C]18[/C][C]-0.18799[/C][C]-1.444[/C][C]0.077017[/C][/ROW]
[ROW][C]19[/C][C]-0.289451[/C][C]-2.2233[/C][C]0.015019[/C][/ROW]
[ROW][C]20[/C][C]-0.142755[/C][C]-1.0965[/C][C]0.138652[/C][/ROW]
[ROW][C]21[/C][C]0.080866[/C][C]0.6211[/C][C]0.268449[/C][/ROW]
[ROW][C]22[/C][C]0.27904[/C][C]2.1433[/C][C]0.01811[/C][/ROW]
[ROW][C]23[/C][C]0.092954[/C][C]0.714[/C][C]0.239022[/C][/ROW]
[ROW][C]24[/C][C]0.37564[/C][C]2.8853[/C][C]0.002726[/C][/ROW]
[ROW][C]25[/C][C]0.060613[/C][C]0.4656[/C][C]0.321615[/C][/ROW]
[ROW][C]26[/C][C]0.154583[/C][C]1.1874[/C][C]0.11992[/C][/ROW]
[ROW][C]27[/C][C]-0.032613[/C][C]-0.2505[/C][C]0.401532[/C][/ROW]
[ROW][C]28[/C][C]-0.055893[/C][C]-0.4293[/C][C]0.334626[/C][/ROW]
[ROW][C]29[/C][C]-0.234746[/C][C]-1.8031[/C][C]0.038239[/C][/ROW]
[ROW][C]30[/C][C]-0.142382[/C][C]-1.0937[/C][C]0.139276[/C][/ROW]
[ROW][C]31[/C][C]-0.182418[/C][C]-1.4012[/C][C]0.0832[/C][/ROW]
[ROW][C]32[/C][C]-0.094851[/C][C]-0.7286[/C][C]0.234574[/C][/ROW]
[ROW][C]33[/C][C]-0.035188[/C][C]-0.2703[/C][C]0.393943[/C][/ROW]
[ROW][C]34[/C][C]0.061185[/C][C]0.47[/C][C]0.320053[/C][/ROW]
[ROW][C]35[/C][C]0.150416[/C][C]1.1554[/C][C]0.126299[/C][/ROW]
[ROW][C]36[/C][C]0.145335[/C][C]1.1163[/C][C]0.134401[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63110&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63110&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.1806271.38740.085265
20.2867752.20280.015765
3-0.134379-1.03220.1531
4-0.218756-1.68030.049094
5-0.438401-3.36740.00067
6-0.206869-1.5890.058703
7-0.398104-3.05790.001674
8-0.053832-0.41350.340372
90.0348040.26730.395071
100.2160781.65970.051138
110.1773641.36240.089132
120.396773.04760.001724
130.196411.50870.068362
140.1789281.37440.087263
15-0.092681-0.71190.239667
16-0.038114-0.29280.385365
17-0.400393-3.07550.001591
18-0.18799-1.4440.077017
19-0.289451-2.22330.015019
20-0.142755-1.09650.138652
210.0808660.62110.268449
220.279042.14330.01811
230.0929540.7140.239022
240.375642.88530.002726
250.0606130.46560.321615
260.1545831.18740.11992
27-0.032613-0.25050.401532
28-0.055893-0.42930.334626
29-0.234746-1.80310.038239
30-0.142382-1.09370.139276
31-0.182418-1.40120.0832
32-0.094851-0.72860.234574
33-0.035188-0.27030.393943
340.0611850.470.320053
350.1504161.15540.126299
360.1453351.11630.134401







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1806271.38740.085265
20.2627212.0180.024073
3-0.244307-1.87660.032763
4-0.274876-2.11140.019493
5-0.325959-2.50370.007537
6-0.005425-0.04170.483451
7-0.291838-2.24170.014379
8-0.138038-1.06030.146667
90.0300220.23060.409209
100.000580.00450.498231
11-0.118286-0.90860.183637
120.1532741.17730.121897
130.1749421.34380.092086
140.0339330.26060.397639
15-0.104794-0.80490.212044
160.2258741.7350.043983
17-0.119861-0.92070.180486
18-0.119142-0.91510.181919
190.030760.23630.407021
20-0.071064-0.54590.293612
210.0867650.66650.253859
220.0991730.76180.224617
23-0.16998-1.30560.098371
240.0872780.67040.25261
25-0.062163-0.47750.317392
260.1259040.96710.168724
270.0810120.62230.268083
28-0.003779-0.0290.488471
290.1256920.96550.169127
30-0.076132-0.58480.280462
310.1198240.92040.180559
32-0.007423-0.0570.477363
33-0.032322-0.24830.402394
34-0.112278-0.86240.195973
350.0620670.47670.317651
36-0.021732-0.16690.434001

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.180627 & 1.3874 & 0.085265 \tabularnewline
2 & 0.262721 & 2.018 & 0.024073 \tabularnewline
3 & -0.244307 & -1.8766 & 0.032763 \tabularnewline
4 & -0.274876 & -2.1114 & 0.019493 \tabularnewline
5 & -0.325959 & -2.5037 & 0.007537 \tabularnewline
6 & -0.005425 & -0.0417 & 0.483451 \tabularnewline
7 & -0.291838 & -2.2417 & 0.014379 \tabularnewline
8 & -0.138038 & -1.0603 & 0.146667 \tabularnewline
9 & 0.030022 & 0.2306 & 0.409209 \tabularnewline
10 & 0.00058 & 0.0045 & 0.498231 \tabularnewline
11 & -0.118286 & -0.9086 & 0.183637 \tabularnewline
12 & 0.153274 & 1.1773 & 0.121897 \tabularnewline
13 & 0.174942 & 1.3438 & 0.092086 \tabularnewline
14 & 0.033933 & 0.2606 & 0.397639 \tabularnewline
15 & -0.104794 & -0.8049 & 0.212044 \tabularnewline
16 & 0.225874 & 1.735 & 0.043983 \tabularnewline
17 & -0.119861 & -0.9207 & 0.180486 \tabularnewline
18 & -0.119142 & -0.9151 & 0.181919 \tabularnewline
19 & 0.03076 & 0.2363 & 0.407021 \tabularnewline
20 & -0.071064 & -0.5459 & 0.293612 \tabularnewline
21 & 0.086765 & 0.6665 & 0.253859 \tabularnewline
22 & 0.099173 & 0.7618 & 0.224617 \tabularnewline
23 & -0.16998 & -1.3056 & 0.098371 \tabularnewline
24 & 0.087278 & 0.6704 & 0.25261 \tabularnewline
25 & -0.062163 & -0.4775 & 0.317392 \tabularnewline
26 & 0.125904 & 0.9671 & 0.168724 \tabularnewline
27 & 0.081012 & 0.6223 & 0.268083 \tabularnewline
28 & -0.003779 & -0.029 & 0.488471 \tabularnewline
29 & 0.125692 & 0.9655 & 0.169127 \tabularnewline
30 & -0.076132 & -0.5848 & 0.280462 \tabularnewline
31 & 0.119824 & 0.9204 & 0.180559 \tabularnewline
32 & -0.007423 & -0.057 & 0.477363 \tabularnewline
33 & -0.032322 & -0.2483 & 0.402394 \tabularnewline
34 & -0.112278 & -0.8624 & 0.195973 \tabularnewline
35 & 0.062067 & 0.4767 & 0.317651 \tabularnewline
36 & -0.021732 & -0.1669 & 0.434001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63110&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.180627[/C][C]1.3874[/C][C]0.085265[/C][/ROW]
[ROW][C]2[/C][C]0.262721[/C][C]2.018[/C][C]0.024073[/C][/ROW]
[ROW][C]3[/C][C]-0.244307[/C][C]-1.8766[/C][C]0.032763[/C][/ROW]
[ROW][C]4[/C][C]-0.274876[/C][C]-2.1114[/C][C]0.019493[/C][/ROW]
[ROW][C]5[/C][C]-0.325959[/C][C]-2.5037[/C][C]0.007537[/C][/ROW]
[ROW][C]6[/C][C]-0.005425[/C][C]-0.0417[/C][C]0.483451[/C][/ROW]
[ROW][C]7[/C][C]-0.291838[/C][C]-2.2417[/C][C]0.014379[/C][/ROW]
[ROW][C]8[/C][C]-0.138038[/C][C]-1.0603[/C][C]0.146667[/C][/ROW]
[ROW][C]9[/C][C]0.030022[/C][C]0.2306[/C][C]0.409209[/C][/ROW]
[ROW][C]10[/C][C]0.00058[/C][C]0.0045[/C][C]0.498231[/C][/ROW]
[ROW][C]11[/C][C]-0.118286[/C][C]-0.9086[/C][C]0.183637[/C][/ROW]
[ROW][C]12[/C][C]0.153274[/C][C]1.1773[/C][C]0.121897[/C][/ROW]
[ROW][C]13[/C][C]0.174942[/C][C]1.3438[/C][C]0.092086[/C][/ROW]
[ROW][C]14[/C][C]0.033933[/C][C]0.2606[/C][C]0.397639[/C][/ROW]
[ROW][C]15[/C][C]-0.104794[/C][C]-0.8049[/C][C]0.212044[/C][/ROW]
[ROW][C]16[/C][C]0.225874[/C][C]1.735[/C][C]0.043983[/C][/ROW]
[ROW][C]17[/C][C]-0.119861[/C][C]-0.9207[/C][C]0.180486[/C][/ROW]
[ROW][C]18[/C][C]-0.119142[/C][C]-0.9151[/C][C]0.181919[/C][/ROW]
[ROW][C]19[/C][C]0.03076[/C][C]0.2363[/C][C]0.407021[/C][/ROW]
[ROW][C]20[/C][C]-0.071064[/C][C]-0.5459[/C][C]0.293612[/C][/ROW]
[ROW][C]21[/C][C]0.086765[/C][C]0.6665[/C][C]0.253859[/C][/ROW]
[ROW][C]22[/C][C]0.099173[/C][C]0.7618[/C][C]0.224617[/C][/ROW]
[ROW][C]23[/C][C]-0.16998[/C][C]-1.3056[/C][C]0.098371[/C][/ROW]
[ROW][C]24[/C][C]0.087278[/C][C]0.6704[/C][C]0.25261[/C][/ROW]
[ROW][C]25[/C][C]-0.062163[/C][C]-0.4775[/C][C]0.317392[/C][/ROW]
[ROW][C]26[/C][C]0.125904[/C][C]0.9671[/C][C]0.168724[/C][/ROW]
[ROW][C]27[/C][C]0.081012[/C][C]0.6223[/C][C]0.268083[/C][/ROW]
[ROW][C]28[/C][C]-0.003779[/C][C]-0.029[/C][C]0.488471[/C][/ROW]
[ROW][C]29[/C][C]0.125692[/C][C]0.9655[/C][C]0.169127[/C][/ROW]
[ROW][C]30[/C][C]-0.076132[/C][C]-0.5848[/C][C]0.280462[/C][/ROW]
[ROW][C]31[/C][C]0.119824[/C][C]0.9204[/C][C]0.180559[/C][/ROW]
[ROW][C]32[/C][C]-0.007423[/C][C]-0.057[/C][C]0.477363[/C][/ROW]
[ROW][C]33[/C][C]-0.032322[/C][C]-0.2483[/C][C]0.402394[/C][/ROW]
[ROW][C]34[/C][C]-0.112278[/C][C]-0.8624[/C][C]0.195973[/C][/ROW]
[ROW][C]35[/C][C]0.062067[/C][C]0.4767[/C][C]0.317651[/C][/ROW]
[ROW][C]36[/C][C]-0.021732[/C][C]-0.1669[/C][C]0.434001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63110&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63110&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.1806271.38740.085265
20.2627212.0180.024073
3-0.244307-1.87660.032763
4-0.274876-2.11140.019493
5-0.325959-2.50370.007537
6-0.005425-0.04170.483451
7-0.291838-2.24170.014379
8-0.138038-1.06030.146667
90.0300220.23060.409209
100.000580.00450.498231
11-0.118286-0.90860.183637
120.1532741.17730.121897
130.1749421.34380.092086
140.0339330.26060.397639
15-0.104794-0.80490.212044
160.2258741.7350.043983
17-0.119861-0.92070.180486
18-0.119142-0.91510.181919
190.030760.23630.407021
20-0.071064-0.54590.293612
210.0867650.66650.253859
220.0991730.76180.224617
23-0.16998-1.30560.098371
240.0872780.67040.25261
25-0.062163-0.47750.317392
260.1259040.96710.168724
270.0810120.62230.268083
28-0.003779-0.0290.488471
290.1256920.96550.169127
30-0.076132-0.58480.280462
310.1198240.92040.180559
32-0.007423-0.0570.477363
33-0.032322-0.24830.402394
34-0.112278-0.86240.195973
350.0620670.47670.317651
36-0.021732-0.16690.434001



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')