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 08:57:43 -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/t1259769520vxx5fvvoblt1e97.htm/, Retrieved Sun, 28 Apr 2024 04:37:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=62395, Retrieved Sun, 28 Apr 2024 04:37:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact122
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2009-12-02 15:57:43] [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 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=62395&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=62395&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62395&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.3584852.75360.003912
2-0.046457-0.35680.361241
30.0235510.18090.428535
40.2302851.76890.041044
50.0890810.68420.248249
6-0.027396-0.21040.417027
70.1286860.98850.163484
80.1620831.2450.10903
90.1114560.85610.197701
100.0529910.4070.342729
110.1860861.42940.079088
120.01710.13140.447973
13-0.102763-0.78930.216538
14-0.077008-0.59150.27822
150.0508670.39070.348708
160.0413670.31770.375899
17-0.120113-0.92260.179985
18-0.125683-0.96540.169146
19-0.047131-0.3620.359315
200.0077490.05950.476368
21-0.009627-0.07390.470653
22-0.033753-0.25930.398168
23-0.080025-0.61470.270563
24-0.162654-1.24940.108232
25-0.051251-0.39370.347624
26-0.08419-0.64670.260174
27-0.030413-0.23360.40805
280.0299070.22970.409553
290.0656110.5040.308079
30-0.047434-0.36430.35845
31-0.081833-0.62860.266029
32-0.069424-0.53330.297931
33-0.046084-0.3540.36231
340.0059320.04560.481905
35-0.049754-0.38220.351854
36-0.01794-0.13780.445434

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.358485 & 2.7536 & 0.003912 \tabularnewline
2 & -0.046457 & -0.3568 & 0.361241 \tabularnewline
3 & 0.023551 & 0.1809 & 0.428535 \tabularnewline
4 & 0.230285 & 1.7689 & 0.041044 \tabularnewline
5 & 0.089081 & 0.6842 & 0.248249 \tabularnewline
6 & -0.027396 & -0.2104 & 0.417027 \tabularnewline
7 & 0.128686 & 0.9885 & 0.163484 \tabularnewline
8 & 0.162083 & 1.245 & 0.10903 \tabularnewline
9 & 0.111456 & 0.8561 & 0.197701 \tabularnewline
10 & 0.052991 & 0.407 & 0.342729 \tabularnewline
11 & 0.186086 & 1.4294 & 0.079088 \tabularnewline
12 & 0.0171 & 0.1314 & 0.447973 \tabularnewline
13 & -0.102763 & -0.7893 & 0.216538 \tabularnewline
14 & -0.077008 & -0.5915 & 0.27822 \tabularnewline
15 & 0.050867 & 0.3907 & 0.348708 \tabularnewline
16 & 0.041367 & 0.3177 & 0.375899 \tabularnewline
17 & -0.120113 & -0.9226 & 0.179985 \tabularnewline
18 & -0.125683 & -0.9654 & 0.169146 \tabularnewline
19 & -0.047131 & -0.362 & 0.359315 \tabularnewline
20 & 0.007749 & 0.0595 & 0.476368 \tabularnewline
21 & -0.009627 & -0.0739 & 0.470653 \tabularnewline
22 & -0.033753 & -0.2593 & 0.398168 \tabularnewline
23 & -0.080025 & -0.6147 & 0.270563 \tabularnewline
24 & -0.162654 & -1.2494 & 0.108232 \tabularnewline
25 & -0.051251 & -0.3937 & 0.347624 \tabularnewline
26 & -0.08419 & -0.6467 & 0.260174 \tabularnewline
27 & -0.030413 & -0.2336 & 0.40805 \tabularnewline
28 & 0.029907 & 0.2297 & 0.409553 \tabularnewline
29 & 0.065611 & 0.504 & 0.308079 \tabularnewline
30 & -0.047434 & -0.3643 & 0.35845 \tabularnewline
31 & -0.081833 & -0.6286 & 0.266029 \tabularnewline
32 & -0.069424 & -0.5333 & 0.297931 \tabularnewline
33 & -0.046084 & -0.354 & 0.36231 \tabularnewline
34 & 0.005932 & 0.0456 & 0.481905 \tabularnewline
35 & -0.049754 & -0.3822 & 0.351854 \tabularnewline
36 & -0.01794 & -0.1378 & 0.445434 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62395&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.358485[/C][C]2.7536[/C][C]0.003912[/C][/ROW]
[ROW][C]2[/C][C]-0.046457[/C][C]-0.3568[/C][C]0.361241[/C][/ROW]
[ROW][C]3[/C][C]0.023551[/C][C]0.1809[/C][C]0.428535[/C][/ROW]
[ROW][C]4[/C][C]0.230285[/C][C]1.7689[/C][C]0.041044[/C][/ROW]
[ROW][C]5[/C][C]0.089081[/C][C]0.6842[/C][C]0.248249[/C][/ROW]
[ROW][C]6[/C][C]-0.027396[/C][C]-0.2104[/C][C]0.417027[/C][/ROW]
[ROW][C]7[/C][C]0.128686[/C][C]0.9885[/C][C]0.163484[/C][/ROW]
[ROW][C]8[/C][C]0.162083[/C][C]1.245[/C][C]0.10903[/C][/ROW]
[ROW][C]9[/C][C]0.111456[/C][C]0.8561[/C][C]0.197701[/C][/ROW]
[ROW][C]10[/C][C]0.052991[/C][C]0.407[/C][C]0.342729[/C][/ROW]
[ROW][C]11[/C][C]0.186086[/C][C]1.4294[/C][C]0.079088[/C][/ROW]
[ROW][C]12[/C][C]0.0171[/C][C]0.1314[/C][C]0.447973[/C][/ROW]
[ROW][C]13[/C][C]-0.102763[/C][C]-0.7893[/C][C]0.216538[/C][/ROW]
[ROW][C]14[/C][C]-0.077008[/C][C]-0.5915[/C][C]0.27822[/C][/ROW]
[ROW][C]15[/C][C]0.050867[/C][C]0.3907[/C][C]0.348708[/C][/ROW]
[ROW][C]16[/C][C]0.041367[/C][C]0.3177[/C][C]0.375899[/C][/ROW]
[ROW][C]17[/C][C]-0.120113[/C][C]-0.9226[/C][C]0.179985[/C][/ROW]
[ROW][C]18[/C][C]-0.125683[/C][C]-0.9654[/C][C]0.169146[/C][/ROW]
[ROW][C]19[/C][C]-0.047131[/C][C]-0.362[/C][C]0.359315[/C][/ROW]
[ROW][C]20[/C][C]0.007749[/C][C]0.0595[/C][C]0.476368[/C][/ROW]
[ROW][C]21[/C][C]-0.009627[/C][C]-0.0739[/C][C]0.470653[/C][/ROW]
[ROW][C]22[/C][C]-0.033753[/C][C]-0.2593[/C][C]0.398168[/C][/ROW]
[ROW][C]23[/C][C]-0.080025[/C][C]-0.6147[/C][C]0.270563[/C][/ROW]
[ROW][C]24[/C][C]-0.162654[/C][C]-1.2494[/C][C]0.108232[/C][/ROW]
[ROW][C]25[/C][C]-0.051251[/C][C]-0.3937[/C][C]0.347624[/C][/ROW]
[ROW][C]26[/C][C]-0.08419[/C][C]-0.6467[/C][C]0.260174[/C][/ROW]
[ROW][C]27[/C][C]-0.030413[/C][C]-0.2336[/C][C]0.40805[/C][/ROW]
[ROW][C]28[/C][C]0.029907[/C][C]0.2297[/C][C]0.409553[/C][/ROW]
[ROW][C]29[/C][C]0.065611[/C][C]0.504[/C][C]0.308079[/C][/ROW]
[ROW][C]30[/C][C]-0.047434[/C][C]-0.3643[/C][C]0.35845[/C][/ROW]
[ROW][C]31[/C][C]-0.081833[/C][C]-0.6286[/C][C]0.266029[/C][/ROW]
[ROW][C]32[/C][C]-0.069424[/C][C]-0.5333[/C][C]0.297931[/C][/ROW]
[ROW][C]33[/C][C]-0.046084[/C][C]-0.354[/C][C]0.36231[/C][/ROW]
[ROW][C]34[/C][C]0.005932[/C][C]0.0456[/C][C]0.481905[/C][/ROW]
[ROW][C]35[/C][C]-0.049754[/C][C]-0.3822[/C][C]0.351854[/C][/ROW]
[ROW][C]36[/C][C]-0.01794[/C][C]-0.1378[/C][C]0.445434[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62395&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62395&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.3584852.75360.003912
2-0.046457-0.35680.361241
30.0235510.18090.428535
40.2302851.76890.041044
50.0890810.68420.248249
6-0.027396-0.21040.417027
70.1286860.98850.163484
80.1620831.2450.10903
90.1114560.85610.197701
100.0529910.4070.342729
110.1860861.42940.079088
120.01710.13140.447973
13-0.102763-0.78930.216538
14-0.077008-0.59150.27822
150.0508670.39070.348708
160.0413670.31770.375899
17-0.120113-0.92260.179985
18-0.125683-0.96540.169146
19-0.047131-0.3620.359315
200.0077490.05950.476368
21-0.009627-0.07390.470653
22-0.033753-0.25930.398168
23-0.080025-0.61470.270563
24-0.162654-1.24940.108232
25-0.051251-0.39370.347624
26-0.08419-0.64670.260174
27-0.030413-0.23360.40805
280.0299070.22970.409553
290.0656110.5040.308079
30-0.047434-0.36430.35845
31-0.081833-0.62860.266029
32-0.069424-0.53330.297931
33-0.046084-0.3540.36231
340.0059320.04560.481905
35-0.049754-0.38220.351854
36-0.01794-0.13780.445434







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3584852.75360.003912
2-0.20077-1.54210.064193
30.1381241.0610.146517
40.1924531.47830.072329
5-0.09118-0.70040.243226
60.0289340.22220.412446
70.1689841.2980.099671
8-0.019206-0.14750.44161
90.0977860.75110.227785
100.0288490.22160.412698
110.1442021.10760.136257
12-0.186157-1.42990.07901
13-0.026584-0.20420.419452
14-0.058238-0.44730.328135
15-0.010432-0.08010.468204
160.0042270.03250.487105
17-0.124896-0.95930.170649
18-0.085102-0.65370.257927
19-0.021282-0.16350.435353
20-0.011567-0.08890.46475
210.0811120.6230.267831
22-0.038151-0.2930.385258
23-0.022504-0.17290.431677
24-0.126265-0.96990.168037
250.110280.84710.200189
26-0.154283-1.18510.12037
270.129850.99740.161323
280.1177650.90460.184687
290.0231580.17790.429712
30-0.09203-0.70690.241208
310.0167340.12850.44908
32-0.139897-1.07460.143472
330.0721150.55390.29086
340.0565380.43430.332837
35-0.038267-0.29390.384918
36-0.092055-0.70710.241149

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.358485 & 2.7536 & 0.003912 \tabularnewline
2 & -0.20077 & -1.5421 & 0.064193 \tabularnewline
3 & 0.138124 & 1.061 & 0.146517 \tabularnewline
4 & 0.192453 & 1.4783 & 0.072329 \tabularnewline
5 & -0.09118 & -0.7004 & 0.243226 \tabularnewline
6 & 0.028934 & 0.2222 & 0.412446 \tabularnewline
7 & 0.168984 & 1.298 & 0.099671 \tabularnewline
8 & -0.019206 & -0.1475 & 0.44161 \tabularnewline
9 & 0.097786 & 0.7511 & 0.227785 \tabularnewline
10 & 0.028849 & 0.2216 & 0.412698 \tabularnewline
11 & 0.144202 & 1.1076 & 0.136257 \tabularnewline
12 & -0.186157 & -1.4299 & 0.07901 \tabularnewline
13 & -0.026584 & -0.2042 & 0.419452 \tabularnewline
14 & -0.058238 & -0.4473 & 0.328135 \tabularnewline
15 & -0.010432 & -0.0801 & 0.468204 \tabularnewline
16 & 0.004227 & 0.0325 & 0.487105 \tabularnewline
17 & -0.124896 & -0.9593 & 0.170649 \tabularnewline
18 & -0.085102 & -0.6537 & 0.257927 \tabularnewline
19 & -0.021282 & -0.1635 & 0.435353 \tabularnewline
20 & -0.011567 & -0.0889 & 0.46475 \tabularnewline
21 & 0.081112 & 0.623 & 0.267831 \tabularnewline
22 & -0.038151 & -0.293 & 0.385258 \tabularnewline
23 & -0.022504 & -0.1729 & 0.431677 \tabularnewline
24 & -0.126265 & -0.9699 & 0.168037 \tabularnewline
25 & 0.11028 & 0.8471 & 0.200189 \tabularnewline
26 & -0.154283 & -1.1851 & 0.12037 \tabularnewline
27 & 0.12985 & 0.9974 & 0.161323 \tabularnewline
28 & 0.117765 & 0.9046 & 0.184687 \tabularnewline
29 & 0.023158 & 0.1779 & 0.429712 \tabularnewline
30 & -0.09203 & -0.7069 & 0.241208 \tabularnewline
31 & 0.016734 & 0.1285 & 0.44908 \tabularnewline
32 & -0.139897 & -1.0746 & 0.143472 \tabularnewline
33 & 0.072115 & 0.5539 & 0.29086 \tabularnewline
34 & 0.056538 & 0.4343 & 0.332837 \tabularnewline
35 & -0.038267 & -0.2939 & 0.384918 \tabularnewline
36 & -0.092055 & -0.7071 & 0.241149 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62395&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.358485[/C][C]2.7536[/C][C]0.003912[/C][/ROW]
[ROW][C]2[/C][C]-0.20077[/C][C]-1.5421[/C][C]0.064193[/C][/ROW]
[ROW][C]3[/C][C]0.138124[/C][C]1.061[/C][C]0.146517[/C][/ROW]
[ROW][C]4[/C][C]0.192453[/C][C]1.4783[/C][C]0.072329[/C][/ROW]
[ROW][C]5[/C][C]-0.09118[/C][C]-0.7004[/C][C]0.243226[/C][/ROW]
[ROW][C]6[/C][C]0.028934[/C][C]0.2222[/C][C]0.412446[/C][/ROW]
[ROW][C]7[/C][C]0.168984[/C][C]1.298[/C][C]0.099671[/C][/ROW]
[ROW][C]8[/C][C]-0.019206[/C][C]-0.1475[/C][C]0.44161[/C][/ROW]
[ROW][C]9[/C][C]0.097786[/C][C]0.7511[/C][C]0.227785[/C][/ROW]
[ROW][C]10[/C][C]0.028849[/C][C]0.2216[/C][C]0.412698[/C][/ROW]
[ROW][C]11[/C][C]0.144202[/C][C]1.1076[/C][C]0.136257[/C][/ROW]
[ROW][C]12[/C][C]-0.186157[/C][C]-1.4299[/C][C]0.07901[/C][/ROW]
[ROW][C]13[/C][C]-0.026584[/C][C]-0.2042[/C][C]0.419452[/C][/ROW]
[ROW][C]14[/C][C]-0.058238[/C][C]-0.4473[/C][C]0.328135[/C][/ROW]
[ROW][C]15[/C][C]-0.010432[/C][C]-0.0801[/C][C]0.468204[/C][/ROW]
[ROW][C]16[/C][C]0.004227[/C][C]0.0325[/C][C]0.487105[/C][/ROW]
[ROW][C]17[/C][C]-0.124896[/C][C]-0.9593[/C][C]0.170649[/C][/ROW]
[ROW][C]18[/C][C]-0.085102[/C][C]-0.6537[/C][C]0.257927[/C][/ROW]
[ROW][C]19[/C][C]-0.021282[/C][C]-0.1635[/C][C]0.435353[/C][/ROW]
[ROW][C]20[/C][C]-0.011567[/C][C]-0.0889[/C][C]0.46475[/C][/ROW]
[ROW][C]21[/C][C]0.081112[/C][C]0.623[/C][C]0.267831[/C][/ROW]
[ROW][C]22[/C][C]-0.038151[/C][C]-0.293[/C][C]0.385258[/C][/ROW]
[ROW][C]23[/C][C]-0.022504[/C][C]-0.1729[/C][C]0.431677[/C][/ROW]
[ROW][C]24[/C][C]-0.126265[/C][C]-0.9699[/C][C]0.168037[/C][/ROW]
[ROW][C]25[/C][C]0.11028[/C][C]0.8471[/C][C]0.200189[/C][/ROW]
[ROW][C]26[/C][C]-0.154283[/C][C]-1.1851[/C][C]0.12037[/C][/ROW]
[ROW][C]27[/C][C]0.12985[/C][C]0.9974[/C][C]0.161323[/C][/ROW]
[ROW][C]28[/C][C]0.117765[/C][C]0.9046[/C][C]0.184687[/C][/ROW]
[ROW][C]29[/C][C]0.023158[/C][C]0.1779[/C][C]0.429712[/C][/ROW]
[ROW][C]30[/C][C]-0.09203[/C][C]-0.7069[/C][C]0.241208[/C][/ROW]
[ROW][C]31[/C][C]0.016734[/C][C]0.1285[/C][C]0.44908[/C][/ROW]
[ROW][C]32[/C][C]-0.139897[/C][C]-1.0746[/C][C]0.143472[/C][/ROW]
[ROW][C]33[/C][C]0.072115[/C][C]0.5539[/C][C]0.29086[/C][/ROW]
[ROW][C]34[/C][C]0.056538[/C][C]0.4343[/C][C]0.332837[/C][/ROW]
[ROW][C]35[/C][C]-0.038267[/C][C]-0.2939[/C][C]0.384918[/C][/ROW]
[ROW][C]36[/C][C]-0.092055[/C][C]-0.7071[/C][C]0.241149[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62395&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62395&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.3584852.75360.003912
2-0.20077-1.54210.064193
30.1381241.0610.146517
40.1924531.47830.072329
5-0.09118-0.70040.243226
60.0289340.22220.412446
70.1689841.2980.099671
8-0.019206-0.14750.44161
90.0977860.75110.227785
100.0288490.22160.412698
110.1442021.10760.136257
12-0.186157-1.42990.07901
13-0.026584-0.20420.419452
14-0.058238-0.44730.328135
15-0.010432-0.08010.468204
160.0042270.03250.487105
17-0.124896-0.95930.170649
18-0.085102-0.65370.257927
19-0.021282-0.16350.435353
20-0.011567-0.08890.46475
210.0811120.6230.267831
22-0.038151-0.2930.385258
23-0.022504-0.17290.431677
24-0.126265-0.96990.168037
250.110280.84710.200189
26-0.154283-1.18510.12037
270.129850.99740.161323
280.1177650.90460.184687
290.0231580.17790.429712
30-0.09203-0.70690.241208
310.0167340.12850.44908
32-0.139897-1.07460.143472
330.0721150.55390.29086
340.0565380.43430.332837
35-0.038267-0.29390.384918
36-0.092055-0.70710.241149



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