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, 18 Dec 2009 03:46:57 -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/18/t1261133376yjpmosshep1mgxm.htm/, Retrieved Sat, 27 Apr 2024 10:30:28 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69217, Retrieved Sat, 27 Apr 2024 10:30:28 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsd=0 D=1 Lambda=1
Estimated Impact136
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [] [2009-11-26 10:54:06] [f57b281e621ed7dff28b90886f5aa97c]
-   PD    [(Partial) Autocorrelation Function] [ACF] [2009-12-18 10:46:57] [98a394f1ba36b7d222077a0ff8e761bd] [Current]
Feedback Forum

Post a new message
Dataseries X:
18004
17537
20366
22782
19169
13807
29743
25591
29096
26482
22405
27044
17970
18730
19684
19785
18479
10698
31956
29506
34506
27165
26736
23691
18157
17328
18205
20995
17382
9367
31124
26551
30651
25859
25100
25778
20418
18688
20424
24776
19814
12738
31566
30111
30019
31934
25826
26835
20205
17789
20520
22518
15572
11509
25447
24090
27786
26195
20516
22759
19028
16971
20036
22485
18730




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69217&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.5025633.65870.000292
20.5558154.04648.5e-05
30.3277382.3860.010319
40.2038051.48370.071903
50.0844260.61460.270714
60.0861610.62730.26659
7-0.063127-0.45960.323853
8-0.011803-0.08590.465925
9-0.197564-1.43830.078116
10-0.263943-1.92150.030025
11-0.267021-1.94390.02861
12-0.405328-2.95080.002355
13-0.365338-2.65970.005161
14-0.294346-2.14290.018367
15-0.203468-1.48130.072228
16-0.179472-1.30660.098499
17-0.076875-0.55970.289036
18-0.093685-0.6820.249093
19-0.015071-0.10970.456523
20-0.041595-0.30280.381608
210.1057950.77020.222301
22-0.012164-0.08860.464886
230.2101051.52960.066033
240.0930490.67740.250547
250.2215741.61310.056333
260.1920631.39820.083933
270.151741.10470.137143
280.0566910.41270.34074
290.0778750.56690.286573
30-0.070017-0.50970.306179
31-0.02024-0.14740.441707
32-0.093197-0.67850.250208
33-0.127599-0.92890.178568
34-0.084383-0.61430.270817
35-0.15083-1.09810.138571
36-0.14201-1.03390.15295

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.502563 & 3.6587 & 0.000292 \tabularnewline
2 & 0.555815 & 4.0464 & 8.5e-05 \tabularnewline
3 & 0.327738 & 2.386 & 0.010319 \tabularnewline
4 & 0.203805 & 1.4837 & 0.071903 \tabularnewline
5 & 0.084426 & 0.6146 & 0.270714 \tabularnewline
6 & 0.086161 & 0.6273 & 0.26659 \tabularnewline
7 & -0.063127 & -0.4596 & 0.323853 \tabularnewline
8 & -0.011803 & -0.0859 & 0.465925 \tabularnewline
9 & -0.197564 & -1.4383 & 0.078116 \tabularnewline
10 & -0.263943 & -1.9215 & 0.030025 \tabularnewline
11 & -0.267021 & -1.9439 & 0.02861 \tabularnewline
12 & -0.405328 & -2.9508 & 0.002355 \tabularnewline
13 & -0.365338 & -2.6597 & 0.005161 \tabularnewline
14 & -0.294346 & -2.1429 & 0.018367 \tabularnewline
15 & -0.203468 & -1.4813 & 0.072228 \tabularnewline
16 & -0.179472 & -1.3066 & 0.098499 \tabularnewline
17 & -0.076875 & -0.5597 & 0.289036 \tabularnewline
18 & -0.093685 & -0.682 & 0.249093 \tabularnewline
19 & -0.015071 & -0.1097 & 0.456523 \tabularnewline
20 & -0.041595 & -0.3028 & 0.381608 \tabularnewline
21 & 0.105795 & 0.7702 & 0.222301 \tabularnewline
22 & -0.012164 & -0.0886 & 0.464886 \tabularnewline
23 & 0.210105 & 1.5296 & 0.066033 \tabularnewline
24 & 0.093049 & 0.6774 & 0.250547 \tabularnewline
25 & 0.221574 & 1.6131 & 0.056333 \tabularnewline
26 & 0.192063 & 1.3982 & 0.083933 \tabularnewline
27 & 0.15174 & 1.1047 & 0.137143 \tabularnewline
28 & 0.056691 & 0.4127 & 0.34074 \tabularnewline
29 & 0.077875 & 0.5669 & 0.286573 \tabularnewline
30 & -0.070017 & -0.5097 & 0.306179 \tabularnewline
31 & -0.02024 & -0.1474 & 0.441707 \tabularnewline
32 & -0.093197 & -0.6785 & 0.250208 \tabularnewline
33 & -0.127599 & -0.9289 & 0.178568 \tabularnewline
34 & -0.084383 & -0.6143 & 0.270817 \tabularnewline
35 & -0.15083 & -1.0981 & 0.138571 \tabularnewline
36 & -0.14201 & -1.0339 & 0.15295 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69217&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.502563[/C][C]3.6587[/C][C]0.000292[/C][/ROW]
[ROW][C]2[/C][C]0.555815[/C][C]4.0464[/C][C]8.5e-05[/C][/ROW]
[ROW][C]3[/C][C]0.327738[/C][C]2.386[/C][C]0.010319[/C][/ROW]
[ROW][C]4[/C][C]0.203805[/C][C]1.4837[/C][C]0.071903[/C][/ROW]
[ROW][C]5[/C][C]0.084426[/C][C]0.6146[/C][C]0.270714[/C][/ROW]
[ROW][C]6[/C][C]0.086161[/C][C]0.6273[/C][C]0.26659[/C][/ROW]
[ROW][C]7[/C][C]-0.063127[/C][C]-0.4596[/C][C]0.323853[/C][/ROW]
[ROW][C]8[/C][C]-0.011803[/C][C]-0.0859[/C][C]0.465925[/C][/ROW]
[ROW][C]9[/C][C]-0.197564[/C][C]-1.4383[/C][C]0.078116[/C][/ROW]
[ROW][C]10[/C][C]-0.263943[/C][C]-1.9215[/C][C]0.030025[/C][/ROW]
[ROW][C]11[/C][C]-0.267021[/C][C]-1.9439[/C][C]0.02861[/C][/ROW]
[ROW][C]12[/C][C]-0.405328[/C][C]-2.9508[/C][C]0.002355[/C][/ROW]
[ROW][C]13[/C][C]-0.365338[/C][C]-2.6597[/C][C]0.005161[/C][/ROW]
[ROW][C]14[/C][C]-0.294346[/C][C]-2.1429[/C][C]0.018367[/C][/ROW]
[ROW][C]15[/C][C]-0.203468[/C][C]-1.4813[/C][C]0.072228[/C][/ROW]
[ROW][C]16[/C][C]-0.179472[/C][C]-1.3066[/C][C]0.098499[/C][/ROW]
[ROW][C]17[/C][C]-0.076875[/C][C]-0.5597[/C][C]0.289036[/C][/ROW]
[ROW][C]18[/C][C]-0.093685[/C][C]-0.682[/C][C]0.249093[/C][/ROW]
[ROW][C]19[/C][C]-0.015071[/C][C]-0.1097[/C][C]0.456523[/C][/ROW]
[ROW][C]20[/C][C]-0.041595[/C][C]-0.3028[/C][C]0.381608[/C][/ROW]
[ROW][C]21[/C][C]0.105795[/C][C]0.7702[/C][C]0.222301[/C][/ROW]
[ROW][C]22[/C][C]-0.012164[/C][C]-0.0886[/C][C]0.464886[/C][/ROW]
[ROW][C]23[/C][C]0.210105[/C][C]1.5296[/C][C]0.066033[/C][/ROW]
[ROW][C]24[/C][C]0.093049[/C][C]0.6774[/C][C]0.250547[/C][/ROW]
[ROW][C]25[/C][C]0.221574[/C][C]1.6131[/C][C]0.056333[/C][/ROW]
[ROW][C]26[/C][C]0.192063[/C][C]1.3982[/C][C]0.083933[/C][/ROW]
[ROW][C]27[/C][C]0.15174[/C][C]1.1047[/C][C]0.137143[/C][/ROW]
[ROW][C]28[/C][C]0.056691[/C][C]0.4127[/C][C]0.34074[/C][/ROW]
[ROW][C]29[/C][C]0.077875[/C][C]0.5669[/C][C]0.286573[/C][/ROW]
[ROW][C]30[/C][C]-0.070017[/C][C]-0.5097[/C][C]0.306179[/C][/ROW]
[ROW][C]31[/C][C]-0.02024[/C][C]-0.1474[/C][C]0.441707[/C][/ROW]
[ROW][C]32[/C][C]-0.093197[/C][C]-0.6785[/C][C]0.250208[/C][/ROW]
[ROW][C]33[/C][C]-0.127599[/C][C]-0.9289[/C][C]0.178568[/C][/ROW]
[ROW][C]34[/C][C]-0.084383[/C][C]-0.6143[/C][C]0.270817[/C][/ROW]
[ROW][C]35[/C][C]-0.15083[/C][C]-1.0981[/C][C]0.138571[/C][/ROW]
[ROW][C]36[/C][C]-0.14201[/C][C]-1.0339[/C][C]0.15295[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69217&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69217&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.5025633.65870.000292
20.5558154.04648.5e-05
30.3277382.3860.010319
40.2038051.48370.071903
50.0844260.61460.270714
60.0861610.62730.26659
7-0.063127-0.45960.323853
8-0.011803-0.08590.465925
9-0.197564-1.43830.078116
10-0.263943-1.92150.030025
11-0.267021-1.94390.02861
12-0.405328-2.95080.002355
13-0.365338-2.65970.005161
14-0.294346-2.14290.018367
15-0.203468-1.48130.072228
16-0.179472-1.30660.098499
17-0.076875-0.55970.289036
18-0.093685-0.6820.249093
19-0.015071-0.10970.456523
20-0.041595-0.30280.381608
210.1057950.77020.222301
22-0.012164-0.08860.464886
230.2101051.52960.066033
240.0930490.67740.250547
250.2215741.61310.056333
260.1920631.39820.083933
270.151741.10470.137143
280.0566910.41270.34074
290.0778750.56690.286573
30-0.070017-0.50970.306179
31-0.02024-0.14740.441707
32-0.093197-0.67850.250208
33-0.127599-0.92890.178568
34-0.084383-0.61430.270817
35-0.15083-1.09810.138571
36-0.14201-1.03390.15295







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5025633.65870.000292
20.4057182.95370.002337
3-0.067525-0.49160.312519
4-0.170276-1.23960.110287
5-0.084141-0.61260.271394
60.1198990.87290.193335
7-0.110873-0.80720.211588
8-0.005811-0.04230.483207
9-0.206545-1.50370.069301
10-0.224916-1.63740.053734
110.048540.35340.362603
12-0.165233-1.20290.117177
13-0.086615-0.63060.265516
140.0794290.57830.282771
150.1691861.23170.111751
16-0.100731-0.73330.233294
17-0.050245-0.36580.357989
180.0040460.02950.488306
19-0.007915-0.05760.477134
20-0.034863-0.25380.400313
210.1388281.01070.158379
22-0.276595-2.01360.024569
230.1651251.20210.117329
240.0323950.23580.407233
25-0.002238-0.01630.493532
260.0500130.36410.358615
27-0.055732-0.40570.343285
28-0.128836-0.93790.176264
29-0.024944-0.18160.428295
300.0058540.04260.483084
31-0.074366-0.54140.295253
32-0.088341-0.64310.261456
330.0531570.3870.350157
34-0.019961-0.14530.442504
35-0.026268-0.19120.424536
360.0310370.2260.411053

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.502563 & 3.6587 & 0.000292 \tabularnewline
2 & 0.405718 & 2.9537 & 0.002337 \tabularnewline
3 & -0.067525 & -0.4916 & 0.312519 \tabularnewline
4 & -0.170276 & -1.2396 & 0.110287 \tabularnewline
5 & -0.084141 & -0.6126 & 0.271394 \tabularnewline
6 & 0.119899 & 0.8729 & 0.193335 \tabularnewline
7 & -0.110873 & -0.8072 & 0.211588 \tabularnewline
8 & -0.005811 & -0.0423 & 0.483207 \tabularnewline
9 & -0.206545 & -1.5037 & 0.069301 \tabularnewline
10 & -0.224916 & -1.6374 & 0.053734 \tabularnewline
11 & 0.04854 & 0.3534 & 0.362603 \tabularnewline
12 & -0.165233 & -1.2029 & 0.117177 \tabularnewline
13 & -0.086615 & -0.6306 & 0.265516 \tabularnewline
14 & 0.079429 & 0.5783 & 0.282771 \tabularnewline
15 & 0.169186 & 1.2317 & 0.111751 \tabularnewline
16 & -0.100731 & -0.7333 & 0.233294 \tabularnewline
17 & -0.050245 & -0.3658 & 0.357989 \tabularnewline
18 & 0.004046 & 0.0295 & 0.488306 \tabularnewline
19 & -0.007915 & -0.0576 & 0.477134 \tabularnewline
20 & -0.034863 & -0.2538 & 0.400313 \tabularnewline
21 & 0.138828 & 1.0107 & 0.158379 \tabularnewline
22 & -0.276595 & -2.0136 & 0.024569 \tabularnewline
23 & 0.165125 & 1.2021 & 0.117329 \tabularnewline
24 & 0.032395 & 0.2358 & 0.407233 \tabularnewline
25 & -0.002238 & -0.0163 & 0.493532 \tabularnewline
26 & 0.050013 & 0.3641 & 0.358615 \tabularnewline
27 & -0.055732 & -0.4057 & 0.343285 \tabularnewline
28 & -0.128836 & -0.9379 & 0.176264 \tabularnewline
29 & -0.024944 & -0.1816 & 0.428295 \tabularnewline
30 & 0.005854 & 0.0426 & 0.483084 \tabularnewline
31 & -0.074366 & -0.5414 & 0.295253 \tabularnewline
32 & -0.088341 & -0.6431 & 0.261456 \tabularnewline
33 & 0.053157 & 0.387 & 0.350157 \tabularnewline
34 & -0.019961 & -0.1453 & 0.442504 \tabularnewline
35 & -0.026268 & -0.1912 & 0.424536 \tabularnewline
36 & 0.031037 & 0.226 & 0.411053 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69217&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.502563[/C][C]3.6587[/C][C]0.000292[/C][/ROW]
[ROW][C]2[/C][C]0.405718[/C][C]2.9537[/C][C]0.002337[/C][/ROW]
[ROW][C]3[/C][C]-0.067525[/C][C]-0.4916[/C][C]0.312519[/C][/ROW]
[ROW][C]4[/C][C]-0.170276[/C][C]-1.2396[/C][C]0.110287[/C][/ROW]
[ROW][C]5[/C][C]-0.084141[/C][C]-0.6126[/C][C]0.271394[/C][/ROW]
[ROW][C]6[/C][C]0.119899[/C][C]0.8729[/C][C]0.193335[/C][/ROW]
[ROW][C]7[/C][C]-0.110873[/C][C]-0.8072[/C][C]0.211588[/C][/ROW]
[ROW][C]8[/C][C]-0.005811[/C][C]-0.0423[/C][C]0.483207[/C][/ROW]
[ROW][C]9[/C][C]-0.206545[/C][C]-1.5037[/C][C]0.069301[/C][/ROW]
[ROW][C]10[/C][C]-0.224916[/C][C]-1.6374[/C][C]0.053734[/C][/ROW]
[ROW][C]11[/C][C]0.04854[/C][C]0.3534[/C][C]0.362603[/C][/ROW]
[ROW][C]12[/C][C]-0.165233[/C][C]-1.2029[/C][C]0.117177[/C][/ROW]
[ROW][C]13[/C][C]-0.086615[/C][C]-0.6306[/C][C]0.265516[/C][/ROW]
[ROW][C]14[/C][C]0.079429[/C][C]0.5783[/C][C]0.282771[/C][/ROW]
[ROW][C]15[/C][C]0.169186[/C][C]1.2317[/C][C]0.111751[/C][/ROW]
[ROW][C]16[/C][C]-0.100731[/C][C]-0.7333[/C][C]0.233294[/C][/ROW]
[ROW][C]17[/C][C]-0.050245[/C][C]-0.3658[/C][C]0.357989[/C][/ROW]
[ROW][C]18[/C][C]0.004046[/C][C]0.0295[/C][C]0.488306[/C][/ROW]
[ROW][C]19[/C][C]-0.007915[/C][C]-0.0576[/C][C]0.477134[/C][/ROW]
[ROW][C]20[/C][C]-0.034863[/C][C]-0.2538[/C][C]0.400313[/C][/ROW]
[ROW][C]21[/C][C]0.138828[/C][C]1.0107[/C][C]0.158379[/C][/ROW]
[ROW][C]22[/C][C]-0.276595[/C][C]-2.0136[/C][C]0.024569[/C][/ROW]
[ROW][C]23[/C][C]0.165125[/C][C]1.2021[/C][C]0.117329[/C][/ROW]
[ROW][C]24[/C][C]0.032395[/C][C]0.2358[/C][C]0.407233[/C][/ROW]
[ROW][C]25[/C][C]-0.002238[/C][C]-0.0163[/C][C]0.493532[/C][/ROW]
[ROW][C]26[/C][C]0.050013[/C][C]0.3641[/C][C]0.358615[/C][/ROW]
[ROW][C]27[/C][C]-0.055732[/C][C]-0.4057[/C][C]0.343285[/C][/ROW]
[ROW][C]28[/C][C]-0.128836[/C][C]-0.9379[/C][C]0.176264[/C][/ROW]
[ROW][C]29[/C][C]-0.024944[/C][C]-0.1816[/C][C]0.428295[/C][/ROW]
[ROW][C]30[/C][C]0.005854[/C][C]0.0426[/C][C]0.483084[/C][/ROW]
[ROW][C]31[/C][C]-0.074366[/C][C]-0.5414[/C][C]0.295253[/C][/ROW]
[ROW][C]32[/C][C]-0.088341[/C][C]-0.6431[/C][C]0.261456[/C][/ROW]
[ROW][C]33[/C][C]0.053157[/C][C]0.387[/C][C]0.350157[/C][/ROW]
[ROW][C]34[/C][C]-0.019961[/C][C]-0.1453[/C][C]0.442504[/C][/ROW]
[ROW][C]35[/C][C]-0.026268[/C][C]-0.1912[/C][C]0.424536[/C][/ROW]
[ROW][C]36[/C][C]0.031037[/C][C]0.226[/C][C]0.411053[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69217&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69217&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.5025633.65870.000292
20.4057182.95370.002337
3-0.067525-0.49160.312519
4-0.170276-1.23960.110287
5-0.084141-0.61260.271394
60.1198990.87290.193335
7-0.110873-0.80720.211588
8-0.005811-0.04230.483207
9-0.206545-1.50370.069301
10-0.224916-1.63740.053734
110.048540.35340.362603
12-0.165233-1.20290.117177
13-0.086615-0.63060.265516
140.0794290.57830.282771
150.1691861.23170.111751
16-0.100731-0.73330.233294
17-0.050245-0.36580.357989
180.0040460.02950.488306
19-0.007915-0.05760.477134
20-0.034863-0.25380.400313
210.1388281.01070.158379
22-0.276595-2.01360.024569
230.1651251.20210.117329
240.0323950.23580.407233
25-0.002238-0.01630.493532
260.0500130.36410.358615
27-0.055732-0.40570.343285
28-0.128836-0.93790.176264
29-0.024944-0.18160.428295
300.0058540.04260.483084
31-0.074366-0.54140.295253
32-0.088341-0.64310.261456
330.0531570.3870.350157
34-0.019961-0.14530.442504
35-0.026268-0.19120.424536
360.0310370.2260.411053



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