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 07:20:26 -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/t1259937942sypga62biuv8cic.htm/, Retrieved Sun, 28 Apr 2024 06:52:56 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63654, Retrieved Sun, 28 Apr 2024 06:52:56 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact109
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]
- R  D      [(Partial) Autocorrelation Function] [ACF met d=1 en D=1] [2009-12-04 14:20:26] [7d2d29a9bcbcfc0ea3924e19a42d8563] [Current]
Feedback Forum

Post a new message
Dataseries X:
104.08
103.86
107.47
111.1
117.33
119.04
123.68
125.9
124.54
119.39
118.8
114.81
117.9
120.53
125.15
126.49
131.85
127.4
131.08
122.37
124.34
119.61
119.97
116.46
117.03
120.96
124.71
127.08
131.91
137.69
142.46
144.32
138.06
124.45
126.71
121.83
122.51
125.48
127.77
128.03
132.84
133.41
139.99
138.53
136.12
124.75
122.88
121.46
118.4
122.45
128.94
133.25
137.94
140.04
130.74
131.55
129.47
125.45
127.87
124.68




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63654&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.099267-0.68050.249751
20.1170050.80210.213252
3-0.264116-1.81070.038292
4-0.227563-1.56010.062723
50.0491220.33680.368897
60.0616820.42290.33716
70.0116890.08010.468234
80.0962220.65970.256344
90.007150.0490.480555
10-0.256548-1.75880.04256
110.0665750.45640.325098
12-0.409922-2.81030.003597
130.2336481.60180.057949
14-0.022284-0.15280.439617
150.0603380.41370.340504
160.1277650.87590.192766
17-0.086348-0.5920.278354
18-0.001936-0.01330.494732
19-0.048751-0.33420.36985
200.008950.06140.475666
210.1489131.02090.156266
220.2440281.6730.050489
23-0.204703-1.40340.083539
240.0515220.35320.362752
25-0.292137-2.00280.025494
260.0638830.4380.33171
270.0662230.4540.325957
280.0193750.13280.447448
290.0738030.5060.307621
300.0104170.07140.471684
31-0.003387-0.02320.490787
32-0.066037-0.45270.326415
33-0.039793-0.27280.393097
34-0.099045-0.6790.250228
350.1620411.11090.136132
36-0.013352-0.09150.463727

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.099267 & -0.6805 & 0.249751 \tabularnewline
2 & 0.117005 & 0.8021 & 0.213252 \tabularnewline
3 & -0.264116 & -1.8107 & 0.038292 \tabularnewline
4 & -0.227563 & -1.5601 & 0.062723 \tabularnewline
5 & 0.049122 & 0.3368 & 0.368897 \tabularnewline
6 & 0.061682 & 0.4229 & 0.33716 \tabularnewline
7 & 0.011689 & 0.0801 & 0.468234 \tabularnewline
8 & 0.096222 & 0.6597 & 0.256344 \tabularnewline
9 & 0.00715 & 0.049 & 0.480555 \tabularnewline
10 & -0.256548 & -1.7588 & 0.04256 \tabularnewline
11 & 0.066575 & 0.4564 & 0.325098 \tabularnewline
12 & -0.409922 & -2.8103 & 0.003597 \tabularnewline
13 & 0.233648 & 1.6018 & 0.057949 \tabularnewline
14 & -0.022284 & -0.1528 & 0.439617 \tabularnewline
15 & 0.060338 & 0.4137 & 0.340504 \tabularnewline
16 & 0.127765 & 0.8759 & 0.192766 \tabularnewline
17 & -0.086348 & -0.592 & 0.278354 \tabularnewline
18 & -0.001936 & -0.0133 & 0.494732 \tabularnewline
19 & -0.048751 & -0.3342 & 0.36985 \tabularnewline
20 & 0.00895 & 0.0614 & 0.475666 \tabularnewline
21 & 0.148913 & 1.0209 & 0.156266 \tabularnewline
22 & 0.244028 & 1.673 & 0.050489 \tabularnewline
23 & -0.204703 & -1.4034 & 0.083539 \tabularnewline
24 & 0.051522 & 0.3532 & 0.362752 \tabularnewline
25 & -0.292137 & -2.0028 & 0.025494 \tabularnewline
26 & 0.063883 & 0.438 & 0.33171 \tabularnewline
27 & 0.066223 & 0.454 & 0.325957 \tabularnewline
28 & 0.019375 & 0.1328 & 0.447448 \tabularnewline
29 & 0.073803 & 0.506 & 0.307621 \tabularnewline
30 & 0.010417 & 0.0714 & 0.471684 \tabularnewline
31 & -0.003387 & -0.0232 & 0.490787 \tabularnewline
32 & -0.066037 & -0.4527 & 0.326415 \tabularnewline
33 & -0.039793 & -0.2728 & 0.393097 \tabularnewline
34 & -0.099045 & -0.679 & 0.250228 \tabularnewline
35 & 0.162041 & 1.1109 & 0.136132 \tabularnewline
36 & -0.013352 & -0.0915 & 0.463727 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63654&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.099267[/C][C]-0.6805[/C][C]0.249751[/C][/ROW]
[ROW][C]2[/C][C]0.117005[/C][C]0.8021[/C][C]0.213252[/C][/ROW]
[ROW][C]3[/C][C]-0.264116[/C][C]-1.8107[/C][C]0.038292[/C][/ROW]
[ROW][C]4[/C][C]-0.227563[/C][C]-1.5601[/C][C]0.062723[/C][/ROW]
[ROW][C]5[/C][C]0.049122[/C][C]0.3368[/C][C]0.368897[/C][/ROW]
[ROW][C]6[/C][C]0.061682[/C][C]0.4229[/C][C]0.33716[/C][/ROW]
[ROW][C]7[/C][C]0.011689[/C][C]0.0801[/C][C]0.468234[/C][/ROW]
[ROW][C]8[/C][C]0.096222[/C][C]0.6597[/C][C]0.256344[/C][/ROW]
[ROW][C]9[/C][C]0.00715[/C][C]0.049[/C][C]0.480555[/C][/ROW]
[ROW][C]10[/C][C]-0.256548[/C][C]-1.7588[/C][C]0.04256[/C][/ROW]
[ROW][C]11[/C][C]0.066575[/C][C]0.4564[/C][C]0.325098[/C][/ROW]
[ROW][C]12[/C][C]-0.409922[/C][C]-2.8103[/C][C]0.003597[/C][/ROW]
[ROW][C]13[/C][C]0.233648[/C][C]1.6018[/C][C]0.057949[/C][/ROW]
[ROW][C]14[/C][C]-0.022284[/C][C]-0.1528[/C][C]0.439617[/C][/ROW]
[ROW][C]15[/C][C]0.060338[/C][C]0.4137[/C][C]0.340504[/C][/ROW]
[ROW][C]16[/C][C]0.127765[/C][C]0.8759[/C][C]0.192766[/C][/ROW]
[ROW][C]17[/C][C]-0.086348[/C][C]-0.592[/C][C]0.278354[/C][/ROW]
[ROW][C]18[/C][C]-0.001936[/C][C]-0.0133[/C][C]0.494732[/C][/ROW]
[ROW][C]19[/C][C]-0.048751[/C][C]-0.3342[/C][C]0.36985[/C][/ROW]
[ROW][C]20[/C][C]0.00895[/C][C]0.0614[/C][C]0.475666[/C][/ROW]
[ROW][C]21[/C][C]0.148913[/C][C]1.0209[/C][C]0.156266[/C][/ROW]
[ROW][C]22[/C][C]0.244028[/C][C]1.673[/C][C]0.050489[/C][/ROW]
[ROW][C]23[/C][C]-0.204703[/C][C]-1.4034[/C][C]0.083539[/C][/ROW]
[ROW][C]24[/C][C]0.051522[/C][C]0.3532[/C][C]0.362752[/C][/ROW]
[ROW][C]25[/C][C]-0.292137[/C][C]-2.0028[/C][C]0.025494[/C][/ROW]
[ROW][C]26[/C][C]0.063883[/C][C]0.438[/C][C]0.33171[/C][/ROW]
[ROW][C]27[/C][C]0.066223[/C][C]0.454[/C][C]0.325957[/C][/ROW]
[ROW][C]28[/C][C]0.019375[/C][C]0.1328[/C][C]0.447448[/C][/ROW]
[ROW][C]29[/C][C]0.073803[/C][C]0.506[/C][C]0.307621[/C][/ROW]
[ROW][C]30[/C][C]0.010417[/C][C]0.0714[/C][C]0.471684[/C][/ROW]
[ROW][C]31[/C][C]-0.003387[/C][C]-0.0232[/C][C]0.490787[/C][/ROW]
[ROW][C]32[/C][C]-0.066037[/C][C]-0.4527[/C][C]0.326415[/C][/ROW]
[ROW][C]33[/C][C]-0.039793[/C][C]-0.2728[/C][C]0.393097[/C][/ROW]
[ROW][C]34[/C][C]-0.099045[/C][C]-0.679[/C][C]0.250228[/C][/ROW]
[ROW][C]35[/C][C]0.162041[/C][C]1.1109[/C][C]0.136132[/C][/ROW]
[ROW][C]36[/C][C]-0.013352[/C][C]-0.0915[/C][C]0.463727[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63654&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63654&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.099267-0.68050.249751
20.1170050.80210.213252
3-0.264116-1.81070.038292
4-0.227563-1.56010.062723
50.0491220.33680.368897
60.0616820.42290.33716
70.0116890.08010.468234
80.0962220.65970.256344
90.007150.0490.480555
10-0.256548-1.75880.04256
110.0665750.45640.325098
12-0.409922-2.81030.003597
130.2336481.60180.057949
14-0.022284-0.15280.439617
150.0603380.41370.340504
160.1277650.87590.192766
17-0.086348-0.5920.278354
18-0.001936-0.01330.494732
19-0.048751-0.33420.36985
200.008950.06140.475666
210.1489131.02090.156266
220.2440281.6730.050489
23-0.204703-1.40340.083539
240.0515220.35320.362752
25-0.292137-2.00280.025494
260.0638830.4380.33171
270.0662230.4540.325957
280.0193750.13280.447448
290.0738030.5060.307621
300.0104170.07140.471684
31-0.003387-0.02320.490787
32-0.066037-0.45270.326415
33-0.039793-0.27280.393097
34-0.099045-0.6790.250228
350.1620411.11090.136132
36-0.013352-0.09150.463727







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.099267-0.68050.249751
20.1082180.74190.230919
3-0.248343-1.70260.047629
4-0.303406-2.08010.0215
50.0584880.4010.345128
60.0779620.53450.297765
7-0.15301-1.0490.149774
80.0321150.22020.413347
90.1344520.92180.180682
10-0.342485-2.3480.011568
11-0.004394-0.03010.488047
12-0.314877-2.15870.018006
130.0188520.12920.448858
14-0.076454-0.52410.301321
15-0.176248-1.20830.116489
160.0493850.33860.368222
17-0.02991-0.20510.419209
18-0.064315-0.44090.330645
19-0.12017-0.82380.207095
200.0399020.27360.392812
210.18371.25940.107056
220.0570650.39120.348701
23-0.212897-1.45950.075534
24-0.085316-0.58490.280707
25-0.008537-0.05850.476789
26-0.022411-0.15360.439275
27-0.122331-0.83870.202953
280.0570040.39080.348855
290.0148320.10170.459721
300.0463080.31750.376145
310.080280.55040.292335
320.0024690.01690.493282
330.0735960.50450.308117
340.0064010.04390.482592
35-0.082839-0.56790.286397
360.0738950.50660.307403

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.099267 & -0.6805 & 0.249751 \tabularnewline
2 & 0.108218 & 0.7419 & 0.230919 \tabularnewline
3 & -0.248343 & -1.7026 & 0.047629 \tabularnewline
4 & -0.303406 & -2.0801 & 0.0215 \tabularnewline
5 & 0.058488 & 0.401 & 0.345128 \tabularnewline
6 & 0.077962 & 0.5345 & 0.297765 \tabularnewline
7 & -0.15301 & -1.049 & 0.149774 \tabularnewline
8 & 0.032115 & 0.2202 & 0.413347 \tabularnewline
9 & 0.134452 & 0.9218 & 0.180682 \tabularnewline
10 & -0.342485 & -2.348 & 0.011568 \tabularnewline
11 & -0.004394 & -0.0301 & 0.488047 \tabularnewline
12 & -0.314877 & -2.1587 & 0.018006 \tabularnewline
13 & 0.018852 & 0.1292 & 0.448858 \tabularnewline
14 & -0.076454 & -0.5241 & 0.301321 \tabularnewline
15 & -0.176248 & -1.2083 & 0.116489 \tabularnewline
16 & 0.049385 & 0.3386 & 0.368222 \tabularnewline
17 & -0.02991 & -0.2051 & 0.419209 \tabularnewline
18 & -0.064315 & -0.4409 & 0.330645 \tabularnewline
19 & -0.12017 & -0.8238 & 0.207095 \tabularnewline
20 & 0.039902 & 0.2736 & 0.392812 \tabularnewline
21 & 0.1837 & 1.2594 & 0.107056 \tabularnewline
22 & 0.057065 & 0.3912 & 0.348701 \tabularnewline
23 & -0.212897 & -1.4595 & 0.075534 \tabularnewline
24 & -0.085316 & -0.5849 & 0.280707 \tabularnewline
25 & -0.008537 & -0.0585 & 0.476789 \tabularnewline
26 & -0.022411 & -0.1536 & 0.439275 \tabularnewline
27 & -0.122331 & -0.8387 & 0.202953 \tabularnewline
28 & 0.057004 & 0.3908 & 0.348855 \tabularnewline
29 & 0.014832 & 0.1017 & 0.459721 \tabularnewline
30 & 0.046308 & 0.3175 & 0.376145 \tabularnewline
31 & 0.08028 & 0.5504 & 0.292335 \tabularnewline
32 & 0.002469 & 0.0169 & 0.493282 \tabularnewline
33 & 0.073596 & 0.5045 & 0.308117 \tabularnewline
34 & 0.006401 & 0.0439 & 0.482592 \tabularnewline
35 & -0.082839 & -0.5679 & 0.286397 \tabularnewline
36 & 0.073895 & 0.5066 & 0.307403 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63654&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.099267[/C][C]-0.6805[/C][C]0.249751[/C][/ROW]
[ROW][C]2[/C][C]0.108218[/C][C]0.7419[/C][C]0.230919[/C][/ROW]
[ROW][C]3[/C][C]-0.248343[/C][C]-1.7026[/C][C]0.047629[/C][/ROW]
[ROW][C]4[/C][C]-0.303406[/C][C]-2.0801[/C][C]0.0215[/C][/ROW]
[ROW][C]5[/C][C]0.058488[/C][C]0.401[/C][C]0.345128[/C][/ROW]
[ROW][C]6[/C][C]0.077962[/C][C]0.5345[/C][C]0.297765[/C][/ROW]
[ROW][C]7[/C][C]-0.15301[/C][C]-1.049[/C][C]0.149774[/C][/ROW]
[ROW][C]8[/C][C]0.032115[/C][C]0.2202[/C][C]0.413347[/C][/ROW]
[ROW][C]9[/C][C]0.134452[/C][C]0.9218[/C][C]0.180682[/C][/ROW]
[ROW][C]10[/C][C]-0.342485[/C][C]-2.348[/C][C]0.011568[/C][/ROW]
[ROW][C]11[/C][C]-0.004394[/C][C]-0.0301[/C][C]0.488047[/C][/ROW]
[ROW][C]12[/C][C]-0.314877[/C][C]-2.1587[/C][C]0.018006[/C][/ROW]
[ROW][C]13[/C][C]0.018852[/C][C]0.1292[/C][C]0.448858[/C][/ROW]
[ROW][C]14[/C][C]-0.076454[/C][C]-0.5241[/C][C]0.301321[/C][/ROW]
[ROW][C]15[/C][C]-0.176248[/C][C]-1.2083[/C][C]0.116489[/C][/ROW]
[ROW][C]16[/C][C]0.049385[/C][C]0.3386[/C][C]0.368222[/C][/ROW]
[ROW][C]17[/C][C]-0.02991[/C][C]-0.2051[/C][C]0.419209[/C][/ROW]
[ROW][C]18[/C][C]-0.064315[/C][C]-0.4409[/C][C]0.330645[/C][/ROW]
[ROW][C]19[/C][C]-0.12017[/C][C]-0.8238[/C][C]0.207095[/C][/ROW]
[ROW][C]20[/C][C]0.039902[/C][C]0.2736[/C][C]0.392812[/C][/ROW]
[ROW][C]21[/C][C]0.1837[/C][C]1.2594[/C][C]0.107056[/C][/ROW]
[ROW][C]22[/C][C]0.057065[/C][C]0.3912[/C][C]0.348701[/C][/ROW]
[ROW][C]23[/C][C]-0.212897[/C][C]-1.4595[/C][C]0.075534[/C][/ROW]
[ROW][C]24[/C][C]-0.085316[/C][C]-0.5849[/C][C]0.280707[/C][/ROW]
[ROW][C]25[/C][C]-0.008537[/C][C]-0.0585[/C][C]0.476789[/C][/ROW]
[ROW][C]26[/C][C]-0.022411[/C][C]-0.1536[/C][C]0.439275[/C][/ROW]
[ROW][C]27[/C][C]-0.122331[/C][C]-0.8387[/C][C]0.202953[/C][/ROW]
[ROW][C]28[/C][C]0.057004[/C][C]0.3908[/C][C]0.348855[/C][/ROW]
[ROW][C]29[/C][C]0.014832[/C][C]0.1017[/C][C]0.459721[/C][/ROW]
[ROW][C]30[/C][C]0.046308[/C][C]0.3175[/C][C]0.376145[/C][/ROW]
[ROW][C]31[/C][C]0.08028[/C][C]0.5504[/C][C]0.292335[/C][/ROW]
[ROW][C]32[/C][C]0.002469[/C][C]0.0169[/C][C]0.493282[/C][/ROW]
[ROW][C]33[/C][C]0.073596[/C][C]0.5045[/C][C]0.308117[/C][/ROW]
[ROW][C]34[/C][C]0.006401[/C][C]0.0439[/C][C]0.482592[/C][/ROW]
[ROW][C]35[/C][C]-0.082839[/C][C]-0.5679[/C][C]0.286397[/C][/ROW]
[ROW][C]36[/C][C]0.073895[/C][C]0.5066[/C][C]0.307403[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63654&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63654&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.099267-0.68050.249751
20.1082180.74190.230919
3-0.248343-1.70260.047629
4-0.303406-2.08010.0215
50.0584880.4010.345128
60.0779620.53450.297765
7-0.15301-1.0490.149774
80.0321150.22020.413347
90.1344520.92180.180682
10-0.342485-2.3480.011568
11-0.004394-0.03010.488047
12-0.314877-2.15870.018006
130.0188520.12920.448858
14-0.076454-0.52410.301321
15-0.176248-1.20830.116489
160.0493850.33860.368222
17-0.02991-0.20510.419209
18-0.064315-0.44090.330645
19-0.12017-0.82380.207095
200.0399020.27360.392812
210.18371.25940.107056
220.0570650.39120.348701
23-0.212897-1.45950.075534
24-0.085316-0.58490.280707
25-0.008537-0.05850.476789
26-0.022411-0.15360.439275
27-0.122331-0.83870.202953
280.0570040.39080.348855
290.0148320.10170.459721
300.0463080.31750.376145
310.080280.55040.292335
320.0024690.01690.493282
330.0735960.50450.308117
340.0064010.04390.482592
35-0.082839-0.56790.286397
360.0738950.50660.307403



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