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, 27 Nov 2009 01:30:36 -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/27/t1259310870i94e5kzdqt1u1x0.htm/, Retrieved Sun, 28 Apr 2024 23:07:41 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60469, Retrieved Sun, 28 Apr 2024 23:07:41 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact189
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [Workshop8 ACF d=D...] [2009-11-27 08:30:36] [5ed0eef5d4509bbfdac0ae6d87f3b4bf] [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
528222
532638
536322
536535
523597
536214
586570
596594
580523




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60469&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.891687.40680
20.7250216.02250
30.6089375.05822e-06
40.5614634.66397e-06
50.5605594.65648e-06
60.5435584.51511.3e-05
70.4860154.03716.9e-05
80.4124873.42640.000517
90.383043.18180.001097
100.4113733.41710.000533
110.4844264.02397.2e-05
120.5017164.16764.4e-05
130.354552.94510.002199
140.1751141.45460.075156
150.047650.39580.346732
16-0.010171-0.08450.466456
17-0.024544-0.20390.419523
18-0.05024-0.41730.338868
19-0.105218-0.8740.192574
20-0.17012-1.41310.081058
21-0.19047-1.58220.059092
22-0.161193-1.3390.092487
23-0.101826-0.84580.200285
24-0.090915-0.75520.22635
25-0.200832-1.66820.0499
26-0.328078-2.72520.004068
27-0.402192-3.34090.000675
28-0.413652-3.43610.000502
29-0.392872-3.26340.000857
30-0.378898-3.14740.001217
31-0.388849-3.230.000949
32-0.403938-3.35540.000646
33-0.37848-3.14390.001229
34-0.315344-2.61940.00541
35-0.235977-1.96020.027008
36-0.191995-1.59480.057661

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.89168 & 7.4068 & 0 \tabularnewline
2 & 0.725021 & 6.0225 & 0 \tabularnewline
3 & 0.608937 & 5.0582 & 2e-06 \tabularnewline
4 & 0.561463 & 4.6639 & 7e-06 \tabularnewline
5 & 0.560559 & 4.6564 & 8e-06 \tabularnewline
6 & 0.543558 & 4.5151 & 1.3e-05 \tabularnewline
7 & 0.486015 & 4.0371 & 6.9e-05 \tabularnewline
8 & 0.412487 & 3.4264 & 0.000517 \tabularnewline
9 & 0.38304 & 3.1818 & 0.001097 \tabularnewline
10 & 0.411373 & 3.4171 & 0.000533 \tabularnewline
11 & 0.484426 & 4.0239 & 7.2e-05 \tabularnewline
12 & 0.501716 & 4.1676 & 4.4e-05 \tabularnewline
13 & 0.35455 & 2.9451 & 0.002199 \tabularnewline
14 & 0.175114 & 1.4546 & 0.075156 \tabularnewline
15 & 0.04765 & 0.3958 & 0.346732 \tabularnewline
16 & -0.010171 & -0.0845 & 0.466456 \tabularnewline
17 & -0.024544 & -0.2039 & 0.419523 \tabularnewline
18 & -0.05024 & -0.4173 & 0.338868 \tabularnewline
19 & -0.105218 & -0.874 & 0.192574 \tabularnewline
20 & -0.17012 & -1.4131 & 0.081058 \tabularnewline
21 & -0.19047 & -1.5822 & 0.059092 \tabularnewline
22 & -0.161193 & -1.339 & 0.092487 \tabularnewline
23 & -0.101826 & -0.8458 & 0.200285 \tabularnewline
24 & -0.090915 & -0.7552 & 0.22635 \tabularnewline
25 & -0.200832 & -1.6682 & 0.0499 \tabularnewline
26 & -0.328078 & -2.7252 & 0.004068 \tabularnewline
27 & -0.402192 & -3.3409 & 0.000675 \tabularnewline
28 & -0.413652 & -3.4361 & 0.000502 \tabularnewline
29 & -0.392872 & -3.2634 & 0.000857 \tabularnewline
30 & -0.378898 & -3.1474 & 0.001217 \tabularnewline
31 & -0.388849 & -3.23 & 0.000949 \tabularnewline
32 & -0.403938 & -3.3554 & 0.000646 \tabularnewline
33 & -0.37848 & -3.1439 & 0.001229 \tabularnewline
34 & -0.315344 & -2.6194 & 0.00541 \tabularnewline
35 & -0.235977 & -1.9602 & 0.027008 \tabularnewline
36 & -0.191995 & -1.5948 & 0.057661 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60469&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.89168[/C][C]7.4068[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.725021[/C][C]6.0225[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.608937[/C][C]5.0582[/C][C]2e-06[/C][/ROW]
[ROW][C]4[/C][C]0.561463[/C][C]4.6639[/C][C]7e-06[/C][/ROW]
[ROW][C]5[/C][C]0.560559[/C][C]4.6564[/C][C]8e-06[/C][/ROW]
[ROW][C]6[/C][C]0.543558[/C][C]4.5151[/C][C]1.3e-05[/C][/ROW]
[ROW][C]7[/C][C]0.486015[/C][C]4.0371[/C][C]6.9e-05[/C][/ROW]
[ROW][C]8[/C][C]0.412487[/C][C]3.4264[/C][C]0.000517[/C][/ROW]
[ROW][C]9[/C][C]0.38304[/C][C]3.1818[/C][C]0.001097[/C][/ROW]
[ROW][C]10[/C][C]0.411373[/C][C]3.4171[/C][C]0.000533[/C][/ROW]
[ROW][C]11[/C][C]0.484426[/C][C]4.0239[/C][C]7.2e-05[/C][/ROW]
[ROW][C]12[/C][C]0.501716[/C][C]4.1676[/C][C]4.4e-05[/C][/ROW]
[ROW][C]13[/C][C]0.35455[/C][C]2.9451[/C][C]0.002199[/C][/ROW]
[ROW][C]14[/C][C]0.175114[/C][C]1.4546[/C][C]0.075156[/C][/ROW]
[ROW][C]15[/C][C]0.04765[/C][C]0.3958[/C][C]0.346732[/C][/ROW]
[ROW][C]16[/C][C]-0.010171[/C][C]-0.0845[/C][C]0.466456[/C][/ROW]
[ROW][C]17[/C][C]-0.024544[/C][C]-0.2039[/C][C]0.419523[/C][/ROW]
[ROW][C]18[/C][C]-0.05024[/C][C]-0.4173[/C][C]0.338868[/C][/ROW]
[ROW][C]19[/C][C]-0.105218[/C][C]-0.874[/C][C]0.192574[/C][/ROW]
[ROW][C]20[/C][C]-0.17012[/C][C]-1.4131[/C][C]0.081058[/C][/ROW]
[ROW][C]21[/C][C]-0.19047[/C][C]-1.5822[/C][C]0.059092[/C][/ROW]
[ROW][C]22[/C][C]-0.161193[/C][C]-1.339[/C][C]0.092487[/C][/ROW]
[ROW][C]23[/C][C]-0.101826[/C][C]-0.8458[/C][C]0.200285[/C][/ROW]
[ROW][C]24[/C][C]-0.090915[/C][C]-0.7552[/C][C]0.22635[/C][/ROW]
[ROW][C]25[/C][C]-0.200832[/C][C]-1.6682[/C][C]0.0499[/C][/ROW]
[ROW][C]26[/C][C]-0.328078[/C][C]-2.7252[/C][C]0.004068[/C][/ROW]
[ROW][C]27[/C][C]-0.402192[/C][C]-3.3409[/C][C]0.000675[/C][/ROW]
[ROW][C]28[/C][C]-0.413652[/C][C]-3.4361[/C][C]0.000502[/C][/ROW]
[ROW][C]29[/C][C]-0.392872[/C][C]-3.2634[/C][C]0.000857[/C][/ROW]
[ROW][C]30[/C][C]-0.378898[/C][C]-3.1474[/C][C]0.001217[/C][/ROW]
[ROW][C]31[/C][C]-0.388849[/C][C]-3.23[/C][C]0.000949[/C][/ROW]
[ROW][C]32[/C][C]-0.403938[/C][C]-3.3554[/C][C]0.000646[/C][/ROW]
[ROW][C]33[/C][C]-0.37848[/C][C]-3.1439[/C][C]0.001229[/C][/ROW]
[ROW][C]34[/C][C]-0.315344[/C][C]-2.6194[/C][C]0.00541[/C][/ROW]
[ROW][C]35[/C][C]-0.235977[/C][C]-1.9602[/C][C]0.027008[/C][/ROW]
[ROW][C]36[/C][C]-0.191995[/C][C]-1.5948[/C][C]0.057661[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60469&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60469&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.891687.40680
20.7250216.02250
30.6089375.05822e-06
40.5614634.66397e-06
50.5605594.65648e-06
60.5435584.51511.3e-05
70.4860154.03716.9e-05
80.4124873.42640.000517
90.383043.18180.001097
100.4113733.41710.000533
110.4844264.02397.2e-05
120.5017164.16764.4e-05
130.354552.94510.002199
140.1751141.45460.075156
150.047650.39580.346732
16-0.010171-0.08450.466456
17-0.024544-0.20390.419523
18-0.05024-0.41730.338868
19-0.105218-0.8740.192574
20-0.17012-1.41310.081058
21-0.19047-1.58220.059092
22-0.161193-1.3390.092487
23-0.101826-0.84580.200285
24-0.090915-0.75520.22635
25-0.200832-1.66820.0499
26-0.328078-2.72520.004068
27-0.402192-3.34090.000675
28-0.413652-3.43610.000502
29-0.392872-3.26340.000857
30-0.378898-3.14740.001217
31-0.388849-3.230.000949
32-0.403938-3.35540.000646
33-0.37848-3.14390.001229
34-0.315344-2.61940.00541
35-0.235977-1.96020.027008
36-0.191995-1.59480.057661







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.891687.40680
2-0.341968-2.84060.002957
30.2558762.12550.018565
40.125881.04560.149688
50.1327951.10310.136913
6-0.098144-0.81520.208869
7-0.046903-0.38960.349015
8-0.006678-0.05550.47796
90.1903171.58090.059238
100.1090860.90610.184009
110.2257081.87490.032521
12-0.274697-2.28180.012795
13-0.661791-5.49720
140.1782421.48060.071634
15-0.135899-1.12890.131433
16-0.040397-0.33560.369109
17-0.050287-0.41770.338727
180.0199330.16560.434488
190.0576190.47860.316861
20-0.030913-0.25680.399057
210.0492660.40920.341819
22-0.023602-0.1960.422574
23-0.10091-0.83820.202401
240.0857010.71190.239467
25-0.032226-0.26770.394869
26-0.047786-0.39690.346319
270.0569660.47320.318785
28-0.070218-0.58330.280806
29-0.009544-0.07930.468522
300.0438270.36410.358466
31-0.038968-0.32370.373574
320.0554360.46050.323308
33-0.037407-0.31070.378472
340.0308420.25620.399281
350.0083990.06980.47229
360.1054970.87630.191948

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.89168 & 7.4068 & 0 \tabularnewline
2 & -0.341968 & -2.8406 & 0.002957 \tabularnewline
3 & 0.255876 & 2.1255 & 0.018565 \tabularnewline
4 & 0.12588 & 1.0456 & 0.149688 \tabularnewline
5 & 0.132795 & 1.1031 & 0.136913 \tabularnewline
6 & -0.098144 & -0.8152 & 0.208869 \tabularnewline
7 & -0.046903 & -0.3896 & 0.349015 \tabularnewline
8 & -0.006678 & -0.0555 & 0.47796 \tabularnewline
9 & 0.190317 & 1.5809 & 0.059238 \tabularnewline
10 & 0.109086 & 0.9061 & 0.184009 \tabularnewline
11 & 0.225708 & 1.8749 & 0.032521 \tabularnewline
12 & -0.274697 & -2.2818 & 0.012795 \tabularnewline
13 & -0.661791 & -5.4972 & 0 \tabularnewline
14 & 0.178242 & 1.4806 & 0.071634 \tabularnewline
15 & -0.135899 & -1.1289 & 0.131433 \tabularnewline
16 & -0.040397 & -0.3356 & 0.369109 \tabularnewline
17 & -0.050287 & -0.4177 & 0.338727 \tabularnewline
18 & 0.019933 & 0.1656 & 0.434488 \tabularnewline
19 & 0.057619 & 0.4786 & 0.316861 \tabularnewline
20 & -0.030913 & -0.2568 & 0.399057 \tabularnewline
21 & 0.049266 & 0.4092 & 0.341819 \tabularnewline
22 & -0.023602 & -0.196 & 0.422574 \tabularnewline
23 & -0.10091 & -0.8382 & 0.202401 \tabularnewline
24 & 0.085701 & 0.7119 & 0.239467 \tabularnewline
25 & -0.032226 & -0.2677 & 0.394869 \tabularnewline
26 & -0.047786 & -0.3969 & 0.346319 \tabularnewline
27 & 0.056966 & 0.4732 & 0.318785 \tabularnewline
28 & -0.070218 & -0.5833 & 0.280806 \tabularnewline
29 & -0.009544 & -0.0793 & 0.468522 \tabularnewline
30 & 0.043827 & 0.3641 & 0.358466 \tabularnewline
31 & -0.038968 & -0.3237 & 0.373574 \tabularnewline
32 & 0.055436 & 0.4605 & 0.323308 \tabularnewline
33 & -0.037407 & -0.3107 & 0.378472 \tabularnewline
34 & 0.030842 & 0.2562 & 0.399281 \tabularnewline
35 & 0.008399 & 0.0698 & 0.47229 \tabularnewline
36 & 0.105497 & 0.8763 & 0.191948 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60469&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.89168[/C][C]7.4068[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.341968[/C][C]-2.8406[/C][C]0.002957[/C][/ROW]
[ROW][C]3[/C][C]0.255876[/C][C]2.1255[/C][C]0.018565[/C][/ROW]
[ROW][C]4[/C][C]0.12588[/C][C]1.0456[/C][C]0.149688[/C][/ROW]
[ROW][C]5[/C][C]0.132795[/C][C]1.1031[/C][C]0.136913[/C][/ROW]
[ROW][C]6[/C][C]-0.098144[/C][C]-0.8152[/C][C]0.208869[/C][/ROW]
[ROW][C]7[/C][C]-0.046903[/C][C]-0.3896[/C][C]0.349015[/C][/ROW]
[ROW][C]8[/C][C]-0.006678[/C][C]-0.0555[/C][C]0.47796[/C][/ROW]
[ROW][C]9[/C][C]0.190317[/C][C]1.5809[/C][C]0.059238[/C][/ROW]
[ROW][C]10[/C][C]0.109086[/C][C]0.9061[/C][C]0.184009[/C][/ROW]
[ROW][C]11[/C][C]0.225708[/C][C]1.8749[/C][C]0.032521[/C][/ROW]
[ROW][C]12[/C][C]-0.274697[/C][C]-2.2818[/C][C]0.012795[/C][/ROW]
[ROW][C]13[/C][C]-0.661791[/C][C]-5.4972[/C][C]0[/C][/ROW]
[ROW][C]14[/C][C]0.178242[/C][C]1.4806[/C][C]0.071634[/C][/ROW]
[ROW][C]15[/C][C]-0.135899[/C][C]-1.1289[/C][C]0.131433[/C][/ROW]
[ROW][C]16[/C][C]-0.040397[/C][C]-0.3356[/C][C]0.369109[/C][/ROW]
[ROW][C]17[/C][C]-0.050287[/C][C]-0.4177[/C][C]0.338727[/C][/ROW]
[ROW][C]18[/C][C]0.019933[/C][C]0.1656[/C][C]0.434488[/C][/ROW]
[ROW][C]19[/C][C]0.057619[/C][C]0.4786[/C][C]0.316861[/C][/ROW]
[ROW][C]20[/C][C]-0.030913[/C][C]-0.2568[/C][C]0.399057[/C][/ROW]
[ROW][C]21[/C][C]0.049266[/C][C]0.4092[/C][C]0.341819[/C][/ROW]
[ROW][C]22[/C][C]-0.023602[/C][C]-0.196[/C][C]0.422574[/C][/ROW]
[ROW][C]23[/C][C]-0.10091[/C][C]-0.8382[/C][C]0.202401[/C][/ROW]
[ROW][C]24[/C][C]0.085701[/C][C]0.7119[/C][C]0.239467[/C][/ROW]
[ROW][C]25[/C][C]-0.032226[/C][C]-0.2677[/C][C]0.394869[/C][/ROW]
[ROW][C]26[/C][C]-0.047786[/C][C]-0.3969[/C][C]0.346319[/C][/ROW]
[ROW][C]27[/C][C]0.056966[/C][C]0.4732[/C][C]0.318785[/C][/ROW]
[ROW][C]28[/C][C]-0.070218[/C][C]-0.5833[/C][C]0.280806[/C][/ROW]
[ROW][C]29[/C][C]-0.009544[/C][C]-0.0793[/C][C]0.468522[/C][/ROW]
[ROW][C]30[/C][C]0.043827[/C][C]0.3641[/C][C]0.358466[/C][/ROW]
[ROW][C]31[/C][C]-0.038968[/C][C]-0.3237[/C][C]0.373574[/C][/ROW]
[ROW][C]32[/C][C]0.055436[/C][C]0.4605[/C][C]0.323308[/C][/ROW]
[ROW][C]33[/C][C]-0.037407[/C][C]-0.3107[/C][C]0.378472[/C][/ROW]
[ROW][C]34[/C][C]0.030842[/C][C]0.2562[/C][C]0.399281[/C][/ROW]
[ROW][C]35[/C][C]0.008399[/C][C]0.0698[/C][C]0.47229[/C][/ROW]
[ROW][C]36[/C][C]0.105497[/C][C]0.8763[/C][C]0.191948[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60469&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60469&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.891687.40680
2-0.341968-2.84060.002957
30.2558762.12550.018565
40.125881.04560.149688
50.1327951.10310.136913
6-0.098144-0.81520.208869
7-0.046903-0.38960.349015
8-0.006678-0.05550.47796
90.1903171.58090.059238
100.1090860.90610.184009
110.2257081.87490.032521
12-0.274697-2.28180.012795
13-0.661791-5.49720
140.1782421.48060.071634
15-0.135899-1.12890.131433
16-0.040397-0.33560.369109
17-0.050287-0.41770.338727
180.0199330.16560.434488
190.0576190.47860.316861
20-0.030913-0.25680.399057
210.0492660.40920.341819
22-0.023602-0.1960.422574
23-0.10091-0.83820.202401
240.0857010.71190.239467
25-0.032226-0.26770.394869
26-0.047786-0.39690.346319
270.0569660.47320.318785
28-0.070218-0.58330.280806
29-0.009544-0.07930.468522
300.0438270.36410.358466
31-0.038968-0.32370.373574
320.0554360.46050.323308
33-0.037407-0.31070.378472
340.0308420.25620.399281
350.0083990.06980.47229
360.1054970.87630.191948



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')