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 00:06:00 -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/t1259910383gy3wckvbrfb4iuh.htm/, Retrieved Sat, 27 Apr 2024 14:50:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63170, Retrieved Sat, 27 Apr 2024 14:50:39 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact140
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] [ARIMA-model 5] [2009-12-04 07:06:00] [befe6dd6a614b6d3a2a74a47a0a4f514] [Current]
Feedback Forum

Post a new message
Dataseries X:
562325
560854
555332
543599
536662
542722
593530
610763
612613
611324
594167
595454
590865
589379
584428
573100
567456
569028
620735
628884
628232
612117
595404
597141
593408
590072
579799
574205
572775
572942
619567
625809
619916
587625
565742
557274
560576
548854
531673
525919
511038
498662
555362
564591
541657
527070
509846
514258
516922
507561
492622
490243
469357
477580
528379
533590
517945
506174
501866
516141




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63170&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.010074-0.06910.472615
20.1235780.84720.200586
30.1960631.34410.092678
40.1007690.69080.246532
50.01250.08570.466038
60.1264340.86680.195232
7-0.019295-0.13230.447665
80.1128440.77360.221516
9-0.059389-0.40720.342872
10-0.07749-0.53120.298875
110.2920562.00220.025524
12-0.105036-0.72010.237517
13-0.069548-0.47680.317858
140.0951560.65240.258674
15-0.094918-0.65070.259196
16-0.059983-0.41120.341388
17-0.007779-0.05330.478849
18-0.106831-0.73240.233782
19-0.014859-0.10190.459647
20-0.026945-0.18470.427121
21-0.09381-0.64310.261633
220.0135890.09320.463085
23-0.009848-0.06750.473229
24-0.151379-1.03780.152336
25-0.079021-0.54170.295278
26-0.169717-1.16350.125245
27-0.065085-0.44620.328751
28-0.098249-0.67360.251944
290.0131880.09040.464173
30-0.024425-0.16740.433868
310.0680150.46630.321582
32-0.097396-0.66770.25379
330.0135260.09270.463257
34-0.035779-0.24530.403651
350.0121150.08310.46708
36-0.032739-0.22440.41169

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.010074 & -0.0691 & 0.472615 \tabularnewline
2 & 0.123578 & 0.8472 & 0.200586 \tabularnewline
3 & 0.196063 & 1.3441 & 0.092678 \tabularnewline
4 & 0.100769 & 0.6908 & 0.246532 \tabularnewline
5 & 0.0125 & 0.0857 & 0.466038 \tabularnewline
6 & 0.126434 & 0.8668 & 0.195232 \tabularnewline
7 & -0.019295 & -0.1323 & 0.447665 \tabularnewline
8 & 0.112844 & 0.7736 & 0.221516 \tabularnewline
9 & -0.059389 & -0.4072 & 0.342872 \tabularnewline
10 & -0.07749 & -0.5312 & 0.298875 \tabularnewline
11 & 0.292056 & 2.0022 & 0.025524 \tabularnewline
12 & -0.105036 & -0.7201 & 0.237517 \tabularnewline
13 & -0.069548 & -0.4768 & 0.317858 \tabularnewline
14 & 0.095156 & 0.6524 & 0.258674 \tabularnewline
15 & -0.094918 & -0.6507 & 0.259196 \tabularnewline
16 & -0.059983 & -0.4112 & 0.341388 \tabularnewline
17 & -0.007779 & -0.0533 & 0.478849 \tabularnewline
18 & -0.106831 & -0.7324 & 0.233782 \tabularnewline
19 & -0.014859 & -0.1019 & 0.459647 \tabularnewline
20 & -0.026945 & -0.1847 & 0.427121 \tabularnewline
21 & -0.09381 & -0.6431 & 0.261633 \tabularnewline
22 & 0.013589 & 0.0932 & 0.463085 \tabularnewline
23 & -0.009848 & -0.0675 & 0.473229 \tabularnewline
24 & -0.151379 & -1.0378 & 0.152336 \tabularnewline
25 & -0.079021 & -0.5417 & 0.295278 \tabularnewline
26 & -0.169717 & -1.1635 & 0.125245 \tabularnewline
27 & -0.065085 & -0.4462 & 0.328751 \tabularnewline
28 & -0.098249 & -0.6736 & 0.251944 \tabularnewline
29 & 0.013188 & 0.0904 & 0.464173 \tabularnewline
30 & -0.024425 & -0.1674 & 0.433868 \tabularnewline
31 & 0.068015 & 0.4663 & 0.321582 \tabularnewline
32 & -0.097396 & -0.6677 & 0.25379 \tabularnewline
33 & 0.013526 & 0.0927 & 0.463257 \tabularnewline
34 & -0.035779 & -0.2453 & 0.403651 \tabularnewline
35 & 0.012115 & 0.0831 & 0.46708 \tabularnewline
36 & -0.032739 & -0.2244 & 0.41169 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63170&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.010074[/C][C]-0.0691[/C][C]0.472615[/C][/ROW]
[ROW][C]2[/C][C]0.123578[/C][C]0.8472[/C][C]0.200586[/C][/ROW]
[ROW][C]3[/C][C]0.196063[/C][C]1.3441[/C][C]0.092678[/C][/ROW]
[ROW][C]4[/C][C]0.100769[/C][C]0.6908[/C][C]0.246532[/C][/ROW]
[ROW][C]5[/C][C]0.0125[/C][C]0.0857[/C][C]0.466038[/C][/ROW]
[ROW][C]6[/C][C]0.126434[/C][C]0.8668[/C][C]0.195232[/C][/ROW]
[ROW][C]7[/C][C]-0.019295[/C][C]-0.1323[/C][C]0.447665[/C][/ROW]
[ROW][C]8[/C][C]0.112844[/C][C]0.7736[/C][C]0.221516[/C][/ROW]
[ROW][C]9[/C][C]-0.059389[/C][C]-0.4072[/C][C]0.342872[/C][/ROW]
[ROW][C]10[/C][C]-0.07749[/C][C]-0.5312[/C][C]0.298875[/C][/ROW]
[ROW][C]11[/C][C]0.292056[/C][C]2.0022[/C][C]0.025524[/C][/ROW]
[ROW][C]12[/C][C]-0.105036[/C][C]-0.7201[/C][C]0.237517[/C][/ROW]
[ROW][C]13[/C][C]-0.069548[/C][C]-0.4768[/C][C]0.317858[/C][/ROW]
[ROW][C]14[/C][C]0.095156[/C][C]0.6524[/C][C]0.258674[/C][/ROW]
[ROW][C]15[/C][C]-0.094918[/C][C]-0.6507[/C][C]0.259196[/C][/ROW]
[ROW][C]16[/C][C]-0.059983[/C][C]-0.4112[/C][C]0.341388[/C][/ROW]
[ROW][C]17[/C][C]-0.007779[/C][C]-0.0533[/C][C]0.478849[/C][/ROW]
[ROW][C]18[/C][C]-0.106831[/C][C]-0.7324[/C][C]0.233782[/C][/ROW]
[ROW][C]19[/C][C]-0.014859[/C][C]-0.1019[/C][C]0.459647[/C][/ROW]
[ROW][C]20[/C][C]-0.026945[/C][C]-0.1847[/C][C]0.427121[/C][/ROW]
[ROW][C]21[/C][C]-0.09381[/C][C]-0.6431[/C][C]0.261633[/C][/ROW]
[ROW][C]22[/C][C]0.013589[/C][C]0.0932[/C][C]0.463085[/C][/ROW]
[ROW][C]23[/C][C]-0.009848[/C][C]-0.0675[/C][C]0.473229[/C][/ROW]
[ROW][C]24[/C][C]-0.151379[/C][C]-1.0378[/C][C]0.152336[/C][/ROW]
[ROW][C]25[/C][C]-0.079021[/C][C]-0.5417[/C][C]0.295278[/C][/ROW]
[ROW][C]26[/C][C]-0.169717[/C][C]-1.1635[/C][C]0.125245[/C][/ROW]
[ROW][C]27[/C][C]-0.065085[/C][C]-0.4462[/C][C]0.328751[/C][/ROW]
[ROW][C]28[/C][C]-0.098249[/C][C]-0.6736[/C][C]0.251944[/C][/ROW]
[ROW][C]29[/C][C]0.013188[/C][C]0.0904[/C][C]0.464173[/C][/ROW]
[ROW][C]30[/C][C]-0.024425[/C][C]-0.1674[/C][C]0.433868[/C][/ROW]
[ROW][C]31[/C][C]0.068015[/C][C]0.4663[/C][C]0.321582[/C][/ROW]
[ROW][C]32[/C][C]-0.097396[/C][C]-0.6677[/C][C]0.25379[/C][/ROW]
[ROW][C]33[/C][C]0.013526[/C][C]0.0927[/C][C]0.463257[/C][/ROW]
[ROW][C]34[/C][C]-0.035779[/C][C]-0.2453[/C][C]0.403651[/C][/ROW]
[ROW][C]35[/C][C]0.012115[/C][C]0.0831[/C][C]0.46708[/C][/ROW]
[ROW][C]36[/C][C]-0.032739[/C][C]-0.2244[/C][C]0.41169[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63170&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63170&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.010074-0.06910.472615
20.1235780.84720.200586
30.1960631.34410.092678
40.1007690.69080.246532
50.01250.08570.466038
60.1264340.86680.195232
7-0.019295-0.13230.447665
80.1128440.77360.221516
9-0.059389-0.40720.342872
10-0.07749-0.53120.298875
110.2920562.00220.025524
12-0.105036-0.72010.237517
13-0.069548-0.47680.317858
140.0951560.65240.258674
15-0.094918-0.65070.259196
16-0.059983-0.41120.341388
17-0.007779-0.05330.478849
18-0.106831-0.73240.233782
19-0.014859-0.10190.459647
20-0.026945-0.18470.427121
21-0.09381-0.64310.261633
220.0135890.09320.463085
23-0.009848-0.06750.473229
24-0.151379-1.03780.152336
25-0.079021-0.54170.295278
26-0.169717-1.16350.125245
27-0.065085-0.44620.328751
28-0.098249-0.67360.251944
290.0131880.09040.464173
30-0.024425-0.16740.433868
310.0680150.46630.321582
32-0.097396-0.66770.25379
330.0135260.09270.463257
34-0.035779-0.24530.403651
350.0121150.08310.46708
36-0.032739-0.22440.41169







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.010074-0.06910.472615
20.1234890.84660.200755
30.2014911.38140.086851
40.099430.68170.249401
5-0.030487-0.2090.417673
60.0661790.45370.326067
7-0.051327-0.35190.36325
80.0874590.59960.275829
9-0.086046-0.58990.27904
10-0.118808-0.81450.209731
110.2999922.05660.022648
12-0.083722-0.5740.284363
13-0.099264-0.68050.249758
140.0154430.10590.458067
15-0.098461-0.6750.251487
16-0.006547-0.04490.482194
17-0.054217-0.37170.355895
18-0.050569-0.34670.365188
19-0.018808-0.12890.448977
200.0517620.35490.362139
210.0077910.05340.478815
22-0.11176-0.76620.223698
230.0872820.59840.276232
24-0.104262-0.71480.239139
25-0.169447-1.16170.125618
26-0.108419-0.74330.230506
27-0.008069-0.05530.478059
28-0.019633-0.13460.446753
290.1529481.04860.149871
300.0560460.38420.35127
310.0608420.41710.339248
32-0.048145-0.33010.371409
33-0.048701-0.33390.369978
34-0.148862-1.02050.156346
350.039720.27230.39329
360.0515090.35310.362787

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.010074 & -0.0691 & 0.472615 \tabularnewline
2 & 0.123489 & 0.8466 & 0.200755 \tabularnewline
3 & 0.201491 & 1.3814 & 0.086851 \tabularnewline
4 & 0.09943 & 0.6817 & 0.249401 \tabularnewline
5 & -0.030487 & -0.209 & 0.417673 \tabularnewline
6 & 0.066179 & 0.4537 & 0.326067 \tabularnewline
7 & -0.051327 & -0.3519 & 0.36325 \tabularnewline
8 & 0.087459 & 0.5996 & 0.275829 \tabularnewline
9 & -0.086046 & -0.5899 & 0.27904 \tabularnewline
10 & -0.118808 & -0.8145 & 0.209731 \tabularnewline
11 & 0.299992 & 2.0566 & 0.022648 \tabularnewline
12 & -0.083722 & -0.574 & 0.284363 \tabularnewline
13 & -0.099264 & -0.6805 & 0.249758 \tabularnewline
14 & 0.015443 & 0.1059 & 0.458067 \tabularnewline
15 & -0.098461 & -0.675 & 0.251487 \tabularnewline
16 & -0.006547 & -0.0449 & 0.482194 \tabularnewline
17 & -0.054217 & -0.3717 & 0.355895 \tabularnewline
18 & -0.050569 & -0.3467 & 0.365188 \tabularnewline
19 & -0.018808 & -0.1289 & 0.448977 \tabularnewline
20 & 0.051762 & 0.3549 & 0.362139 \tabularnewline
21 & 0.007791 & 0.0534 & 0.478815 \tabularnewline
22 & -0.11176 & -0.7662 & 0.223698 \tabularnewline
23 & 0.087282 & 0.5984 & 0.276232 \tabularnewline
24 & -0.104262 & -0.7148 & 0.239139 \tabularnewline
25 & -0.169447 & -1.1617 & 0.125618 \tabularnewline
26 & -0.108419 & -0.7433 & 0.230506 \tabularnewline
27 & -0.008069 & -0.0553 & 0.478059 \tabularnewline
28 & -0.019633 & -0.1346 & 0.446753 \tabularnewline
29 & 0.152948 & 1.0486 & 0.149871 \tabularnewline
30 & 0.056046 & 0.3842 & 0.35127 \tabularnewline
31 & 0.060842 & 0.4171 & 0.339248 \tabularnewline
32 & -0.048145 & -0.3301 & 0.371409 \tabularnewline
33 & -0.048701 & -0.3339 & 0.369978 \tabularnewline
34 & -0.148862 & -1.0205 & 0.156346 \tabularnewline
35 & 0.03972 & 0.2723 & 0.39329 \tabularnewline
36 & 0.051509 & 0.3531 & 0.362787 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63170&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.010074[/C][C]-0.0691[/C][C]0.472615[/C][/ROW]
[ROW][C]2[/C][C]0.123489[/C][C]0.8466[/C][C]0.200755[/C][/ROW]
[ROW][C]3[/C][C]0.201491[/C][C]1.3814[/C][C]0.086851[/C][/ROW]
[ROW][C]4[/C][C]0.09943[/C][C]0.6817[/C][C]0.249401[/C][/ROW]
[ROW][C]5[/C][C]-0.030487[/C][C]-0.209[/C][C]0.417673[/C][/ROW]
[ROW][C]6[/C][C]0.066179[/C][C]0.4537[/C][C]0.326067[/C][/ROW]
[ROW][C]7[/C][C]-0.051327[/C][C]-0.3519[/C][C]0.36325[/C][/ROW]
[ROW][C]8[/C][C]0.087459[/C][C]0.5996[/C][C]0.275829[/C][/ROW]
[ROW][C]9[/C][C]-0.086046[/C][C]-0.5899[/C][C]0.27904[/C][/ROW]
[ROW][C]10[/C][C]-0.118808[/C][C]-0.8145[/C][C]0.209731[/C][/ROW]
[ROW][C]11[/C][C]0.299992[/C][C]2.0566[/C][C]0.022648[/C][/ROW]
[ROW][C]12[/C][C]-0.083722[/C][C]-0.574[/C][C]0.284363[/C][/ROW]
[ROW][C]13[/C][C]-0.099264[/C][C]-0.6805[/C][C]0.249758[/C][/ROW]
[ROW][C]14[/C][C]0.015443[/C][C]0.1059[/C][C]0.458067[/C][/ROW]
[ROW][C]15[/C][C]-0.098461[/C][C]-0.675[/C][C]0.251487[/C][/ROW]
[ROW][C]16[/C][C]-0.006547[/C][C]-0.0449[/C][C]0.482194[/C][/ROW]
[ROW][C]17[/C][C]-0.054217[/C][C]-0.3717[/C][C]0.355895[/C][/ROW]
[ROW][C]18[/C][C]-0.050569[/C][C]-0.3467[/C][C]0.365188[/C][/ROW]
[ROW][C]19[/C][C]-0.018808[/C][C]-0.1289[/C][C]0.448977[/C][/ROW]
[ROW][C]20[/C][C]0.051762[/C][C]0.3549[/C][C]0.362139[/C][/ROW]
[ROW][C]21[/C][C]0.007791[/C][C]0.0534[/C][C]0.478815[/C][/ROW]
[ROW][C]22[/C][C]-0.11176[/C][C]-0.7662[/C][C]0.223698[/C][/ROW]
[ROW][C]23[/C][C]0.087282[/C][C]0.5984[/C][C]0.276232[/C][/ROW]
[ROW][C]24[/C][C]-0.104262[/C][C]-0.7148[/C][C]0.239139[/C][/ROW]
[ROW][C]25[/C][C]-0.169447[/C][C]-1.1617[/C][C]0.125618[/C][/ROW]
[ROW][C]26[/C][C]-0.108419[/C][C]-0.7433[/C][C]0.230506[/C][/ROW]
[ROW][C]27[/C][C]-0.008069[/C][C]-0.0553[/C][C]0.478059[/C][/ROW]
[ROW][C]28[/C][C]-0.019633[/C][C]-0.1346[/C][C]0.446753[/C][/ROW]
[ROW][C]29[/C][C]0.152948[/C][C]1.0486[/C][C]0.149871[/C][/ROW]
[ROW][C]30[/C][C]0.056046[/C][C]0.3842[/C][C]0.35127[/C][/ROW]
[ROW][C]31[/C][C]0.060842[/C][C]0.4171[/C][C]0.339248[/C][/ROW]
[ROW][C]32[/C][C]-0.048145[/C][C]-0.3301[/C][C]0.371409[/C][/ROW]
[ROW][C]33[/C][C]-0.048701[/C][C]-0.3339[/C][C]0.369978[/C][/ROW]
[ROW][C]34[/C][C]-0.148862[/C][C]-1.0205[/C][C]0.156346[/C][/ROW]
[ROW][C]35[/C][C]0.03972[/C][C]0.2723[/C][C]0.39329[/C][/ROW]
[ROW][C]36[/C][C]0.051509[/C][C]0.3531[/C][C]0.362787[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63170&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63170&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.010074-0.06910.472615
20.1234890.84660.200755
30.2014911.38140.086851
40.099430.68170.249401
5-0.030487-0.2090.417673
60.0661790.45370.326067
7-0.051327-0.35190.36325
80.0874590.59960.275829
9-0.086046-0.58990.27904
10-0.118808-0.81450.209731
110.2999922.05660.022648
12-0.083722-0.5740.284363
13-0.099264-0.68050.249758
140.0154430.10590.458067
15-0.098461-0.6750.251487
16-0.006547-0.04490.482194
17-0.054217-0.37170.355895
18-0.050569-0.34670.365188
19-0.018808-0.12890.448977
200.0517620.35490.362139
210.0077910.05340.478815
22-0.11176-0.76620.223698
230.0872820.59840.276232
24-0.104262-0.71480.239139
25-0.169447-1.16170.125618
26-0.108419-0.74330.230506
27-0.008069-0.05530.478059
28-0.019633-0.13460.446753
290.1529481.04860.149871
300.0560460.38420.35127
310.0608420.41710.339248
32-0.048145-0.33010.371409
33-0.048701-0.33390.369978
34-0.148862-1.02050.156346
350.039720.27230.39329
360.0515090.35310.362787



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