Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_autocorrelation.wasp
Title produced by software(Partial) Autocorrelation Function
Date of computationSun, 06 Dec 2009 03:36:21 -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/06/t126009593751w0vdnam98m0v4.htm/, Retrieved Mon, 06 May 2024 01:06:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64338, Retrieved Mon, 06 May 2024 01:06:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact125
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:16:10] [b98453cac15ba1066b407e146608df68]
-    D          [(Partial) Autocorrelation Function] [acf_werkloosheid] [2009-12-06 10:36:21] [fcf610eda12f49b9bf9c81ec9669e97a] [Current]
Feedback Forum

Post a new message
Dataseries X:
613
611
594
595
591
589
584
573
567
569
621
629
628
612
595
597
593
590
580
574
573
573
620
626
620
588
566
557
561
549
532
526
511
499
555
565
542
527
510
514
517
508
493
490
469
478
528
534
518
506
502
516
528
533
536
537
524
536
587
597
581
564




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 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 & 2 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64338&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]2 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=64338&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64338&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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8879546.99180
20.7268455.72320
30.6240164.91353e-06
40.5812684.57691.2e-05
50.578444.55461.3e-05
60.5586314.39872.2e-05
70.4971713.91470.000114
80.4247143.34420.000702
90.3987993.14010.001293
100.4275523.36650.000656
110.4740123.73240.000207
120.4690863.69360.000235
130.3207772.52580.007056
140.1528751.20370.116634
150.0415080.32680.372447
16-0.016086-0.12670.449809
17-0.035936-0.2830.389074
18-0.065266-0.51390.304574
19-0.120207-0.94650.173782
20-0.182669-1.43830.077683
21-0.202474-1.59430.057979
22-0.173868-1.3690.087963
23-0.13703-1.0790.142389
24-0.143649-1.13110.131186
25-0.249866-1.96740.026805
26-0.354165-2.78870.003509
27-0.404009-3.18120.001146
28-0.410495-3.23220.000984
29-0.397968-3.13360.001319
30-0.389172-3.06430.001614
31-0.392401-3.08980.001499
32-0.400897-3.15670.001232
33-0.36731-2.89220.002635
34-0.294798-2.32120.011788
35-0.239989-1.88970.031739
36-0.221924-1.74740.042757

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.887954 & 6.9918 & 0 \tabularnewline
2 & 0.726845 & 5.7232 & 0 \tabularnewline
3 & 0.624016 & 4.9135 & 3e-06 \tabularnewline
4 & 0.581268 & 4.5769 & 1.2e-05 \tabularnewline
5 & 0.57844 & 4.5546 & 1.3e-05 \tabularnewline
6 & 0.558631 & 4.3987 & 2.2e-05 \tabularnewline
7 & 0.497171 & 3.9147 & 0.000114 \tabularnewline
8 & 0.424714 & 3.3442 & 0.000702 \tabularnewline
9 & 0.398799 & 3.1401 & 0.001293 \tabularnewline
10 & 0.427552 & 3.3665 & 0.000656 \tabularnewline
11 & 0.474012 & 3.7324 & 0.000207 \tabularnewline
12 & 0.469086 & 3.6936 & 0.000235 \tabularnewline
13 & 0.320777 & 2.5258 & 0.007056 \tabularnewline
14 & 0.152875 & 1.2037 & 0.116634 \tabularnewline
15 & 0.041508 & 0.3268 & 0.372447 \tabularnewline
16 & -0.016086 & -0.1267 & 0.449809 \tabularnewline
17 & -0.035936 & -0.283 & 0.389074 \tabularnewline
18 & -0.065266 & -0.5139 & 0.304574 \tabularnewline
19 & -0.120207 & -0.9465 & 0.173782 \tabularnewline
20 & -0.182669 & -1.4383 & 0.077683 \tabularnewline
21 & -0.202474 & -1.5943 & 0.057979 \tabularnewline
22 & -0.173868 & -1.369 & 0.087963 \tabularnewline
23 & -0.13703 & -1.079 & 0.142389 \tabularnewline
24 & -0.143649 & -1.1311 & 0.131186 \tabularnewline
25 & -0.249866 & -1.9674 & 0.026805 \tabularnewline
26 & -0.354165 & -2.7887 & 0.003509 \tabularnewline
27 & -0.404009 & -3.1812 & 0.001146 \tabularnewline
28 & -0.410495 & -3.2322 & 0.000984 \tabularnewline
29 & -0.397968 & -3.1336 & 0.001319 \tabularnewline
30 & -0.389172 & -3.0643 & 0.001614 \tabularnewline
31 & -0.392401 & -3.0898 & 0.001499 \tabularnewline
32 & -0.400897 & -3.1567 & 0.001232 \tabularnewline
33 & -0.36731 & -2.8922 & 0.002635 \tabularnewline
34 & -0.294798 & -2.3212 & 0.011788 \tabularnewline
35 & -0.239989 & -1.8897 & 0.031739 \tabularnewline
36 & -0.221924 & -1.7474 & 0.042757 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64338&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.887954[/C][C]6.9918[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.726845[/C][C]5.7232[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.624016[/C][C]4.9135[/C][C]3e-06[/C][/ROW]
[ROW][C]4[/C][C]0.581268[/C][C]4.5769[/C][C]1.2e-05[/C][/ROW]
[ROW][C]5[/C][C]0.57844[/C][C]4.5546[/C][C]1.3e-05[/C][/ROW]
[ROW][C]6[/C][C]0.558631[/C][C]4.3987[/C][C]2.2e-05[/C][/ROW]
[ROW][C]7[/C][C]0.497171[/C][C]3.9147[/C][C]0.000114[/C][/ROW]
[ROW][C]8[/C][C]0.424714[/C][C]3.3442[/C][C]0.000702[/C][/ROW]
[ROW][C]9[/C][C]0.398799[/C][C]3.1401[/C][C]0.001293[/C][/ROW]
[ROW][C]10[/C][C]0.427552[/C][C]3.3665[/C][C]0.000656[/C][/ROW]
[ROW][C]11[/C][C]0.474012[/C][C]3.7324[/C][C]0.000207[/C][/ROW]
[ROW][C]12[/C][C]0.469086[/C][C]3.6936[/C][C]0.000235[/C][/ROW]
[ROW][C]13[/C][C]0.320777[/C][C]2.5258[/C][C]0.007056[/C][/ROW]
[ROW][C]14[/C][C]0.152875[/C][C]1.2037[/C][C]0.116634[/C][/ROW]
[ROW][C]15[/C][C]0.041508[/C][C]0.3268[/C][C]0.372447[/C][/ROW]
[ROW][C]16[/C][C]-0.016086[/C][C]-0.1267[/C][C]0.449809[/C][/ROW]
[ROW][C]17[/C][C]-0.035936[/C][C]-0.283[/C][C]0.389074[/C][/ROW]
[ROW][C]18[/C][C]-0.065266[/C][C]-0.5139[/C][C]0.304574[/C][/ROW]
[ROW][C]19[/C][C]-0.120207[/C][C]-0.9465[/C][C]0.173782[/C][/ROW]
[ROW][C]20[/C][C]-0.182669[/C][C]-1.4383[/C][C]0.077683[/C][/ROW]
[ROW][C]21[/C][C]-0.202474[/C][C]-1.5943[/C][C]0.057979[/C][/ROW]
[ROW][C]22[/C][C]-0.173868[/C][C]-1.369[/C][C]0.087963[/C][/ROW]
[ROW][C]23[/C][C]-0.13703[/C][C]-1.079[/C][C]0.142389[/C][/ROW]
[ROW][C]24[/C][C]-0.143649[/C][C]-1.1311[/C][C]0.131186[/C][/ROW]
[ROW][C]25[/C][C]-0.249866[/C][C]-1.9674[/C][C]0.026805[/C][/ROW]
[ROW][C]26[/C][C]-0.354165[/C][C]-2.7887[/C][C]0.003509[/C][/ROW]
[ROW][C]27[/C][C]-0.404009[/C][C]-3.1812[/C][C]0.001146[/C][/ROW]
[ROW][C]28[/C][C]-0.410495[/C][C]-3.2322[/C][C]0.000984[/C][/ROW]
[ROW][C]29[/C][C]-0.397968[/C][C]-3.1336[/C][C]0.001319[/C][/ROW]
[ROW][C]30[/C][C]-0.389172[/C][C]-3.0643[/C][C]0.001614[/C][/ROW]
[ROW][C]31[/C][C]-0.392401[/C][C]-3.0898[/C][C]0.001499[/C][/ROW]
[ROW][C]32[/C][C]-0.400897[/C][C]-3.1567[/C][C]0.001232[/C][/ROW]
[ROW][C]33[/C][C]-0.36731[/C][C]-2.8922[/C][C]0.002635[/C][/ROW]
[ROW][C]34[/C][C]-0.294798[/C][C]-2.3212[/C][C]0.011788[/C][/ROW]
[ROW][C]35[/C][C]-0.239989[/C][C]-1.8897[/C][C]0.031739[/C][/ROW]
[ROW][C]36[/C][C]-0.221924[/C][C]-1.7474[/C][C]0.042757[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64338&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64338&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.8879546.99180
20.7268455.72320
30.6240164.91353e-06
40.5812684.57691.2e-05
50.578444.55461.3e-05
60.5586314.39872.2e-05
70.4971713.91470.000114
80.4247143.34420.000702
90.3987993.14010.001293
100.4275523.36650.000656
110.4740123.73240.000207
120.4690863.69360.000235
130.3207772.52580.007056
140.1528751.20370.116634
150.0415080.32680.372447
16-0.016086-0.12670.449809
17-0.035936-0.2830.389074
18-0.065266-0.51390.304574
19-0.120207-0.94650.173782
20-0.182669-1.43830.077683
21-0.202474-1.59430.057979
22-0.173868-1.3690.087963
23-0.13703-1.0790.142389
24-0.143649-1.13110.131186
25-0.249866-1.96740.026805
26-0.354165-2.78870.003509
27-0.404009-3.18120.001146
28-0.410495-3.23220.000984
29-0.397968-3.13360.001319
30-0.389172-3.06430.001614
31-0.392401-3.08980.001499
32-0.400897-3.15670.001232
33-0.36731-2.89220.002635
34-0.294798-2.32120.011788
35-0.239989-1.88970.031739
36-0.221924-1.74740.042757







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8879546.99180
2-0.291278-2.29350.01261
30.2544532.00360.024746
40.0958630.75480.226606
50.1504461.18460.120345
6-0.081518-0.64190.261661
7-0.068723-0.54110.29518
8-0.002256-0.01780.492943
90.1689321.33020.094166
100.1195110.9410.17517
110.0863040.67960.249658
12-0.143921-1.13320.13074
13-0.586878-4.62111e-05
140.0621610.48950.313122
15-0.213114-1.67810.049185
16-0.023219-0.18280.427764
17-0.021683-0.17070.432494
180.029410.23160.408815
190.0424790.33450.369573
20-0.066021-0.51980.302511
210.0261650.2060.418723
22-0.009291-0.07320.470957
230.071120.560.288748
24-0.027086-0.21330.415907
25-0.047508-0.37410.354811
260.0802680.6320.264845
27-0.039409-0.31030.378685
280.003030.02390.490522
29-0.138108-1.08750.140521
300.102380.80610.211621
31-0.038838-0.30580.380386
320.0150980.11890.452876
330.0711070.55990.288784
340.0134560.1060.457981
35-0.064539-0.50820.306566
360.0441730.34780.364576

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.887954 & 6.9918 & 0 \tabularnewline
2 & -0.291278 & -2.2935 & 0.01261 \tabularnewline
3 & 0.254453 & 2.0036 & 0.024746 \tabularnewline
4 & 0.095863 & 0.7548 & 0.226606 \tabularnewline
5 & 0.150446 & 1.1846 & 0.120345 \tabularnewline
6 & -0.081518 & -0.6419 & 0.261661 \tabularnewline
7 & -0.068723 & -0.5411 & 0.29518 \tabularnewline
8 & -0.002256 & -0.0178 & 0.492943 \tabularnewline
9 & 0.168932 & 1.3302 & 0.094166 \tabularnewline
10 & 0.119511 & 0.941 & 0.17517 \tabularnewline
11 & 0.086304 & 0.6796 & 0.249658 \tabularnewline
12 & -0.143921 & -1.1332 & 0.13074 \tabularnewline
13 & -0.586878 & -4.6211 & 1e-05 \tabularnewline
14 & 0.062161 & 0.4895 & 0.313122 \tabularnewline
15 & -0.213114 & -1.6781 & 0.049185 \tabularnewline
16 & -0.023219 & -0.1828 & 0.427764 \tabularnewline
17 & -0.021683 & -0.1707 & 0.432494 \tabularnewline
18 & 0.02941 & 0.2316 & 0.408815 \tabularnewline
19 & 0.042479 & 0.3345 & 0.369573 \tabularnewline
20 & -0.066021 & -0.5198 & 0.302511 \tabularnewline
21 & 0.026165 & 0.206 & 0.418723 \tabularnewline
22 & -0.009291 & -0.0732 & 0.470957 \tabularnewline
23 & 0.07112 & 0.56 & 0.288748 \tabularnewline
24 & -0.027086 & -0.2133 & 0.415907 \tabularnewline
25 & -0.047508 & -0.3741 & 0.354811 \tabularnewline
26 & 0.080268 & 0.632 & 0.264845 \tabularnewline
27 & -0.039409 & -0.3103 & 0.378685 \tabularnewline
28 & 0.00303 & 0.0239 & 0.490522 \tabularnewline
29 & -0.138108 & -1.0875 & 0.140521 \tabularnewline
30 & 0.10238 & 0.8061 & 0.211621 \tabularnewline
31 & -0.038838 & -0.3058 & 0.380386 \tabularnewline
32 & 0.015098 & 0.1189 & 0.452876 \tabularnewline
33 & 0.071107 & 0.5599 & 0.288784 \tabularnewline
34 & 0.013456 & 0.106 & 0.457981 \tabularnewline
35 & -0.064539 & -0.5082 & 0.306566 \tabularnewline
36 & 0.044173 & 0.3478 & 0.364576 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64338&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.887954[/C][C]6.9918[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.291278[/C][C]-2.2935[/C][C]0.01261[/C][/ROW]
[ROW][C]3[/C][C]0.254453[/C][C]2.0036[/C][C]0.024746[/C][/ROW]
[ROW][C]4[/C][C]0.095863[/C][C]0.7548[/C][C]0.226606[/C][/ROW]
[ROW][C]5[/C][C]0.150446[/C][C]1.1846[/C][C]0.120345[/C][/ROW]
[ROW][C]6[/C][C]-0.081518[/C][C]-0.6419[/C][C]0.261661[/C][/ROW]
[ROW][C]7[/C][C]-0.068723[/C][C]-0.5411[/C][C]0.29518[/C][/ROW]
[ROW][C]8[/C][C]-0.002256[/C][C]-0.0178[/C][C]0.492943[/C][/ROW]
[ROW][C]9[/C][C]0.168932[/C][C]1.3302[/C][C]0.094166[/C][/ROW]
[ROW][C]10[/C][C]0.119511[/C][C]0.941[/C][C]0.17517[/C][/ROW]
[ROW][C]11[/C][C]0.086304[/C][C]0.6796[/C][C]0.249658[/C][/ROW]
[ROW][C]12[/C][C]-0.143921[/C][C]-1.1332[/C][C]0.13074[/C][/ROW]
[ROW][C]13[/C][C]-0.586878[/C][C]-4.6211[/C][C]1e-05[/C][/ROW]
[ROW][C]14[/C][C]0.062161[/C][C]0.4895[/C][C]0.313122[/C][/ROW]
[ROW][C]15[/C][C]-0.213114[/C][C]-1.6781[/C][C]0.049185[/C][/ROW]
[ROW][C]16[/C][C]-0.023219[/C][C]-0.1828[/C][C]0.427764[/C][/ROW]
[ROW][C]17[/C][C]-0.021683[/C][C]-0.1707[/C][C]0.432494[/C][/ROW]
[ROW][C]18[/C][C]0.02941[/C][C]0.2316[/C][C]0.408815[/C][/ROW]
[ROW][C]19[/C][C]0.042479[/C][C]0.3345[/C][C]0.369573[/C][/ROW]
[ROW][C]20[/C][C]-0.066021[/C][C]-0.5198[/C][C]0.302511[/C][/ROW]
[ROW][C]21[/C][C]0.026165[/C][C]0.206[/C][C]0.418723[/C][/ROW]
[ROW][C]22[/C][C]-0.009291[/C][C]-0.0732[/C][C]0.470957[/C][/ROW]
[ROW][C]23[/C][C]0.07112[/C][C]0.56[/C][C]0.288748[/C][/ROW]
[ROW][C]24[/C][C]-0.027086[/C][C]-0.2133[/C][C]0.415907[/C][/ROW]
[ROW][C]25[/C][C]-0.047508[/C][C]-0.3741[/C][C]0.354811[/C][/ROW]
[ROW][C]26[/C][C]0.080268[/C][C]0.632[/C][C]0.264845[/C][/ROW]
[ROW][C]27[/C][C]-0.039409[/C][C]-0.3103[/C][C]0.378685[/C][/ROW]
[ROW][C]28[/C][C]0.00303[/C][C]0.0239[/C][C]0.490522[/C][/ROW]
[ROW][C]29[/C][C]-0.138108[/C][C]-1.0875[/C][C]0.140521[/C][/ROW]
[ROW][C]30[/C][C]0.10238[/C][C]0.8061[/C][C]0.211621[/C][/ROW]
[ROW][C]31[/C][C]-0.038838[/C][C]-0.3058[/C][C]0.380386[/C][/ROW]
[ROW][C]32[/C][C]0.015098[/C][C]0.1189[/C][C]0.452876[/C][/ROW]
[ROW][C]33[/C][C]0.071107[/C][C]0.5599[/C][C]0.288784[/C][/ROW]
[ROW][C]34[/C][C]0.013456[/C][C]0.106[/C][C]0.457981[/C][/ROW]
[ROW][C]35[/C][C]-0.064539[/C][C]-0.5082[/C][C]0.306566[/C][/ROW]
[ROW][C]36[/C][C]0.044173[/C][C]0.3478[/C][C]0.364576[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64338&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64338&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.8879546.99180
2-0.291278-2.29350.01261
30.2544532.00360.024746
40.0958630.75480.226606
50.1504461.18460.120345
6-0.081518-0.64190.261661
7-0.068723-0.54110.29518
8-0.002256-0.01780.492943
90.1689321.33020.094166
100.1195110.9410.17517
110.0863040.67960.249658
12-0.143921-1.13320.13074
13-0.586878-4.62111e-05
140.0621610.48950.313122
15-0.213114-1.67810.049185
16-0.023219-0.18280.427764
17-0.021683-0.17070.432494
180.029410.23160.408815
190.0424790.33450.369573
20-0.066021-0.51980.302511
210.0261650.2060.418723
22-0.009291-0.07320.470957
230.071120.560.288748
24-0.027086-0.21330.415907
25-0.047508-0.37410.354811
260.0802680.6320.264845
27-0.039409-0.31030.378685
280.003030.02390.490522
29-0.138108-1.08750.140521
300.102380.80610.211621
31-0.038838-0.30580.380386
320.0150980.11890.452876
330.0711070.55990.288784
340.0134560.1060.457981
35-0.064539-0.50820.306566
360.0441730.34780.364576



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