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, 03 Dec 2009 12:08:25 -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/03/t1259867961n0qpom7ufwdb8tf.htm/, Retrieved Fri, 19 Apr 2024 21:10:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63081, Retrieved Fri, 19 Apr 2024 21:10:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact119
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]
-   PD    [(Partial) Autocorrelation Function] [ACF] [2009-12-03 17:54:24] [82d27727e9ba70a4d0e9e253f76836cf]
-    D        [(Partial) Autocorrelation Function] [] [2009-12-03 19:08:25] [03368d751914a6c247d86aff8eac7cbf] [Current]
Feedback Forum

Post a new message
Dataseries X:
1954
1828
2251
2277
2085
2282
2266
1878
2267
2069
1746
2299
2360
2214
2825
2355
2333
3016
2155
2172
2150
2533
2058
2160
2260
2498
2695
2799
2947
2930
2318
2540
2570
2669
2450
2842
3440
2678
2981
2260
2844
2546
2456
2295
2379
2479
2057
2280
2351
2276
2548
2311
2201
2725
2408
2139
1898
2537
2069
2063
2524




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63081&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.524425-3.63330.00034
20.1781551.23430.111552
3-0.233147-1.61530.056402
40.238541.65270.052464
5-0.187512-1.29910.100054
60.0405550.2810.38997
7-0.03089-0.2140.415722
80.0848770.5880.279628
90.0892040.6180.269741
10-0.183819-1.27350.104481
110.3206282.22140.015538
12-0.432367-2.99550.002162
130.1448661.00370.160287
14-0.12782-0.88560.190134
150.2912882.01810.024594
16-0.295212-2.04530.023164
170.180031.24730.109173
18-0.144745-1.00280.160488
190.2519651.74570.043634
20-0.257572-1.78450.040331
210.0835710.5790.282648
22-0.021517-0.14910.441061
230.0511920.35470.362195
24-0.045435-0.31480.377146
250.0045420.03150.487513
260.1115940.77310.221614
27-0.138896-0.96230.170361
280.0720090.49890.310068
29-0.042142-0.2920.385784
300.1412570.97870.166328
31-0.228237-1.58130.060192
320.1645881.14030.12991
33-0.036751-0.25460.400053
340.03260.22590.411135
35-0.103359-0.71610.238701
360.0813520.56360.287818

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.524425 & -3.6333 & 0.00034 \tabularnewline
2 & 0.178155 & 1.2343 & 0.111552 \tabularnewline
3 & -0.233147 & -1.6153 & 0.056402 \tabularnewline
4 & 0.23854 & 1.6527 & 0.052464 \tabularnewline
5 & -0.187512 & -1.2991 & 0.100054 \tabularnewline
6 & 0.040555 & 0.281 & 0.38997 \tabularnewline
7 & -0.03089 & -0.214 & 0.415722 \tabularnewline
8 & 0.084877 & 0.588 & 0.279628 \tabularnewline
9 & 0.089204 & 0.618 & 0.269741 \tabularnewline
10 & -0.183819 & -1.2735 & 0.104481 \tabularnewline
11 & 0.320628 & 2.2214 & 0.015538 \tabularnewline
12 & -0.432367 & -2.9955 & 0.002162 \tabularnewline
13 & 0.144866 & 1.0037 & 0.160287 \tabularnewline
14 & -0.12782 & -0.8856 & 0.190134 \tabularnewline
15 & 0.291288 & 2.0181 & 0.024594 \tabularnewline
16 & -0.295212 & -2.0453 & 0.023164 \tabularnewline
17 & 0.18003 & 1.2473 & 0.109173 \tabularnewline
18 & -0.144745 & -1.0028 & 0.160488 \tabularnewline
19 & 0.251965 & 1.7457 & 0.043634 \tabularnewline
20 & -0.257572 & -1.7845 & 0.040331 \tabularnewline
21 & 0.083571 & 0.579 & 0.282648 \tabularnewline
22 & -0.021517 & -0.1491 & 0.441061 \tabularnewline
23 & 0.051192 & 0.3547 & 0.362195 \tabularnewline
24 & -0.045435 & -0.3148 & 0.377146 \tabularnewline
25 & 0.004542 & 0.0315 & 0.487513 \tabularnewline
26 & 0.111594 & 0.7731 & 0.221614 \tabularnewline
27 & -0.138896 & -0.9623 & 0.170361 \tabularnewline
28 & 0.072009 & 0.4989 & 0.310068 \tabularnewline
29 & -0.042142 & -0.292 & 0.385784 \tabularnewline
30 & 0.141257 & 0.9787 & 0.166328 \tabularnewline
31 & -0.228237 & -1.5813 & 0.060192 \tabularnewline
32 & 0.164588 & 1.1403 & 0.12991 \tabularnewline
33 & -0.036751 & -0.2546 & 0.400053 \tabularnewline
34 & 0.0326 & 0.2259 & 0.411135 \tabularnewline
35 & -0.103359 & -0.7161 & 0.238701 \tabularnewline
36 & 0.081352 & 0.5636 & 0.287818 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63081&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.524425[/C][C]-3.6333[/C][C]0.00034[/C][/ROW]
[ROW][C]2[/C][C]0.178155[/C][C]1.2343[/C][C]0.111552[/C][/ROW]
[ROW][C]3[/C][C]-0.233147[/C][C]-1.6153[/C][C]0.056402[/C][/ROW]
[ROW][C]4[/C][C]0.23854[/C][C]1.6527[/C][C]0.052464[/C][/ROW]
[ROW][C]5[/C][C]-0.187512[/C][C]-1.2991[/C][C]0.100054[/C][/ROW]
[ROW][C]6[/C][C]0.040555[/C][C]0.281[/C][C]0.38997[/C][/ROW]
[ROW][C]7[/C][C]-0.03089[/C][C]-0.214[/C][C]0.415722[/C][/ROW]
[ROW][C]8[/C][C]0.084877[/C][C]0.588[/C][C]0.279628[/C][/ROW]
[ROW][C]9[/C][C]0.089204[/C][C]0.618[/C][C]0.269741[/C][/ROW]
[ROW][C]10[/C][C]-0.183819[/C][C]-1.2735[/C][C]0.104481[/C][/ROW]
[ROW][C]11[/C][C]0.320628[/C][C]2.2214[/C][C]0.015538[/C][/ROW]
[ROW][C]12[/C][C]-0.432367[/C][C]-2.9955[/C][C]0.002162[/C][/ROW]
[ROW][C]13[/C][C]0.144866[/C][C]1.0037[/C][C]0.160287[/C][/ROW]
[ROW][C]14[/C][C]-0.12782[/C][C]-0.8856[/C][C]0.190134[/C][/ROW]
[ROW][C]15[/C][C]0.291288[/C][C]2.0181[/C][C]0.024594[/C][/ROW]
[ROW][C]16[/C][C]-0.295212[/C][C]-2.0453[/C][C]0.023164[/C][/ROW]
[ROW][C]17[/C][C]0.18003[/C][C]1.2473[/C][C]0.109173[/C][/ROW]
[ROW][C]18[/C][C]-0.144745[/C][C]-1.0028[/C][C]0.160488[/C][/ROW]
[ROW][C]19[/C][C]0.251965[/C][C]1.7457[/C][C]0.043634[/C][/ROW]
[ROW][C]20[/C][C]-0.257572[/C][C]-1.7845[/C][C]0.040331[/C][/ROW]
[ROW][C]21[/C][C]0.083571[/C][C]0.579[/C][C]0.282648[/C][/ROW]
[ROW][C]22[/C][C]-0.021517[/C][C]-0.1491[/C][C]0.441061[/C][/ROW]
[ROW][C]23[/C][C]0.051192[/C][C]0.3547[/C][C]0.362195[/C][/ROW]
[ROW][C]24[/C][C]-0.045435[/C][C]-0.3148[/C][C]0.377146[/C][/ROW]
[ROW][C]25[/C][C]0.004542[/C][C]0.0315[/C][C]0.487513[/C][/ROW]
[ROW][C]26[/C][C]0.111594[/C][C]0.7731[/C][C]0.221614[/C][/ROW]
[ROW][C]27[/C][C]-0.138896[/C][C]-0.9623[/C][C]0.170361[/C][/ROW]
[ROW][C]28[/C][C]0.072009[/C][C]0.4989[/C][C]0.310068[/C][/ROW]
[ROW][C]29[/C][C]-0.042142[/C][C]-0.292[/C][C]0.385784[/C][/ROW]
[ROW][C]30[/C][C]0.141257[/C][C]0.9787[/C][C]0.166328[/C][/ROW]
[ROW][C]31[/C][C]-0.228237[/C][C]-1.5813[/C][C]0.060192[/C][/ROW]
[ROW][C]32[/C][C]0.164588[/C][C]1.1403[/C][C]0.12991[/C][/ROW]
[ROW][C]33[/C][C]-0.036751[/C][C]-0.2546[/C][C]0.400053[/C][/ROW]
[ROW][C]34[/C][C]0.0326[/C][C]0.2259[/C][C]0.411135[/C][/ROW]
[ROW][C]35[/C][C]-0.103359[/C][C]-0.7161[/C][C]0.238701[/C][/ROW]
[ROW][C]36[/C][C]0.081352[/C][C]0.5636[/C][C]0.287818[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63081&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63081&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.524425-3.63330.00034
20.1781551.23430.111552
3-0.233147-1.61530.056402
40.238541.65270.052464
5-0.187512-1.29910.100054
60.0405550.2810.38997
7-0.03089-0.2140.415722
80.0848770.5880.279628
90.0892040.6180.269741
10-0.183819-1.27350.104481
110.3206282.22140.015538
12-0.432367-2.99550.002162
130.1448661.00370.160287
14-0.12782-0.88560.190134
150.2912882.01810.024594
16-0.295212-2.04530.023164
170.180031.24730.109173
18-0.144745-1.00280.160488
190.2519651.74570.043634
20-0.257572-1.78450.040331
210.0835710.5790.282648
22-0.021517-0.14910.441061
230.0511920.35470.362195
24-0.045435-0.31480.377146
250.0045420.03150.487513
260.1115940.77310.221614
27-0.138896-0.96230.170361
280.0720090.49890.310068
29-0.042142-0.2920.385784
300.1412570.97870.166328
31-0.228237-1.58130.060192
320.1645881.14030.12991
33-0.036751-0.25460.400053
340.03260.22590.411135
35-0.103359-0.71610.238701
360.0813520.56360.287818







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.524425-3.63330.00034
2-0.133613-0.92570.179617
3-0.277099-1.91980.030419
4-0.001312-0.00910.496393
5-0.087633-0.60710.273311
6-0.165014-1.14320.129302
7-0.095328-0.66050.25606
8-0.027366-0.18960.425212
90.204441.41640.081558
10-0.039922-0.27660.391643
110.3569862.47330.00849
12-0.178325-1.23550.111334
13-0.305166-2.11430.019857
14-0.19975-1.38390.086395
150.0153150.10610.457969
16-0.085629-0.59330.277899
17-0.097931-0.67850.250362
18-0.207615-1.43840.078405
19-0.016954-0.11750.453493
20-0.09849-0.68240.249145
210.1269580.87960.191732
220.0550880.38170.352199
230.1535721.0640.146331
24-0.028516-0.19760.422111
25-0.142003-0.98380.165068
26-0.027577-0.19110.424644
270.0353770.24510.403712
28-0.083773-0.58040.282182
29-0.024636-0.17070.432596
30-0.102384-0.70930.240774
31-0.088922-0.61610.27038
32-0.064212-0.44490.329205
330.1885531.30630.098832
34-0.006803-0.04710.481301
350.0472020.3270.372536
36-0.02273-0.15750.437763

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.524425 & -3.6333 & 0.00034 \tabularnewline
2 & -0.133613 & -0.9257 & 0.179617 \tabularnewline
3 & -0.277099 & -1.9198 & 0.030419 \tabularnewline
4 & -0.001312 & -0.0091 & 0.496393 \tabularnewline
5 & -0.087633 & -0.6071 & 0.273311 \tabularnewline
6 & -0.165014 & -1.1432 & 0.129302 \tabularnewline
7 & -0.095328 & -0.6605 & 0.25606 \tabularnewline
8 & -0.027366 & -0.1896 & 0.425212 \tabularnewline
9 & 0.20444 & 1.4164 & 0.081558 \tabularnewline
10 & -0.039922 & -0.2766 & 0.391643 \tabularnewline
11 & 0.356986 & 2.4733 & 0.00849 \tabularnewline
12 & -0.178325 & -1.2355 & 0.111334 \tabularnewline
13 & -0.305166 & -2.1143 & 0.019857 \tabularnewline
14 & -0.19975 & -1.3839 & 0.086395 \tabularnewline
15 & 0.015315 & 0.1061 & 0.457969 \tabularnewline
16 & -0.085629 & -0.5933 & 0.277899 \tabularnewline
17 & -0.097931 & -0.6785 & 0.250362 \tabularnewline
18 & -0.207615 & -1.4384 & 0.078405 \tabularnewline
19 & -0.016954 & -0.1175 & 0.453493 \tabularnewline
20 & -0.09849 & -0.6824 & 0.249145 \tabularnewline
21 & 0.126958 & 0.8796 & 0.191732 \tabularnewline
22 & 0.055088 & 0.3817 & 0.352199 \tabularnewline
23 & 0.153572 & 1.064 & 0.146331 \tabularnewline
24 & -0.028516 & -0.1976 & 0.422111 \tabularnewline
25 & -0.142003 & -0.9838 & 0.165068 \tabularnewline
26 & -0.027577 & -0.1911 & 0.424644 \tabularnewline
27 & 0.035377 & 0.2451 & 0.403712 \tabularnewline
28 & -0.083773 & -0.5804 & 0.282182 \tabularnewline
29 & -0.024636 & -0.1707 & 0.432596 \tabularnewline
30 & -0.102384 & -0.7093 & 0.240774 \tabularnewline
31 & -0.088922 & -0.6161 & 0.27038 \tabularnewline
32 & -0.064212 & -0.4449 & 0.329205 \tabularnewline
33 & 0.188553 & 1.3063 & 0.098832 \tabularnewline
34 & -0.006803 & -0.0471 & 0.481301 \tabularnewline
35 & 0.047202 & 0.327 & 0.372536 \tabularnewline
36 & -0.02273 & -0.1575 & 0.437763 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63081&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.524425[/C][C]-3.6333[/C][C]0.00034[/C][/ROW]
[ROW][C]2[/C][C]-0.133613[/C][C]-0.9257[/C][C]0.179617[/C][/ROW]
[ROW][C]3[/C][C]-0.277099[/C][C]-1.9198[/C][C]0.030419[/C][/ROW]
[ROW][C]4[/C][C]-0.001312[/C][C]-0.0091[/C][C]0.496393[/C][/ROW]
[ROW][C]5[/C][C]-0.087633[/C][C]-0.6071[/C][C]0.273311[/C][/ROW]
[ROW][C]6[/C][C]-0.165014[/C][C]-1.1432[/C][C]0.129302[/C][/ROW]
[ROW][C]7[/C][C]-0.095328[/C][C]-0.6605[/C][C]0.25606[/C][/ROW]
[ROW][C]8[/C][C]-0.027366[/C][C]-0.1896[/C][C]0.425212[/C][/ROW]
[ROW][C]9[/C][C]0.20444[/C][C]1.4164[/C][C]0.081558[/C][/ROW]
[ROW][C]10[/C][C]-0.039922[/C][C]-0.2766[/C][C]0.391643[/C][/ROW]
[ROW][C]11[/C][C]0.356986[/C][C]2.4733[/C][C]0.00849[/C][/ROW]
[ROW][C]12[/C][C]-0.178325[/C][C]-1.2355[/C][C]0.111334[/C][/ROW]
[ROW][C]13[/C][C]-0.305166[/C][C]-2.1143[/C][C]0.019857[/C][/ROW]
[ROW][C]14[/C][C]-0.19975[/C][C]-1.3839[/C][C]0.086395[/C][/ROW]
[ROW][C]15[/C][C]0.015315[/C][C]0.1061[/C][C]0.457969[/C][/ROW]
[ROW][C]16[/C][C]-0.085629[/C][C]-0.5933[/C][C]0.277899[/C][/ROW]
[ROW][C]17[/C][C]-0.097931[/C][C]-0.6785[/C][C]0.250362[/C][/ROW]
[ROW][C]18[/C][C]-0.207615[/C][C]-1.4384[/C][C]0.078405[/C][/ROW]
[ROW][C]19[/C][C]-0.016954[/C][C]-0.1175[/C][C]0.453493[/C][/ROW]
[ROW][C]20[/C][C]-0.09849[/C][C]-0.6824[/C][C]0.249145[/C][/ROW]
[ROW][C]21[/C][C]0.126958[/C][C]0.8796[/C][C]0.191732[/C][/ROW]
[ROW][C]22[/C][C]0.055088[/C][C]0.3817[/C][C]0.352199[/C][/ROW]
[ROW][C]23[/C][C]0.153572[/C][C]1.064[/C][C]0.146331[/C][/ROW]
[ROW][C]24[/C][C]-0.028516[/C][C]-0.1976[/C][C]0.422111[/C][/ROW]
[ROW][C]25[/C][C]-0.142003[/C][C]-0.9838[/C][C]0.165068[/C][/ROW]
[ROW][C]26[/C][C]-0.027577[/C][C]-0.1911[/C][C]0.424644[/C][/ROW]
[ROW][C]27[/C][C]0.035377[/C][C]0.2451[/C][C]0.403712[/C][/ROW]
[ROW][C]28[/C][C]-0.083773[/C][C]-0.5804[/C][C]0.282182[/C][/ROW]
[ROW][C]29[/C][C]-0.024636[/C][C]-0.1707[/C][C]0.432596[/C][/ROW]
[ROW][C]30[/C][C]-0.102384[/C][C]-0.7093[/C][C]0.240774[/C][/ROW]
[ROW][C]31[/C][C]-0.088922[/C][C]-0.6161[/C][C]0.27038[/C][/ROW]
[ROW][C]32[/C][C]-0.064212[/C][C]-0.4449[/C][C]0.329205[/C][/ROW]
[ROW][C]33[/C][C]0.188553[/C][C]1.3063[/C][C]0.098832[/C][/ROW]
[ROW][C]34[/C][C]-0.006803[/C][C]-0.0471[/C][C]0.481301[/C][/ROW]
[ROW][C]35[/C][C]0.047202[/C][C]0.327[/C][C]0.372536[/C][/ROW]
[ROW][C]36[/C][C]-0.02273[/C][C]-0.1575[/C][C]0.437763[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63081&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63081&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.524425-3.63330.00034
2-0.133613-0.92570.179617
3-0.277099-1.91980.030419
4-0.001312-0.00910.496393
5-0.087633-0.60710.273311
6-0.165014-1.14320.129302
7-0.095328-0.66050.25606
8-0.027366-0.18960.425212
90.204441.41640.081558
10-0.039922-0.27660.391643
110.3569862.47330.00849
12-0.178325-1.23550.111334
13-0.305166-2.11430.019857
14-0.19975-1.38390.086395
150.0153150.10610.457969
16-0.085629-0.59330.277899
17-0.097931-0.67850.250362
18-0.207615-1.43840.078405
19-0.016954-0.11750.453493
20-0.09849-0.68240.249145
210.1269580.87960.191732
220.0550880.38170.352199
230.1535721.0640.146331
24-0.028516-0.19760.422111
25-0.142003-0.98380.165068
26-0.027577-0.19110.424644
270.0353770.24510.403712
28-0.083773-0.58040.282182
29-0.024636-0.17070.432596
30-0.102384-0.70930.240774
31-0.088922-0.61610.27038
32-0.064212-0.44490.329205
330.1885531.30630.098832
34-0.006803-0.04710.481301
350.0472020.3270.372536
36-0.02273-0.15750.437763



Parameters (Session):
par1 = 12 ;
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')