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, 04 Dec 2009 03:11:18 -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/04/t1259921552sunt45scs62velu.htm/, Retrieved Sun, 28 Apr 2024 04:17:00 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63237, Retrieved Sun, 28 Apr 2024 04:17:00 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsSHW WS 9 (Patial) Autocorrelation Function (Lambda=1, d=1, D=1)
Estimated Impact136
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [data set] [2008-12-01 19:54:57] [b98453cac15ba1066b407e146608df68]
- RMP   [(Partial) Autocorrelation Function] [] [2009-11-27 14:48:46] [b98453cac15ba1066b407e146608df68]
-    D      [(Partial) Autocorrelation Function] [WS 9 (Patial) Aut...] [2009-12-04 10:11:18] [a45cc820faa25ce30779915639528ec2] [Current]
Feedback Forum

Post a new message
Dataseries X:
14.2
13.5
11.9
14.6
15.6
14.1
14.9
14.2
14.6
17.2
15.4
14.3
17.5
14.5
14.4
16.6
16.7
16.6
16.9
15.7
16.4
18.4
16.9
16.5
18.3
15.1
15.7
18.1
16.8
18.9
19
18.1
17.8
21.5
17.1
18.7
19
16.4
16.9
18.6
19.3
19.4
17.6
18.6
18.1
20.4
18.1
19.6
19.9
19.2
17.8
19.2
22
21.1
19.5
22.2
20.9
22.2
23.5
21.5
24.3
22.8
20.3
23.7
23.3
19.6
18
17.3
16.8
18.2
16.5
16
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=63237&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=63237&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63237&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.484859-3.75570.000196
20.0371220.28750.387343
30.4061833.14630.001287
4-0.332857-2.57830.0062
50.0706570.54730.293098
60.2540631.9680.026849
7-0.382595-2.96360.002178
80.2210641.71240.045998
90.0555240.43010.334337
10-0.262759-2.03530.023121
110.2226571.72470.044866
12-0.096706-0.74910.228368
13-0.150653-1.1670.123922
140.1730881.34070.092531
15-0.058967-0.45680.324748
16-0.139198-1.07820.142625
170.1732791.34220.092291
18-0.133049-1.03060.153433
19-0.080031-0.61990.268829
200.1638151.26890.104688
21-0.144753-1.12130.133324
22-0.076449-0.59220.27798
230.2992662.31810.011935
24-0.312933-2.4240.009191
250.177161.37230.087543
260.059230.45880.324021
27-0.158615-1.22860.112005
280.0562220.43550.332384
290.1297751.00520.159411
30-0.160172-1.24070.109776
310.0974110.75450.226738
32-0.000667-0.00520.497948
33-0.017401-0.13480.446614
34-0.013453-0.10420.458676
350.0011330.00880.496513
36-0.050397-0.39040.34882

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.484859 & -3.7557 & 0.000196 \tabularnewline
2 & 0.037122 & 0.2875 & 0.387343 \tabularnewline
3 & 0.406183 & 3.1463 & 0.001287 \tabularnewline
4 & -0.332857 & -2.5783 & 0.0062 \tabularnewline
5 & 0.070657 & 0.5473 & 0.293098 \tabularnewline
6 & 0.254063 & 1.968 & 0.026849 \tabularnewline
7 & -0.382595 & -2.9636 & 0.002178 \tabularnewline
8 & 0.221064 & 1.7124 & 0.045998 \tabularnewline
9 & 0.055524 & 0.4301 & 0.334337 \tabularnewline
10 & -0.262759 & -2.0353 & 0.023121 \tabularnewline
11 & 0.222657 & 1.7247 & 0.044866 \tabularnewline
12 & -0.096706 & -0.7491 & 0.228368 \tabularnewline
13 & -0.150653 & -1.167 & 0.123922 \tabularnewline
14 & 0.173088 & 1.3407 & 0.092531 \tabularnewline
15 & -0.058967 & -0.4568 & 0.324748 \tabularnewline
16 & -0.139198 & -1.0782 & 0.142625 \tabularnewline
17 & 0.173279 & 1.3422 & 0.092291 \tabularnewline
18 & -0.133049 & -1.0306 & 0.153433 \tabularnewline
19 & -0.080031 & -0.6199 & 0.268829 \tabularnewline
20 & 0.163815 & 1.2689 & 0.104688 \tabularnewline
21 & -0.144753 & -1.1213 & 0.133324 \tabularnewline
22 & -0.076449 & -0.5922 & 0.27798 \tabularnewline
23 & 0.299266 & 2.3181 & 0.011935 \tabularnewline
24 & -0.312933 & -2.424 & 0.009191 \tabularnewline
25 & 0.17716 & 1.3723 & 0.087543 \tabularnewline
26 & 0.05923 & 0.4588 & 0.324021 \tabularnewline
27 & -0.158615 & -1.2286 & 0.112005 \tabularnewline
28 & 0.056222 & 0.4355 & 0.332384 \tabularnewline
29 & 0.129775 & 1.0052 & 0.159411 \tabularnewline
30 & -0.160172 & -1.2407 & 0.109776 \tabularnewline
31 & 0.097411 & 0.7545 & 0.226738 \tabularnewline
32 & -0.000667 & -0.0052 & 0.497948 \tabularnewline
33 & -0.017401 & -0.1348 & 0.446614 \tabularnewline
34 & -0.013453 & -0.1042 & 0.458676 \tabularnewline
35 & 0.001133 & 0.0088 & 0.496513 \tabularnewline
36 & -0.050397 & -0.3904 & 0.34882 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63237&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.484859[/C][C]-3.7557[/C][C]0.000196[/C][/ROW]
[ROW][C]2[/C][C]0.037122[/C][C]0.2875[/C][C]0.387343[/C][/ROW]
[ROW][C]3[/C][C]0.406183[/C][C]3.1463[/C][C]0.001287[/C][/ROW]
[ROW][C]4[/C][C]-0.332857[/C][C]-2.5783[/C][C]0.0062[/C][/ROW]
[ROW][C]5[/C][C]0.070657[/C][C]0.5473[/C][C]0.293098[/C][/ROW]
[ROW][C]6[/C][C]0.254063[/C][C]1.968[/C][C]0.026849[/C][/ROW]
[ROW][C]7[/C][C]-0.382595[/C][C]-2.9636[/C][C]0.002178[/C][/ROW]
[ROW][C]8[/C][C]0.221064[/C][C]1.7124[/C][C]0.045998[/C][/ROW]
[ROW][C]9[/C][C]0.055524[/C][C]0.4301[/C][C]0.334337[/C][/ROW]
[ROW][C]10[/C][C]-0.262759[/C][C]-2.0353[/C][C]0.023121[/C][/ROW]
[ROW][C]11[/C][C]0.222657[/C][C]1.7247[/C][C]0.044866[/C][/ROW]
[ROW][C]12[/C][C]-0.096706[/C][C]-0.7491[/C][C]0.228368[/C][/ROW]
[ROW][C]13[/C][C]-0.150653[/C][C]-1.167[/C][C]0.123922[/C][/ROW]
[ROW][C]14[/C][C]0.173088[/C][C]1.3407[/C][C]0.092531[/C][/ROW]
[ROW][C]15[/C][C]-0.058967[/C][C]-0.4568[/C][C]0.324748[/C][/ROW]
[ROW][C]16[/C][C]-0.139198[/C][C]-1.0782[/C][C]0.142625[/C][/ROW]
[ROW][C]17[/C][C]0.173279[/C][C]1.3422[/C][C]0.092291[/C][/ROW]
[ROW][C]18[/C][C]-0.133049[/C][C]-1.0306[/C][C]0.153433[/C][/ROW]
[ROW][C]19[/C][C]-0.080031[/C][C]-0.6199[/C][C]0.268829[/C][/ROW]
[ROW][C]20[/C][C]0.163815[/C][C]1.2689[/C][C]0.104688[/C][/ROW]
[ROW][C]21[/C][C]-0.144753[/C][C]-1.1213[/C][C]0.133324[/C][/ROW]
[ROW][C]22[/C][C]-0.076449[/C][C]-0.5922[/C][C]0.27798[/C][/ROW]
[ROW][C]23[/C][C]0.299266[/C][C]2.3181[/C][C]0.011935[/C][/ROW]
[ROW][C]24[/C][C]-0.312933[/C][C]-2.424[/C][C]0.009191[/C][/ROW]
[ROW][C]25[/C][C]0.17716[/C][C]1.3723[/C][C]0.087543[/C][/ROW]
[ROW][C]26[/C][C]0.05923[/C][C]0.4588[/C][C]0.324021[/C][/ROW]
[ROW][C]27[/C][C]-0.158615[/C][C]-1.2286[/C][C]0.112005[/C][/ROW]
[ROW][C]28[/C][C]0.056222[/C][C]0.4355[/C][C]0.332384[/C][/ROW]
[ROW][C]29[/C][C]0.129775[/C][C]1.0052[/C][C]0.159411[/C][/ROW]
[ROW][C]30[/C][C]-0.160172[/C][C]-1.2407[/C][C]0.109776[/C][/ROW]
[ROW][C]31[/C][C]0.097411[/C][C]0.7545[/C][C]0.226738[/C][/ROW]
[ROW][C]32[/C][C]-0.000667[/C][C]-0.0052[/C][C]0.497948[/C][/ROW]
[ROW][C]33[/C][C]-0.017401[/C][C]-0.1348[/C][C]0.446614[/C][/ROW]
[ROW][C]34[/C][C]-0.013453[/C][C]-0.1042[/C][C]0.458676[/C][/ROW]
[ROW][C]35[/C][C]0.001133[/C][C]0.0088[/C][C]0.496513[/C][/ROW]
[ROW][C]36[/C][C]-0.050397[/C][C]-0.3904[/C][C]0.34882[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63237&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63237&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.484859-3.75570.000196
20.0371220.28750.387343
30.4061833.14630.001287
4-0.332857-2.57830.0062
50.0706570.54730.293098
60.2540631.9680.026849
7-0.382595-2.96360.002178
80.2210641.71240.045998
90.0555240.43010.334337
10-0.262759-2.03530.023121
110.2226571.72470.044866
12-0.096706-0.74910.228368
13-0.150653-1.1670.123922
140.1730881.34070.092531
15-0.058967-0.45680.324748
16-0.139198-1.07820.142625
170.1732791.34220.092291
18-0.133049-1.03060.153433
19-0.080031-0.61990.268829
200.1638151.26890.104688
21-0.144753-1.12130.133324
22-0.076449-0.59220.27798
230.2992662.31810.011935
24-0.312933-2.4240.009191
250.177161.37230.087543
260.059230.45880.324021
27-0.158615-1.22860.112005
280.0562220.43550.332384
290.1297751.00520.159411
30-0.160172-1.24070.109776
310.0974110.75450.226738
32-0.000667-0.00520.497948
33-0.017401-0.13480.446614
34-0.013453-0.10420.458676
350.0011330.00880.496513
36-0.050397-0.39040.34882







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.484859-3.75570.000196
2-0.25881-2.00470.024755
30.4250583.29250.000834
40.1307291.01260.157653
5-0.120786-0.93560.176613
60.0917360.71060.240048
7-0.142766-1.10590.136601
8-0.041852-0.32420.373464
90.0509480.39460.347254
10-0.020449-0.15840.437338
11-0.019476-0.15090.440297
12-0.100132-0.77560.220511
13-0.09976-0.77270.221355
14-0.068825-0.53310.297962
150.1295871.00380.159759
16-0.005143-0.03980.484177
17-0.065367-0.50630.307241
18-0.078807-0.61040.271938
19-0.147082-1.13930.129555
20-0.001168-0.0090.496407
210.0623850.48320.315345
22-0.092295-0.71490.238718
230.1837211.42310.079943
24-0.055229-0.42780.335164
250.0500670.38780.349762
26-0.069642-0.53940.295787
270.0594890.46080.323304
28-0.143234-1.10950.135824
290.0131360.10180.459645
300.1628441.26140.106027
31-0.049028-0.37980.352728
32-0.117239-0.90810.183722
330.0886840.68690.247383
34-0.087399-0.6770.250508
35-0.086018-0.66630.25389
36-0.060719-0.47030.319914

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.484859 & -3.7557 & 0.000196 \tabularnewline
2 & -0.25881 & -2.0047 & 0.024755 \tabularnewline
3 & 0.425058 & 3.2925 & 0.000834 \tabularnewline
4 & 0.130729 & 1.0126 & 0.157653 \tabularnewline
5 & -0.120786 & -0.9356 & 0.176613 \tabularnewline
6 & 0.091736 & 0.7106 & 0.240048 \tabularnewline
7 & -0.142766 & -1.1059 & 0.136601 \tabularnewline
8 & -0.041852 & -0.3242 & 0.373464 \tabularnewline
9 & 0.050948 & 0.3946 & 0.347254 \tabularnewline
10 & -0.020449 & -0.1584 & 0.437338 \tabularnewline
11 & -0.019476 & -0.1509 & 0.440297 \tabularnewline
12 & -0.100132 & -0.7756 & 0.220511 \tabularnewline
13 & -0.09976 & -0.7727 & 0.221355 \tabularnewline
14 & -0.068825 & -0.5331 & 0.297962 \tabularnewline
15 & 0.129587 & 1.0038 & 0.159759 \tabularnewline
16 & -0.005143 & -0.0398 & 0.484177 \tabularnewline
17 & -0.065367 & -0.5063 & 0.307241 \tabularnewline
18 & -0.078807 & -0.6104 & 0.271938 \tabularnewline
19 & -0.147082 & -1.1393 & 0.129555 \tabularnewline
20 & -0.001168 & -0.009 & 0.496407 \tabularnewline
21 & 0.062385 & 0.4832 & 0.315345 \tabularnewline
22 & -0.092295 & -0.7149 & 0.238718 \tabularnewline
23 & 0.183721 & 1.4231 & 0.079943 \tabularnewline
24 & -0.055229 & -0.4278 & 0.335164 \tabularnewline
25 & 0.050067 & 0.3878 & 0.349762 \tabularnewline
26 & -0.069642 & -0.5394 & 0.295787 \tabularnewline
27 & 0.059489 & 0.4608 & 0.323304 \tabularnewline
28 & -0.143234 & -1.1095 & 0.135824 \tabularnewline
29 & 0.013136 & 0.1018 & 0.459645 \tabularnewline
30 & 0.162844 & 1.2614 & 0.106027 \tabularnewline
31 & -0.049028 & -0.3798 & 0.352728 \tabularnewline
32 & -0.117239 & -0.9081 & 0.183722 \tabularnewline
33 & 0.088684 & 0.6869 & 0.247383 \tabularnewline
34 & -0.087399 & -0.677 & 0.250508 \tabularnewline
35 & -0.086018 & -0.6663 & 0.25389 \tabularnewline
36 & -0.060719 & -0.4703 & 0.319914 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63237&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.484859[/C][C]-3.7557[/C][C]0.000196[/C][/ROW]
[ROW][C]2[/C][C]-0.25881[/C][C]-2.0047[/C][C]0.024755[/C][/ROW]
[ROW][C]3[/C][C]0.425058[/C][C]3.2925[/C][C]0.000834[/C][/ROW]
[ROW][C]4[/C][C]0.130729[/C][C]1.0126[/C][C]0.157653[/C][/ROW]
[ROW][C]5[/C][C]-0.120786[/C][C]-0.9356[/C][C]0.176613[/C][/ROW]
[ROW][C]6[/C][C]0.091736[/C][C]0.7106[/C][C]0.240048[/C][/ROW]
[ROW][C]7[/C][C]-0.142766[/C][C]-1.1059[/C][C]0.136601[/C][/ROW]
[ROW][C]8[/C][C]-0.041852[/C][C]-0.3242[/C][C]0.373464[/C][/ROW]
[ROW][C]9[/C][C]0.050948[/C][C]0.3946[/C][C]0.347254[/C][/ROW]
[ROW][C]10[/C][C]-0.020449[/C][C]-0.1584[/C][C]0.437338[/C][/ROW]
[ROW][C]11[/C][C]-0.019476[/C][C]-0.1509[/C][C]0.440297[/C][/ROW]
[ROW][C]12[/C][C]-0.100132[/C][C]-0.7756[/C][C]0.220511[/C][/ROW]
[ROW][C]13[/C][C]-0.09976[/C][C]-0.7727[/C][C]0.221355[/C][/ROW]
[ROW][C]14[/C][C]-0.068825[/C][C]-0.5331[/C][C]0.297962[/C][/ROW]
[ROW][C]15[/C][C]0.129587[/C][C]1.0038[/C][C]0.159759[/C][/ROW]
[ROW][C]16[/C][C]-0.005143[/C][C]-0.0398[/C][C]0.484177[/C][/ROW]
[ROW][C]17[/C][C]-0.065367[/C][C]-0.5063[/C][C]0.307241[/C][/ROW]
[ROW][C]18[/C][C]-0.078807[/C][C]-0.6104[/C][C]0.271938[/C][/ROW]
[ROW][C]19[/C][C]-0.147082[/C][C]-1.1393[/C][C]0.129555[/C][/ROW]
[ROW][C]20[/C][C]-0.001168[/C][C]-0.009[/C][C]0.496407[/C][/ROW]
[ROW][C]21[/C][C]0.062385[/C][C]0.4832[/C][C]0.315345[/C][/ROW]
[ROW][C]22[/C][C]-0.092295[/C][C]-0.7149[/C][C]0.238718[/C][/ROW]
[ROW][C]23[/C][C]0.183721[/C][C]1.4231[/C][C]0.079943[/C][/ROW]
[ROW][C]24[/C][C]-0.055229[/C][C]-0.4278[/C][C]0.335164[/C][/ROW]
[ROW][C]25[/C][C]0.050067[/C][C]0.3878[/C][C]0.349762[/C][/ROW]
[ROW][C]26[/C][C]-0.069642[/C][C]-0.5394[/C][C]0.295787[/C][/ROW]
[ROW][C]27[/C][C]0.059489[/C][C]0.4608[/C][C]0.323304[/C][/ROW]
[ROW][C]28[/C][C]-0.143234[/C][C]-1.1095[/C][C]0.135824[/C][/ROW]
[ROW][C]29[/C][C]0.013136[/C][C]0.1018[/C][C]0.459645[/C][/ROW]
[ROW][C]30[/C][C]0.162844[/C][C]1.2614[/C][C]0.106027[/C][/ROW]
[ROW][C]31[/C][C]-0.049028[/C][C]-0.3798[/C][C]0.352728[/C][/ROW]
[ROW][C]32[/C][C]-0.117239[/C][C]-0.9081[/C][C]0.183722[/C][/ROW]
[ROW][C]33[/C][C]0.088684[/C][C]0.6869[/C][C]0.247383[/C][/ROW]
[ROW][C]34[/C][C]-0.087399[/C][C]-0.677[/C][C]0.250508[/C][/ROW]
[ROW][C]35[/C][C]-0.086018[/C][C]-0.6663[/C][C]0.25389[/C][/ROW]
[ROW][C]36[/C][C]-0.060719[/C][C]-0.4703[/C][C]0.319914[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63237&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63237&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.484859-3.75570.000196
2-0.25881-2.00470.024755
30.4250583.29250.000834
40.1307291.01260.157653
5-0.120786-0.93560.176613
60.0917360.71060.240048
7-0.142766-1.10590.136601
8-0.041852-0.32420.373464
90.0509480.39460.347254
10-0.020449-0.15840.437338
11-0.019476-0.15090.440297
12-0.100132-0.77560.220511
13-0.09976-0.77270.221355
14-0.068825-0.53310.297962
150.1295871.00380.159759
16-0.005143-0.03980.484177
17-0.065367-0.50630.307241
18-0.078807-0.61040.271938
19-0.147082-1.13930.129555
20-0.001168-0.0090.496407
210.0623850.48320.315345
22-0.092295-0.71490.238718
230.1837211.42310.079943
24-0.055229-0.42780.335164
250.0500670.38780.349762
26-0.069642-0.53940.295787
270.0594890.46080.323304
28-0.143234-1.10950.135824
290.0131360.10180.459645
300.1628441.26140.106027
31-0.049028-0.37980.352728
32-0.117239-0.90810.183722
330.0886840.68690.247383
34-0.087399-0.6770.250508
35-0.086018-0.66630.25389
36-0.060719-0.47030.319914



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