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, 28 Nov 2008 03:31:19 -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/2008/Nov/28/t1227868318rfo391icgl2q8pe.htm/, Retrieved Sun, 19 May 2024 11:10:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25990, Retrieved Sun, 19 May 2024 11:10:06 +0000
QR Codes:

Original text written by user:d=1 D=1
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact196
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Law of Averages] [Random Walk Simul...] [2008-11-25 18:40:39] [b98453cac15ba1066b407e146608df68]
F       [Law of Averages] [Random Walk Simul...] [2008-11-27 19:45:04] [58bf45a666dc5198906262e8815a9722]
F RMPD    [Standard Deviation-Mean Plot] [Standard Deviatio...] [2008-11-27 22:08:29] [58bf45a666dc5198906262e8815a9722]
- RMP       [(Partial) Autocorrelation Function] [(Partial) Autocor...] [2008-11-27 22:25:58] [58bf45a666dc5198906262e8815a9722]
-   PD          [(Partial) Autocorrelation Function] [(Partial) Autocor...] [2008-11-28 10:31:19] [63db34dadd44fb018112addcdefe949f] [Current]
Feedback Forum

Post a new message
Dataseries X:
101
88
108
116
104
110
105
107
124
109
102
125
102
101
116
114
115
119
108
110
120
113
111
121
99
104
117
108
122
122
111
111
131
108
118
119
104
105
118
124
123
114
119
116
129
112
123
124
117
110
118
135
127
117
137
130
132
142
122
126




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25990&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.533999-3.66090.000318
2-0.125472-0.86020.197026
30.3176412.17760.017243
4-0.109517-0.75080.228254
5-0.164195-1.12570.133012
60.2449271.67910.049881
7-0.195505-1.34030.093293
80.0135980.09320.463061
90.1754241.20260.117569
10-0.146056-1.00130.160902
11-0.016349-0.11210.455618
120.1418180.97230.167951
13-0.175819-1.20540.11705
140.0060140.04120.483645
150.1922671.31810.096927
16-0.210562-1.44350.07775
170.0230830.15830.437468
180.2094091.43560.078864
19-0.202936-1.39130.085349
200.050610.3470.365083
210.0489980.33590.369215
22-0.150268-1.03020.154097
230.2742311.880.033155
24-0.300556-2.06050.022454
250.1096770.75190.227927
260.1243960.85280.199043
27-0.063674-0.43650.332226
28-0.166168-1.13920.130199
290.2338271.6030.057813
30-0.117723-0.80710.211845
31-0.058882-0.40370.34414
320.1159480.79490.215334
33-0.028722-0.19690.422373
34-0.112714-0.77270.221777
350.1667991.14350.129308
36-0.052372-0.3590.360585

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.533999 & -3.6609 & 0.000318 \tabularnewline
2 & -0.125472 & -0.8602 & 0.197026 \tabularnewline
3 & 0.317641 & 2.1776 & 0.017243 \tabularnewline
4 & -0.109517 & -0.7508 & 0.228254 \tabularnewline
5 & -0.164195 & -1.1257 & 0.133012 \tabularnewline
6 & 0.244927 & 1.6791 & 0.049881 \tabularnewline
7 & -0.195505 & -1.3403 & 0.093293 \tabularnewline
8 & 0.013598 & 0.0932 & 0.463061 \tabularnewline
9 & 0.175424 & 1.2026 & 0.117569 \tabularnewline
10 & -0.146056 & -1.0013 & 0.160902 \tabularnewline
11 & -0.016349 & -0.1121 & 0.455618 \tabularnewline
12 & 0.141818 & 0.9723 & 0.167951 \tabularnewline
13 & -0.175819 & -1.2054 & 0.11705 \tabularnewline
14 & 0.006014 & 0.0412 & 0.483645 \tabularnewline
15 & 0.192267 & 1.3181 & 0.096927 \tabularnewline
16 & -0.210562 & -1.4435 & 0.07775 \tabularnewline
17 & 0.023083 & 0.1583 & 0.437468 \tabularnewline
18 & 0.209409 & 1.4356 & 0.078864 \tabularnewline
19 & -0.202936 & -1.3913 & 0.085349 \tabularnewline
20 & 0.05061 & 0.347 & 0.365083 \tabularnewline
21 & 0.048998 & 0.3359 & 0.369215 \tabularnewline
22 & -0.150268 & -1.0302 & 0.154097 \tabularnewline
23 & 0.274231 & 1.88 & 0.033155 \tabularnewline
24 & -0.300556 & -2.0605 & 0.022454 \tabularnewline
25 & 0.109677 & 0.7519 & 0.227927 \tabularnewline
26 & 0.124396 & 0.8528 & 0.199043 \tabularnewline
27 & -0.063674 & -0.4365 & 0.332226 \tabularnewline
28 & -0.166168 & -1.1392 & 0.130199 \tabularnewline
29 & 0.233827 & 1.603 & 0.057813 \tabularnewline
30 & -0.117723 & -0.8071 & 0.211845 \tabularnewline
31 & -0.058882 & -0.4037 & 0.34414 \tabularnewline
32 & 0.115948 & 0.7949 & 0.215334 \tabularnewline
33 & -0.028722 & -0.1969 & 0.422373 \tabularnewline
34 & -0.112714 & -0.7727 & 0.221777 \tabularnewline
35 & 0.166799 & 1.1435 & 0.129308 \tabularnewline
36 & -0.052372 & -0.359 & 0.360585 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25990&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.533999[/C][C]-3.6609[/C][C]0.000318[/C][/ROW]
[ROW][C]2[/C][C]-0.125472[/C][C]-0.8602[/C][C]0.197026[/C][/ROW]
[ROW][C]3[/C][C]0.317641[/C][C]2.1776[/C][C]0.017243[/C][/ROW]
[ROW][C]4[/C][C]-0.109517[/C][C]-0.7508[/C][C]0.228254[/C][/ROW]
[ROW][C]5[/C][C]-0.164195[/C][C]-1.1257[/C][C]0.133012[/C][/ROW]
[ROW][C]6[/C][C]0.244927[/C][C]1.6791[/C][C]0.049881[/C][/ROW]
[ROW][C]7[/C][C]-0.195505[/C][C]-1.3403[/C][C]0.093293[/C][/ROW]
[ROW][C]8[/C][C]0.013598[/C][C]0.0932[/C][C]0.463061[/C][/ROW]
[ROW][C]9[/C][C]0.175424[/C][C]1.2026[/C][C]0.117569[/C][/ROW]
[ROW][C]10[/C][C]-0.146056[/C][C]-1.0013[/C][C]0.160902[/C][/ROW]
[ROW][C]11[/C][C]-0.016349[/C][C]-0.1121[/C][C]0.455618[/C][/ROW]
[ROW][C]12[/C][C]0.141818[/C][C]0.9723[/C][C]0.167951[/C][/ROW]
[ROW][C]13[/C][C]-0.175819[/C][C]-1.2054[/C][C]0.11705[/C][/ROW]
[ROW][C]14[/C][C]0.006014[/C][C]0.0412[/C][C]0.483645[/C][/ROW]
[ROW][C]15[/C][C]0.192267[/C][C]1.3181[/C][C]0.096927[/C][/ROW]
[ROW][C]16[/C][C]-0.210562[/C][C]-1.4435[/C][C]0.07775[/C][/ROW]
[ROW][C]17[/C][C]0.023083[/C][C]0.1583[/C][C]0.437468[/C][/ROW]
[ROW][C]18[/C][C]0.209409[/C][C]1.4356[/C][C]0.078864[/C][/ROW]
[ROW][C]19[/C][C]-0.202936[/C][C]-1.3913[/C][C]0.085349[/C][/ROW]
[ROW][C]20[/C][C]0.05061[/C][C]0.347[/C][C]0.365083[/C][/ROW]
[ROW][C]21[/C][C]0.048998[/C][C]0.3359[/C][C]0.369215[/C][/ROW]
[ROW][C]22[/C][C]-0.150268[/C][C]-1.0302[/C][C]0.154097[/C][/ROW]
[ROW][C]23[/C][C]0.274231[/C][C]1.88[/C][C]0.033155[/C][/ROW]
[ROW][C]24[/C][C]-0.300556[/C][C]-2.0605[/C][C]0.022454[/C][/ROW]
[ROW][C]25[/C][C]0.109677[/C][C]0.7519[/C][C]0.227927[/C][/ROW]
[ROW][C]26[/C][C]0.124396[/C][C]0.8528[/C][C]0.199043[/C][/ROW]
[ROW][C]27[/C][C]-0.063674[/C][C]-0.4365[/C][C]0.332226[/C][/ROW]
[ROW][C]28[/C][C]-0.166168[/C][C]-1.1392[/C][C]0.130199[/C][/ROW]
[ROW][C]29[/C][C]0.233827[/C][C]1.603[/C][C]0.057813[/C][/ROW]
[ROW][C]30[/C][C]-0.117723[/C][C]-0.8071[/C][C]0.211845[/C][/ROW]
[ROW][C]31[/C][C]-0.058882[/C][C]-0.4037[/C][C]0.34414[/C][/ROW]
[ROW][C]32[/C][C]0.115948[/C][C]0.7949[/C][C]0.215334[/C][/ROW]
[ROW][C]33[/C][C]-0.028722[/C][C]-0.1969[/C][C]0.422373[/C][/ROW]
[ROW][C]34[/C][C]-0.112714[/C][C]-0.7727[/C][C]0.221777[/C][/ROW]
[ROW][C]35[/C][C]0.166799[/C][C]1.1435[/C][C]0.129308[/C][/ROW]
[ROW][C]36[/C][C]-0.052372[/C][C]-0.359[/C][C]0.360585[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25990&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25990&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.533999-3.66090.000318
2-0.125472-0.86020.197026
30.3176412.17760.017243
4-0.109517-0.75080.228254
5-0.164195-1.12570.133012
60.2449271.67910.049881
7-0.195505-1.34030.093293
80.0135980.09320.463061
90.1754241.20260.117569
10-0.146056-1.00130.160902
11-0.016349-0.11210.455618
120.1418180.97230.167951
13-0.175819-1.20540.11705
140.0060140.04120.483645
150.1922671.31810.096927
16-0.210562-1.44350.07775
170.0230830.15830.437468
180.2094091.43560.078864
19-0.202936-1.39130.085349
200.050610.3470.365083
210.0489980.33590.369215
22-0.150268-1.03020.154097
230.2742311.880.033155
24-0.300556-2.06050.022454
250.1096770.75190.227927
260.1243960.85280.199043
27-0.063674-0.43650.332226
28-0.166168-1.13920.130199
290.2338271.6030.057813
30-0.117723-0.80710.211845
31-0.058882-0.40370.34414
320.1159480.79490.215334
33-0.028722-0.19690.422373
34-0.112714-0.77270.221777
350.1667991.14350.129308
36-0.052372-0.3590.360585







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.533999-3.66090.000318
2-0.574428-3.93810.000135
3-0.197491-1.35390.091117
4-0.010419-0.07140.471679
5-0.136577-0.93630.176947
60.0229440.15730.437842
7-0.187864-1.28790.102037
8-0.202276-1.38670.086033
9-0.01497-0.10260.459347
100.0443970.30440.381094
110.040350.27660.391639
120.0463660.31790.375996
13-0.132025-0.90510.18501
14-0.270894-1.85720.034781
15-0.064379-0.44140.330487
16-0.042483-0.29120.386072
17-0.077464-0.53110.298938
180.0535580.36720.357568
19-0.005051-0.03460.486262
200.0426550.29240.385623
21-0.073745-0.50560.30776
22-0.239158-1.63960.053884
230.2555271.75180.043165
24-0.143759-0.98560.164697
25-0.03933-0.26960.394313
26-0.047783-0.32760.37234
270.0999430.68520.2483
28-0.030322-0.20790.41811
29-0.067012-0.45940.324029
30-0.026108-0.1790.429359
31-0.076059-0.52140.302257
32-0.038163-0.26160.397373
330.0056720.03890.484574
34-0.086324-0.59180.278408
35-0.10621-0.72810.235071
36-0.048352-0.33150.370875

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.533999 & -3.6609 & 0.000318 \tabularnewline
2 & -0.574428 & -3.9381 & 0.000135 \tabularnewline
3 & -0.197491 & -1.3539 & 0.091117 \tabularnewline
4 & -0.010419 & -0.0714 & 0.471679 \tabularnewline
5 & -0.136577 & -0.9363 & 0.176947 \tabularnewline
6 & 0.022944 & 0.1573 & 0.437842 \tabularnewline
7 & -0.187864 & -1.2879 & 0.102037 \tabularnewline
8 & -0.202276 & -1.3867 & 0.086033 \tabularnewline
9 & -0.01497 & -0.1026 & 0.459347 \tabularnewline
10 & 0.044397 & 0.3044 & 0.381094 \tabularnewline
11 & 0.04035 & 0.2766 & 0.391639 \tabularnewline
12 & 0.046366 & 0.3179 & 0.375996 \tabularnewline
13 & -0.132025 & -0.9051 & 0.18501 \tabularnewline
14 & -0.270894 & -1.8572 & 0.034781 \tabularnewline
15 & -0.064379 & -0.4414 & 0.330487 \tabularnewline
16 & -0.042483 & -0.2912 & 0.386072 \tabularnewline
17 & -0.077464 & -0.5311 & 0.298938 \tabularnewline
18 & 0.053558 & 0.3672 & 0.357568 \tabularnewline
19 & -0.005051 & -0.0346 & 0.486262 \tabularnewline
20 & 0.042655 & 0.2924 & 0.385623 \tabularnewline
21 & -0.073745 & -0.5056 & 0.30776 \tabularnewline
22 & -0.239158 & -1.6396 & 0.053884 \tabularnewline
23 & 0.255527 & 1.7518 & 0.043165 \tabularnewline
24 & -0.143759 & -0.9856 & 0.164697 \tabularnewline
25 & -0.03933 & -0.2696 & 0.394313 \tabularnewline
26 & -0.047783 & -0.3276 & 0.37234 \tabularnewline
27 & 0.099943 & 0.6852 & 0.2483 \tabularnewline
28 & -0.030322 & -0.2079 & 0.41811 \tabularnewline
29 & -0.067012 & -0.4594 & 0.324029 \tabularnewline
30 & -0.026108 & -0.179 & 0.429359 \tabularnewline
31 & -0.076059 & -0.5214 & 0.302257 \tabularnewline
32 & -0.038163 & -0.2616 & 0.397373 \tabularnewline
33 & 0.005672 & 0.0389 & 0.484574 \tabularnewline
34 & -0.086324 & -0.5918 & 0.278408 \tabularnewline
35 & -0.10621 & -0.7281 & 0.235071 \tabularnewline
36 & -0.048352 & -0.3315 & 0.370875 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25990&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.533999[/C][C]-3.6609[/C][C]0.000318[/C][/ROW]
[ROW][C]2[/C][C]-0.574428[/C][C]-3.9381[/C][C]0.000135[/C][/ROW]
[ROW][C]3[/C][C]-0.197491[/C][C]-1.3539[/C][C]0.091117[/C][/ROW]
[ROW][C]4[/C][C]-0.010419[/C][C]-0.0714[/C][C]0.471679[/C][/ROW]
[ROW][C]5[/C][C]-0.136577[/C][C]-0.9363[/C][C]0.176947[/C][/ROW]
[ROW][C]6[/C][C]0.022944[/C][C]0.1573[/C][C]0.437842[/C][/ROW]
[ROW][C]7[/C][C]-0.187864[/C][C]-1.2879[/C][C]0.102037[/C][/ROW]
[ROW][C]8[/C][C]-0.202276[/C][C]-1.3867[/C][C]0.086033[/C][/ROW]
[ROW][C]9[/C][C]-0.01497[/C][C]-0.1026[/C][C]0.459347[/C][/ROW]
[ROW][C]10[/C][C]0.044397[/C][C]0.3044[/C][C]0.381094[/C][/ROW]
[ROW][C]11[/C][C]0.04035[/C][C]0.2766[/C][C]0.391639[/C][/ROW]
[ROW][C]12[/C][C]0.046366[/C][C]0.3179[/C][C]0.375996[/C][/ROW]
[ROW][C]13[/C][C]-0.132025[/C][C]-0.9051[/C][C]0.18501[/C][/ROW]
[ROW][C]14[/C][C]-0.270894[/C][C]-1.8572[/C][C]0.034781[/C][/ROW]
[ROW][C]15[/C][C]-0.064379[/C][C]-0.4414[/C][C]0.330487[/C][/ROW]
[ROW][C]16[/C][C]-0.042483[/C][C]-0.2912[/C][C]0.386072[/C][/ROW]
[ROW][C]17[/C][C]-0.077464[/C][C]-0.5311[/C][C]0.298938[/C][/ROW]
[ROW][C]18[/C][C]0.053558[/C][C]0.3672[/C][C]0.357568[/C][/ROW]
[ROW][C]19[/C][C]-0.005051[/C][C]-0.0346[/C][C]0.486262[/C][/ROW]
[ROW][C]20[/C][C]0.042655[/C][C]0.2924[/C][C]0.385623[/C][/ROW]
[ROW][C]21[/C][C]-0.073745[/C][C]-0.5056[/C][C]0.30776[/C][/ROW]
[ROW][C]22[/C][C]-0.239158[/C][C]-1.6396[/C][C]0.053884[/C][/ROW]
[ROW][C]23[/C][C]0.255527[/C][C]1.7518[/C][C]0.043165[/C][/ROW]
[ROW][C]24[/C][C]-0.143759[/C][C]-0.9856[/C][C]0.164697[/C][/ROW]
[ROW][C]25[/C][C]-0.03933[/C][C]-0.2696[/C][C]0.394313[/C][/ROW]
[ROW][C]26[/C][C]-0.047783[/C][C]-0.3276[/C][C]0.37234[/C][/ROW]
[ROW][C]27[/C][C]0.099943[/C][C]0.6852[/C][C]0.2483[/C][/ROW]
[ROW][C]28[/C][C]-0.030322[/C][C]-0.2079[/C][C]0.41811[/C][/ROW]
[ROW][C]29[/C][C]-0.067012[/C][C]-0.4594[/C][C]0.324029[/C][/ROW]
[ROW][C]30[/C][C]-0.026108[/C][C]-0.179[/C][C]0.429359[/C][/ROW]
[ROW][C]31[/C][C]-0.076059[/C][C]-0.5214[/C][C]0.302257[/C][/ROW]
[ROW][C]32[/C][C]-0.038163[/C][C]-0.2616[/C][C]0.397373[/C][/ROW]
[ROW][C]33[/C][C]0.005672[/C][C]0.0389[/C][C]0.484574[/C][/ROW]
[ROW][C]34[/C][C]-0.086324[/C][C]-0.5918[/C][C]0.278408[/C][/ROW]
[ROW][C]35[/C][C]-0.10621[/C][C]-0.7281[/C][C]0.235071[/C][/ROW]
[ROW][C]36[/C][C]-0.048352[/C][C]-0.3315[/C][C]0.370875[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25990&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25990&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.533999-3.66090.000318
2-0.574428-3.93810.000135
3-0.197491-1.35390.091117
4-0.010419-0.07140.471679
5-0.136577-0.93630.176947
60.0229440.15730.437842
7-0.187864-1.28790.102037
8-0.202276-1.38670.086033
9-0.01497-0.10260.459347
100.0443970.30440.381094
110.040350.27660.391639
120.0463660.31790.375996
13-0.132025-0.90510.18501
14-0.270894-1.85720.034781
15-0.064379-0.44140.330487
16-0.042483-0.29120.386072
17-0.077464-0.53110.298938
180.0535580.36720.357568
19-0.005051-0.03460.486262
200.0426550.29240.385623
21-0.073745-0.50560.30776
22-0.239158-1.63960.053884
230.2555271.75180.043165
24-0.143759-0.98560.164697
25-0.03933-0.26960.394313
26-0.047783-0.32760.37234
270.0999430.68520.2483
28-0.030322-0.20790.41811
29-0.067012-0.45940.324029
30-0.026108-0.1790.429359
31-0.076059-0.52140.302257
32-0.038163-0.26160.397373
330.0056720.03890.484574
34-0.086324-0.59180.278408
35-0.10621-0.72810.235071
36-0.048352-0.33150.370875



Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ;
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ;
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 (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='lags',ylab='ACF')
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')