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, 11 Dec 2009 02:45:40 -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/11/t1260524790a6dlsjc9dugmhjf.htm/, Retrieved Sun, 28 Apr 2024 19:42:57 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=65926, Retrieved Sun, 28 Apr 2024 19:42:57 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact115
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [Oplossing ACF met...] [2009-12-11 09:36:11] [4395c69e961f9a13a0559fd2f0a72538]
-   P     [(Partial) Autocorrelation Function] [Oplossing ACF d=D=1] [2009-12-11 09:45:40] [d1081bd6cdf1fed9ed45c42dbd523bf1] [Current]
Feedback Forum

Post a new message
Dataseries X:
2360
2214
2825
2355
2333
3016
2155
2172
2150
2533
2058
2160
2260
2498
2695
2799
2947
2930
2318
2540
2570
2669
2450
2842
3440
2678
2981
2260
2844
2546
2456
2295
2379
2479
2057
2280
2351
2276
2548
2311
2201
2725
2408
2139
1898
2537
2069
2063
2524
2437
2189
2793
2074
2622
2278
2144
2427
2139
1828
2072
1800
1758
2246
1987
1868
2514
2121




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

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.532113-3.91020.00013
20.0681670.50090.309231
30.0330920.24320.404396
40.038490.28280.389189
5-0.161177-1.18440.12072
60.092520.67990.249742
7-0.068861-0.5060.307449
80.125520.92240.180217
9-0.056448-0.41480.339963
100.014750.10840.457044
110.165111.21330.115146
12-0.372932-2.74050.00415
130.185351.3620.08942
14-0.062123-0.45650.324926
150.0665540.48910.313387
16-0.171038-1.25690.107106
170.2147981.57840.060153
18-0.107223-0.78790.217093
190.1019970.74950.228398
20-0.175159-1.28710.101766
210.105640.77630.220481
22-0.131927-0.96950.168319
230.1754871.28960.101349
24-0.150083-1.10290.137485
250.1042990.76640.223376
260.0054730.04020.484032
270.0245650.18050.428711
28-0.024734-0.18180.428227
29-0.020733-0.15240.439737
300.0355940.26160.397328
31-0.109378-0.80380.212531
320.1343670.98740.163927
330.0167180.12290.45134
34-0.058311-0.42850.334998
35-0.019176-0.14090.444232
360.1382711.01610.157061

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.532113 & -3.9102 & 0.00013 \tabularnewline
2 & 0.068167 & 0.5009 & 0.309231 \tabularnewline
3 & 0.033092 & 0.2432 & 0.404396 \tabularnewline
4 & 0.03849 & 0.2828 & 0.389189 \tabularnewline
5 & -0.161177 & -1.1844 & 0.12072 \tabularnewline
6 & 0.09252 & 0.6799 & 0.249742 \tabularnewline
7 & -0.068861 & -0.506 & 0.307449 \tabularnewline
8 & 0.12552 & 0.9224 & 0.180217 \tabularnewline
9 & -0.056448 & -0.4148 & 0.339963 \tabularnewline
10 & 0.01475 & 0.1084 & 0.457044 \tabularnewline
11 & 0.16511 & 1.2133 & 0.115146 \tabularnewline
12 & -0.372932 & -2.7405 & 0.00415 \tabularnewline
13 & 0.18535 & 1.362 & 0.08942 \tabularnewline
14 & -0.062123 & -0.4565 & 0.324926 \tabularnewline
15 & 0.066554 & 0.4891 & 0.313387 \tabularnewline
16 & -0.171038 & -1.2569 & 0.107106 \tabularnewline
17 & 0.214798 & 1.5784 & 0.060153 \tabularnewline
18 & -0.107223 & -0.7879 & 0.217093 \tabularnewline
19 & 0.101997 & 0.7495 & 0.228398 \tabularnewline
20 & -0.175159 & -1.2871 & 0.101766 \tabularnewline
21 & 0.10564 & 0.7763 & 0.220481 \tabularnewline
22 & -0.131927 & -0.9695 & 0.168319 \tabularnewline
23 & 0.175487 & 1.2896 & 0.101349 \tabularnewline
24 & -0.150083 & -1.1029 & 0.137485 \tabularnewline
25 & 0.104299 & 0.7664 & 0.223376 \tabularnewline
26 & 0.005473 & 0.0402 & 0.484032 \tabularnewline
27 & 0.024565 & 0.1805 & 0.428711 \tabularnewline
28 & -0.024734 & -0.1818 & 0.428227 \tabularnewline
29 & -0.020733 & -0.1524 & 0.439737 \tabularnewline
30 & 0.035594 & 0.2616 & 0.397328 \tabularnewline
31 & -0.109378 & -0.8038 & 0.212531 \tabularnewline
32 & 0.134367 & 0.9874 & 0.163927 \tabularnewline
33 & 0.016718 & 0.1229 & 0.45134 \tabularnewline
34 & -0.058311 & -0.4285 & 0.334998 \tabularnewline
35 & -0.019176 & -0.1409 & 0.444232 \tabularnewline
36 & 0.138271 & 1.0161 & 0.157061 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65926&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.532113[/C][C]-3.9102[/C][C]0.00013[/C][/ROW]
[ROW][C]2[/C][C]0.068167[/C][C]0.5009[/C][C]0.309231[/C][/ROW]
[ROW][C]3[/C][C]0.033092[/C][C]0.2432[/C][C]0.404396[/C][/ROW]
[ROW][C]4[/C][C]0.03849[/C][C]0.2828[/C][C]0.389189[/C][/ROW]
[ROW][C]5[/C][C]-0.161177[/C][C]-1.1844[/C][C]0.12072[/C][/ROW]
[ROW][C]6[/C][C]0.09252[/C][C]0.6799[/C][C]0.249742[/C][/ROW]
[ROW][C]7[/C][C]-0.068861[/C][C]-0.506[/C][C]0.307449[/C][/ROW]
[ROW][C]8[/C][C]0.12552[/C][C]0.9224[/C][C]0.180217[/C][/ROW]
[ROW][C]9[/C][C]-0.056448[/C][C]-0.4148[/C][C]0.339963[/C][/ROW]
[ROW][C]10[/C][C]0.01475[/C][C]0.1084[/C][C]0.457044[/C][/ROW]
[ROW][C]11[/C][C]0.16511[/C][C]1.2133[/C][C]0.115146[/C][/ROW]
[ROW][C]12[/C][C]-0.372932[/C][C]-2.7405[/C][C]0.00415[/C][/ROW]
[ROW][C]13[/C][C]0.18535[/C][C]1.362[/C][C]0.08942[/C][/ROW]
[ROW][C]14[/C][C]-0.062123[/C][C]-0.4565[/C][C]0.324926[/C][/ROW]
[ROW][C]15[/C][C]0.066554[/C][C]0.4891[/C][C]0.313387[/C][/ROW]
[ROW][C]16[/C][C]-0.171038[/C][C]-1.2569[/C][C]0.107106[/C][/ROW]
[ROW][C]17[/C][C]0.214798[/C][C]1.5784[/C][C]0.060153[/C][/ROW]
[ROW][C]18[/C][C]-0.107223[/C][C]-0.7879[/C][C]0.217093[/C][/ROW]
[ROW][C]19[/C][C]0.101997[/C][C]0.7495[/C][C]0.228398[/C][/ROW]
[ROW][C]20[/C][C]-0.175159[/C][C]-1.2871[/C][C]0.101766[/C][/ROW]
[ROW][C]21[/C][C]0.10564[/C][C]0.7763[/C][C]0.220481[/C][/ROW]
[ROW][C]22[/C][C]-0.131927[/C][C]-0.9695[/C][C]0.168319[/C][/ROW]
[ROW][C]23[/C][C]0.175487[/C][C]1.2896[/C][C]0.101349[/C][/ROW]
[ROW][C]24[/C][C]-0.150083[/C][C]-1.1029[/C][C]0.137485[/C][/ROW]
[ROW][C]25[/C][C]0.104299[/C][C]0.7664[/C][C]0.223376[/C][/ROW]
[ROW][C]26[/C][C]0.005473[/C][C]0.0402[/C][C]0.484032[/C][/ROW]
[ROW][C]27[/C][C]0.024565[/C][C]0.1805[/C][C]0.428711[/C][/ROW]
[ROW][C]28[/C][C]-0.024734[/C][C]-0.1818[/C][C]0.428227[/C][/ROW]
[ROW][C]29[/C][C]-0.020733[/C][C]-0.1524[/C][C]0.439737[/C][/ROW]
[ROW][C]30[/C][C]0.035594[/C][C]0.2616[/C][C]0.397328[/C][/ROW]
[ROW][C]31[/C][C]-0.109378[/C][C]-0.8038[/C][C]0.212531[/C][/ROW]
[ROW][C]32[/C][C]0.134367[/C][C]0.9874[/C][C]0.163927[/C][/ROW]
[ROW][C]33[/C][C]0.016718[/C][C]0.1229[/C][C]0.45134[/C][/ROW]
[ROW][C]34[/C][C]-0.058311[/C][C]-0.4285[/C][C]0.334998[/C][/ROW]
[ROW][C]35[/C][C]-0.019176[/C][C]-0.1409[/C][C]0.444232[/C][/ROW]
[ROW][C]36[/C][C]0.138271[/C][C]1.0161[/C][C]0.157061[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65926&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65926&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.532113-3.91020.00013
20.0681670.50090.309231
30.0330920.24320.404396
40.038490.28280.389189
5-0.161177-1.18440.12072
60.092520.67990.249742
7-0.068861-0.5060.307449
80.125520.92240.180217
9-0.056448-0.41480.339963
100.014750.10840.457044
110.165111.21330.115146
12-0.372932-2.74050.00415
130.185351.3620.08942
14-0.062123-0.45650.324926
150.0665540.48910.313387
16-0.171038-1.25690.107106
170.2147981.57840.060153
18-0.107223-0.78790.217093
190.1019970.74950.228398
20-0.175159-1.28710.101766
210.105640.77630.220481
22-0.131927-0.96950.168319
230.1754871.28960.101349
24-0.150083-1.10290.137485
250.1042990.76640.223376
260.0054730.04020.484032
270.0245650.18050.428711
28-0.024734-0.18180.428227
29-0.020733-0.15240.439737
300.0355940.26160.397328
31-0.109378-0.80380.212531
320.1343670.98740.163927
330.0167180.12290.45134
34-0.058311-0.42850.334998
35-0.019176-0.14090.444232
360.1382711.01610.157061







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.532113-3.91020.00013
2-0.29989-2.20370.015914
3-0.121604-0.89360.187749
40.0374260.2750.392174
5-0.147618-1.08480.141423
6-0.123191-0.90530.184673
7-0.166743-1.22530.112889
80.04460.32770.372188
90.0900320.66160.255522
100.0497560.36560.358034
110.2911992.13990.018451
12-0.239314-1.75860.042156
13-0.212012-1.5580.062542
14-0.228016-1.67560.049802
150.0205040.15070.440399
16-0.118388-0.870.194084
17-0.07652-0.56230.288117
18-0.101825-0.74830.228776
19-0.031265-0.22980.409576
20-0.082152-0.60370.274289
21-0.091251-0.67060.252681
22-0.199131-1.46330.07459
230.1448891.06470.145873
24-0.100504-0.73860.231689
25-0.094046-0.69110.246233
26-0.102582-0.75380.227116
270.0797380.58590.280175
28-0.010614-0.0780.46906
29-0.035011-0.25730.39897
300.0373830.27470.392296
31-0.097677-0.71780.237994
32-0.075635-0.55580.290321
330.1280440.94090.175467
34-0.078325-0.57560.283648
350.0505230.37130.355945
36-0.061789-0.45410.325804

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.532113 & -3.9102 & 0.00013 \tabularnewline
2 & -0.29989 & -2.2037 & 0.015914 \tabularnewline
3 & -0.121604 & -0.8936 & 0.187749 \tabularnewline
4 & 0.037426 & 0.275 & 0.392174 \tabularnewline
5 & -0.147618 & -1.0848 & 0.141423 \tabularnewline
6 & -0.123191 & -0.9053 & 0.184673 \tabularnewline
7 & -0.166743 & -1.2253 & 0.112889 \tabularnewline
8 & 0.0446 & 0.3277 & 0.372188 \tabularnewline
9 & 0.090032 & 0.6616 & 0.255522 \tabularnewline
10 & 0.049756 & 0.3656 & 0.358034 \tabularnewline
11 & 0.291199 & 2.1399 & 0.018451 \tabularnewline
12 & -0.239314 & -1.7586 & 0.042156 \tabularnewline
13 & -0.212012 & -1.558 & 0.062542 \tabularnewline
14 & -0.228016 & -1.6756 & 0.049802 \tabularnewline
15 & 0.020504 & 0.1507 & 0.440399 \tabularnewline
16 & -0.118388 & -0.87 & 0.194084 \tabularnewline
17 & -0.07652 & -0.5623 & 0.288117 \tabularnewline
18 & -0.101825 & -0.7483 & 0.228776 \tabularnewline
19 & -0.031265 & -0.2298 & 0.409576 \tabularnewline
20 & -0.082152 & -0.6037 & 0.274289 \tabularnewline
21 & -0.091251 & -0.6706 & 0.252681 \tabularnewline
22 & -0.199131 & -1.4633 & 0.07459 \tabularnewline
23 & 0.144889 & 1.0647 & 0.145873 \tabularnewline
24 & -0.100504 & -0.7386 & 0.231689 \tabularnewline
25 & -0.094046 & -0.6911 & 0.246233 \tabularnewline
26 & -0.102582 & -0.7538 & 0.227116 \tabularnewline
27 & 0.079738 & 0.5859 & 0.280175 \tabularnewline
28 & -0.010614 & -0.078 & 0.46906 \tabularnewline
29 & -0.035011 & -0.2573 & 0.39897 \tabularnewline
30 & 0.037383 & 0.2747 & 0.392296 \tabularnewline
31 & -0.097677 & -0.7178 & 0.237994 \tabularnewline
32 & -0.075635 & -0.5558 & 0.290321 \tabularnewline
33 & 0.128044 & 0.9409 & 0.175467 \tabularnewline
34 & -0.078325 & -0.5756 & 0.283648 \tabularnewline
35 & 0.050523 & 0.3713 & 0.355945 \tabularnewline
36 & -0.061789 & -0.4541 & 0.325804 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=65926&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.532113[/C][C]-3.9102[/C][C]0.00013[/C][/ROW]
[ROW][C]2[/C][C]-0.29989[/C][C]-2.2037[/C][C]0.015914[/C][/ROW]
[ROW][C]3[/C][C]-0.121604[/C][C]-0.8936[/C][C]0.187749[/C][/ROW]
[ROW][C]4[/C][C]0.037426[/C][C]0.275[/C][C]0.392174[/C][/ROW]
[ROW][C]5[/C][C]-0.147618[/C][C]-1.0848[/C][C]0.141423[/C][/ROW]
[ROW][C]6[/C][C]-0.123191[/C][C]-0.9053[/C][C]0.184673[/C][/ROW]
[ROW][C]7[/C][C]-0.166743[/C][C]-1.2253[/C][C]0.112889[/C][/ROW]
[ROW][C]8[/C][C]0.0446[/C][C]0.3277[/C][C]0.372188[/C][/ROW]
[ROW][C]9[/C][C]0.090032[/C][C]0.6616[/C][C]0.255522[/C][/ROW]
[ROW][C]10[/C][C]0.049756[/C][C]0.3656[/C][C]0.358034[/C][/ROW]
[ROW][C]11[/C][C]0.291199[/C][C]2.1399[/C][C]0.018451[/C][/ROW]
[ROW][C]12[/C][C]-0.239314[/C][C]-1.7586[/C][C]0.042156[/C][/ROW]
[ROW][C]13[/C][C]-0.212012[/C][C]-1.558[/C][C]0.062542[/C][/ROW]
[ROW][C]14[/C][C]-0.228016[/C][C]-1.6756[/C][C]0.049802[/C][/ROW]
[ROW][C]15[/C][C]0.020504[/C][C]0.1507[/C][C]0.440399[/C][/ROW]
[ROW][C]16[/C][C]-0.118388[/C][C]-0.87[/C][C]0.194084[/C][/ROW]
[ROW][C]17[/C][C]-0.07652[/C][C]-0.5623[/C][C]0.288117[/C][/ROW]
[ROW][C]18[/C][C]-0.101825[/C][C]-0.7483[/C][C]0.228776[/C][/ROW]
[ROW][C]19[/C][C]-0.031265[/C][C]-0.2298[/C][C]0.409576[/C][/ROW]
[ROW][C]20[/C][C]-0.082152[/C][C]-0.6037[/C][C]0.274289[/C][/ROW]
[ROW][C]21[/C][C]-0.091251[/C][C]-0.6706[/C][C]0.252681[/C][/ROW]
[ROW][C]22[/C][C]-0.199131[/C][C]-1.4633[/C][C]0.07459[/C][/ROW]
[ROW][C]23[/C][C]0.144889[/C][C]1.0647[/C][C]0.145873[/C][/ROW]
[ROW][C]24[/C][C]-0.100504[/C][C]-0.7386[/C][C]0.231689[/C][/ROW]
[ROW][C]25[/C][C]-0.094046[/C][C]-0.6911[/C][C]0.246233[/C][/ROW]
[ROW][C]26[/C][C]-0.102582[/C][C]-0.7538[/C][C]0.227116[/C][/ROW]
[ROW][C]27[/C][C]0.079738[/C][C]0.5859[/C][C]0.280175[/C][/ROW]
[ROW][C]28[/C][C]-0.010614[/C][C]-0.078[/C][C]0.46906[/C][/ROW]
[ROW][C]29[/C][C]-0.035011[/C][C]-0.2573[/C][C]0.39897[/C][/ROW]
[ROW][C]30[/C][C]0.037383[/C][C]0.2747[/C][C]0.392296[/C][/ROW]
[ROW][C]31[/C][C]-0.097677[/C][C]-0.7178[/C][C]0.237994[/C][/ROW]
[ROW][C]32[/C][C]-0.075635[/C][C]-0.5558[/C][C]0.290321[/C][/ROW]
[ROW][C]33[/C][C]0.128044[/C][C]0.9409[/C][C]0.175467[/C][/ROW]
[ROW][C]34[/C][C]-0.078325[/C][C]-0.5756[/C][C]0.283648[/C][/ROW]
[ROW][C]35[/C][C]0.050523[/C][C]0.3713[/C][C]0.355945[/C][/ROW]
[ROW][C]36[/C][C]-0.061789[/C][C]-0.4541[/C][C]0.325804[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=65926&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=65926&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.532113-3.91020.00013
2-0.29989-2.20370.015914
3-0.121604-0.89360.187749
40.0374260.2750.392174
5-0.147618-1.08480.141423
6-0.123191-0.90530.184673
7-0.166743-1.22530.112889
80.04460.32770.372188
90.0900320.66160.255522
100.0497560.36560.358034
110.2911992.13990.018451
12-0.239314-1.75860.042156
13-0.212012-1.5580.062542
14-0.228016-1.67560.049802
150.0205040.15070.440399
16-0.118388-0.870.194084
17-0.07652-0.56230.288117
18-0.101825-0.74830.228776
19-0.031265-0.22980.409576
20-0.082152-0.60370.274289
21-0.091251-0.67060.252681
22-0.199131-1.46330.07459
230.1448891.06470.145873
24-0.100504-0.73860.231689
25-0.094046-0.69110.246233
26-0.102582-0.75380.227116
270.0797380.58590.280175
28-0.010614-0.0780.46906
29-0.035011-0.25730.39897
300.0373830.27470.392296
31-0.097677-0.71780.237994
32-0.075635-0.55580.290321
330.1280440.94090.175467
34-0.078325-0.57560.283648
350.0505230.37130.355945
36-0.061789-0.45410.325804



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