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 computationTue, 28 Dec 2010 16:35:46 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/28/t1293554079mk5piifv7qh4bbq.htm/, Retrieved Sat, 04 May 2024 23:20:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=116413, Retrieved Sat, 04 May 2024 23:20:12 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact139
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [] [2010-12-27 23:46:01] [f57e4c4cbbe8f12a19647529ae7266aa]
-   P     [(Partial) Autocorrelation Function] [] [2010-12-28 16:35:46] [c984196f1244e05baf3e7c2e52d47a33] [Current]
Feedback Forum

Post a new message
Dataseries X:
110.43
114.77
132.21
122.86
118.5
130.3
113.25
104.54
132.78
122.99
133.14
125.83
122.99
125.7
148.47
120.75
136.7
139.17
123.47
112.76
137.99
139.75
140.22
121.6
132.33
130.34
149.05
130.47
139.29
146.55
137.79
122.95
139.51
155.77
143.95
125.07
142.35
144.34
145.87
156.01
146.74
156.45
152.29
122.56
154.59
149.68
118.75
109.22
104.19
107.33
114.07
107.92
103.53
117.3
112.09
95.08
123.28
121.98
121.74
119.93
115.11




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 2 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116413&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]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116413&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116413&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 time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.349017-2.41810.009724
20.0851760.59010.278939
30.3806272.63710.005618
4-0.30546-2.11630.019766
50.1363660.94480.174754
60.1831441.26890.105305
7-0.366571-2.53970.007194
80.1673521.15940.126005
9-0.015022-0.10410.458771
10-0.219628-1.52160.067332
110.0561630.38910.349458
12-0.118233-0.81910.208376
13-0.175121-1.21330.115481
140.1275920.8840.190557
15-0.035916-0.24880.402275
16-0.151682-1.05090.149287
170.1669271.15650.1266
18-0.12446-0.86230.196409
19-0.011277-0.07810.469024
200.1327240.91950.181205
21-0.059834-0.41450.340162
22-0.159382-1.10420.137498
230.3451762.39140.010375
24-0.279458-1.93610.029375
250.081020.56130.288593
260.1217270.84340.201607
27-0.208561-1.4450.077484
280.1524721.05640.148047
290.0521510.36130.359725
30-0.139938-0.96950.168573
310.1370250.94930.173603
32-0.052601-0.36440.35857
33-0.001143-0.00790.496858
340.0790290.54750.293276
35-0.072878-0.50490.307965
36-0.043251-0.29970.382868

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.349017 & -2.4181 & 0.009724 \tabularnewline
2 & 0.085176 & 0.5901 & 0.278939 \tabularnewline
3 & 0.380627 & 2.6371 & 0.005618 \tabularnewline
4 & -0.30546 & -2.1163 & 0.019766 \tabularnewline
5 & 0.136366 & 0.9448 & 0.174754 \tabularnewline
6 & 0.183144 & 1.2689 & 0.105305 \tabularnewline
7 & -0.366571 & -2.5397 & 0.007194 \tabularnewline
8 & 0.167352 & 1.1594 & 0.126005 \tabularnewline
9 & -0.015022 & -0.1041 & 0.458771 \tabularnewline
10 & -0.219628 & -1.5216 & 0.067332 \tabularnewline
11 & 0.056163 & 0.3891 & 0.349458 \tabularnewline
12 & -0.118233 & -0.8191 & 0.208376 \tabularnewline
13 & -0.175121 & -1.2133 & 0.115481 \tabularnewline
14 & 0.127592 & 0.884 & 0.190557 \tabularnewline
15 & -0.035916 & -0.2488 & 0.402275 \tabularnewline
16 & -0.151682 & -1.0509 & 0.149287 \tabularnewline
17 & 0.166927 & 1.1565 & 0.1266 \tabularnewline
18 & -0.12446 & -0.8623 & 0.196409 \tabularnewline
19 & -0.011277 & -0.0781 & 0.469024 \tabularnewline
20 & 0.132724 & 0.9195 & 0.181205 \tabularnewline
21 & -0.059834 & -0.4145 & 0.340162 \tabularnewline
22 & -0.159382 & -1.1042 & 0.137498 \tabularnewline
23 & 0.345176 & 2.3914 & 0.010375 \tabularnewline
24 & -0.279458 & -1.9361 & 0.029375 \tabularnewline
25 & 0.08102 & 0.5613 & 0.288593 \tabularnewline
26 & 0.121727 & 0.8434 & 0.201607 \tabularnewline
27 & -0.208561 & -1.445 & 0.077484 \tabularnewline
28 & 0.152472 & 1.0564 & 0.148047 \tabularnewline
29 & 0.052151 & 0.3613 & 0.359725 \tabularnewline
30 & -0.139938 & -0.9695 & 0.168573 \tabularnewline
31 & 0.137025 & 0.9493 & 0.173603 \tabularnewline
32 & -0.052601 & -0.3644 & 0.35857 \tabularnewline
33 & -0.001143 & -0.0079 & 0.496858 \tabularnewline
34 & 0.079029 & 0.5475 & 0.293276 \tabularnewline
35 & -0.072878 & -0.5049 & 0.307965 \tabularnewline
36 & -0.043251 & -0.2997 & 0.382868 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116413&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.349017[/C][C]-2.4181[/C][C]0.009724[/C][/ROW]
[ROW][C]2[/C][C]0.085176[/C][C]0.5901[/C][C]0.278939[/C][/ROW]
[ROW][C]3[/C][C]0.380627[/C][C]2.6371[/C][C]0.005618[/C][/ROW]
[ROW][C]4[/C][C]-0.30546[/C][C]-2.1163[/C][C]0.019766[/C][/ROW]
[ROW][C]5[/C][C]0.136366[/C][C]0.9448[/C][C]0.174754[/C][/ROW]
[ROW][C]6[/C][C]0.183144[/C][C]1.2689[/C][C]0.105305[/C][/ROW]
[ROW][C]7[/C][C]-0.366571[/C][C]-2.5397[/C][C]0.007194[/C][/ROW]
[ROW][C]8[/C][C]0.167352[/C][C]1.1594[/C][C]0.126005[/C][/ROW]
[ROW][C]9[/C][C]-0.015022[/C][C]-0.1041[/C][C]0.458771[/C][/ROW]
[ROW][C]10[/C][C]-0.219628[/C][C]-1.5216[/C][C]0.067332[/C][/ROW]
[ROW][C]11[/C][C]0.056163[/C][C]0.3891[/C][C]0.349458[/C][/ROW]
[ROW][C]12[/C][C]-0.118233[/C][C]-0.8191[/C][C]0.208376[/C][/ROW]
[ROW][C]13[/C][C]-0.175121[/C][C]-1.2133[/C][C]0.115481[/C][/ROW]
[ROW][C]14[/C][C]0.127592[/C][C]0.884[/C][C]0.190557[/C][/ROW]
[ROW][C]15[/C][C]-0.035916[/C][C]-0.2488[/C][C]0.402275[/C][/ROW]
[ROW][C]16[/C][C]-0.151682[/C][C]-1.0509[/C][C]0.149287[/C][/ROW]
[ROW][C]17[/C][C]0.166927[/C][C]1.1565[/C][C]0.1266[/C][/ROW]
[ROW][C]18[/C][C]-0.12446[/C][C]-0.8623[/C][C]0.196409[/C][/ROW]
[ROW][C]19[/C][C]-0.011277[/C][C]-0.0781[/C][C]0.469024[/C][/ROW]
[ROW][C]20[/C][C]0.132724[/C][C]0.9195[/C][C]0.181205[/C][/ROW]
[ROW][C]21[/C][C]-0.059834[/C][C]-0.4145[/C][C]0.340162[/C][/ROW]
[ROW][C]22[/C][C]-0.159382[/C][C]-1.1042[/C][C]0.137498[/C][/ROW]
[ROW][C]23[/C][C]0.345176[/C][C]2.3914[/C][C]0.010375[/C][/ROW]
[ROW][C]24[/C][C]-0.279458[/C][C]-1.9361[/C][C]0.029375[/C][/ROW]
[ROW][C]25[/C][C]0.08102[/C][C]0.5613[/C][C]0.288593[/C][/ROW]
[ROW][C]26[/C][C]0.121727[/C][C]0.8434[/C][C]0.201607[/C][/ROW]
[ROW][C]27[/C][C]-0.208561[/C][C]-1.445[/C][C]0.077484[/C][/ROW]
[ROW][C]28[/C][C]0.152472[/C][C]1.0564[/C][C]0.148047[/C][/ROW]
[ROW][C]29[/C][C]0.052151[/C][C]0.3613[/C][C]0.359725[/C][/ROW]
[ROW][C]30[/C][C]-0.139938[/C][C]-0.9695[/C][C]0.168573[/C][/ROW]
[ROW][C]31[/C][C]0.137025[/C][C]0.9493[/C][C]0.173603[/C][/ROW]
[ROW][C]32[/C][C]-0.052601[/C][C]-0.3644[/C][C]0.35857[/C][/ROW]
[ROW][C]33[/C][C]-0.001143[/C][C]-0.0079[/C][C]0.496858[/C][/ROW]
[ROW][C]34[/C][C]0.079029[/C][C]0.5475[/C][C]0.293276[/C][/ROW]
[ROW][C]35[/C][C]-0.072878[/C][C]-0.5049[/C][C]0.307965[/C][/ROW]
[ROW][C]36[/C][C]-0.043251[/C][C]-0.2997[/C][C]0.382868[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116413&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116413&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.349017-2.41810.009724
20.0851760.59010.278939
30.3806272.63710.005618
4-0.30546-2.11630.019766
50.1363660.94480.174754
60.1831441.26890.105305
7-0.366571-2.53970.007194
80.1673521.15940.126005
9-0.015022-0.10410.458771
10-0.219628-1.52160.067332
110.0561630.38910.349458
12-0.118233-0.81910.208376
13-0.175121-1.21330.115481
140.1275920.8840.190557
15-0.035916-0.24880.402275
16-0.151682-1.05090.149287
170.1669271.15650.1266
18-0.12446-0.86230.196409
19-0.011277-0.07810.469024
200.1327240.91950.181205
21-0.059834-0.41450.340162
22-0.159382-1.10420.137498
230.3451762.39140.010375
24-0.279458-1.93610.029375
250.081020.56130.288593
260.1217270.84340.201607
27-0.208561-1.4450.077484
280.1524721.05640.148047
290.0521510.36130.359725
30-0.139938-0.96950.168573
310.1370250.94930.173603
32-0.052601-0.36440.35857
33-0.001143-0.00790.496858
340.0790290.54750.293276
35-0.072878-0.50490.307965
36-0.043251-0.29970.382868







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.349017-2.41810.009724
2-0.041718-0.2890.386901
30.4528953.13770.001454
4-0.038271-0.26510.396016
5-0.090573-0.62750.26665
60.1185650.82140.207728
7-0.192855-1.33610.093902
8-0.141556-0.98070.165822
9-0.020957-0.14520.442583
100.0063420.04390.482568
11-0.172812-1.19730.118539
12-0.162374-1.1250.1331
13-0.105345-0.72980.234515
140.0409490.28370.388928
150.1706781.18250.121417
16-0.065491-0.45370.326033
17-0.026031-0.18030.42882
18-0.099232-0.68750.247539
19-0.052656-0.36480.358428
20-0.021839-0.15130.440184
210.1121340.77690.220519
22-0.273879-1.89750.031894
230.1126170.78020.219542
24-0.096885-0.67120.252642
25-0.020073-0.13910.444988
26-0.042416-0.29390.385063
270.072750.5040.308274
280.0486330.33690.368816
29-0.096212-0.66660.254118
300.0651960.45170.326763
31-0.060286-0.41770.339025
32-0.040671-0.28180.389663
330.0413680.28660.387824
340.014750.10220.459516
35-0.068422-0.4740.318809
36-0.145849-1.01050.158668

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.349017 & -2.4181 & 0.009724 \tabularnewline
2 & -0.041718 & -0.289 & 0.386901 \tabularnewline
3 & 0.452895 & 3.1377 & 0.001454 \tabularnewline
4 & -0.038271 & -0.2651 & 0.396016 \tabularnewline
5 & -0.090573 & -0.6275 & 0.26665 \tabularnewline
6 & 0.118565 & 0.8214 & 0.207728 \tabularnewline
7 & -0.192855 & -1.3361 & 0.093902 \tabularnewline
8 & -0.141556 & -0.9807 & 0.165822 \tabularnewline
9 & -0.020957 & -0.1452 & 0.442583 \tabularnewline
10 & 0.006342 & 0.0439 & 0.482568 \tabularnewline
11 & -0.172812 & -1.1973 & 0.118539 \tabularnewline
12 & -0.162374 & -1.125 & 0.1331 \tabularnewline
13 & -0.105345 & -0.7298 & 0.234515 \tabularnewline
14 & 0.040949 & 0.2837 & 0.388928 \tabularnewline
15 & 0.170678 & 1.1825 & 0.121417 \tabularnewline
16 & -0.065491 & -0.4537 & 0.326033 \tabularnewline
17 & -0.026031 & -0.1803 & 0.42882 \tabularnewline
18 & -0.099232 & -0.6875 & 0.247539 \tabularnewline
19 & -0.052656 & -0.3648 & 0.358428 \tabularnewline
20 & -0.021839 & -0.1513 & 0.440184 \tabularnewline
21 & 0.112134 & 0.7769 & 0.220519 \tabularnewline
22 & -0.273879 & -1.8975 & 0.031894 \tabularnewline
23 & 0.112617 & 0.7802 & 0.219542 \tabularnewline
24 & -0.096885 & -0.6712 & 0.252642 \tabularnewline
25 & -0.020073 & -0.1391 & 0.444988 \tabularnewline
26 & -0.042416 & -0.2939 & 0.385063 \tabularnewline
27 & 0.07275 & 0.504 & 0.308274 \tabularnewline
28 & 0.048633 & 0.3369 & 0.368816 \tabularnewline
29 & -0.096212 & -0.6666 & 0.254118 \tabularnewline
30 & 0.065196 & 0.4517 & 0.326763 \tabularnewline
31 & -0.060286 & -0.4177 & 0.339025 \tabularnewline
32 & -0.040671 & -0.2818 & 0.389663 \tabularnewline
33 & 0.041368 & 0.2866 & 0.387824 \tabularnewline
34 & 0.01475 & 0.1022 & 0.459516 \tabularnewline
35 & -0.068422 & -0.474 & 0.318809 \tabularnewline
36 & -0.145849 & -1.0105 & 0.158668 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116413&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.349017[/C][C]-2.4181[/C][C]0.009724[/C][/ROW]
[ROW][C]2[/C][C]-0.041718[/C][C]-0.289[/C][C]0.386901[/C][/ROW]
[ROW][C]3[/C][C]0.452895[/C][C]3.1377[/C][C]0.001454[/C][/ROW]
[ROW][C]4[/C][C]-0.038271[/C][C]-0.2651[/C][C]0.396016[/C][/ROW]
[ROW][C]5[/C][C]-0.090573[/C][C]-0.6275[/C][C]0.26665[/C][/ROW]
[ROW][C]6[/C][C]0.118565[/C][C]0.8214[/C][C]0.207728[/C][/ROW]
[ROW][C]7[/C][C]-0.192855[/C][C]-1.3361[/C][C]0.093902[/C][/ROW]
[ROW][C]8[/C][C]-0.141556[/C][C]-0.9807[/C][C]0.165822[/C][/ROW]
[ROW][C]9[/C][C]-0.020957[/C][C]-0.1452[/C][C]0.442583[/C][/ROW]
[ROW][C]10[/C][C]0.006342[/C][C]0.0439[/C][C]0.482568[/C][/ROW]
[ROW][C]11[/C][C]-0.172812[/C][C]-1.1973[/C][C]0.118539[/C][/ROW]
[ROW][C]12[/C][C]-0.162374[/C][C]-1.125[/C][C]0.1331[/C][/ROW]
[ROW][C]13[/C][C]-0.105345[/C][C]-0.7298[/C][C]0.234515[/C][/ROW]
[ROW][C]14[/C][C]0.040949[/C][C]0.2837[/C][C]0.388928[/C][/ROW]
[ROW][C]15[/C][C]0.170678[/C][C]1.1825[/C][C]0.121417[/C][/ROW]
[ROW][C]16[/C][C]-0.065491[/C][C]-0.4537[/C][C]0.326033[/C][/ROW]
[ROW][C]17[/C][C]-0.026031[/C][C]-0.1803[/C][C]0.42882[/C][/ROW]
[ROW][C]18[/C][C]-0.099232[/C][C]-0.6875[/C][C]0.247539[/C][/ROW]
[ROW][C]19[/C][C]-0.052656[/C][C]-0.3648[/C][C]0.358428[/C][/ROW]
[ROW][C]20[/C][C]-0.021839[/C][C]-0.1513[/C][C]0.440184[/C][/ROW]
[ROW][C]21[/C][C]0.112134[/C][C]0.7769[/C][C]0.220519[/C][/ROW]
[ROW][C]22[/C][C]-0.273879[/C][C]-1.8975[/C][C]0.031894[/C][/ROW]
[ROW][C]23[/C][C]0.112617[/C][C]0.7802[/C][C]0.219542[/C][/ROW]
[ROW][C]24[/C][C]-0.096885[/C][C]-0.6712[/C][C]0.252642[/C][/ROW]
[ROW][C]25[/C][C]-0.020073[/C][C]-0.1391[/C][C]0.444988[/C][/ROW]
[ROW][C]26[/C][C]-0.042416[/C][C]-0.2939[/C][C]0.385063[/C][/ROW]
[ROW][C]27[/C][C]0.07275[/C][C]0.504[/C][C]0.308274[/C][/ROW]
[ROW][C]28[/C][C]0.048633[/C][C]0.3369[/C][C]0.368816[/C][/ROW]
[ROW][C]29[/C][C]-0.096212[/C][C]-0.6666[/C][C]0.254118[/C][/ROW]
[ROW][C]30[/C][C]0.065196[/C][C]0.4517[/C][C]0.326763[/C][/ROW]
[ROW][C]31[/C][C]-0.060286[/C][C]-0.4177[/C][C]0.339025[/C][/ROW]
[ROW][C]32[/C][C]-0.040671[/C][C]-0.2818[/C][C]0.389663[/C][/ROW]
[ROW][C]33[/C][C]0.041368[/C][C]0.2866[/C][C]0.387824[/C][/ROW]
[ROW][C]34[/C][C]0.01475[/C][C]0.1022[/C][C]0.459516[/C][/ROW]
[ROW][C]35[/C][C]-0.068422[/C][C]-0.474[/C][C]0.318809[/C][/ROW]
[ROW][C]36[/C][C]-0.145849[/C][C]-1.0105[/C][C]0.158668[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116413&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116413&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.349017-2.41810.009724
2-0.041718-0.2890.386901
30.4528953.13770.001454
4-0.038271-0.26510.396016
5-0.090573-0.62750.26665
60.1185650.82140.207728
7-0.192855-1.33610.093902
8-0.141556-0.98070.165822
9-0.020957-0.14520.442583
100.0063420.04390.482568
11-0.172812-1.19730.118539
12-0.162374-1.1250.1331
13-0.105345-0.72980.234515
140.0409490.28370.388928
150.1706781.18250.121417
16-0.065491-0.45370.326033
17-0.026031-0.18030.42882
18-0.099232-0.68750.247539
19-0.052656-0.36480.358428
20-0.021839-0.15130.440184
210.1121340.77690.220519
22-0.273879-1.89750.031894
230.1126170.78020.219542
24-0.096885-0.67120.252642
25-0.020073-0.13910.444988
26-0.042416-0.29390.385063
270.072750.5040.308274
280.0486330.33690.368816
29-0.096212-0.66660.254118
300.0651960.45170.326763
31-0.060286-0.41770.339025
32-0.040671-0.28180.389663
330.0413680.28660.387824
340.014750.10220.459516
35-0.068422-0.4740.318809
36-0.145849-1.01050.158668



Parameters (Session):
par1 = 36 ; par2 = -0.8 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
Parameters (R input):
par1 = 36 ; par2 = -0.8 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ; par8 = ;
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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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')