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 computationThu, 26 Nov 2009 04:21:30 -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/Nov/26/t1259234560hvuburopr2c4qb4.htm/, Retrieved Mon, 29 Apr 2024 03:26:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59834, Retrieved Mon, 29 Apr 2024 03:26:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact118
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-12 13:32:37] [76963dc1903f0f612b6153510a3818cf]
- R  D  [Univariate Explorative Data Analysis] [Run Sequence gebo...] [2008-12-17 12:14:40] [76963dc1903f0f612b6153510a3818cf]
-         [Univariate Explorative Data Analysis] [Run Sequence Plot...] [2008-12-22 18:19:51] [1ce0d16c8f4225c977b42c8fa93bc163]
- RMP       [(Partial) Autocorrelation Function] [Identifying Integ...] [2009-11-22 12:19:56] [b98453cac15ba1066b407e146608df68]
- R  D          [(Partial) Autocorrelation Function] [ACF Werkloosheid ...] [2009-11-26 11:21:30] [154177ed6b2613a730375f7d341441cf] [Current]
Feedback Forum

Post a new message
Dataseries X:
136
133
126
120
114
116
153
162
161
149
139
135
130
127
122
117
112
113
149
157
157
147
137
132
125
123
117
114
111
112
144
150
149
134
123
116
117
111
105
102
95
93
124
130
124
115
106
105
105
101
95
93
84
87
116
120
117
109
105
107
109




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59834&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
10.860166.02110
20.740525.18362e-06
30.5957054.16996.2e-05
40.4991883.49430.000509
50.4021442.8150.003503
60.3665612.56590.0067
70.3250892.27560.013639
80.2440341.70820.04696
90.20181.41260.082047
100.1175860.82310.20722
110.0445250.31170.378306
12-0.110047-0.77030.222402
13-0.213688-1.49580.070558
14-0.340161-2.38110.010595
15-0.416467-2.91530.002673
16-0.478032-3.34620.00079
17-0.448652-3.14060.001429
18-0.449765-3.14840.001397
19-0.427326-2.99130.00217
20-0.37478-2.62350.005785
21-0.348226-2.43760.00923
22-0.330526-2.31370.012461
23-0.339053-2.37340.010796
24-0.319483-2.23640.014956
25-0.341087-2.38760.01043
26-0.296246-2.07370.021691
27-0.249491-1.74640.043501
28-0.182826-1.27980.103324
29-0.125735-0.88010.191538
30-0.06108-0.42760.335422
31-0.003366-0.02360.490649
320.007630.05340.478811
330.015950.11170.455778
340.0217780.15240.439732
350.0486650.34070.36741
360.0627660.43940.331166

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.86016 & 6.0211 & 0 \tabularnewline
2 & 0.74052 & 5.1836 & 2e-06 \tabularnewline
3 & 0.595705 & 4.1699 & 6.2e-05 \tabularnewline
4 & 0.499188 & 3.4943 & 0.000509 \tabularnewline
5 & 0.402144 & 2.815 & 0.003503 \tabularnewline
6 & 0.366561 & 2.5659 & 0.0067 \tabularnewline
7 & 0.325089 & 2.2756 & 0.013639 \tabularnewline
8 & 0.244034 & 1.7082 & 0.04696 \tabularnewline
9 & 0.2018 & 1.4126 & 0.082047 \tabularnewline
10 & 0.117586 & 0.8231 & 0.20722 \tabularnewline
11 & 0.044525 & 0.3117 & 0.378306 \tabularnewline
12 & -0.110047 & -0.7703 & 0.222402 \tabularnewline
13 & -0.213688 & -1.4958 & 0.070558 \tabularnewline
14 & -0.340161 & -2.3811 & 0.010595 \tabularnewline
15 & -0.416467 & -2.9153 & 0.002673 \tabularnewline
16 & -0.478032 & -3.3462 & 0.00079 \tabularnewline
17 & -0.448652 & -3.1406 & 0.001429 \tabularnewline
18 & -0.449765 & -3.1484 & 0.001397 \tabularnewline
19 & -0.427326 & -2.9913 & 0.00217 \tabularnewline
20 & -0.37478 & -2.6235 & 0.005785 \tabularnewline
21 & -0.348226 & -2.4376 & 0.00923 \tabularnewline
22 & -0.330526 & -2.3137 & 0.012461 \tabularnewline
23 & -0.339053 & -2.3734 & 0.010796 \tabularnewline
24 & -0.319483 & -2.2364 & 0.014956 \tabularnewline
25 & -0.341087 & -2.3876 & 0.01043 \tabularnewline
26 & -0.296246 & -2.0737 & 0.021691 \tabularnewline
27 & -0.249491 & -1.7464 & 0.043501 \tabularnewline
28 & -0.182826 & -1.2798 & 0.103324 \tabularnewline
29 & -0.125735 & -0.8801 & 0.191538 \tabularnewline
30 & -0.06108 & -0.4276 & 0.335422 \tabularnewline
31 & -0.003366 & -0.0236 & 0.490649 \tabularnewline
32 & 0.00763 & 0.0534 & 0.478811 \tabularnewline
33 & 0.01595 & 0.1117 & 0.455778 \tabularnewline
34 & 0.021778 & 0.1524 & 0.439732 \tabularnewline
35 & 0.048665 & 0.3407 & 0.36741 \tabularnewline
36 & 0.062766 & 0.4394 & 0.331166 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59834&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.86016[/C][C]6.0211[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.74052[/C][C]5.1836[/C][C]2e-06[/C][/ROW]
[ROW][C]3[/C][C]0.595705[/C][C]4.1699[/C][C]6.2e-05[/C][/ROW]
[ROW][C]4[/C][C]0.499188[/C][C]3.4943[/C][C]0.000509[/C][/ROW]
[ROW][C]5[/C][C]0.402144[/C][C]2.815[/C][C]0.003503[/C][/ROW]
[ROW][C]6[/C][C]0.366561[/C][C]2.5659[/C][C]0.0067[/C][/ROW]
[ROW][C]7[/C][C]0.325089[/C][C]2.2756[/C][C]0.013639[/C][/ROW]
[ROW][C]8[/C][C]0.244034[/C][C]1.7082[/C][C]0.04696[/C][/ROW]
[ROW][C]9[/C][C]0.2018[/C][C]1.4126[/C][C]0.082047[/C][/ROW]
[ROW][C]10[/C][C]0.117586[/C][C]0.8231[/C][C]0.20722[/C][/ROW]
[ROW][C]11[/C][C]0.044525[/C][C]0.3117[/C][C]0.378306[/C][/ROW]
[ROW][C]12[/C][C]-0.110047[/C][C]-0.7703[/C][C]0.222402[/C][/ROW]
[ROW][C]13[/C][C]-0.213688[/C][C]-1.4958[/C][C]0.070558[/C][/ROW]
[ROW][C]14[/C][C]-0.340161[/C][C]-2.3811[/C][C]0.010595[/C][/ROW]
[ROW][C]15[/C][C]-0.416467[/C][C]-2.9153[/C][C]0.002673[/C][/ROW]
[ROW][C]16[/C][C]-0.478032[/C][C]-3.3462[/C][C]0.00079[/C][/ROW]
[ROW][C]17[/C][C]-0.448652[/C][C]-3.1406[/C][C]0.001429[/C][/ROW]
[ROW][C]18[/C][C]-0.449765[/C][C]-3.1484[/C][C]0.001397[/C][/ROW]
[ROW][C]19[/C][C]-0.427326[/C][C]-2.9913[/C][C]0.00217[/C][/ROW]
[ROW][C]20[/C][C]-0.37478[/C][C]-2.6235[/C][C]0.005785[/C][/ROW]
[ROW][C]21[/C][C]-0.348226[/C][C]-2.4376[/C][C]0.00923[/C][/ROW]
[ROW][C]22[/C][C]-0.330526[/C][C]-2.3137[/C][C]0.012461[/C][/ROW]
[ROW][C]23[/C][C]-0.339053[/C][C]-2.3734[/C][C]0.010796[/C][/ROW]
[ROW][C]24[/C][C]-0.319483[/C][C]-2.2364[/C][C]0.014956[/C][/ROW]
[ROW][C]25[/C][C]-0.341087[/C][C]-2.3876[/C][C]0.01043[/C][/ROW]
[ROW][C]26[/C][C]-0.296246[/C][C]-2.0737[/C][C]0.021691[/C][/ROW]
[ROW][C]27[/C][C]-0.249491[/C][C]-1.7464[/C][C]0.043501[/C][/ROW]
[ROW][C]28[/C][C]-0.182826[/C][C]-1.2798[/C][C]0.103324[/C][/ROW]
[ROW][C]29[/C][C]-0.125735[/C][C]-0.8801[/C][C]0.191538[/C][/ROW]
[ROW][C]30[/C][C]-0.06108[/C][C]-0.4276[/C][C]0.335422[/C][/ROW]
[ROW][C]31[/C][C]-0.003366[/C][C]-0.0236[/C][C]0.490649[/C][/ROW]
[ROW][C]32[/C][C]0.00763[/C][C]0.0534[/C][C]0.478811[/C][/ROW]
[ROW][C]33[/C][C]0.01595[/C][C]0.1117[/C][C]0.455778[/C][/ROW]
[ROW][C]34[/C][C]0.021778[/C][C]0.1524[/C][C]0.439732[/C][/ROW]
[ROW][C]35[/C][C]0.048665[/C][C]0.3407[/C][C]0.36741[/C][/ROW]
[ROW][C]36[/C][C]0.062766[/C][C]0.4394[/C][C]0.331166[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59834&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59834&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
10.860166.02110
20.740525.18362e-06
30.5957054.16996.2e-05
40.4991883.49430.000509
50.4021442.8150.003503
60.3665612.56590.0067
70.3250892.27560.013639
80.2440341.70820.04696
90.20181.41260.082047
100.1175860.82310.20722
110.0445250.31170.378306
12-0.110047-0.77030.222402
13-0.213688-1.49580.070558
14-0.340161-2.38110.010595
15-0.416467-2.91530.002673
16-0.478032-3.34620.00079
17-0.448652-3.14060.001429
18-0.449765-3.14840.001397
19-0.427326-2.99130.00217
20-0.37478-2.62350.005785
21-0.348226-2.43760.00923
22-0.330526-2.31370.012461
23-0.339053-2.37340.010796
24-0.319483-2.23640.014956
25-0.341087-2.38760.01043
26-0.296246-2.07370.021691
27-0.249491-1.74640.043501
28-0.182826-1.27980.103324
29-0.125735-0.88010.191538
30-0.06108-0.42760.335422
31-0.003366-0.02360.490649
320.007630.05340.478811
330.015950.11170.455778
340.0217780.15240.439732
350.0486650.34070.36741
360.0627660.43940.331166







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.860166.02110
20.002480.01740.493111
3-0.160747-1.12520.132987
40.0872720.61090.272042
5-0.040836-0.28590.388097
60.1453561.01750.156958
7-0.015536-0.10880.45692
8-0.232877-1.63010.054743
90.1496521.04760.14999
10-0.183383-1.28370.102646
11-0.064287-0.450.327344
12-0.352065-2.46450.008638
13-0.057587-0.40310.34431
14-0.094438-0.66110.255834
15-0.09953-0.69670.244638
16-0.066799-0.46760.321074
170.2098761.46910.074094
18-0.153491-1.07440.143945
190.1517521.06230.146662
200.118710.8310.205011
21-0.002197-0.01540.493896
220.022530.15770.437667
23-0.078719-0.5510.292057
24-0.047169-0.33020.371333
25-0.056648-0.39650.346715
26-0.077242-0.54070.295583
27-0.000966-0.00680.497315
28-0.204264-1.42980.079553
290.0743440.52040.302561
30-0.082451-0.57720.283238
310.0013440.00940.496266
32-0.092053-0.64440.261169
33-0.007813-0.05470.478305
340.0865350.60570.27374
350.1423220.99630.162011
360.0273850.19170.424387

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.86016 & 6.0211 & 0 \tabularnewline
2 & 0.00248 & 0.0174 & 0.493111 \tabularnewline
3 & -0.160747 & -1.1252 & 0.132987 \tabularnewline
4 & 0.087272 & 0.6109 & 0.272042 \tabularnewline
5 & -0.040836 & -0.2859 & 0.388097 \tabularnewline
6 & 0.145356 & 1.0175 & 0.156958 \tabularnewline
7 & -0.015536 & -0.1088 & 0.45692 \tabularnewline
8 & -0.232877 & -1.6301 & 0.054743 \tabularnewline
9 & 0.149652 & 1.0476 & 0.14999 \tabularnewline
10 & -0.183383 & -1.2837 & 0.102646 \tabularnewline
11 & -0.064287 & -0.45 & 0.327344 \tabularnewline
12 & -0.352065 & -2.4645 & 0.008638 \tabularnewline
13 & -0.057587 & -0.4031 & 0.34431 \tabularnewline
14 & -0.094438 & -0.6611 & 0.255834 \tabularnewline
15 & -0.09953 & -0.6967 & 0.244638 \tabularnewline
16 & -0.066799 & -0.4676 & 0.321074 \tabularnewline
17 & 0.209876 & 1.4691 & 0.074094 \tabularnewline
18 & -0.153491 & -1.0744 & 0.143945 \tabularnewline
19 & 0.151752 & 1.0623 & 0.146662 \tabularnewline
20 & 0.11871 & 0.831 & 0.205011 \tabularnewline
21 & -0.002197 & -0.0154 & 0.493896 \tabularnewline
22 & 0.02253 & 0.1577 & 0.437667 \tabularnewline
23 & -0.078719 & -0.551 & 0.292057 \tabularnewline
24 & -0.047169 & -0.3302 & 0.371333 \tabularnewline
25 & -0.056648 & -0.3965 & 0.346715 \tabularnewline
26 & -0.077242 & -0.5407 & 0.295583 \tabularnewline
27 & -0.000966 & -0.0068 & 0.497315 \tabularnewline
28 & -0.204264 & -1.4298 & 0.079553 \tabularnewline
29 & 0.074344 & 0.5204 & 0.302561 \tabularnewline
30 & -0.082451 & -0.5772 & 0.283238 \tabularnewline
31 & 0.001344 & 0.0094 & 0.496266 \tabularnewline
32 & -0.092053 & -0.6444 & 0.261169 \tabularnewline
33 & -0.007813 & -0.0547 & 0.478305 \tabularnewline
34 & 0.086535 & 0.6057 & 0.27374 \tabularnewline
35 & 0.142322 & 0.9963 & 0.162011 \tabularnewline
36 & 0.027385 & 0.1917 & 0.424387 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59834&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.86016[/C][C]6.0211[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.00248[/C][C]0.0174[/C][C]0.493111[/C][/ROW]
[ROW][C]3[/C][C]-0.160747[/C][C]-1.1252[/C][C]0.132987[/C][/ROW]
[ROW][C]4[/C][C]0.087272[/C][C]0.6109[/C][C]0.272042[/C][/ROW]
[ROW][C]5[/C][C]-0.040836[/C][C]-0.2859[/C][C]0.388097[/C][/ROW]
[ROW][C]6[/C][C]0.145356[/C][C]1.0175[/C][C]0.156958[/C][/ROW]
[ROW][C]7[/C][C]-0.015536[/C][C]-0.1088[/C][C]0.45692[/C][/ROW]
[ROW][C]8[/C][C]-0.232877[/C][C]-1.6301[/C][C]0.054743[/C][/ROW]
[ROW][C]9[/C][C]0.149652[/C][C]1.0476[/C][C]0.14999[/C][/ROW]
[ROW][C]10[/C][C]-0.183383[/C][C]-1.2837[/C][C]0.102646[/C][/ROW]
[ROW][C]11[/C][C]-0.064287[/C][C]-0.45[/C][C]0.327344[/C][/ROW]
[ROW][C]12[/C][C]-0.352065[/C][C]-2.4645[/C][C]0.008638[/C][/ROW]
[ROW][C]13[/C][C]-0.057587[/C][C]-0.4031[/C][C]0.34431[/C][/ROW]
[ROW][C]14[/C][C]-0.094438[/C][C]-0.6611[/C][C]0.255834[/C][/ROW]
[ROW][C]15[/C][C]-0.09953[/C][C]-0.6967[/C][C]0.244638[/C][/ROW]
[ROW][C]16[/C][C]-0.066799[/C][C]-0.4676[/C][C]0.321074[/C][/ROW]
[ROW][C]17[/C][C]0.209876[/C][C]1.4691[/C][C]0.074094[/C][/ROW]
[ROW][C]18[/C][C]-0.153491[/C][C]-1.0744[/C][C]0.143945[/C][/ROW]
[ROW][C]19[/C][C]0.151752[/C][C]1.0623[/C][C]0.146662[/C][/ROW]
[ROW][C]20[/C][C]0.11871[/C][C]0.831[/C][C]0.205011[/C][/ROW]
[ROW][C]21[/C][C]-0.002197[/C][C]-0.0154[/C][C]0.493896[/C][/ROW]
[ROW][C]22[/C][C]0.02253[/C][C]0.1577[/C][C]0.437667[/C][/ROW]
[ROW][C]23[/C][C]-0.078719[/C][C]-0.551[/C][C]0.292057[/C][/ROW]
[ROW][C]24[/C][C]-0.047169[/C][C]-0.3302[/C][C]0.371333[/C][/ROW]
[ROW][C]25[/C][C]-0.056648[/C][C]-0.3965[/C][C]0.346715[/C][/ROW]
[ROW][C]26[/C][C]-0.077242[/C][C]-0.5407[/C][C]0.295583[/C][/ROW]
[ROW][C]27[/C][C]-0.000966[/C][C]-0.0068[/C][C]0.497315[/C][/ROW]
[ROW][C]28[/C][C]-0.204264[/C][C]-1.4298[/C][C]0.079553[/C][/ROW]
[ROW][C]29[/C][C]0.074344[/C][C]0.5204[/C][C]0.302561[/C][/ROW]
[ROW][C]30[/C][C]-0.082451[/C][C]-0.5772[/C][C]0.283238[/C][/ROW]
[ROW][C]31[/C][C]0.001344[/C][C]0.0094[/C][C]0.496266[/C][/ROW]
[ROW][C]32[/C][C]-0.092053[/C][C]-0.6444[/C][C]0.261169[/C][/ROW]
[ROW][C]33[/C][C]-0.007813[/C][C]-0.0547[/C][C]0.478305[/C][/ROW]
[ROW][C]34[/C][C]0.086535[/C][C]0.6057[/C][C]0.27374[/C][/ROW]
[ROW][C]35[/C][C]0.142322[/C][C]0.9963[/C][C]0.162011[/C][/ROW]
[ROW][C]36[/C][C]0.027385[/C][C]0.1917[/C][C]0.424387[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59834&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59834&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
10.860166.02110
20.002480.01740.493111
3-0.160747-1.12520.132987
40.0872720.61090.272042
5-0.040836-0.28590.388097
60.1453561.01750.156958
7-0.015536-0.10880.45692
8-0.232877-1.63010.054743
90.1496521.04760.14999
10-0.183383-1.28370.102646
11-0.064287-0.450.327344
12-0.352065-2.46450.008638
13-0.057587-0.40310.34431
14-0.094438-0.66110.255834
15-0.09953-0.69670.244638
16-0.066799-0.46760.321074
170.2098761.46910.074094
18-0.153491-1.07440.143945
190.1517521.06230.146662
200.118710.8310.205011
21-0.002197-0.01540.493896
220.022530.15770.437667
23-0.078719-0.5510.292057
24-0.047169-0.33020.371333
25-0.056648-0.39650.346715
26-0.077242-0.54070.295583
27-0.000966-0.00680.497315
28-0.204264-1.42980.079553
290.0743440.52040.302561
30-0.082451-0.57720.283238
310.0013440.00940.496266
32-0.092053-0.64440.261169
33-0.007813-0.05470.478305
340.0865350.60570.27374
350.1423220.99630.162011
360.0273850.19170.424387



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