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 computationWed, 02 Dec 2009 09:06: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/02/t1259770036ucxjeax6n686h7k.htm/, Retrieved Sun, 28 Apr 2024 17:35:26 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=62404, Retrieved Sun, 28 Apr 2024 17:35:26 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact119
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2009-12-02 16:06:40] [c4328af89eba9af53ee195d6fed304d9] [Current]
Feedback Forum

Post a new message
Dataseries X:
1111.92
1131.13
1144.94
1113.89
1107.30
1120.68
1140.84
1101.72
1104.24
1114.58
1130.20
1173.78
1211.92
1181.27
1203.60
1180.59
1156.85
1191.50
1191.33
1234.18
1220.33
1228.81
1207.01
1249.48
1248.29
1280.08
1280.66
1302.88
1310.61
1270.05
1270.06
1278.53
1303.80
1335.83
1377.76
1400.63
1418.03
1437.90
1406.80
1420.83
1482.37
1530.63
1504.66
1455.18
1473.96
1527.29
1545.79
1479.63
1467.97
1378.60
1330.45
1326.41
1385.97
1399.62
1276.69
1269.42
1287.83
1164.17
968.67
888.61




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62404&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
1-0.248033-1.8890.03195
2-0.345733-2.6330.005415
3-0.046834-0.35670.361314
40.2668492.03230.023358
5-0.077447-0.58980.278802
6-0.147386-1.12250.133146
70.115780.88180.190776
80.0365840.27860.390764
9-0.016145-0.1230.451283
10-0.180473-1.37440.087296
110.2818512.14650.018013
12-0.056433-0.42980.334475
13-0.085816-0.65360.25799
14-0.059273-0.45140.326688
150.0953150.72590.235411
160.0813730.61970.268935
17-0.110905-0.84460.200894
18-0.039457-0.30050.382438
190.0340470.25930.398164
200.0325860.24820.40244
21-0.012068-0.09190.463543
220.0322920.24590.403304
230.034330.26140.397336
24-0.160004-1.21860.113974
250.1305330.99410.162149
26-0.078477-0.59770.276197
27-0.006744-0.05140.479608
280.0189110.1440.442992
290.1102980.840.202178
30-0.085283-0.64950.259291
31-0.018225-0.13880.445047
32-0.00365-0.02780.488959
33-0.035965-0.27390.392566
340.1043330.79460.21505
35-0.086643-0.65990.25598
360.11020.83930.202385

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.248033 & -1.889 & 0.03195 \tabularnewline
2 & -0.345733 & -2.633 & 0.005415 \tabularnewline
3 & -0.046834 & -0.3567 & 0.361314 \tabularnewline
4 & 0.266849 & 2.0323 & 0.023358 \tabularnewline
5 & -0.077447 & -0.5898 & 0.278802 \tabularnewline
6 & -0.147386 & -1.1225 & 0.133146 \tabularnewline
7 & 0.11578 & 0.8818 & 0.190776 \tabularnewline
8 & 0.036584 & 0.2786 & 0.390764 \tabularnewline
9 & -0.016145 & -0.123 & 0.451283 \tabularnewline
10 & -0.180473 & -1.3744 & 0.087296 \tabularnewline
11 & 0.281851 & 2.1465 & 0.018013 \tabularnewline
12 & -0.056433 & -0.4298 & 0.334475 \tabularnewline
13 & -0.085816 & -0.6536 & 0.25799 \tabularnewline
14 & -0.059273 & -0.4514 & 0.326688 \tabularnewline
15 & 0.095315 & 0.7259 & 0.235411 \tabularnewline
16 & 0.081373 & 0.6197 & 0.268935 \tabularnewline
17 & -0.110905 & -0.8446 & 0.200894 \tabularnewline
18 & -0.039457 & -0.3005 & 0.382438 \tabularnewline
19 & 0.034047 & 0.2593 & 0.398164 \tabularnewline
20 & 0.032586 & 0.2482 & 0.40244 \tabularnewline
21 & -0.012068 & -0.0919 & 0.463543 \tabularnewline
22 & 0.032292 & 0.2459 & 0.403304 \tabularnewline
23 & 0.03433 & 0.2614 & 0.397336 \tabularnewline
24 & -0.160004 & -1.2186 & 0.113974 \tabularnewline
25 & 0.130533 & 0.9941 & 0.162149 \tabularnewline
26 & -0.078477 & -0.5977 & 0.276197 \tabularnewline
27 & -0.006744 & -0.0514 & 0.479608 \tabularnewline
28 & 0.018911 & 0.144 & 0.442992 \tabularnewline
29 & 0.110298 & 0.84 & 0.202178 \tabularnewline
30 & -0.085283 & -0.6495 & 0.259291 \tabularnewline
31 & -0.018225 & -0.1388 & 0.445047 \tabularnewline
32 & -0.00365 & -0.0278 & 0.488959 \tabularnewline
33 & -0.035965 & -0.2739 & 0.392566 \tabularnewline
34 & 0.104333 & 0.7946 & 0.21505 \tabularnewline
35 & -0.086643 & -0.6599 & 0.25598 \tabularnewline
36 & 0.1102 & 0.8393 & 0.202385 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62404&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.248033[/C][C]-1.889[/C][C]0.03195[/C][/ROW]
[ROW][C]2[/C][C]-0.345733[/C][C]-2.633[/C][C]0.005415[/C][/ROW]
[ROW][C]3[/C][C]-0.046834[/C][C]-0.3567[/C][C]0.361314[/C][/ROW]
[ROW][C]4[/C][C]0.266849[/C][C]2.0323[/C][C]0.023358[/C][/ROW]
[ROW][C]5[/C][C]-0.077447[/C][C]-0.5898[/C][C]0.278802[/C][/ROW]
[ROW][C]6[/C][C]-0.147386[/C][C]-1.1225[/C][C]0.133146[/C][/ROW]
[ROW][C]7[/C][C]0.11578[/C][C]0.8818[/C][C]0.190776[/C][/ROW]
[ROW][C]8[/C][C]0.036584[/C][C]0.2786[/C][C]0.390764[/C][/ROW]
[ROW][C]9[/C][C]-0.016145[/C][C]-0.123[/C][C]0.451283[/C][/ROW]
[ROW][C]10[/C][C]-0.180473[/C][C]-1.3744[/C][C]0.087296[/C][/ROW]
[ROW][C]11[/C][C]0.281851[/C][C]2.1465[/C][C]0.018013[/C][/ROW]
[ROW][C]12[/C][C]-0.056433[/C][C]-0.4298[/C][C]0.334475[/C][/ROW]
[ROW][C]13[/C][C]-0.085816[/C][C]-0.6536[/C][C]0.25799[/C][/ROW]
[ROW][C]14[/C][C]-0.059273[/C][C]-0.4514[/C][C]0.326688[/C][/ROW]
[ROW][C]15[/C][C]0.095315[/C][C]0.7259[/C][C]0.235411[/C][/ROW]
[ROW][C]16[/C][C]0.081373[/C][C]0.6197[/C][C]0.268935[/C][/ROW]
[ROW][C]17[/C][C]-0.110905[/C][C]-0.8446[/C][C]0.200894[/C][/ROW]
[ROW][C]18[/C][C]-0.039457[/C][C]-0.3005[/C][C]0.382438[/C][/ROW]
[ROW][C]19[/C][C]0.034047[/C][C]0.2593[/C][C]0.398164[/C][/ROW]
[ROW][C]20[/C][C]0.032586[/C][C]0.2482[/C][C]0.40244[/C][/ROW]
[ROW][C]21[/C][C]-0.012068[/C][C]-0.0919[/C][C]0.463543[/C][/ROW]
[ROW][C]22[/C][C]0.032292[/C][C]0.2459[/C][C]0.403304[/C][/ROW]
[ROW][C]23[/C][C]0.03433[/C][C]0.2614[/C][C]0.397336[/C][/ROW]
[ROW][C]24[/C][C]-0.160004[/C][C]-1.2186[/C][C]0.113974[/C][/ROW]
[ROW][C]25[/C][C]0.130533[/C][C]0.9941[/C][C]0.162149[/C][/ROW]
[ROW][C]26[/C][C]-0.078477[/C][C]-0.5977[/C][C]0.276197[/C][/ROW]
[ROW][C]27[/C][C]-0.006744[/C][C]-0.0514[/C][C]0.479608[/C][/ROW]
[ROW][C]28[/C][C]0.018911[/C][C]0.144[/C][C]0.442992[/C][/ROW]
[ROW][C]29[/C][C]0.110298[/C][C]0.84[/C][C]0.202178[/C][/ROW]
[ROW][C]30[/C][C]-0.085283[/C][C]-0.6495[/C][C]0.259291[/C][/ROW]
[ROW][C]31[/C][C]-0.018225[/C][C]-0.1388[/C][C]0.445047[/C][/ROW]
[ROW][C]32[/C][C]-0.00365[/C][C]-0.0278[/C][C]0.488959[/C][/ROW]
[ROW][C]33[/C][C]-0.035965[/C][C]-0.2739[/C][C]0.392566[/C][/ROW]
[ROW][C]34[/C][C]0.104333[/C][C]0.7946[/C][C]0.21505[/C][/ROW]
[ROW][C]35[/C][C]-0.086643[/C][C]-0.6599[/C][C]0.25598[/C][/ROW]
[ROW][C]36[/C][C]0.1102[/C][C]0.8393[/C][C]0.202385[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62404&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62404&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.248033-1.8890.03195
2-0.345733-2.6330.005415
3-0.046834-0.35670.361314
40.2668492.03230.023358
5-0.077447-0.58980.278802
6-0.147386-1.12250.133146
70.115780.88180.190776
80.0365840.27860.390764
9-0.016145-0.1230.451283
10-0.180473-1.37440.087296
110.2818512.14650.018013
12-0.056433-0.42980.334475
13-0.085816-0.65360.25799
14-0.059273-0.45140.326688
150.0953150.72590.235411
160.0813730.61970.268935
17-0.110905-0.84460.200894
18-0.039457-0.30050.382438
190.0340470.25930.398164
200.0325860.24820.40244
21-0.012068-0.09190.463543
220.0322920.24590.403304
230.034330.26140.397336
24-0.160004-1.21860.113974
250.1305330.99410.162149
26-0.078477-0.59770.276197
27-0.006744-0.05140.479608
280.0189110.1440.442992
290.1102980.840.202178
30-0.085283-0.64950.259291
31-0.018225-0.13880.445047
32-0.00365-0.02780.488959
33-0.035965-0.27390.392566
340.1043330.79460.21505
35-0.086643-0.65990.25598
360.11020.83930.202385







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.248033-1.8890.03195
2-0.43395-3.30490.000816
3-0.364204-2.77370.003721
4-0.064113-0.48830.313599
5-0.175413-1.33590.093399
6-0.208587-1.58860.058799
7-0.047034-0.35820.360746
8-0.114142-0.86930.194139
9-0.018628-0.14190.443837
10-0.229275-1.74610.043043
110.1447421.10230.137438
12-0.011328-0.08630.465774
130.0536590.40870.342148
140.0295420.2250.41139
15-0.021532-0.1640.435157
160.1311110.99850.161089
170.0552450.42070.337753
180.0016860.01280.494898
190.0213370.16250.43574
20-0.100146-0.76270.224369
210.0621710.47350.318824
22-0.011131-0.08480.466368
230.1169250.89050.188444
24-0.137516-1.04730.149655
250.132691.01050.158218
26-0.140844-1.07260.143939
27-0.144795-1.10270.137351
28-0.070108-0.53390.297717
290.0115410.08790.465132
30-0.055508-0.42270.337027
310.085150.64850.259615
32-0.12322-0.93840.17596
33-0.087287-0.66480.254419
34-0.041232-0.3140.377318
350.0004810.00370.498546
360.0574730.43770.331616

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.248033 & -1.889 & 0.03195 \tabularnewline
2 & -0.43395 & -3.3049 & 0.000816 \tabularnewline
3 & -0.364204 & -2.7737 & 0.003721 \tabularnewline
4 & -0.064113 & -0.4883 & 0.313599 \tabularnewline
5 & -0.175413 & -1.3359 & 0.093399 \tabularnewline
6 & -0.208587 & -1.5886 & 0.058799 \tabularnewline
7 & -0.047034 & -0.3582 & 0.360746 \tabularnewline
8 & -0.114142 & -0.8693 & 0.194139 \tabularnewline
9 & -0.018628 & -0.1419 & 0.443837 \tabularnewline
10 & -0.229275 & -1.7461 & 0.043043 \tabularnewline
11 & 0.144742 & 1.1023 & 0.137438 \tabularnewline
12 & -0.011328 & -0.0863 & 0.465774 \tabularnewline
13 & 0.053659 & 0.4087 & 0.342148 \tabularnewline
14 & 0.029542 & 0.225 & 0.41139 \tabularnewline
15 & -0.021532 & -0.164 & 0.435157 \tabularnewline
16 & 0.131111 & 0.9985 & 0.161089 \tabularnewline
17 & 0.055245 & 0.4207 & 0.337753 \tabularnewline
18 & 0.001686 & 0.0128 & 0.494898 \tabularnewline
19 & 0.021337 & 0.1625 & 0.43574 \tabularnewline
20 & -0.100146 & -0.7627 & 0.224369 \tabularnewline
21 & 0.062171 & 0.4735 & 0.318824 \tabularnewline
22 & -0.011131 & -0.0848 & 0.466368 \tabularnewline
23 & 0.116925 & 0.8905 & 0.188444 \tabularnewline
24 & -0.137516 & -1.0473 & 0.149655 \tabularnewline
25 & 0.13269 & 1.0105 & 0.158218 \tabularnewline
26 & -0.140844 & -1.0726 & 0.143939 \tabularnewline
27 & -0.144795 & -1.1027 & 0.137351 \tabularnewline
28 & -0.070108 & -0.5339 & 0.297717 \tabularnewline
29 & 0.011541 & 0.0879 & 0.465132 \tabularnewline
30 & -0.055508 & -0.4227 & 0.337027 \tabularnewline
31 & 0.08515 & 0.6485 & 0.259615 \tabularnewline
32 & -0.12322 & -0.9384 & 0.17596 \tabularnewline
33 & -0.087287 & -0.6648 & 0.254419 \tabularnewline
34 & -0.041232 & -0.314 & 0.377318 \tabularnewline
35 & 0.000481 & 0.0037 & 0.498546 \tabularnewline
36 & 0.057473 & 0.4377 & 0.331616 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62404&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.248033[/C][C]-1.889[/C][C]0.03195[/C][/ROW]
[ROW][C]2[/C][C]-0.43395[/C][C]-3.3049[/C][C]0.000816[/C][/ROW]
[ROW][C]3[/C][C]-0.364204[/C][C]-2.7737[/C][C]0.003721[/C][/ROW]
[ROW][C]4[/C][C]-0.064113[/C][C]-0.4883[/C][C]0.313599[/C][/ROW]
[ROW][C]5[/C][C]-0.175413[/C][C]-1.3359[/C][C]0.093399[/C][/ROW]
[ROW][C]6[/C][C]-0.208587[/C][C]-1.5886[/C][C]0.058799[/C][/ROW]
[ROW][C]7[/C][C]-0.047034[/C][C]-0.3582[/C][C]0.360746[/C][/ROW]
[ROW][C]8[/C][C]-0.114142[/C][C]-0.8693[/C][C]0.194139[/C][/ROW]
[ROW][C]9[/C][C]-0.018628[/C][C]-0.1419[/C][C]0.443837[/C][/ROW]
[ROW][C]10[/C][C]-0.229275[/C][C]-1.7461[/C][C]0.043043[/C][/ROW]
[ROW][C]11[/C][C]0.144742[/C][C]1.1023[/C][C]0.137438[/C][/ROW]
[ROW][C]12[/C][C]-0.011328[/C][C]-0.0863[/C][C]0.465774[/C][/ROW]
[ROW][C]13[/C][C]0.053659[/C][C]0.4087[/C][C]0.342148[/C][/ROW]
[ROW][C]14[/C][C]0.029542[/C][C]0.225[/C][C]0.41139[/C][/ROW]
[ROW][C]15[/C][C]-0.021532[/C][C]-0.164[/C][C]0.435157[/C][/ROW]
[ROW][C]16[/C][C]0.131111[/C][C]0.9985[/C][C]0.161089[/C][/ROW]
[ROW][C]17[/C][C]0.055245[/C][C]0.4207[/C][C]0.337753[/C][/ROW]
[ROW][C]18[/C][C]0.001686[/C][C]0.0128[/C][C]0.494898[/C][/ROW]
[ROW][C]19[/C][C]0.021337[/C][C]0.1625[/C][C]0.43574[/C][/ROW]
[ROW][C]20[/C][C]-0.100146[/C][C]-0.7627[/C][C]0.224369[/C][/ROW]
[ROW][C]21[/C][C]0.062171[/C][C]0.4735[/C][C]0.318824[/C][/ROW]
[ROW][C]22[/C][C]-0.011131[/C][C]-0.0848[/C][C]0.466368[/C][/ROW]
[ROW][C]23[/C][C]0.116925[/C][C]0.8905[/C][C]0.188444[/C][/ROW]
[ROW][C]24[/C][C]-0.137516[/C][C]-1.0473[/C][C]0.149655[/C][/ROW]
[ROW][C]25[/C][C]0.13269[/C][C]1.0105[/C][C]0.158218[/C][/ROW]
[ROW][C]26[/C][C]-0.140844[/C][C]-1.0726[/C][C]0.143939[/C][/ROW]
[ROW][C]27[/C][C]-0.144795[/C][C]-1.1027[/C][C]0.137351[/C][/ROW]
[ROW][C]28[/C][C]-0.070108[/C][C]-0.5339[/C][C]0.297717[/C][/ROW]
[ROW][C]29[/C][C]0.011541[/C][C]0.0879[/C][C]0.465132[/C][/ROW]
[ROW][C]30[/C][C]-0.055508[/C][C]-0.4227[/C][C]0.337027[/C][/ROW]
[ROW][C]31[/C][C]0.08515[/C][C]0.6485[/C][C]0.259615[/C][/ROW]
[ROW][C]32[/C][C]-0.12322[/C][C]-0.9384[/C][C]0.17596[/C][/ROW]
[ROW][C]33[/C][C]-0.087287[/C][C]-0.6648[/C][C]0.254419[/C][/ROW]
[ROW][C]34[/C][C]-0.041232[/C][C]-0.314[/C][C]0.377318[/C][/ROW]
[ROW][C]35[/C][C]0.000481[/C][C]0.0037[/C][C]0.498546[/C][/ROW]
[ROW][C]36[/C][C]0.057473[/C][C]0.4377[/C][C]0.331616[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62404&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62404&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.248033-1.8890.03195
2-0.43395-3.30490.000816
3-0.364204-2.77370.003721
4-0.064113-0.48830.313599
5-0.175413-1.33590.093399
6-0.208587-1.58860.058799
7-0.047034-0.35820.360746
8-0.114142-0.86930.194139
9-0.018628-0.14190.443837
10-0.229275-1.74610.043043
110.1447421.10230.137438
12-0.011328-0.08630.465774
130.0536590.40870.342148
140.0295420.2250.41139
15-0.021532-0.1640.435157
160.1311110.99850.161089
170.0552450.42070.337753
180.0016860.01280.494898
190.0213370.16250.43574
20-0.100146-0.76270.224369
210.0621710.47350.318824
22-0.011131-0.08480.466368
230.1169250.89050.188444
24-0.137516-1.04730.149655
250.132691.01050.158218
26-0.140844-1.07260.143939
27-0.144795-1.10270.137351
28-0.070108-0.53390.297717
290.0115410.08790.465132
30-0.055508-0.42270.337027
310.085150.64850.259615
32-0.12322-0.93840.17596
33-0.087287-0.66480.254419
34-0.041232-0.3140.377318
350.0004810.00370.498546
360.0574730.43770.331616



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