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, 26 Nov 2009 03:28:30 -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/26/t12592313940cy6xb19kjoc3qz.htm/, Retrieved Mon, 29 Apr 2024 07:53:25 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59791, Retrieved Mon, 29 Apr 2024 07:53:25 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact136
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:26:39] [b98453cac15ba1066b407e146608df68]
- R  D          [(Partial) Autocorrelation Function] [] [2009-11-26 10:28:30] [c5f9f441970441f2f938cd843072158d] [Current]
Feedback Forum

Post a new message
Dataseries X:
14.9
18.6
19.1
18.8
18.2
18
19
20.7
21.2
20.7
19.6
18.6
18.7
23.8
24.9
24.8
23.8
22.3
21.7
20.7
19.7
18.4
17.4
17
18
23.8
25.5
25.6
23.7
22
21.3
20.7
20.4
20.3
20.4
19.8
19.5
23.1
23.5
23.5
22.9
21.9
21.5
20.5
20.2
19.4
19.2
18.8
18.8
22.6
23.3
23
21.4
19.9
18.8
18.6
18.4
18.6
19.9
19.2
18.4




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59791&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.6319724.37843.2e-05
20.193041.33740.093695
3-0.243993-1.69040.048715
4-0.494165-3.42370.000637
5-0.488595-3.38510.000713
6-0.287864-1.99440.025904
70.0225770.15640.438181
80.217061.50380.069588
90.2545441.76350.042087
100.0965010.66860.253484
11-0.077377-0.53610.297187
12-0.295789-2.04930.022961
13-0.287339-1.99070.026109
14-0.182902-1.26720.105602
15-0.008174-0.05660.477538
160.1849621.28150.103095
170.309432.14380.018572
180.2684151.85960.034536
190.084920.58830.279531
20-0.087825-0.60850.272872
21-0.176191-1.22070.114084
22-0.148629-1.02970.154148
23-0.065479-0.45360.326063
240.0415620.2880.387312
250.0697050.48290.31567
260.092580.64140.262152
270.0336490.23310.408328
28-0.03781-0.2620.397238
29-0.088044-0.610.272375
30-0.092427-0.64040.262494
310.0140620.09740.461397
320.0797240.55230.291637
330.1329520.92110.180798
340.1297930.89920.186509
350.0837860.58050.28215
36-0.038361-0.26580.395775

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.631972 & 4.3784 & 3.2e-05 \tabularnewline
2 & 0.19304 & 1.3374 & 0.093695 \tabularnewline
3 & -0.243993 & -1.6904 & 0.048715 \tabularnewline
4 & -0.494165 & -3.4237 & 0.000637 \tabularnewline
5 & -0.488595 & -3.3851 & 0.000713 \tabularnewline
6 & -0.287864 & -1.9944 & 0.025904 \tabularnewline
7 & 0.022577 & 0.1564 & 0.438181 \tabularnewline
8 & 0.21706 & 1.5038 & 0.069588 \tabularnewline
9 & 0.254544 & 1.7635 & 0.042087 \tabularnewline
10 & 0.096501 & 0.6686 & 0.253484 \tabularnewline
11 & -0.077377 & -0.5361 & 0.297187 \tabularnewline
12 & -0.295789 & -2.0493 & 0.022961 \tabularnewline
13 & -0.287339 & -1.9907 & 0.026109 \tabularnewline
14 & -0.182902 & -1.2672 & 0.105602 \tabularnewline
15 & -0.008174 & -0.0566 & 0.477538 \tabularnewline
16 & 0.184962 & 1.2815 & 0.103095 \tabularnewline
17 & 0.30943 & 2.1438 & 0.018572 \tabularnewline
18 & 0.268415 & 1.8596 & 0.034536 \tabularnewline
19 & 0.08492 & 0.5883 & 0.279531 \tabularnewline
20 & -0.087825 & -0.6085 & 0.272872 \tabularnewline
21 & -0.176191 & -1.2207 & 0.114084 \tabularnewline
22 & -0.148629 & -1.0297 & 0.154148 \tabularnewline
23 & -0.065479 & -0.4536 & 0.326063 \tabularnewline
24 & 0.041562 & 0.288 & 0.387312 \tabularnewline
25 & 0.069705 & 0.4829 & 0.31567 \tabularnewline
26 & 0.09258 & 0.6414 & 0.262152 \tabularnewline
27 & 0.033649 & 0.2331 & 0.408328 \tabularnewline
28 & -0.03781 & -0.262 & 0.397238 \tabularnewline
29 & -0.088044 & -0.61 & 0.272375 \tabularnewline
30 & -0.092427 & -0.6404 & 0.262494 \tabularnewline
31 & 0.014062 & 0.0974 & 0.461397 \tabularnewline
32 & 0.079724 & 0.5523 & 0.291637 \tabularnewline
33 & 0.132952 & 0.9211 & 0.180798 \tabularnewline
34 & 0.129793 & 0.8992 & 0.186509 \tabularnewline
35 & 0.083786 & 0.5805 & 0.28215 \tabularnewline
36 & -0.038361 & -0.2658 & 0.395775 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59791&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.631972[/C][C]4.3784[/C][C]3.2e-05[/C][/ROW]
[ROW][C]2[/C][C]0.19304[/C][C]1.3374[/C][C]0.093695[/C][/ROW]
[ROW][C]3[/C][C]-0.243993[/C][C]-1.6904[/C][C]0.048715[/C][/ROW]
[ROW][C]4[/C][C]-0.494165[/C][C]-3.4237[/C][C]0.000637[/C][/ROW]
[ROW][C]5[/C][C]-0.488595[/C][C]-3.3851[/C][C]0.000713[/C][/ROW]
[ROW][C]6[/C][C]-0.287864[/C][C]-1.9944[/C][C]0.025904[/C][/ROW]
[ROW][C]7[/C][C]0.022577[/C][C]0.1564[/C][C]0.438181[/C][/ROW]
[ROW][C]8[/C][C]0.21706[/C][C]1.5038[/C][C]0.069588[/C][/ROW]
[ROW][C]9[/C][C]0.254544[/C][C]1.7635[/C][C]0.042087[/C][/ROW]
[ROW][C]10[/C][C]0.096501[/C][C]0.6686[/C][C]0.253484[/C][/ROW]
[ROW][C]11[/C][C]-0.077377[/C][C]-0.5361[/C][C]0.297187[/C][/ROW]
[ROW][C]12[/C][C]-0.295789[/C][C]-2.0493[/C][C]0.022961[/C][/ROW]
[ROW][C]13[/C][C]-0.287339[/C][C]-1.9907[/C][C]0.026109[/C][/ROW]
[ROW][C]14[/C][C]-0.182902[/C][C]-1.2672[/C][C]0.105602[/C][/ROW]
[ROW][C]15[/C][C]-0.008174[/C][C]-0.0566[/C][C]0.477538[/C][/ROW]
[ROW][C]16[/C][C]0.184962[/C][C]1.2815[/C][C]0.103095[/C][/ROW]
[ROW][C]17[/C][C]0.30943[/C][C]2.1438[/C][C]0.018572[/C][/ROW]
[ROW][C]18[/C][C]0.268415[/C][C]1.8596[/C][C]0.034536[/C][/ROW]
[ROW][C]19[/C][C]0.08492[/C][C]0.5883[/C][C]0.279531[/C][/ROW]
[ROW][C]20[/C][C]-0.087825[/C][C]-0.6085[/C][C]0.272872[/C][/ROW]
[ROW][C]21[/C][C]-0.176191[/C][C]-1.2207[/C][C]0.114084[/C][/ROW]
[ROW][C]22[/C][C]-0.148629[/C][C]-1.0297[/C][C]0.154148[/C][/ROW]
[ROW][C]23[/C][C]-0.065479[/C][C]-0.4536[/C][C]0.326063[/C][/ROW]
[ROW][C]24[/C][C]0.041562[/C][C]0.288[/C][C]0.387312[/C][/ROW]
[ROW][C]25[/C][C]0.069705[/C][C]0.4829[/C][C]0.31567[/C][/ROW]
[ROW][C]26[/C][C]0.09258[/C][C]0.6414[/C][C]0.262152[/C][/ROW]
[ROW][C]27[/C][C]0.033649[/C][C]0.2331[/C][C]0.408328[/C][/ROW]
[ROW][C]28[/C][C]-0.03781[/C][C]-0.262[/C][C]0.397238[/C][/ROW]
[ROW][C]29[/C][C]-0.088044[/C][C]-0.61[/C][C]0.272375[/C][/ROW]
[ROW][C]30[/C][C]-0.092427[/C][C]-0.6404[/C][C]0.262494[/C][/ROW]
[ROW][C]31[/C][C]0.014062[/C][C]0.0974[/C][C]0.461397[/C][/ROW]
[ROW][C]32[/C][C]0.079724[/C][C]0.5523[/C][C]0.291637[/C][/ROW]
[ROW][C]33[/C][C]0.132952[/C][C]0.9211[/C][C]0.180798[/C][/ROW]
[ROW][C]34[/C][C]0.129793[/C][C]0.8992[/C][C]0.186509[/C][/ROW]
[ROW][C]35[/C][C]0.083786[/C][C]0.5805[/C][C]0.28215[/C][/ROW]
[ROW][C]36[/C][C]-0.038361[/C][C]-0.2658[/C][C]0.395775[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59791&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59791&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.6319724.37843.2e-05
20.193041.33740.093695
3-0.243993-1.69040.048715
4-0.494165-3.42370.000637
5-0.488595-3.38510.000713
6-0.287864-1.99440.025904
70.0225770.15640.438181
80.217061.50380.069588
90.2545441.76350.042087
100.0965010.66860.253484
11-0.077377-0.53610.297187
12-0.295789-2.04930.022961
13-0.287339-1.99070.026109
14-0.182902-1.26720.105602
15-0.008174-0.05660.477538
160.1849621.28150.103095
170.309432.14380.018572
180.2684151.85960.034536
190.084920.58830.279531
20-0.087825-0.60850.272872
21-0.176191-1.22070.114084
22-0.148629-1.02970.154148
23-0.065479-0.45360.326063
240.0415620.2880.387312
250.0697050.48290.31567
260.092580.64140.262152
270.0336490.23310.408328
28-0.03781-0.2620.397238
29-0.088044-0.610.272375
30-0.092427-0.64040.262494
310.0140620.09740.461397
320.0797240.55230.291637
330.1329520.92110.180798
340.1297930.89920.186509
350.0837860.58050.28215
36-0.038361-0.26580.395775







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6319724.37843.2e-05
2-0.343564-2.38030.010659
3-0.360153-2.49520.00804
4-0.178494-1.23660.111118
5-0.034592-0.23970.405807
60.0031990.02220.491204
70.0863060.59790.276344
8-0.084463-0.58520.280586
9-0.082588-0.57220.284932
10-0.174767-1.21080.115947
11-0.017382-0.12040.452323
12-0.25253-1.74960.043291
130.0788270.54610.293752
14-0.107283-0.74330.230469
15-0.073542-0.50950.306363
160.0089310.06190.475459
170.0945320.65490.257818
18-0.118887-0.82370.2071
19-0.075435-0.52260.301819
20-0.023252-0.16110.436348
210.0755020.52310.301657
22-0.019288-0.13360.447128
230.0123890.08580.465979
24-0.11495-0.79640.214861
25-0.085638-0.59330.277878
260.0875750.60670.273443
27-0.033308-0.23080.409239
28-0.038919-0.26960.394297
290.0099720.06910.472602
30-0.03525-0.24420.404052
310.1336460.92590.179559
32-0.005761-0.03990.484163
330.0477230.33060.371179
340.0042970.02980.488186
350.0485540.33640.36902
36-0.047223-0.32720.372482

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.631972 & 4.3784 & 3.2e-05 \tabularnewline
2 & -0.343564 & -2.3803 & 0.010659 \tabularnewline
3 & -0.360153 & -2.4952 & 0.00804 \tabularnewline
4 & -0.178494 & -1.2366 & 0.111118 \tabularnewline
5 & -0.034592 & -0.2397 & 0.405807 \tabularnewline
6 & 0.003199 & 0.0222 & 0.491204 \tabularnewline
7 & 0.086306 & 0.5979 & 0.276344 \tabularnewline
8 & -0.084463 & -0.5852 & 0.280586 \tabularnewline
9 & -0.082588 & -0.5722 & 0.284932 \tabularnewline
10 & -0.174767 & -1.2108 & 0.115947 \tabularnewline
11 & -0.017382 & -0.1204 & 0.452323 \tabularnewline
12 & -0.25253 & -1.7496 & 0.043291 \tabularnewline
13 & 0.078827 & 0.5461 & 0.293752 \tabularnewline
14 & -0.107283 & -0.7433 & 0.230469 \tabularnewline
15 & -0.073542 & -0.5095 & 0.306363 \tabularnewline
16 & 0.008931 & 0.0619 & 0.475459 \tabularnewline
17 & 0.094532 & 0.6549 & 0.257818 \tabularnewline
18 & -0.118887 & -0.8237 & 0.2071 \tabularnewline
19 & -0.075435 & -0.5226 & 0.301819 \tabularnewline
20 & -0.023252 & -0.1611 & 0.436348 \tabularnewline
21 & 0.075502 & 0.5231 & 0.301657 \tabularnewline
22 & -0.019288 & -0.1336 & 0.447128 \tabularnewline
23 & 0.012389 & 0.0858 & 0.465979 \tabularnewline
24 & -0.11495 & -0.7964 & 0.214861 \tabularnewline
25 & -0.085638 & -0.5933 & 0.277878 \tabularnewline
26 & 0.087575 & 0.6067 & 0.273443 \tabularnewline
27 & -0.033308 & -0.2308 & 0.409239 \tabularnewline
28 & -0.038919 & -0.2696 & 0.394297 \tabularnewline
29 & 0.009972 & 0.0691 & 0.472602 \tabularnewline
30 & -0.03525 & -0.2442 & 0.404052 \tabularnewline
31 & 0.133646 & 0.9259 & 0.179559 \tabularnewline
32 & -0.005761 & -0.0399 & 0.484163 \tabularnewline
33 & 0.047723 & 0.3306 & 0.371179 \tabularnewline
34 & 0.004297 & 0.0298 & 0.488186 \tabularnewline
35 & 0.048554 & 0.3364 & 0.36902 \tabularnewline
36 & -0.047223 & -0.3272 & 0.372482 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59791&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.631972[/C][C]4.3784[/C][C]3.2e-05[/C][/ROW]
[ROW][C]2[/C][C]-0.343564[/C][C]-2.3803[/C][C]0.010659[/C][/ROW]
[ROW][C]3[/C][C]-0.360153[/C][C]-2.4952[/C][C]0.00804[/C][/ROW]
[ROW][C]4[/C][C]-0.178494[/C][C]-1.2366[/C][C]0.111118[/C][/ROW]
[ROW][C]5[/C][C]-0.034592[/C][C]-0.2397[/C][C]0.405807[/C][/ROW]
[ROW][C]6[/C][C]0.003199[/C][C]0.0222[/C][C]0.491204[/C][/ROW]
[ROW][C]7[/C][C]0.086306[/C][C]0.5979[/C][C]0.276344[/C][/ROW]
[ROW][C]8[/C][C]-0.084463[/C][C]-0.5852[/C][C]0.280586[/C][/ROW]
[ROW][C]9[/C][C]-0.082588[/C][C]-0.5722[/C][C]0.284932[/C][/ROW]
[ROW][C]10[/C][C]-0.174767[/C][C]-1.2108[/C][C]0.115947[/C][/ROW]
[ROW][C]11[/C][C]-0.017382[/C][C]-0.1204[/C][C]0.452323[/C][/ROW]
[ROW][C]12[/C][C]-0.25253[/C][C]-1.7496[/C][C]0.043291[/C][/ROW]
[ROW][C]13[/C][C]0.078827[/C][C]0.5461[/C][C]0.293752[/C][/ROW]
[ROW][C]14[/C][C]-0.107283[/C][C]-0.7433[/C][C]0.230469[/C][/ROW]
[ROW][C]15[/C][C]-0.073542[/C][C]-0.5095[/C][C]0.306363[/C][/ROW]
[ROW][C]16[/C][C]0.008931[/C][C]0.0619[/C][C]0.475459[/C][/ROW]
[ROW][C]17[/C][C]0.094532[/C][C]0.6549[/C][C]0.257818[/C][/ROW]
[ROW][C]18[/C][C]-0.118887[/C][C]-0.8237[/C][C]0.2071[/C][/ROW]
[ROW][C]19[/C][C]-0.075435[/C][C]-0.5226[/C][C]0.301819[/C][/ROW]
[ROW][C]20[/C][C]-0.023252[/C][C]-0.1611[/C][C]0.436348[/C][/ROW]
[ROW][C]21[/C][C]0.075502[/C][C]0.5231[/C][C]0.301657[/C][/ROW]
[ROW][C]22[/C][C]-0.019288[/C][C]-0.1336[/C][C]0.447128[/C][/ROW]
[ROW][C]23[/C][C]0.012389[/C][C]0.0858[/C][C]0.465979[/C][/ROW]
[ROW][C]24[/C][C]-0.11495[/C][C]-0.7964[/C][C]0.214861[/C][/ROW]
[ROW][C]25[/C][C]-0.085638[/C][C]-0.5933[/C][C]0.277878[/C][/ROW]
[ROW][C]26[/C][C]0.087575[/C][C]0.6067[/C][C]0.273443[/C][/ROW]
[ROW][C]27[/C][C]-0.033308[/C][C]-0.2308[/C][C]0.409239[/C][/ROW]
[ROW][C]28[/C][C]-0.038919[/C][C]-0.2696[/C][C]0.394297[/C][/ROW]
[ROW][C]29[/C][C]0.009972[/C][C]0.0691[/C][C]0.472602[/C][/ROW]
[ROW][C]30[/C][C]-0.03525[/C][C]-0.2442[/C][C]0.404052[/C][/ROW]
[ROW][C]31[/C][C]0.133646[/C][C]0.9259[/C][C]0.179559[/C][/ROW]
[ROW][C]32[/C][C]-0.005761[/C][C]-0.0399[/C][C]0.484163[/C][/ROW]
[ROW][C]33[/C][C]0.047723[/C][C]0.3306[/C][C]0.371179[/C][/ROW]
[ROW][C]34[/C][C]0.004297[/C][C]0.0298[/C][C]0.488186[/C][/ROW]
[ROW][C]35[/C][C]0.048554[/C][C]0.3364[/C][C]0.36902[/C][/ROW]
[ROW][C]36[/C][C]-0.047223[/C][C]-0.3272[/C][C]0.372482[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59791&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59791&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.6319724.37843.2e-05
2-0.343564-2.38030.010659
3-0.360153-2.49520.00804
4-0.178494-1.23660.111118
5-0.034592-0.23970.405807
60.0031990.02220.491204
70.0863060.59790.276344
8-0.084463-0.58520.280586
9-0.082588-0.57220.284932
10-0.174767-1.21080.115947
11-0.017382-0.12040.452323
12-0.25253-1.74960.043291
130.0788270.54610.293752
14-0.107283-0.74330.230469
15-0.073542-0.50950.306363
160.0089310.06190.475459
170.0945320.65490.257818
18-0.118887-0.82370.2071
19-0.075435-0.52260.301819
20-0.023252-0.16110.436348
210.0755020.52310.301657
22-0.019288-0.13360.447128
230.0123890.08580.465979
24-0.11495-0.79640.214861
25-0.085638-0.59330.277878
260.0875750.60670.273443
27-0.033308-0.23080.409239
28-0.038919-0.26960.394297
290.0099720.06910.472602
30-0.03525-0.24420.404052
310.1336460.92590.179559
32-0.005761-0.03990.484163
330.0477230.33060.371179
340.0042970.02980.488186
350.0485540.33640.36902
36-0.047223-0.32720.372482



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