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 07:28:17 -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/t1260541880042wtsof7qivnap.htm/, Retrieved Mon, 29 Apr 2024 01:18:51 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=66240, Retrieved Mon, 29 Apr 2024 01:18:51 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsacfpacfd1D0
Estimated Impact110
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Bivariate Explorative Data Analysis] [shw-ws4p1] [2009-10-28 17:17:04] [2663058f2a5dda519058ac6b2228468f]
- RMPD    [(Partial) Autocorrelation Function] [Paper: ACF en PACF] [2009-12-11 14:28:17] [682632737e024f9e62885141c5f654cd] [Current]
Feedback Forum

Post a new message
Dataseries X:
128.6
128.9
129.06
129.23
129.27
129.33
129.35
129.31
129.4
129.49
129.47
129.46
129.45
129.28
129.2
129.25
129.14
129.11
129.02
129.08
128.99
129.11
129.08
129.19
129.23
129.25
129.31
129.33
129.39
129.55
129.43
129.45
129.57
129.76
129.92
130.08
130.41
130.84
131.24
131.49
131.74
132.34
133.5
134.43
136.5
137.41
138.02
138.15
138.24
138.2
138.31
138.65
139.3
139.8
140.52
141.57
141.77
141.66
141.36
141.17




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66240&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.7030095.39991e-06
20.5255494.03687.9e-05
30.2515621.93230.029065
40.0897190.68910.246717
50.0207220.15920.43704
60.0702710.53980.295695
70.151181.16120.125112
80.255661.96380.027138
90.2842722.18350.016493
100.3111912.39030.010023
110.2692552.06820.021508
120.0732040.56230.288024
13-0.037025-0.28440.388552
14-0.164738-1.26540.105355
15-0.165467-1.2710.104363
16-0.115937-0.89050.188399
17-0.0804-0.61760.26962
18-0.044338-0.34060.36732
19-0.064979-0.49910.309779
20-0.101844-0.78230.21859
21-0.110361-0.84770.200015
22-0.136434-1.0480.149464
23-0.11384-0.87440.192718
24-0.166233-1.27690.103328
25-0.156938-1.20550.116419
26-0.157895-1.21280.115017
27-0.144268-1.10810.136148
28-0.16505-1.26780.10493
29-0.15331-1.17760.121842
30-0.174501-1.34040.092633
31-0.170795-1.31190.097318
32-0.149667-1.14960.127471
33-0.135118-1.03790.151786
34-0.126431-0.97110.167722
35-0.123314-0.94720.173702
36-0.107688-0.82720.205737

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.703009 & 5.3999 & 1e-06 \tabularnewline
2 & 0.525549 & 4.0368 & 7.9e-05 \tabularnewline
3 & 0.251562 & 1.9323 & 0.029065 \tabularnewline
4 & 0.089719 & 0.6891 & 0.246717 \tabularnewline
5 & 0.020722 & 0.1592 & 0.43704 \tabularnewline
6 & 0.070271 & 0.5398 & 0.295695 \tabularnewline
7 & 0.15118 & 1.1612 & 0.125112 \tabularnewline
8 & 0.25566 & 1.9638 & 0.027138 \tabularnewline
9 & 0.284272 & 2.1835 & 0.016493 \tabularnewline
10 & 0.311191 & 2.3903 & 0.010023 \tabularnewline
11 & 0.269255 & 2.0682 & 0.021508 \tabularnewline
12 & 0.073204 & 0.5623 & 0.288024 \tabularnewline
13 & -0.037025 & -0.2844 & 0.388552 \tabularnewline
14 & -0.164738 & -1.2654 & 0.105355 \tabularnewline
15 & -0.165467 & -1.271 & 0.104363 \tabularnewline
16 & -0.115937 & -0.8905 & 0.188399 \tabularnewline
17 & -0.0804 & -0.6176 & 0.26962 \tabularnewline
18 & -0.044338 & -0.3406 & 0.36732 \tabularnewline
19 & -0.064979 & -0.4991 & 0.309779 \tabularnewline
20 & -0.101844 & -0.7823 & 0.21859 \tabularnewline
21 & -0.110361 & -0.8477 & 0.200015 \tabularnewline
22 & -0.136434 & -1.048 & 0.149464 \tabularnewline
23 & -0.11384 & -0.8744 & 0.192718 \tabularnewline
24 & -0.166233 & -1.2769 & 0.103328 \tabularnewline
25 & -0.156938 & -1.2055 & 0.116419 \tabularnewline
26 & -0.157895 & -1.2128 & 0.115017 \tabularnewline
27 & -0.144268 & -1.1081 & 0.136148 \tabularnewline
28 & -0.16505 & -1.2678 & 0.10493 \tabularnewline
29 & -0.15331 & -1.1776 & 0.121842 \tabularnewline
30 & -0.174501 & -1.3404 & 0.092633 \tabularnewline
31 & -0.170795 & -1.3119 & 0.097318 \tabularnewline
32 & -0.149667 & -1.1496 & 0.127471 \tabularnewline
33 & -0.135118 & -1.0379 & 0.151786 \tabularnewline
34 & -0.126431 & -0.9711 & 0.167722 \tabularnewline
35 & -0.123314 & -0.9472 & 0.173702 \tabularnewline
36 & -0.107688 & -0.8272 & 0.205737 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66240&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.703009[/C][C]5.3999[/C][C]1e-06[/C][/ROW]
[ROW][C]2[/C][C]0.525549[/C][C]4.0368[/C][C]7.9e-05[/C][/ROW]
[ROW][C]3[/C][C]0.251562[/C][C]1.9323[/C][C]0.029065[/C][/ROW]
[ROW][C]4[/C][C]0.089719[/C][C]0.6891[/C][C]0.246717[/C][/ROW]
[ROW][C]5[/C][C]0.020722[/C][C]0.1592[/C][C]0.43704[/C][/ROW]
[ROW][C]6[/C][C]0.070271[/C][C]0.5398[/C][C]0.295695[/C][/ROW]
[ROW][C]7[/C][C]0.15118[/C][C]1.1612[/C][C]0.125112[/C][/ROW]
[ROW][C]8[/C][C]0.25566[/C][C]1.9638[/C][C]0.027138[/C][/ROW]
[ROW][C]9[/C][C]0.284272[/C][C]2.1835[/C][C]0.016493[/C][/ROW]
[ROW][C]10[/C][C]0.311191[/C][C]2.3903[/C][C]0.010023[/C][/ROW]
[ROW][C]11[/C][C]0.269255[/C][C]2.0682[/C][C]0.021508[/C][/ROW]
[ROW][C]12[/C][C]0.073204[/C][C]0.5623[/C][C]0.288024[/C][/ROW]
[ROW][C]13[/C][C]-0.037025[/C][C]-0.2844[/C][C]0.388552[/C][/ROW]
[ROW][C]14[/C][C]-0.164738[/C][C]-1.2654[/C][C]0.105355[/C][/ROW]
[ROW][C]15[/C][C]-0.165467[/C][C]-1.271[/C][C]0.104363[/C][/ROW]
[ROW][C]16[/C][C]-0.115937[/C][C]-0.8905[/C][C]0.188399[/C][/ROW]
[ROW][C]17[/C][C]-0.0804[/C][C]-0.6176[/C][C]0.26962[/C][/ROW]
[ROW][C]18[/C][C]-0.044338[/C][C]-0.3406[/C][C]0.36732[/C][/ROW]
[ROW][C]19[/C][C]-0.064979[/C][C]-0.4991[/C][C]0.309779[/C][/ROW]
[ROW][C]20[/C][C]-0.101844[/C][C]-0.7823[/C][C]0.21859[/C][/ROW]
[ROW][C]21[/C][C]-0.110361[/C][C]-0.8477[/C][C]0.200015[/C][/ROW]
[ROW][C]22[/C][C]-0.136434[/C][C]-1.048[/C][C]0.149464[/C][/ROW]
[ROW][C]23[/C][C]-0.11384[/C][C]-0.8744[/C][C]0.192718[/C][/ROW]
[ROW][C]24[/C][C]-0.166233[/C][C]-1.2769[/C][C]0.103328[/C][/ROW]
[ROW][C]25[/C][C]-0.156938[/C][C]-1.2055[/C][C]0.116419[/C][/ROW]
[ROW][C]26[/C][C]-0.157895[/C][C]-1.2128[/C][C]0.115017[/C][/ROW]
[ROW][C]27[/C][C]-0.144268[/C][C]-1.1081[/C][C]0.136148[/C][/ROW]
[ROW][C]28[/C][C]-0.16505[/C][C]-1.2678[/C][C]0.10493[/C][/ROW]
[ROW][C]29[/C][C]-0.15331[/C][C]-1.1776[/C][C]0.121842[/C][/ROW]
[ROW][C]30[/C][C]-0.174501[/C][C]-1.3404[/C][C]0.092633[/C][/ROW]
[ROW][C]31[/C][C]-0.170795[/C][C]-1.3119[/C][C]0.097318[/C][/ROW]
[ROW][C]32[/C][C]-0.149667[/C][C]-1.1496[/C][C]0.127471[/C][/ROW]
[ROW][C]33[/C][C]-0.135118[/C][C]-1.0379[/C][C]0.151786[/C][/ROW]
[ROW][C]34[/C][C]-0.126431[/C][C]-0.9711[/C][C]0.167722[/C][/ROW]
[ROW][C]35[/C][C]-0.123314[/C][C]-0.9472[/C][C]0.173702[/C][/ROW]
[ROW][C]36[/C][C]-0.107688[/C][C]-0.8272[/C][C]0.205737[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66240&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66240&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.7030095.39991e-06
20.5255494.03687.9e-05
30.2515621.93230.029065
40.0897190.68910.246717
50.0207220.15920.43704
60.0702710.53980.295695
70.151181.16120.125112
80.255661.96380.027138
90.2842722.18350.016493
100.3111912.39030.010023
110.2692552.06820.021508
120.0732040.56230.288024
13-0.037025-0.28440.388552
14-0.164738-1.26540.105355
15-0.165467-1.2710.104363
16-0.115937-0.89050.188399
17-0.0804-0.61760.26962
18-0.044338-0.34060.36732
19-0.064979-0.49910.309779
20-0.101844-0.78230.21859
21-0.110361-0.84770.200015
22-0.136434-1.0480.149464
23-0.11384-0.87440.192718
24-0.166233-1.27690.103328
25-0.156938-1.20550.116419
26-0.157895-1.21280.115017
27-0.144268-1.10810.136148
28-0.16505-1.26780.10493
29-0.15331-1.17760.121842
30-0.174501-1.34040.092633
31-0.170795-1.31190.097318
32-0.149667-1.14960.127471
33-0.135118-1.03790.151786
34-0.126431-0.97110.167722
35-0.123314-0.94720.173702
36-0.107688-0.82720.205737







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7030095.39991e-06
20.061940.47580.317999
3-0.275015-2.11240.019446
4-0.032189-0.24730.402786
50.1147010.8810.190936
60.1714151.31670.096521
70.0881790.67730.250426
80.0905620.69560.244698
9-0.007208-0.05540.478017
100.0897880.68970.246551
110.0377880.29030.386319
12-0.3268-2.51020.007414
13-0.021772-0.16720.433879
14-0.010062-0.07730.469329
150.0422380.32440.373377
160.0102930.07910.468625
17-0.179182-1.37630.086962
18-0.074467-0.5720.284749
19-0.042953-0.32990.371311
200.0164650.12650.449896
210.0236260.18150.428309
22-0.012037-0.09250.463324
230.119390.91710.181425
24-0.180829-1.3890.085031
250.0328830.25260.400736
26-0.027388-0.21040.41705
27-0.032123-0.24670.402982
28-0.037732-0.28980.386484
29-0.019971-0.15340.439303
300.0173210.1330.447306
31-0.080032-0.61470.270547
320.0155450.11940.452681
33-0.095123-0.73070.233941
34-0.078264-0.60120.275019
350.1351651.03820.151702
36-0.022958-0.17630.430313

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.703009 & 5.3999 & 1e-06 \tabularnewline
2 & 0.06194 & 0.4758 & 0.317999 \tabularnewline
3 & -0.275015 & -2.1124 & 0.019446 \tabularnewline
4 & -0.032189 & -0.2473 & 0.402786 \tabularnewline
5 & 0.114701 & 0.881 & 0.190936 \tabularnewline
6 & 0.171415 & 1.3167 & 0.096521 \tabularnewline
7 & 0.088179 & 0.6773 & 0.250426 \tabularnewline
8 & 0.090562 & 0.6956 & 0.244698 \tabularnewline
9 & -0.007208 & -0.0554 & 0.478017 \tabularnewline
10 & 0.089788 & 0.6897 & 0.246551 \tabularnewline
11 & 0.037788 & 0.2903 & 0.386319 \tabularnewline
12 & -0.3268 & -2.5102 & 0.007414 \tabularnewline
13 & -0.021772 & -0.1672 & 0.433879 \tabularnewline
14 & -0.010062 & -0.0773 & 0.469329 \tabularnewline
15 & 0.042238 & 0.3244 & 0.373377 \tabularnewline
16 & 0.010293 & 0.0791 & 0.468625 \tabularnewline
17 & -0.179182 & -1.3763 & 0.086962 \tabularnewline
18 & -0.074467 & -0.572 & 0.284749 \tabularnewline
19 & -0.042953 & -0.3299 & 0.371311 \tabularnewline
20 & 0.016465 & 0.1265 & 0.449896 \tabularnewline
21 & 0.023626 & 0.1815 & 0.428309 \tabularnewline
22 & -0.012037 & -0.0925 & 0.463324 \tabularnewline
23 & 0.11939 & 0.9171 & 0.181425 \tabularnewline
24 & -0.180829 & -1.389 & 0.085031 \tabularnewline
25 & 0.032883 & 0.2526 & 0.400736 \tabularnewline
26 & -0.027388 & -0.2104 & 0.41705 \tabularnewline
27 & -0.032123 & -0.2467 & 0.402982 \tabularnewline
28 & -0.037732 & -0.2898 & 0.386484 \tabularnewline
29 & -0.019971 & -0.1534 & 0.439303 \tabularnewline
30 & 0.017321 & 0.133 & 0.447306 \tabularnewline
31 & -0.080032 & -0.6147 & 0.270547 \tabularnewline
32 & 0.015545 & 0.1194 & 0.452681 \tabularnewline
33 & -0.095123 & -0.7307 & 0.233941 \tabularnewline
34 & -0.078264 & -0.6012 & 0.275019 \tabularnewline
35 & 0.135165 & 1.0382 & 0.151702 \tabularnewline
36 & -0.022958 & -0.1763 & 0.430313 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66240&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.703009[/C][C]5.3999[/C][C]1e-06[/C][/ROW]
[ROW][C]2[/C][C]0.06194[/C][C]0.4758[/C][C]0.317999[/C][/ROW]
[ROW][C]3[/C][C]-0.275015[/C][C]-2.1124[/C][C]0.019446[/C][/ROW]
[ROW][C]4[/C][C]-0.032189[/C][C]-0.2473[/C][C]0.402786[/C][/ROW]
[ROW][C]5[/C][C]0.114701[/C][C]0.881[/C][C]0.190936[/C][/ROW]
[ROW][C]6[/C][C]0.171415[/C][C]1.3167[/C][C]0.096521[/C][/ROW]
[ROW][C]7[/C][C]0.088179[/C][C]0.6773[/C][C]0.250426[/C][/ROW]
[ROW][C]8[/C][C]0.090562[/C][C]0.6956[/C][C]0.244698[/C][/ROW]
[ROW][C]9[/C][C]-0.007208[/C][C]-0.0554[/C][C]0.478017[/C][/ROW]
[ROW][C]10[/C][C]0.089788[/C][C]0.6897[/C][C]0.246551[/C][/ROW]
[ROW][C]11[/C][C]0.037788[/C][C]0.2903[/C][C]0.386319[/C][/ROW]
[ROW][C]12[/C][C]-0.3268[/C][C]-2.5102[/C][C]0.007414[/C][/ROW]
[ROW][C]13[/C][C]-0.021772[/C][C]-0.1672[/C][C]0.433879[/C][/ROW]
[ROW][C]14[/C][C]-0.010062[/C][C]-0.0773[/C][C]0.469329[/C][/ROW]
[ROW][C]15[/C][C]0.042238[/C][C]0.3244[/C][C]0.373377[/C][/ROW]
[ROW][C]16[/C][C]0.010293[/C][C]0.0791[/C][C]0.468625[/C][/ROW]
[ROW][C]17[/C][C]-0.179182[/C][C]-1.3763[/C][C]0.086962[/C][/ROW]
[ROW][C]18[/C][C]-0.074467[/C][C]-0.572[/C][C]0.284749[/C][/ROW]
[ROW][C]19[/C][C]-0.042953[/C][C]-0.3299[/C][C]0.371311[/C][/ROW]
[ROW][C]20[/C][C]0.016465[/C][C]0.1265[/C][C]0.449896[/C][/ROW]
[ROW][C]21[/C][C]0.023626[/C][C]0.1815[/C][C]0.428309[/C][/ROW]
[ROW][C]22[/C][C]-0.012037[/C][C]-0.0925[/C][C]0.463324[/C][/ROW]
[ROW][C]23[/C][C]0.11939[/C][C]0.9171[/C][C]0.181425[/C][/ROW]
[ROW][C]24[/C][C]-0.180829[/C][C]-1.389[/C][C]0.085031[/C][/ROW]
[ROW][C]25[/C][C]0.032883[/C][C]0.2526[/C][C]0.400736[/C][/ROW]
[ROW][C]26[/C][C]-0.027388[/C][C]-0.2104[/C][C]0.41705[/C][/ROW]
[ROW][C]27[/C][C]-0.032123[/C][C]-0.2467[/C][C]0.402982[/C][/ROW]
[ROW][C]28[/C][C]-0.037732[/C][C]-0.2898[/C][C]0.386484[/C][/ROW]
[ROW][C]29[/C][C]-0.019971[/C][C]-0.1534[/C][C]0.439303[/C][/ROW]
[ROW][C]30[/C][C]0.017321[/C][C]0.133[/C][C]0.447306[/C][/ROW]
[ROW][C]31[/C][C]-0.080032[/C][C]-0.6147[/C][C]0.270547[/C][/ROW]
[ROW][C]32[/C][C]0.015545[/C][C]0.1194[/C][C]0.452681[/C][/ROW]
[ROW][C]33[/C][C]-0.095123[/C][C]-0.7307[/C][C]0.233941[/C][/ROW]
[ROW][C]34[/C][C]-0.078264[/C][C]-0.6012[/C][C]0.275019[/C][/ROW]
[ROW][C]35[/C][C]0.135165[/C][C]1.0382[/C][C]0.151702[/C][/ROW]
[ROW][C]36[/C][C]-0.022958[/C][C]-0.1763[/C][C]0.430313[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66240&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66240&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.7030095.39991e-06
20.061940.47580.317999
3-0.275015-2.11240.019446
4-0.032189-0.24730.402786
50.1147010.8810.190936
60.1714151.31670.096521
70.0881790.67730.250426
80.0905620.69560.244698
9-0.007208-0.05540.478017
100.0897880.68970.246551
110.0377880.29030.386319
12-0.3268-2.51020.007414
13-0.021772-0.16720.433879
14-0.010062-0.07730.469329
150.0422380.32440.373377
160.0102930.07910.468625
17-0.179182-1.37630.086962
18-0.074467-0.5720.284749
19-0.042953-0.32990.371311
200.0164650.12650.449896
210.0236260.18150.428309
22-0.012037-0.09250.463324
230.119390.91710.181425
24-0.180829-1.3890.085031
250.0328830.25260.400736
26-0.027388-0.21040.41705
27-0.032123-0.24670.402982
28-0.037732-0.28980.386484
29-0.019971-0.15340.439303
300.0173210.1330.447306
31-0.080032-0.61470.270547
320.0155450.11940.452681
33-0.095123-0.73070.233941
34-0.078264-0.60120.275019
350.1351651.03820.151702
36-0.022958-0.17630.430313



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