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 00:04:34 -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/t1259910321bbauv97c7ossim8.htm/, Retrieved Sun, 28 Apr 2024 00:08:53 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63169, Retrieved Sun, 28 Apr 2024 00:08:53 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact126
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:47:30] [b98453cac15ba1066b407e146608df68]
-    D      [(Partial) Autocorrelation Function] [ARIMA-model 4] [2009-12-04 07:04:34] [befe6dd6a614b6d3a2a74a47a0a4f514] [Current]
Feedback Forum

Post a new message
Dataseries X:
562325
560854
555332
543599
536662
542722
593530
610763
612613
611324
594167
595454
590865
589379
584428
573100
567456
569028
620735
628884
628232
612117
595404
597141
593408
590072
579799
574205
572775
572942
619567
625809
619916
587625
565742
557274
560576
548854
531673
525919
511038
498662
555362
564591
541657
527070
509846
514258
516922
507561
492622
490243
469357
477580
528379
533590
517945
506174
501866
516141




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63169&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.2498741.91930.029892
2-0.20337-1.56210.061804
3-0.300744-2.31010.012201
4-0.244161-1.87540.032842
50.0642560.49360.311725
60.1399251.07480.143424
70.0233830.17960.429038
8-0.231724-1.77990.040121
9-0.250188-1.92170.029737
10-0.147511-1.13310.130887
110.267712.05630.022092
120.7345985.64260
130.126280.970.168008
14-0.193263-1.48450.071502
15-0.290457-2.2310.014746
16-0.180791-1.38870.085075
170.0707950.54380.294319
180.0845660.64960.259247
190.0069220.05320.478887
20-0.221906-1.70450.046775
21-0.194425-1.49340.07033
22-0.064644-0.49650.31068
230.1913581.46980.073458
240.4866453.7380.000211
250.0919030.70590.241507
26-0.185971-1.42850.079215
27-0.241018-1.85130.034567
28-0.131779-1.01220.157784
290.0516540.39680.346488
300.0614910.47230.319219
31-0.002828-0.02170.491371
32-0.167917-1.28980.101078
33-0.103832-0.79750.214165
34-0.047758-0.36680.357527
350.1110490.8530.19856
360.3341612.56670.006412

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.249874 & 1.9193 & 0.029892 \tabularnewline
2 & -0.20337 & -1.5621 & 0.061804 \tabularnewline
3 & -0.300744 & -2.3101 & 0.012201 \tabularnewline
4 & -0.244161 & -1.8754 & 0.032842 \tabularnewline
5 & 0.064256 & 0.4936 & 0.311725 \tabularnewline
6 & 0.139925 & 1.0748 & 0.143424 \tabularnewline
7 & 0.023383 & 0.1796 & 0.429038 \tabularnewline
8 & -0.231724 & -1.7799 & 0.040121 \tabularnewline
9 & -0.250188 & -1.9217 & 0.029737 \tabularnewline
10 & -0.147511 & -1.1331 & 0.130887 \tabularnewline
11 & 0.26771 & 2.0563 & 0.022092 \tabularnewline
12 & 0.734598 & 5.6426 & 0 \tabularnewline
13 & 0.12628 & 0.97 & 0.168008 \tabularnewline
14 & -0.193263 & -1.4845 & 0.071502 \tabularnewline
15 & -0.290457 & -2.231 & 0.014746 \tabularnewline
16 & -0.180791 & -1.3887 & 0.085075 \tabularnewline
17 & 0.070795 & 0.5438 & 0.294319 \tabularnewline
18 & 0.084566 & 0.6496 & 0.259247 \tabularnewline
19 & 0.006922 & 0.0532 & 0.478887 \tabularnewline
20 & -0.221906 & -1.7045 & 0.046775 \tabularnewline
21 & -0.194425 & -1.4934 & 0.07033 \tabularnewline
22 & -0.064644 & -0.4965 & 0.31068 \tabularnewline
23 & 0.191358 & 1.4698 & 0.073458 \tabularnewline
24 & 0.486645 & 3.738 & 0.000211 \tabularnewline
25 & 0.091903 & 0.7059 & 0.241507 \tabularnewline
26 & -0.185971 & -1.4285 & 0.079215 \tabularnewline
27 & -0.241018 & -1.8513 & 0.034567 \tabularnewline
28 & -0.131779 & -1.0122 & 0.157784 \tabularnewline
29 & 0.051654 & 0.3968 & 0.346488 \tabularnewline
30 & 0.061491 & 0.4723 & 0.319219 \tabularnewline
31 & -0.002828 & -0.0217 & 0.491371 \tabularnewline
32 & -0.167917 & -1.2898 & 0.101078 \tabularnewline
33 & -0.103832 & -0.7975 & 0.214165 \tabularnewline
34 & -0.047758 & -0.3668 & 0.357527 \tabularnewline
35 & 0.111049 & 0.853 & 0.19856 \tabularnewline
36 & 0.334161 & 2.5667 & 0.006412 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63169&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.249874[/C][C]1.9193[/C][C]0.029892[/C][/ROW]
[ROW][C]2[/C][C]-0.20337[/C][C]-1.5621[/C][C]0.061804[/C][/ROW]
[ROW][C]3[/C][C]-0.300744[/C][C]-2.3101[/C][C]0.012201[/C][/ROW]
[ROW][C]4[/C][C]-0.244161[/C][C]-1.8754[/C][C]0.032842[/C][/ROW]
[ROW][C]5[/C][C]0.064256[/C][C]0.4936[/C][C]0.311725[/C][/ROW]
[ROW][C]6[/C][C]0.139925[/C][C]1.0748[/C][C]0.143424[/C][/ROW]
[ROW][C]7[/C][C]0.023383[/C][C]0.1796[/C][C]0.429038[/C][/ROW]
[ROW][C]8[/C][C]-0.231724[/C][C]-1.7799[/C][C]0.040121[/C][/ROW]
[ROW][C]9[/C][C]-0.250188[/C][C]-1.9217[/C][C]0.029737[/C][/ROW]
[ROW][C]10[/C][C]-0.147511[/C][C]-1.1331[/C][C]0.130887[/C][/ROW]
[ROW][C]11[/C][C]0.26771[/C][C]2.0563[/C][C]0.022092[/C][/ROW]
[ROW][C]12[/C][C]0.734598[/C][C]5.6426[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.12628[/C][C]0.97[/C][C]0.168008[/C][/ROW]
[ROW][C]14[/C][C]-0.193263[/C][C]-1.4845[/C][C]0.071502[/C][/ROW]
[ROW][C]15[/C][C]-0.290457[/C][C]-2.231[/C][C]0.014746[/C][/ROW]
[ROW][C]16[/C][C]-0.180791[/C][C]-1.3887[/C][C]0.085075[/C][/ROW]
[ROW][C]17[/C][C]0.070795[/C][C]0.5438[/C][C]0.294319[/C][/ROW]
[ROW][C]18[/C][C]0.084566[/C][C]0.6496[/C][C]0.259247[/C][/ROW]
[ROW][C]19[/C][C]0.006922[/C][C]0.0532[/C][C]0.478887[/C][/ROW]
[ROW][C]20[/C][C]-0.221906[/C][C]-1.7045[/C][C]0.046775[/C][/ROW]
[ROW][C]21[/C][C]-0.194425[/C][C]-1.4934[/C][C]0.07033[/C][/ROW]
[ROW][C]22[/C][C]-0.064644[/C][C]-0.4965[/C][C]0.31068[/C][/ROW]
[ROW][C]23[/C][C]0.191358[/C][C]1.4698[/C][C]0.073458[/C][/ROW]
[ROW][C]24[/C][C]0.486645[/C][C]3.738[/C][C]0.000211[/C][/ROW]
[ROW][C]25[/C][C]0.091903[/C][C]0.7059[/C][C]0.241507[/C][/ROW]
[ROW][C]26[/C][C]-0.185971[/C][C]-1.4285[/C][C]0.079215[/C][/ROW]
[ROW][C]27[/C][C]-0.241018[/C][C]-1.8513[/C][C]0.034567[/C][/ROW]
[ROW][C]28[/C][C]-0.131779[/C][C]-1.0122[/C][C]0.157784[/C][/ROW]
[ROW][C]29[/C][C]0.051654[/C][C]0.3968[/C][C]0.346488[/C][/ROW]
[ROW][C]30[/C][C]0.061491[/C][C]0.4723[/C][C]0.319219[/C][/ROW]
[ROW][C]31[/C][C]-0.002828[/C][C]-0.0217[/C][C]0.491371[/C][/ROW]
[ROW][C]32[/C][C]-0.167917[/C][C]-1.2898[/C][C]0.101078[/C][/ROW]
[ROW][C]33[/C][C]-0.103832[/C][C]-0.7975[/C][C]0.214165[/C][/ROW]
[ROW][C]34[/C][C]-0.047758[/C][C]-0.3668[/C][C]0.357527[/C][/ROW]
[ROW][C]35[/C][C]0.111049[/C][C]0.853[/C][C]0.19856[/C][/ROW]
[ROW][C]36[/C][C]0.334161[/C][C]2.5667[/C][C]0.006412[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63169&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63169&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.2498741.91930.029892
2-0.20337-1.56210.061804
3-0.300744-2.31010.012201
4-0.244161-1.87540.032842
50.0642560.49360.311725
60.1399251.07480.143424
70.0233830.17960.429038
8-0.231724-1.77990.040121
9-0.250188-1.92170.029737
10-0.147511-1.13310.130887
110.267712.05630.022092
120.7345985.64260
130.126280.970.168008
14-0.193263-1.48450.071502
15-0.290457-2.2310.014746
16-0.180791-1.38870.085075
170.0707950.54380.294319
180.0845660.64960.259247
190.0069220.05320.478887
20-0.221906-1.70450.046775
21-0.194425-1.49340.07033
22-0.064644-0.49650.31068
230.1913581.46980.073458
240.4866453.7380.000211
250.0919030.70590.241507
26-0.185971-1.42850.079215
27-0.241018-1.85130.034567
28-0.131779-1.01220.157784
290.0516540.39680.346488
300.0614910.47230.319219
31-0.002828-0.02170.491371
32-0.167917-1.28980.101078
33-0.103832-0.79750.214165
34-0.047758-0.36680.357527
350.1110490.8530.19856
360.3341612.56670.006412







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2498741.91930.029892
2-0.283509-2.17770.01672
3-0.190997-1.46710.073833
4-0.194363-1.49290.070392
50.075940.58330.280955
6-0.045098-0.34640.365135
7-0.079236-0.60860.272555
8-0.272432-2.09260.020348
9-0.154377-1.18580.120229
10-0.242532-1.86290.033727
110.1803471.38530.085592
120.600314.61111.1e-05
13-0.189865-1.45840.07502
140.099010.76050.224989
15-0.02521-0.19360.42356
160.0692410.53180.298415
17-0.108379-0.83250.204249
18-0.071548-0.54960.292345
190.0294750.22640.410835
20-0.090906-0.69830.243878
210.0097480.07490.470285
220.0150920.11590.454054
23-0.208705-1.60310.057127
24-0.058502-0.44940.327409
250.070490.54140.295121
26-0.136516-1.04860.149319
27-3.5e-05-3e-040.499893
28-0.089138-0.68470.248113
290.0041460.03180.487353
30-0.066294-0.50920.306252
31-0.047645-0.3660.357848
320.0582680.44760.328054
33-0.028547-0.21930.413597
34-0.109948-0.84450.200892
350.0079570.06110.475736
36-0.053311-0.40950.341833

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.249874 & 1.9193 & 0.029892 \tabularnewline
2 & -0.283509 & -2.1777 & 0.01672 \tabularnewline
3 & -0.190997 & -1.4671 & 0.073833 \tabularnewline
4 & -0.194363 & -1.4929 & 0.070392 \tabularnewline
5 & 0.07594 & 0.5833 & 0.280955 \tabularnewline
6 & -0.045098 & -0.3464 & 0.365135 \tabularnewline
7 & -0.079236 & -0.6086 & 0.272555 \tabularnewline
8 & -0.272432 & -2.0926 & 0.020348 \tabularnewline
9 & -0.154377 & -1.1858 & 0.120229 \tabularnewline
10 & -0.242532 & -1.8629 & 0.033727 \tabularnewline
11 & 0.180347 & 1.3853 & 0.085592 \tabularnewline
12 & 0.60031 & 4.6111 & 1.1e-05 \tabularnewline
13 & -0.189865 & -1.4584 & 0.07502 \tabularnewline
14 & 0.09901 & 0.7605 & 0.224989 \tabularnewline
15 & -0.02521 & -0.1936 & 0.42356 \tabularnewline
16 & 0.069241 & 0.5318 & 0.298415 \tabularnewline
17 & -0.108379 & -0.8325 & 0.204249 \tabularnewline
18 & -0.071548 & -0.5496 & 0.292345 \tabularnewline
19 & 0.029475 & 0.2264 & 0.410835 \tabularnewline
20 & -0.090906 & -0.6983 & 0.243878 \tabularnewline
21 & 0.009748 & 0.0749 & 0.470285 \tabularnewline
22 & 0.015092 & 0.1159 & 0.454054 \tabularnewline
23 & -0.208705 & -1.6031 & 0.057127 \tabularnewline
24 & -0.058502 & -0.4494 & 0.327409 \tabularnewline
25 & 0.07049 & 0.5414 & 0.295121 \tabularnewline
26 & -0.136516 & -1.0486 & 0.149319 \tabularnewline
27 & -3.5e-05 & -3e-04 & 0.499893 \tabularnewline
28 & -0.089138 & -0.6847 & 0.248113 \tabularnewline
29 & 0.004146 & 0.0318 & 0.487353 \tabularnewline
30 & -0.066294 & -0.5092 & 0.306252 \tabularnewline
31 & -0.047645 & -0.366 & 0.357848 \tabularnewline
32 & 0.058268 & 0.4476 & 0.328054 \tabularnewline
33 & -0.028547 & -0.2193 & 0.413597 \tabularnewline
34 & -0.109948 & -0.8445 & 0.200892 \tabularnewline
35 & 0.007957 & 0.0611 & 0.475736 \tabularnewline
36 & -0.053311 & -0.4095 & 0.341833 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63169&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.249874[/C][C]1.9193[/C][C]0.029892[/C][/ROW]
[ROW][C]2[/C][C]-0.283509[/C][C]-2.1777[/C][C]0.01672[/C][/ROW]
[ROW][C]3[/C][C]-0.190997[/C][C]-1.4671[/C][C]0.073833[/C][/ROW]
[ROW][C]4[/C][C]-0.194363[/C][C]-1.4929[/C][C]0.070392[/C][/ROW]
[ROW][C]5[/C][C]0.07594[/C][C]0.5833[/C][C]0.280955[/C][/ROW]
[ROW][C]6[/C][C]-0.045098[/C][C]-0.3464[/C][C]0.365135[/C][/ROW]
[ROW][C]7[/C][C]-0.079236[/C][C]-0.6086[/C][C]0.272555[/C][/ROW]
[ROW][C]8[/C][C]-0.272432[/C][C]-2.0926[/C][C]0.020348[/C][/ROW]
[ROW][C]9[/C][C]-0.154377[/C][C]-1.1858[/C][C]0.120229[/C][/ROW]
[ROW][C]10[/C][C]-0.242532[/C][C]-1.8629[/C][C]0.033727[/C][/ROW]
[ROW][C]11[/C][C]0.180347[/C][C]1.3853[/C][C]0.085592[/C][/ROW]
[ROW][C]12[/C][C]0.60031[/C][C]4.6111[/C][C]1.1e-05[/C][/ROW]
[ROW][C]13[/C][C]-0.189865[/C][C]-1.4584[/C][C]0.07502[/C][/ROW]
[ROW][C]14[/C][C]0.09901[/C][C]0.7605[/C][C]0.224989[/C][/ROW]
[ROW][C]15[/C][C]-0.02521[/C][C]-0.1936[/C][C]0.42356[/C][/ROW]
[ROW][C]16[/C][C]0.069241[/C][C]0.5318[/C][C]0.298415[/C][/ROW]
[ROW][C]17[/C][C]-0.108379[/C][C]-0.8325[/C][C]0.204249[/C][/ROW]
[ROW][C]18[/C][C]-0.071548[/C][C]-0.5496[/C][C]0.292345[/C][/ROW]
[ROW][C]19[/C][C]0.029475[/C][C]0.2264[/C][C]0.410835[/C][/ROW]
[ROW][C]20[/C][C]-0.090906[/C][C]-0.6983[/C][C]0.243878[/C][/ROW]
[ROW][C]21[/C][C]0.009748[/C][C]0.0749[/C][C]0.470285[/C][/ROW]
[ROW][C]22[/C][C]0.015092[/C][C]0.1159[/C][C]0.454054[/C][/ROW]
[ROW][C]23[/C][C]-0.208705[/C][C]-1.6031[/C][C]0.057127[/C][/ROW]
[ROW][C]24[/C][C]-0.058502[/C][C]-0.4494[/C][C]0.327409[/C][/ROW]
[ROW][C]25[/C][C]0.07049[/C][C]0.5414[/C][C]0.295121[/C][/ROW]
[ROW][C]26[/C][C]-0.136516[/C][C]-1.0486[/C][C]0.149319[/C][/ROW]
[ROW][C]27[/C][C]-3.5e-05[/C][C]-3e-04[/C][C]0.499893[/C][/ROW]
[ROW][C]28[/C][C]-0.089138[/C][C]-0.6847[/C][C]0.248113[/C][/ROW]
[ROW][C]29[/C][C]0.004146[/C][C]0.0318[/C][C]0.487353[/C][/ROW]
[ROW][C]30[/C][C]-0.066294[/C][C]-0.5092[/C][C]0.306252[/C][/ROW]
[ROW][C]31[/C][C]-0.047645[/C][C]-0.366[/C][C]0.357848[/C][/ROW]
[ROW][C]32[/C][C]0.058268[/C][C]0.4476[/C][C]0.328054[/C][/ROW]
[ROW][C]33[/C][C]-0.028547[/C][C]-0.2193[/C][C]0.413597[/C][/ROW]
[ROW][C]34[/C][C]-0.109948[/C][C]-0.8445[/C][C]0.200892[/C][/ROW]
[ROW][C]35[/C][C]0.007957[/C][C]0.0611[/C][C]0.475736[/C][/ROW]
[ROW][C]36[/C][C]-0.053311[/C][C]-0.4095[/C][C]0.341833[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63169&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63169&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.2498741.91930.029892
2-0.283509-2.17770.01672
3-0.190997-1.46710.073833
4-0.194363-1.49290.070392
50.075940.58330.280955
6-0.045098-0.34640.365135
7-0.079236-0.60860.272555
8-0.272432-2.09260.020348
9-0.154377-1.18580.120229
10-0.242532-1.86290.033727
110.1803471.38530.085592
120.600314.61111.1e-05
13-0.189865-1.45840.07502
140.099010.76050.224989
15-0.02521-0.19360.42356
160.0692410.53180.298415
17-0.108379-0.83250.204249
18-0.071548-0.54960.292345
190.0294750.22640.410835
20-0.090906-0.69830.243878
210.0097480.07490.470285
220.0150920.11590.454054
23-0.208705-1.60310.057127
24-0.058502-0.44940.327409
250.070490.54140.295121
26-0.136516-1.04860.149319
27-3.5e-05-3e-040.499893
28-0.089138-0.68470.248113
290.0041460.03180.487353
30-0.066294-0.50920.306252
31-0.047645-0.3660.357848
320.0582680.44760.328054
33-0.028547-0.21930.413597
34-0.109948-0.84450.200892
350.0079570.06110.475736
36-0.053311-0.40950.341833



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