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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWorkshop 9 - Autocorrelatie 3
Estimated Impact137
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:46:03] [b98453cac15ba1066b407e146608df68]
-    D    [(Partial) Autocorrelation Function] [BBWS9-Autocorella...] [2009-12-01 20:15:32] [408e92805dcb18620260f240a7fb9d53]
-   PD        [(Partial) Autocorrelation Function] [shw-ws9] [2009-12-04 13:09:24] [5b5bced41faf164488f2c271c918b21f] [Current]
Feedback Forum

Post a new message
Dataseries X:
1178
2141
2238
2685
4341
5376
4478
6404
4617
3024
1897
2075
1351
2211
2453
3042
4765
4992
4601
6266
4812
3159
1916
2237
1595
2453
2226
3597
4706
4974
5756
5493
5004
3225
2006
2291
1588
2105
2191
3591
4668
4885
5822
5599
5340
3082
2010
2301
1514
1979
2480
3499
4676
5585
5610
5796
6199
3030
1930
2552




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63460&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.612722-4.20065.9e-05
2-0.017006-0.11660.453842
30.3064032.10060.020534
4-0.257486-1.76520.04201
50.0489690.33570.36929
60.1223930.83910.202835
7-0.101077-0.6930.245875
8-0.084266-0.57770.283112
90.1858181.27390.104481
10-0.092633-0.63510.264234
11-0.062344-0.42740.335516
120.1831741.25580.107702
13-0.27398-1.87830.033275
140.2683181.83950.036082
15-0.107769-0.73880.231844
16-0.043363-0.29730.38378
170.0471340.32310.374015
180.0376740.25830.398659
19-0.138462-0.94920.173675
200.154631.06010.147261
21-0.002332-0.0160.493656
22-0.211276-1.44840.077067
230.2844641.95020.028566
24-0.112322-0.770.222565
25-0.185238-1.26990.105181
260.3138932.15190.018285
27-0.193878-1.32920.095106
280.0018080.01240.495082
290.101880.69850.244167
30-0.072376-0.49620.311039
31-0.020325-0.13930.444888
320.0739650.50710.307235
33-0.039528-0.2710.393794
34-0.02898-0.19870.421685
350.0629680.43170.333972
36-0.064407-0.44160.330418

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.612722 & -4.2006 & 5.9e-05 \tabularnewline
2 & -0.017006 & -0.1166 & 0.453842 \tabularnewline
3 & 0.306403 & 2.1006 & 0.020534 \tabularnewline
4 & -0.257486 & -1.7652 & 0.04201 \tabularnewline
5 & 0.048969 & 0.3357 & 0.36929 \tabularnewline
6 & 0.122393 & 0.8391 & 0.202835 \tabularnewline
7 & -0.101077 & -0.693 & 0.245875 \tabularnewline
8 & -0.084266 & -0.5777 & 0.283112 \tabularnewline
9 & 0.185818 & 1.2739 & 0.104481 \tabularnewline
10 & -0.092633 & -0.6351 & 0.264234 \tabularnewline
11 & -0.062344 & -0.4274 & 0.335516 \tabularnewline
12 & 0.183174 & 1.2558 & 0.107702 \tabularnewline
13 & -0.27398 & -1.8783 & 0.033275 \tabularnewline
14 & 0.268318 & 1.8395 & 0.036082 \tabularnewline
15 & -0.107769 & -0.7388 & 0.231844 \tabularnewline
16 & -0.043363 & -0.2973 & 0.38378 \tabularnewline
17 & 0.047134 & 0.3231 & 0.374015 \tabularnewline
18 & 0.037674 & 0.2583 & 0.398659 \tabularnewline
19 & -0.138462 & -0.9492 & 0.173675 \tabularnewline
20 & 0.15463 & 1.0601 & 0.147261 \tabularnewline
21 & -0.002332 & -0.016 & 0.493656 \tabularnewline
22 & -0.211276 & -1.4484 & 0.077067 \tabularnewline
23 & 0.284464 & 1.9502 & 0.028566 \tabularnewline
24 & -0.112322 & -0.77 & 0.222565 \tabularnewline
25 & -0.185238 & -1.2699 & 0.105181 \tabularnewline
26 & 0.313893 & 2.1519 & 0.018285 \tabularnewline
27 & -0.193878 & -1.3292 & 0.095106 \tabularnewline
28 & 0.001808 & 0.0124 & 0.495082 \tabularnewline
29 & 0.10188 & 0.6985 & 0.244167 \tabularnewline
30 & -0.072376 & -0.4962 & 0.311039 \tabularnewline
31 & -0.020325 & -0.1393 & 0.444888 \tabularnewline
32 & 0.073965 & 0.5071 & 0.307235 \tabularnewline
33 & -0.039528 & -0.271 & 0.393794 \tabularnewline
34 & -0.02898 & -0.1987 & 0.421685 \tabularnewline
35 & 0.062968 & 0.4317 & 0.333972 \tabularnewline
36 & -0.064407 & -0.4416 & 0.330418 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63460&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.612722[/C][C]-4.2006[/C][C]5.9e-05[/C][/ROW]
[ROW][C]2[/C][C]-0.017006[/C][C]-0.1166[/C][C]0.453842[/C][/ROW]
[ROW][C]3[/C][C]0.306403[/C][C]2.1006[/C][C]0.020534[/C][/ROW]
[ROW][C]4[/C][C]-0.257486[/C][C]-1.7652[/C][C]0.04201[/C][/ROW]
[ROW][C]5[/C][C]0.048969[/C][C]0.3357[/C][C]0.36929[/C][/ROW]
[ROW][C]6[/C][C]0.122393[/C][C]0.8391[/C][C]0.202835[/C][/ROW]
[ROW][C]7[/C][C]-0.101077[/C][C]-0.693[/C][C]0.245875[/C][/ROW]
[ROW][C]8[/C][C]-0.084266[/C][C]-0.5777[/C][C]0.283112[/C][/ROW]
[ROW][C]9[/C][C]0.185818[/C][C]1.2739[/C][C]0.104481[/C][/ROW]
[ROW][C]10[/C][C]-0.092633[/C][C]-0.6351[/C][C]0.264234[/C][/ROW]
[ROW][C]11[/C][C]-0.062344[/C][C]-0.4274[/C][C]0.335516[/C][/ROW]
[ROW][C]12[/C][C]0.183174[/C][C]1.2558[/C][C]0.107702[/C][/ROW]
[ROW][C]13[/C][C]-0.27398[/C][C]-1.8783[/C][C]0.033275[/C][/ROW]
[ROW][C]14[/C][C]0.268318[/C][C]1.8395[/C][C]0.036082[/C][/ROW]
[ROW][C]15[/C][C]-0.107769[/C][C]-0.7388[/C][C]0.231844[/C][/ROW]
[ROW][C]16[/C][C]-0.043363[/C][C]-0.2973[/C][C]0.38378[/C][/ROW]
[ROW][C]17[/C][C]0.047134[/C][C]0.3231[/C][C]0.374015[/C][/ROW]
[ROW][C]18[/C][C]0.037674[/C][C]0.2583[/C][C]0.398659[/C][/ROW]
[ROW][C]19[/C][C]-0.138462[/C][C]-0.9492[/C][C]0.173675[/C][/ROW]
[ROW][C]20[/C][C]0.15463[/C][C]1.0601[/C][C]0.147261[/C][/ROW]
[ROW][C]21[/C][C]-0.002332[/C][C]-0.016[/C][C]0.493656[/C][/ROW]
[ROW][C]22[/C][C]-0.211276[/C][C]-1.4484[/C][C]0.077067[/C][/ROW]
[ROW][C]23[/C][C]0.284464[/C][C]1.9502[/C][C]0.028566[/C][/ROW]
[ROW][C]24[/C][C]-0.112322[/C][C]-0.77[/C][C]0.222565[/C][/ROW]
[ROW][C]25[/C][C]-0.185238[/C][C]-1.2699[/C][C]0.105181[/C][/ROW]
[ROW][C]26[/C][C]0.313893[/C][C]2.1519[/C][C]0.018285[/C][/ROW]
[ROW][C]27[/C][C]-0.193878[/C][C]-1.3292[/C][C]0.095106[/C][/ROW]
[ROW][C]28[/C][C]0.001808[/C][C]0.0124[/C][C]0.495082[/C][/ROW]
[ROW][C]29[/C][C]0.10188[/C][C]0.6985[/C][C]0.244167[/C][/ROW]
[ROW][C]30[/C][C]-0.072376[/C][C]-0.4962[/C][C]0.311039[/C][/ROW]
[ROW][C]31[/C][C]-0.020325[/C][C]-0.1393[/C][C]0.444888[/C][/ROW]
[ROW][C]32[/C][C]0.073965[/C][C]0.5071[/C][C]0.307235[/C][/ROW]
[ROW][C]33[/C][C]-0.039528[/C][C]-0.271[/C][C]0.393794[/C][/ROW]
[ROW][C]34[/C][C]-0.02898[/C][C]-0.1987[/C][C]0.421685[/C][/ROW]
[ROW][C]35[/C][C]0.062968[/C][C]0.4317[/C][C]0.333972[/C][/ROW]
[ROW][C]36[/C][C]-0.064407[/C][C]-0.4416[/C][C]0.330418[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63460&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63460&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.612722-4.20065.9e-05
2-0.017006-0.11660.453842
30.3064032.10060.020534
4-0.257486-1.76520.04201
50.0489690.33570.36929
60.1223930.83910.202835
7-0.101077-0.6930.245875
8-0.084266-0.57770.283112
90.1858181.27390.104481
10-0.092633-0.63510.264234
11-0.062344-0.42740.335516
120.1831741.25580.107702
13-0.27398-1.87830.033275
140.2683181.83950.036082
15-0.107769-0.73880.231844
16-0.043363-0.29730.38378
170.0471340.32310.374015
180.0376740.25830.398659
19-0.138462-0.94920.173675
200.154631.06010.147261
21-0.002332-0.0160.493656
22-0.211276-1.44840.077067
230.2844641.95020.028566
24-0.112322-0.770.222565
25-0.185238-1.26990.105181
260.3138932.15190.018285
27-0.193878-1.32920.095106
280.0018080.01240.495082
290.101880.69850.244167
30-0.072376-0.49620.311039
31-0.020325-0.13930.444888
320.0739650.50710.307235
33-0.039528-0.2710.393794
34-0.02898-0.19870.421685
350.0629680.43170.333972
36-0.064407-0.44160.330418







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.612722-4.20065.9e-05
2-0.628326-4.30764.2e-05
3-0.252792-1.73310.044822
4-0.20626-1.4140.081969
5-0.211163-1.44770.077175
6-0.106446-0.72980.234581
70.0590850.40510.343632
8-0.152692-1.04680.150272
9-0.140472-0.9630.170231
10-0.058237-0.39920.345759
11-0.06882-0.47180.319623
120.1078190.73920.23174
13-0.226142-1.55040.063882
140.0076040.05210.479324
150.0121770.08350.466911
160.1196250.82010.208147
17-0.043553-0.29860.383286
180.1080440.74070.231276
19-0.128417-0.88040.191566
20-0.049141-0.33690.368847
210.0586320.4020.344768
22-0.057952-0.39730.346472
230.0850220.58290.28138
240.143760.98560.164696
25-0.096585-0.66220.255552
26-0.136245-0.9340.177526
27-0.06426-0.44050.330781
28-0.019122-0.13110.44813
290.0029150.020.492071
30-0.0753-0.51620.304058
310.0581010.39830.3461
32-0.022595-0.15490.43878
330.0162730.11160.455823
340.0306990.21050.417109
350.026040.17850.42954
36-0.030572-0.20960.417446

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.612722 & -4.2006 & 5.9e-05 \tabularnewline
2 & -0.628326 & -4.3076 & 4.2e-05 \tabularnewline
3 & -0.252792 & -1.7331 & 0.044822 \tabularnewline
4 & -0.20626 & -1.414 & 0.081969 \tabularnewline
5 & -0.211163 & -1.4477 & 0.077175 \tabularnewline
6 & -0.106446 & -0.7298 & 0.234581 \tabularnewline
7 & 0.059085 & 0.4051 & 0.343632 \tabularnewline
8 & -0.152692 & -1.0468 & 0.150272 \tabularnewline
9 & -0.140472 & -0.963 & 0.170231 \tabularnewline
10 & -0.058237 & -0.3992 & 0.345759 \tabularnewline
11 & -0.06882 & -0.4718 & 0.319623 \tabularnewline
12 & 0.107819 & 0.7392 & 0.23174 \tabularnewline
13 & -0.226142 & -1.5504 & 0.063882 \tabularnewline
14 & 0.007604 & 0.0521 & 0.479324 \tabularnewline
15 & 0.012177 & 0.0835 & 0.466911 \tabularnewline
16 & 0.119625 & 0.8201 & 0.208147 \tabularnewline
17 & -0.043553 & -0.2986 & 0.383286 \tabularnewline
18 & 0.108044 & 0.7407 & 0.231276 \tabularnewline
19 & -0.128417 & -0.8804 & 0.191566 \tabularnewline
20 & -0.049141 & -0.3369 & 0.368847 \tabularnewline
21 & 0.058632 & 0.402 & 0.344768 \tabularnewline
22 & -0.057952 & -0.3973 & 0.346472 \tabularnewline
23 & 0.085022 & 0.5829 & 0.28138 \tabularnewline
24 & 0.14376 & 0.9856 & 0.164696 \tabularnewline
25 & -0.096585 & -0.6622 & 0.255552 \tabularnewline
26 & -0.136245 & -0.934 & 0.177526 \tabularnewline
27 & -0.06426 & -0.4405 & 0.330781 \tabularnewline
28 & -0.019122 & -0.1311 & 0.44813 \tabularnewline
29 & 0.002915 & 0.02 & 0.492071 \tabularnewline
30 & -0.0753 & -0.5162 & 0.304058 \tabularnewline
31 & 0.058101 & 0.3983 & 0.3461 \tabularnewline
32 & -0.022595 & -0.1549 & 0.43878 \tabularnewline
33 & 0.016273 & 0.1116 & 0.455823 \tabularnewline
34 & 0.030699 & 0.2105 & 0.417109 \tabularnewline
35 & 0.02604 & 0.1785 & 0.42954 \tabularnewline
36 & -0.030572 & -0.2096 & 0.417446 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63460&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.612722[/C][C]-4.2006[/C][C]5.9e-05[/C][/ROW]
[ROW][C]2[/C][C]-0.628326[/C][C]-4.3076[/C][C]4.2e-05[/C][/ROW]
[ROW][C]3[/C][C]-0.252792[/C][C]-1.7331[/C][C]0.044822[/C][/ROW]
[ROW][C]4[/C][C]-0.20626[/C][C]-1.414[/C][C]0.081969[/C][/ROW]
[ROW][C]5[/C][C]-0.211163[/C][C]-1.4477[/C][C]0.077175[/C][/ROW]
[ROW][C]6[/C][C]-0.106446[/C][C]-0.7298[/C][C]0.234581[/C][/ROW]
[ROW][C]7[/C][C]0.059085[/C][C]0.4051[/C][C]0.343632[/C][/ROW]
[ROW][C]8[/C][C]-0.152692[/C][C]-1.0468[/C][C]0.150272[/C][/ROW]
[ROW][C]9[/C][C]-0.140472[/C][C]-0.963[/C][C]0.170231[/C][/ROW]
[ROW][C]10[/C][C]-0.058237[/C][C]-0.3992[/C][C]0.345759[/C][/ROW]
[ROW][C]11[/C][C]-0.06882[/C][C]-0.4718[/C][C]0.319623[/C][/ROW]
[ROW][C]12[/C][C]0.107819[/C][C]0.7392[/C][C]0.23174[/C][/ROW]
[ROW][C]13[/C][C]-0.226142[/C][C]-1.5504[/C][C]0.063882[/C][/ROW]
[ROW][C]14[/C][C]0.007604[/C][C]0.0521[/C][C]0.479324[/C][/ROW]
[ROW][C]15[/C][C]0.012177[/C][C]0.0835[/C][C]0.466911[/C][/ROW]
[ROW][C]16[/C][C]0.119625[/C][C]0.8201[/C][C]0.208147[/C][/ROW]
[ROW][C]17[/C][C]-0.043553[/C][C]-0.2986[/C][C]0.383286[/C][/ROW]
[ROW][C]18[/C][C]0.108044[/C][C]0.7407[/C][C]0.231276[/C][/ROW]
[ROW][C]19[/C][C]-0.128417[/C][C]-0.8804[/C][C]0.191566[/C][/ROW]
[ROW][C]20[/C][C]-0.049141[/C][C]-0.3369[/C][C]0.368847[/C][/ROW]
[ROW][C]21[/C][C]0.058632[/C][C]0.402[/C][C]0.344768[/C][/ROW]
[ROW][C]22[/C][C]-0.057952[/C][C]-0.3973[/C][C]0.346472[/C][/ROW]
[ROW][C]23[/C][C]0.085022[/C][C]0.5829[/C][C]0.28138[/C][/ROW]
[ROW][C]24[/C][C]0.14376[/C][C]0.9856[/C][C]0.164696[/C][/ROW]
[ROW][C]25[/C][C]-0.096585[/C][C]-0.6622[/C][C]0.255552[/C][/ROW]
[ROW][C]26[/C][C]-0.136245[/C][C]-0.934[/C][C]0.177526[/C][/ROW]
[ROW][C]27[/C][C]-0.06426[/C][C]-0.4405[/C][C]0.330781[/C][/ROW]
[ROW][C]28[/C][C]-0.019122[/C][C]-0.1311[/C][C]0.44813[/C][/ROW]
[ROW][C]29[/C][C]0.002915[/C][C]0.02[/C][C]0.492071[/C][/ROW]
[ROW][C]30[/C][C]-0.0753[/C][C]-0.5162[/C][C]0.304058[/C][/ROW]
[ROW][C]31[/C][C]0.058101[/C][C]0.3983[/C][C]0.3461[/C][/ROW]
[ROW][C]32[/C][C]-0.022595[/C][C]-0.1549[/C][C]0.43878[/C][/ROW]
[ROW][C]33[/C][C]0.016273[/C][C]0.1116[/C][C]0.455823[/C][/ROW]
[ROW][C]34[/C][C]0.030699[/C][C]0.2105[/C][C]0.417109[/C][/ROW]
[ROW][C]35[/C][C]0.02604[/C][C]0.1785[/C][C]0.42954[/C][/ROW]
[ROW][C]36[/C][C]-0.030572[/C][C]-0.2096[/C][C]0.417446[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63460&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63460&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.612722-4.20065.9e-05
2-0.628326-4.30764.2e-05
3-0.252792-1.73310.044822
4-0.20626-1.4140.081969
5-0.211163-1.44770.077175
6-0.106446-0.72980.234581
70.0590850.40510.343632
8-0.152692-1.04680.150272
9-0.140472-0.9630.170231
10-0.058237-0.39920.345759
11-0.06882-0.47180.319623
120.1078190.73920.23174
13-0.226142-1.55040.063882
140.0076040.05210.479324
150.0121770.08350.466911
160.1196250.82010.208147
17-0.043553-0.29860.383286
180.1080440.74070.231276
19-0.128417-0.88040.191566
20-0.049141-0.33690.368847
210.0586320.4020.344768
22-0.057952-0.39730.346472
230.0850220.58290.28138
240.143760.98560.164696
25-0.096585-0.66220.255552
26-0.136245-0.9340.177526
27-0.06426-0.44050.330781
28-0.019122-0.13110.44813
290.0029150.020.492071
30-0.0753-0.51620.304058
310.0581010.39830.3461
32-0.022595-0.15490.43878
330.0162730.11160.455823
340.0306990.21050.417109
350.026040.17850.42954
36-0.030572-0.20960.417446



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