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 computationWed, 16 Dec 2009 10:25:56 -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/16/t1260984426uz4y5oo94t17gl2.htm/, Retrieved Tue, 30 Apr 2024 19:27:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68496, Retrieved Tue, 30 Apr 2024 19:27:39 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact105
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:47:30] [b98453cac15ba1066b407e146608df68]
-    D    [(Partial) Autocorrelation Function] [] [2009-12-04 15:39:29] [897115520fe7b6114489bc0eeed64548]
-    D        [(Partial) Autocorrelation Function] [] [2009-12-16 17:25:56] [8cd69d0f4298074aa572ca2f9b39b6ae] [Current]
Feedback Forum

Post a new message
Dataseries X:
16,2
16,7
18,4
16
16,5
18,2
16,8
17,3
18
19,6
23,3
23,7
20,3
22,8
24,3
21,5
23,5
22,2
20,9
22,2
19,5
21,1
22
19,2
17,8
19,2
19,9
19,6
18,1
20,4
18,1
18,6
17,6
19,4
19,3
18,6
16,9
16,4
19
18,7
17,1
21,5
17,8
18,1
19
18,9
16,8
18,1
15,7
15,1
18,3
16,5
16,9
18,4
16,4
15,7
16,9
16,6
16,7
16,6




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68496&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.384921-2.95660.002233
2-0.213969-1.64350.052797
30.3472292.66710.00493
4-0.160154-1.23020.111759
5-0.0569-0.43710.331834
60.2447761.88020.032513
7-0.245877-1.88860.031931
80.0671410.51570.303988
90.1830111.40570.082524
10-0.283996-2.18140.016575
11-0.074876-0.57510.283694
120.4223393.2440.000971
13-0.233336-1.79230.039107
14-0.090318-0.69370.245282
150.0319950.24580.40336
160.0325210.24980.401806
17-0.00164-0.01260.494996
18-0.074183-0.56980.285485
190.082510.63380.264339
200.0337270.25910.398245
21-0.121398-0.93250.177446
220.0498260.38270.35165
23-0.098184-0.75420.226874
240.0997560.76620.223294
250.1504141.15540.126301
26-0.258431-1.9850.025897
270.0210570.16170.436031
280.1757161.34970.091134
29-0.128513-0.98710.163805
30-0.049035-0.37660.353893
310.2438431.8730.033013
32-0.168172-1.29180.100739
33-0.022336-0.17160.432182
340.1525821.1720.122953
35-0.231682-1.77960.040148
360.1254910.96390.169512

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.384921 & -2.9566 & 0.002233 \tabularnewline
2 & -0.213969 & -1.6435 & 0.052797 \tabularnewline
3 & 0.347229 & 2.6671 & 0.00493 \tabularnewline
4 & -0.160154 & -1.2302 & 0.111759 \tabularnewline
5 & -0.0569 & -0.4371 & 0.331834 \tabularnewline
6 & 0.244776 & 1.8802 & 0.032513 \tabularnewline
7 & -0.245877 & -1.8886 & 0.031931 \tabularnewline
8 & 0.067141 & 0.5157 & 0.303988 \tabularnewline
9 & 0.183011 & 1.4057 & 0.082524 \tabularnewline
10 & -0.283996 & -2.1814 & 0.016575 \tabularnewline
11 & -0.074876 & -0.5751 & 0.283694 \tabularnewline
12 & 0.422339 & 3.244 & 0.000971 \tabularnewline
13 & -0.233336 & -1.7923 & 0.039107 \tabularnewline
14 & -0.090318 & -0.6937 & 0.245282 \tabularnewline
15 & 0.031995 & 0.2458 & 0.40336 \tabularnewline
16 & 0.032521 & 0.2498 & 0.401806 \tabularnewline
17 & -0.00164 & -0.0126 & 0.494996 \tabularnewline
18 & -0.074183 & -0.5698 & 0.285485 \tabularnewline
19 & 0.08251 & 0.6338 & 0.264339 \tabularnewline
20 & 0.033727 & 0.2591 & 0.398245 \tabularnewline
21 & -0.121398 & -0.9325 & 0.177446 \tabularnewline
22 & 0.049826 & 0.3827 & 0.35165 \tabularnewline
23 & -0.098184 & -0.7542 & 0.226874 \tabularnewline
24 & 0.099756 & 0.7662 & 0.223294 \tabularnewline
25 & 0.150414 & 1.1554 & 0.126301 \tabularnewline
26 & -0.258431 & -1.985 & 0.025897 \tabularnewline
27 & 0.021057 & 0.1617 & 0.436031 \tabularnewline
28 & 0.175716 & 1.3497 & 0.091134 \tabularnewline
29 & -0.128513 & -0.9871 & 0.163805 \tabularnewline
30 & -0.049035 & -0.3766 & 0.353893 \tabularnewline
31 & 0.243843 & 1.873 & 0.033013 \tabularnewline
32 & -0.168172 & -1.2918 & 0.100739 \tabularnewline
33 & -0.022336 & -0.1716 & 0.432182 \tabularnewline
34 & 0.152582 & 1.172 & 0.122953 \tabularnewline
35 & -0.231682 & -1.7796 & 0.040148 \tabularnewline
36 & 0.125491 & 0.9639 & 0.169512 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68496&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.384921[/C][C]-2.9566[/C][C]0.002233[/C][/ROW]
[ROW][C]2[/C][C]-0.213969[/C][C]-1.6435[/C][C]0.052797[/C][/ROW]
[ROW][C]3[/C][C]0.347229[/C][C]2.6671[/C][C]0.00493[/C][/ROW]
[ROW][C]4[/C][C]-0.160154[/C][C]-1.2302[/C][C]0.111759[/C][/ROW]
[ROW][C]5[/C][C]-0.0569[/C][C]-0.4371[/C][C]0.331834[/C][/ROW]
[ROW][C]6[/C][C]0.244776[/C][C]1.8802[/C][C]0.032513[/C][/ROW]
[ROW][C]7[/C][C]-0.245877[/C][C]-1.8886[/C][C]0.031931[/C][/ROW]
[ROW][C]8[/C][C]0.067141[/C][C]0.5157[/C][C]0.303988[/C][/ROW]
[ROW][C]9[/C][C]0.183011[/C][C]1.4057[/C][C]0.082524[/C][/ROW]
[ROW][C]10[/C][C]-0.283996[/C][C]-2.1814[/C][C]0.016575[/C][/ROW]
[ROW][C]11[/C][C]-0.074876[/C][C]-0.5751[/C][C]0.283694[/C][/ROW]
[ROW][C]12[/C][C]0.422339[/C][C]3.244[/C][C]0.000971[/C][/ROW]
[ROW][C]13[/C][C]-0.233336[/C][C]-1.7923[/C][C]0.039107[/C][/ROW]
[ROW][C]14[/C][C]-0.090318[/C][C]-0.6937[/C][C]0.245282[/C][/ROW]
[ROW][C]15[/C][C]0.031995[/C][C]0.2458[/C][C]0.40336[/C][/ROW]
[ROW][C]16[/C][C]0.032521[/C][C]0.2498[/C][C]0.401806[/C][/ROW]
[ROW][C]17[/C][C]-0.00164[/C][C]-0.0126[/C][C]0.494996[/C][/ROW]
[ROW][C]18[/C][C]-0.074183[/C][C]-0.5698[/C][C]0.285485[/C][/ROW]
[ROW][C]19[/C][C]0.08251[/C][C]0.6338[/C][C]0.264339[/C][/ROW]
[ROW][C]20[/C][C]0.033727[/C][C]0.2591[/C][C]0.398245[/C][/ROW]
[ROW][C]21[/C][C]-0.121398[/C][C]-0.9325[/C][C]0.177446[/C][/ROW]
[ROW][C]22[/C][C]0.049826[/C][C]0.3827[/C][C]0.35165[/C][/ROW]
[ROW][C]23[/C][C]-0.098184[/C][C]-0.7542[/C][C]0.226874[/C][/ROW]
[ROW][C]24[/C][C]0.099756[/C][C]0.7662[/C][C]0.223294[/C][/ROW]
[ROW][C]25[/C][C]0.150414[/C][C]1.1554[/C][C]0.126301[/C][/ROW]
[ROW][C]26[/C][C]-0.258431[/C][C]-1.985[/C][C]0.025897[/C][/ROW]
[ROW][C]27[/C][C]0.021057[/C][C]0.1617[/C][C]0.436031[/C][/ROW]
[ROW][C]28[/C][C]0.175716[/C][C]1.3497[/C][C]0.091134[/C][/ROW]
[ROW][C]29[/C][C]-0.128513[/C][C]-0.9871[/C][C]0.163805[/C][/ROW]
[ROW][C]30[/C][C]-0.049035[/C][C]-0.3766[/C][C]0.353893[/C][/ROW]
[ROW][C]31[/C][C]0.243843[/C][C]1.873[/C][C]0.033013[/C][/ROW]
[ROW][C]32[/C][C]-0.168172[/C][C]-1.2918[/C][C]0.100739[/C][/ROW]
[ROW][C]33[/C][C]-0.022336[/C][C]-0.1716[/C][C]0.432182[/C][/ROW]
[ROW][C]34[/C][C]0.152582[/C][C]1.172[/C][C]0.122953[/C][/ROW]
[ROW][C]35[/C][C]-0.231682[/C][C]-1.7796[/C][C]0.040148[/C][/ROW]
[ROW][C]36[/C][C]0.125491[/C][C]0.9639[/C][C]0.169512[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68496&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68496&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.384921-2.95660.002233
2-0.213969-1.64350.052797
30.3472292.66710.00493
4-0.160154-1.23020.111759
5-0.0569-0.43710.331834
60.2447761.88020.032513
7-0.245877-1.88860.031931
80.0671410.51570.303988
90.1830111.40570.082524
10-0.283996-2.18140.016575
11-0.074876-0.57510.283694
120.4223393.2440.000971
13-0.233336-1.79230.039107
14-0.090318-0.69370.245282
150.0319950.24580.40336
160.0325210.24980.401806
17-0.00164-0.01260.494996
18-0.074183-0.56980.285485
190.082510.63380.264339
200.0337270.25910.398245
21-0.121398-0.93250.177446
220.0498260.38270.35165
23-0.098184-0.75420.226874
240.0997560.76620.223294
250.1504141.15540.126301
26-0.258431-1.9850.025897
270.0210570.16170.436031
280.1757161.34970.091134
29-0.128513-0.98710.163805
30-0.049035-0.37660.353893
310.2438431.8730.033013
32-0.168172-1.29180.100739
33-0.022336-0.17160.432182
340.1525821.1720.122953
35-0.231682-1.77960.040148
360.1254910.96390.169512







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.384921-2.95660.002233
2-0.425121-3.26540.000911
30.0948820.72880.234503
4-0.039022-0.29970.382717
5-0.002992-0.0230.490872
60.1716571.31850.096212
7-0.08859-0.68050.249434
80.0340130.26130.397401
90.0998090.76670.223173
10-0.109756-0.8430.201303
11-0.298142-2.29010.012805
120.2003981.53930.064541
130.1279770.9830.164808
140.01250.0960.461917
15-0.310537-2.38530.010148
160.0298160.2290.409821
170.048620.37350.355073
18-0.193704-1.48790.071056
190.1430991.09920.138081
200.1262910.97010.167988
21-0.171067-1.3140.096968
22-0.062744-0.48190.315813
230.0092920.07140.471672
24-0.062203-0.47780.317282
250.0561050.4310.334036
26-0.008023-0.06160.475534
270.1033530.79390.215227
28-0.156726-1.20380.116731
290.0052870.04060.483871
300.0578170.44410.329296
310.1062920.81640.208765
32-0.069767-0.53590.297024
330.0250520.19240.424035
340.1442171.10780.136233
35-0.137462-1.05590.147667
36-0.142143-1.09180.139675

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.384921 & -2.9566 & 0.002233 \tabularnewline
2 & -0.425121 & -3.2654 & 0.000911 \tabularnewline
3 & 0.094882 & 0.7288 & 0.234503 \tabularnewline
4 & -0.039022 & -0.2997 & 0.382717 \tabularnewline
5 & -0.002992 & -0.023 & 0.490872 \tabularnewline
6 & 0.171657 & 1.3185 & 0.096212 \tabularnewline
7 & -0.08859 & -0.6805 & 0.249434 \tabularnewline
8 & 0.034013 & 0.2613 & 0.397401 \tabularnewline
9 & 0.099809 & 0.7667 & 0.223173 \tabularnewline
10 & -0.109756 & -0.843 & 0.201303 \tabularnewline
11 & -0.298142 & -2.2901 & 0.012805 \tabularnewline
12 & 0.200398 & 1.5393 & 0.064541 \tabularnewline
13 & 0.127977 & 0.983 & 0.164808 \tabularnewline
14 & 0.0125 & 0.096 & 0.461917 \tabularnewline
15 & -0.310537 & -2.3853 & 0.010148 \tabularnewline
16 & 0.029816 & 0.229 & 0.409821 \tabularnewline
17 & 0.04862 & 0.3735 & 0.355073 \tabularnewline
18 & -0.193704 & -1.4879 & 0.071056 \tabularnewline
19 & 0.143099 & 1.0992 & 0.138081 \tabularnewline
20 & 0.126291 & 0.9701 & 0.167988 \tabularnewline
21 & -0.171067 & -1.314 & 0.096968 \tabularnewline
22 & -0.062744 & -0.4819 & 0.315813 \tabularnewline
23 & 0.009292 & 0.0714 & 0.471672 \tabularnewline
24 & -0.062203 & -0.4778 & 0.317282 \tabularnewline
25 & 0.056105 & 0.431 & 0.334036 \tabularnewline
26 & -0.008023 & -0.0616 & 0.475534 \tabularnewline
27 & 0.103353 & 0.7939 & 0.215227 \tabularnewline
28 & -0.156726 & -1.2038 & 0.116731 \tabularnewline
29 & 0.005287 & 0.0406 & 0.483871 \tabularnewline
30 & 0.057817 & 0.4441 & 0.329296 \tabularnewline
31 & 0.106292 & 0.8164 & 0.208765 \tabularnewline
32 & -0.069767 & -0.5359 & 0.297024 \tabularnewline
33 & 0.025052 & 0.1924 & 0.424035 \tabularnewline
34 & 0.144217 & 1.1078 & 0.136233 \tabularnewline
35 & -0.137462 & -1.0559 & 0.147667 \tabularnewline
36 & -0.142143 & -1.0918 & 0.139675 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68496&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.384921[/C][C]-2.9566[/C][C]0.002233[/C][/ROW]
[ROW][C]2[/C][C]-0.425121[/C][C]-3.2654[/C][C]0.000911[/C][/ROW]
[ROW][C]3[/C][C]0.094882[/C][C]0.7288[/C][C]0.234503[/C][/ROW]
[ROW][C]4[/C][C]-0.039022[/C][C]-0.2997[/C][C]0.382717[/C][/ROW]
[ROW][C]5[/C][C]-0.002992[/C][C]-0.023[/C][C]0.490872[/C][/ROW]
[ROW][C]6[/C][C]0.171657[/C][C]1.3185[/C][C]0.096212[/C][/ROW]
[ROW][C]7[/C][C]-0.08859[/C][C]-0.6805[/C][C]0.249434[/C][/ROW]
[ROW][C]8[/C][C]0.034013[/C][C]0.2613[/C][C]0.397401[/C][/ROW]
[ROW][C]9[/C][C]0.099809[/C][C]0.7667[/C][C]0.223173[/C][/ROW]
[ROW][C]10[/C][C]-0.109756[/C][C]-0.843[/C][C]0.201303[/C][/ROW]
[ROW][C]11[/C][C]-0.298142[/C][C]-2.2901[/C][C]0.012805[/C][/ROW]
[ROW][C]12[/C][C]0.200398[/C][C]1.5393[/C][C]0.064541[/C][/ROW]
[ROW][C]13[/C][C]0.127977[/C][C]0.983[/C][C]0.164808[/C][/ROW]
[ROW][C]14[/C][C]0.0125[/C][C]0.096[/C][C]0.461917[/C][/ROW]
[ROW][C]15[/C][C]-0.310537[/C][C]-2.3853[/C][C]0.010148[/C][/ROW]
[ROW][C]16[/C][C]0.029816[/C][C]0.229[/C][C]0.409821[/C][/ROW]
[ROW][C]17[/C][C]0.04862[/C][C]0.3735[/C][C]0.355073[/C][/ROW]
[ROW][C]18[/C][C]-0.193704[/C][C]-1.4879[/C][C]0.071056[/C][/ROW]
[ROW][C]19[/C][C]0.143099[/C][C]1.0992[/C][C]0.138081[/C][/ROW]
[ROW][C]20[/C][C]0.126291[/C][C]0.9701[/C][C]0.167988[/C][/ROW]
[ROW][C]21[/C][C]-0.171067[/C][C]-1.314[/C][C]0.096968[/C][/ROW]
[ROW][C]22[/C][C]-0.062744[/C][C]-0.4819[/C][C]0.315813[/C][/ROW]
[ROW][C]23[/C][C]0.009292[/C][C]0.0714[/C][C]0.471672[/C][/ROW]
[ROW][C]24[/C][C]-0.062203[/C][C]-0.4778[/C][C]0.317282[/C][/ROW]
[ROW][C]25[/C][C]0.056105[/C][C]0.431[/C][C]0.334036[/C][/ROW]
[ROW][C]26[/C][C]-0.008023[/C][C]-0.0616[/C][C]0.475534[/C][/ROW]
[ROW][C]27[/C][C]0.103353[/C][C]0.7939[/C][C]0.215227[/C][/ROW]
[ROW][C]28[/C][C]-0.156726[/C][C]-1.2038[/C][C]0.116731[/C][/ROW]
[ROW][C]29[/C][C]0.005287[/C][C]0.0406[/C][C]0.483871[/C][/ROW]
[ROW][C]30[/C][C]0.057817[/C][C]0.4441[/C][C]0.329296[/C][/ROW]
[ROW][C]31[/C][C]0.106292[/C][C]0.8164[/C][C]0.208765[/C][/ROW]
[ROW][C]32[/C][C]-0.069767[/C][C]-0.5359[/C][C]0.297024[/C][/ROW]
[ROW][C]33[/C][C]0.025052[/C][C]0.1924[/C][C]0.424035[/C][/ROW]
[ROW][C]34[/C][C]0.144217[/C][C]1.1078[/C][C]0.136233[/C][/ROW]
[ROW][C]35[/C][C]-0.137462[/C][C]-1.0559[/C][C]0.147667[/C][/ROW]
[ROW][C]36[/C][C]-0.142143[/C][C]-1.0918[/C][C]0.139675[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68496&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68496&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.384921-2.95660.002233
2-0.425121-3.26540.000911
30.0948820.72880.234503
4-0.039022-0.29970.382717
5-0.002992-0.0230.490872
60.1716571.31850.096212
7-0.08859-0.68050.249434
80.0340130.26130.397401
90.0998090.76670.223173
10-0.109756-0.8430.201303
11-0.298142-2.29010.012805
120.2003981.53930.064541
130.1279770.9830.164808
140.01250.0960.461917
15-0.310537-2.38530.010148
160.0298160.2290.409821
170.048620.37350.355073
18-0.193704-1.48790.071056
190.1430991.09920.138081
200.1262910.97010.167988
21-0.171067-1.3140.096968
22-0.062744-0.48190.315813
230.0092920.07140.471672
24-0.062203-0.47780.317282
250.0561050.4310.334036
26-0.008023-0.06160.475534
270.1033530.79390.215227
28-0.156726-1.20380.116731
290.0052870.04060.483871
300.0578170.44410.329296
310.1062920.81640.208765
32-0.069767-0.53590.297024
330.0250520.19240.424035
340.1442171.10780.136233
35-0.137462-1.05590.147667
36-0.142143-1.09180.139675



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