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

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact93
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   [ARIMA Backward Selection] [] [2009-11-27 14:53:14] [b98453cac15ba1066b407e146608df68]
- RMPD      [(Partial) Autocorrelation Function] [Workshop9 ARIMAba...] [2009-12-04 15:04:07] [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=63721&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=63721&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63721&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.1415731.05940.146974
20.2705362.02450.023849
30.3279472.45410.008629
40.2193371.64140.053163
50.1058310.7920.215862
60.1671491.25080.108098
70.03640.27240.393161
80.1553461.16250.124981
90.0546680.40910.342015
10-0.068285-0.5110.30568
110.317732.37770.010431
12-0.048386-0.36210.359324
13-0.010184-0.07620.469762
140.1801991.34850.091465
150.0572320.42830.335043
160.0273210.20440.419372
170.0728820.54540.293822
18-0.078066-0.58420.280719
190.0500710.37470.35465
20-0.036976-0.27670.391515
21-0.183138-1.37050.088003
22-0.026611-0.19910.421436
23-0.09908-0.74140.230761
24-0.198609-1.48630.071411
25-0.109813-0.82180.207347
26-0.189162-1.41560.081221
27-0.1981-1.48240.071914
28-0.184081-1.37750.086914
29-0.130371-0.97560.166728
30-0.121054-0.90590.184439
31-0.021028-0.15740.437763
32-0.160926-1.20430.116777
330.0045360.03390.486523
34-0.046646-0.34910.364174
35-0.006497-0.04860.480698
36-0.059744-0.44710.328269

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.141573 & 1.0594 & 0.146974 \tabularnewline
2 & 0.270536 & 2.0245 & 0.023849 \tabularnewline
3 & 0.327947 & 2.4541 & 0.008629 \tabularnewline
4 & 0.219337 & 1.6414 & 0.053163 \tabularnewline
5 & 0.105831 & 0.792 & 0.215862 \tabularnewline
6 & 0.167149 & 1.2508 & 0.108098 \tabularnewline
7 & 0.0364 & 0.2724 & 0.393161 \tabularnewline
8 & 0.155346 & 1.1625 & 0.124981 \tabularnewline
9 & 0.054668 & 0.4091 & 0.342015 \tabularnewline
10 & -0.068285 & -0.511 & 0.30568 \tabularnewline
11 & 0.31773 & 2.3777 & 0.010431 \tabularnewline
12 & -0.048386 & -0.3621 & 0.359324 \tabularnewline
13 & -0.010184 & -0.0762 & 0.469762 \tabularnewline
14 & 0.180199 & 1.3485 & 0.091465 \tabularnewline
15 & 0.057232 & 0.4283 & 0.335043 \tabularnewline
16 & 0.027321 & 0.2044 & 0.419372 \tabularnewline
17 & 0.072882 & 0.5454 & 0.293822 \tabularnewline
18 & -0.078066 & -0.5842 & 0.280719 \tabularnewline
19 & 0.050071 & 0.3747 & 0.35465 \tabularnewline
20 & -0.036976 & -0.2767 & 0.391515 \tabularnewline
21 & -0.183138 & -1.3705 & 0.088003 \tabularnewline
22 & -0.026611 & -0.1991 & 0.421436 \tabularnewline
23 & -0.09908 & -0.7414 & 0.230761 \tabularnewline
24 & -0.198609 & -1.4863 & 0.071411 \tabularnewline
25 & -0.109813 & -0.8218 & 0.207347 \tabularnewline
26 & -0.189162 & -1.4156 & 0.081221 \tabularnewline
27 & -0.1981 & -1.4824 & 0.071914 \tabularnewline
28 & -0.184081 & -1.3775 & 0.086914 \tabularnewline
29 & -0.130371 & -0.9756 & 0.166728 \tabularnewline
30 & -0.121054 & -0.9059 & 0.184439 \tabularnewline
31 & -0.021028 & -0.1574 & 0.437763 \tabularnewline
32 & -0.160926 & -1.2043 & 0.116777 \tabularnewline
33 & 0.004536 & 0.0339 & 0.486523 \tabularnewline
34 & -0.046646 & -0.3491 & 0.364174 \tabularnewline
35 & -0.006497 & -0.0486 & 0.480698 \tabularnewline
36 & -0.059744 & -0.4471 & 0.328269 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63721&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.141573[/C][C]1.0594[/C][C]0.146974[/C][/ROW]
[ROW][C]2[/C][C]0.270536[/C][C]2.0245[/C][C]0.023849[/C][/ROW]
[ROW][C]3[/C][C]0.327947[/C][C]2.4541[/C][C]0.008629[/C][/ROW]
[ROW][C]4[/C][C]0.219337[/C][C]1.6414[/C][C]0.053163[/C][/ROW]
[ROW][C]5[/C][C]0.105831[/C][C]0.792[/C][C]0.215862[/C][/ROW]
[ROW][C]6[/C][C]0.167149[/C][C]1.2508[/C][C]0.108098[/C][/ROW]
[ROW][C]7[/C][C]0.0364[/C][C]0.2724[/C][C]0.393161[/C][/ROW]
[ROW][C]8[/C][C]0.155346[/C][C]1.1625[/C][C]0.124981[/C][/ROW]
[ROW][C]9[/C][C]0.054668[/C][C]0.4091[/C][C]0.342015[/C][/ROW]
[ROW][C]10[/C][C]-0.068285[/C][C]-0.511[/C][C]0.30568[/C][/ROW]
[ROW][C]11[/C][C]0.31773[/C][C]2.3777[/C][C]0.010431[/C][/ROW]
[ROW][C]12[/C][C]-0.048386[/C][C]-0.3621[/C][C]0.359324[/C][/ROW]
[ROW][C]13[/C][C]-0.010184[/C][C]-0.0762[/C][C]0.469762[/C][/ROW]
[ROW][C]14[/C][C]0.180199[/C][C]1.3485[/C][C]0.091465[/C][/ROW]
[ROW][C]15[/C][C]0.057232[/C][C]0.4283[/C][C]0.335043[/C][/ROW]
[ROW][C]16[/C][C]0.027321[/C][C]0.2044[/C][C]0.419372[/C][/ROW]
[ROW][C]17[/C][C]0.072882[/C][C]0.5454[/C][C]0.293822[/C][/ROW]
[ROW][C]18[/C][C]-0.078066[/C][C]-0.5842[/C][C]0.280719[/C][/ROW]
[ROW][C]19[/C][C]0.050071[/C][C]0.3747[/C][C]0.35465[/C][/ROW]
[ROW][C]20[/C][C]-0.036976[/C][C]-0.2767[/C][C]0.391515[/C][/ROW]
[ROW][C]21[/C][C]-0.183138[/C][C]-1.3705[/C][C]0.088003[/C][/ROW]
[ROW][C]22[/C][C]-0.026611[/C][C]-0.1991[/C][C]0.421436[/C][/ROW]
[ROW][C]23[/C][C]-0.09908[/C][C]-0.7414[/C][C]0.230761[/C][/ROW]
[ROW][C]24[/C][C]-0.198609[/C][C]-1.4863[/C][C]0.071411[/C][/ROW]
[ROW][C]25[/C][C]-0.109813[/C][C]-0.8218[/C][C]0.207347[/C][/ROW]
[ROW][C]26[/C][C]-0.189162[/C][C]-1.4156[/C][C]0.081221[/C][/ROW]
[ROW][C]27[/C][C]-0.1981[/C][C]-1.4824[/C][C]0.071914[/C][/ROW]
[ROW][C]28[/C][C]-0.184081[/C][C]-1.3775[/C][C]0.086914[/C][/ROW]
[ROW][C]29[/C][C]-0.130371[/C][C]-0.9756[/C][C]0.166728[/C][/ROW]
[ROW][C]30[/C][C]-0.121054[/C][C]-0.9059[/C][C]0.184439[/C][/ROW]
[ROW][C]31[/C][C]-0.021028[/C][C]-0.1574[/C][C]0.437763[/C][/ROW]
[ROW][C]32[/C][C]-0.160926[/C][C]-1.2043[/C][C]0.116777[/C][/ROW]
[ROW][C]33[/C][C]0.004536[/C][C]0.0339[/C][C]0.486523[/C][/ROW]
[ROW][C]34[/C][C]-0.046646[/C][C]-0.3491[/C][C]0.364174[/C][/ROW]
[ROW][C]35[/C][C]-0.006497[/C][C]-0.0486[/C][C]0.480698[/C][/ROW]
[ROW][C]36[/C][C]-0.059744[/C][C]-0.4471[/C][C]0.328269[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63721&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63721&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.1415731.05940.146974
20.2705362.02450.023849
30.3279472.45410.008629
40.2193371.64140.053163
50.1058310.7920.215862
60.1671491.25080.108098
70.03640.27240.393161
80.1553461.16250.124981
90.0546680.40910.342015
10-0.068285-0.5110.30568
110.317732.37770.010431
12-0.048386-0.36210.359324
13-0.010184-0.07620.469762
140.1801991.34850.091465
150.0572320.42830.335043
160.0273210.20440.419372
170.0728820.54540.293822
18-0.078066-0.58420.280719
190.0500710.37470.35465
20-0.036976-0.27670.391515
21-0.183138-1.37050.088003
22-0.026611-0.19910.421436
23-0.09908-0.74140.230761
24-0.198609-1.48630.071411
25-0.109813-0.82180.207347
26-0.189162-1.41560.081221
27-0.1981-1.48240.071914
28-0.184081-1.37750.086914
29-0.130371-0.97560.166728
30-0.121054-0.90590.184439
31-0.021028-0.15740.437763
32-0.160926-1.20430.116777
330.0045360.03390.486523
34-0.046646-0.34910.364174
35-0.006497-0.04860.480698
36-0.059744-0.44710.328269







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1415731.05940.146974
20.2556161.91290.030443
30.2874122.15080.017911
40.1276030.95490.171868
5-0.063285-0.47360.318819
6-0.003317-0.02480.490142
7-0.092741-0.6940.245273
80.1000820.74890.228513
90.0163080.1220.451653
10-0.148374-1.11030.135801
110.322132.41060.009617
12-0.10559-0.79020.216383
13-0.087756-0.65670.25703
140.1098210.82180.207332
150.0002030.00150.499396
160.0461230.34520.365635
17-0.068387-0.51180.305416
18-0.133292-0.99750.161415
190.0015750.01180.495318
20-0.047231-0.35340.36254
21-0.078523-0.58760.279576
22-0.132127-0.98870.16352
230.0268270.20080.420808
24-0.020161-0.15090.440308
25-0.146735-1.09810.138437
26-0.088959-0.66570.254165
27-0.083669-0.62610.266888
28-0.092644-0.69330.245498
290.1484431.11080.135692
30-0.025007-0.18710.426115
310.1138380.85190.198952
320.0109110.08170.467607
330.0295830.22140.412802
34-0.021192-0.15860.437283
350.0928430.69480.245035
360.0185440.13880.445065

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.141573 & 1.0594 & 0.146974 \tabularnewline
2 & 0.255616 & 1.9129 & 0.030443 \tabularnewline
3 & 0.287412 & 2.1508 & 0.017911 \tabularnewline
4 & 0.127603 & 0.9549 & 0.171868 \tabularnewline
5 & -0.063285 & -0.4736 & 0.318819 \tabularnewline
6 & -0.003317 & -0.0248 & 0.490142 \tabularnewline
7 & -0.092741 & -0.694 & 0.245273 \tabularnewline
8 & 0.100082 & 0.7489 & 0.228513 \tabularnewline
9 & 0.016308 & 0.122 & 0.451653 \tabularnewline
10 & -0.148374 & -1.1103 & 0.135801 \tabularnewline
11 & 0.32213 & 2.4106 & 0.009617 \tabularnewline
12 & -0.10559 & -0.7902 & 0.216383 \tabularnewline
13 & -0.087756 & -0.6567 & 0.25703 \tabularnewline
14 & 0.109821 & 0.8218 & 0.207332 \tabularnewline
15 & 0.000203 & 0.0015 & 0.499396 \tabularnewline
16 & 0.046123 & 0.3452 & 0.365635 \tabularnewline
17 & -0.068387 & -0.5118 & 0.305416 \tabularnewline
18 & -0.133292 & -0.9975 & 0.161415 \tabularnewline
19 & 0.001575 & 0.0118 & 0.495318 \tabularnewline
20 & -0.047231 & -0.3534 & 0.36254 \tabularnewline
21 & -0.078523 & -0.5876 & 0.279576 \tabularnewline
22 & -0.132127 & -0.9887 & 0.16352 \tabularnewline
23 & 0.026827 & 0.2008 & 0.420808 \tabularnewline
24 & -0.020161 & -0.1509 & 0.440308 \tabularnewline
25 & -0.146735 & -1.0981 & 0.138437 \tabularnewline
26 & -0.088959 & -0.6657 & 0.254165 \tabularnewline
27 & -0.083669 & -0.6261 & 0.266888 \tabularnewline
28 & -0.092644 & -0.6933 & 0.245498 \tabularnewline
29 & 0.148443 & 1.1108 & 0.135692 \tabularnewline
30 & -0.025007 & -0.1871 & 0.426115 \tabularnewline
31 & 0.113838 & 0.8519 & 0.198952 \tabularnewline
32 & 0.010911 & 0.0817 & 0.467607 \tabularnewline
33 & 0.029583 & 0.2214 & 0.412802 \tabularnewline
34 & -0.021192 & -0.1586 & 0.437283 \tabularnewline
35 & 0.092843 & 0.6948 & 0.245035 \tabularnewline
36 & 0.018544 & 0.1388 & 0.445065 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63721&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.141573[/C][C]1.0594[/C][C]0.146974[/C][/ROW]
[ROW][C]2[/C][C]0.255616[/C][C]1.9129[/C][C]0.030443[/C][/ROW]
[ROW][C]3[/C][C]0.287412[/C][C]2.1508[/C][C]0.017911[/C][/ROW]
[ROW][C]4[/C][C]0.127603[/C][C]0.9549[/C][C]0.171868[/C][/ROW]
[ROW][C]5[/C][C]-0.063285[/C][C]-0.4736[/C][C]0.318819[/C][/ROW]
[ROW][C]6[/C][C]-0.003317[/C][C]-0.0248[/C][C]0.490142[/C][/ROW]
[ROW][C]7[/C][C]-0.092741[/C][C]-0.694[/C][C]0.245273[/C][/ROW]
[ROW][C]8[/C][C]0.100082[/C][C]0.7489[/C][C]0.228513[/C][/ROW]
[ROW][C]9[/C][C]0.016308[/C][C]0.122[/C][C]0.451653[/C][/ROW]
[ROW][C]10[/C][C]-0.148374[/C][C]-1.1103[/C][C]0.135801[/C][/ROW]
[ROW][C]11[/C][C]0.32213[/C][C]2.4106[/C][C]0.009617[/C][/ROW]
[ROW][C]12[/C][C]-0.10559[/C][C]-0.7902[/C][C]0.216383[/C][/ROW]
[ROW][C]13[/C][C]-0.087756[/C][C]-0.6567[/C][C]0.25703[/C][/ROW]
[ROW][C]14[/C][C]0.109821[/C][C]0.8218[/C][C]0.207332[/C][/ROW]
[ROW][C]15[/C][C]0.000203[/C][C]0.0015[/C][C]0.499396[/C][/ROW]
[ROW][C]16[/C][C]0.046123[/C][C]0.3452[/C][C]0.365635[/C][/ROW]
[ROW][C]17[/C][C]-0.068387[/C][C]-0.5118[/C][C]0.305416[/C][/ROW]
[ROW][C]18[/C][C]-0.133292[/C][C]-0.9975[/C][C]0.161415[/C][/ROW]
[ROW][C]19[/C][C]0.001575[/C][C]0.0118[/C][C]0.495318[/C][/ROW]
[ROW][C]20[/C][C]-0.047231[/C][C]-0.3534[/C][C]0.36254[/C][/ROW]
[ROW][C]21[/C][C]-0.078523[/C][C]-0.5876[/C][C]0.279576[/C][/ROW]
[ROW][C]22[/C][C]-0.132127[/C][C]-0.9887[/C][C]0.16352[/C][/ROW]
[ROW][C]23[/C][C]0.026827[/C][C]0.2008[/C][C]0.420808[/C][/ROW]
[ROW][C]24[/C][C]-0.020161[/C][C]-0.1509[/C][C]0.440308[/C][/ROW]
[ROW][C]25[/C][C]-0.146735[/C][C]-1.0981[/C][C]0.138437[/C][/ROW]
[ROW][C]26[/C][C]-0.088959[/C][C]-0.6657[/C][C]0.254165[/C][/ROW]
[ROW][C]27[/C][C]-0.083669[/C][C]-0.6261[/C][C]0.266888[/C][/ROW]
[ROW][C]28[/C][C]-0.092644[/C][C]-0.6933[/C][C]0.245498[/C][/ROW]
[ROW][C]29[/C][C]0.148443[/C][C]1.1108[/C][C]0.135692[/C][/ROW]
[ROW][C]30[/C][C]-0.025007[/C][C]-0.1871[/C][C]0.426115[/C][/ROW]
[ROW][C]31[/C][C]0.113838[/C][C]0.8519[/C][C]0.198952[/C][/ROW]
[ROW][C]32[/C][C]0.010911[/C][C]0.0817[/C][C]0.467607[/C][/ROW]
[ROW][C]33[/C][C]0.029583[/C][C]0.2214[/C][C]0.412802[/C][/ROW]
[ROW][C]34[/C][C]-0.021192[/C][C]-0.1586[/C][C]0.437283[/C][/ROW]
[ROW][C]35[/C][C]0.092843[/C][C]0.6948[/C][C]0.245035[/C][/ROW]
[ROW][C]36[/C][C]0.018544[/C][C]0.1388[/C][C]0.445065[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63721&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63721&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.1415731.05940.146974
20.2556161.91290.030443
30.2874122.15080.017911
40.1276030.95490.171868
5-0.063285-0.47360.318819
6-0.003317-0.02480.490142
7-0.092741-0.6940.245273
80.1000820.74890.228513
90.0163080.1220.451653
10-0.148374-1.11030.135801
110.322132.41060.009617
12-0.10559-0.79020.216383
13-0.087756-0.65670.25703
140.1098210.82180.207332
150.0002030.00150.499396
160.0461230.34520.365635
17-0.068387-0.51180.305416
18-0.133292-0.99750.161415
190.0015750.01180.495318
20-0.047231-0.35340.36254
21-0.078523-0.58760.279576
22-0.132127-0.98870.16352
230.0268270.20080.420808
24-0.020161-0.15090.440308
25-0.146735-1.09810.138437
26-0.088959-0.66570.254165
27-0.083669-0.62610.266888
28-0.092644-0.69330.245498
290.1484431.11080.135692
30-0.025007-0.18710.426115
310.1138380.85190.198952
320.0109110.08170.467607
330.0295830.22140.412802
34-0.021192-0.15860.437283
350.0928430.69480.245035
360.0185440.13880.445065



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