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 07:46: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/t1259938011rekltbjy1e14pkp.htm/, Retrieved Sun, 28 Apr 2024 10:17:43 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=63655, Retrieved Sun, 28 Apr 2024 10:17:43 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact107
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:48:46] [b98453cac15ba1066b407e146608df68]
-    D      [(Partial) Autocorrelation Function] [] [2009-12-04 14:46:07] [27b6e36591879260e4dc6bb7e89a38fd] [Current]
Feedback Forum

Post a new message
Dataseries X:
455
456
517
525
523
519
509
512
519
517
510
509
501
507
569
580
578
565
547
555
562
561
555
544
537
543
594
611
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 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=63655&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=63655&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63655&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.1536491.34830.090764
20.1994841.75050.042011
30.2232661.95920.026858
40.1357861.19150.118555
50.0876110.76880.222186
60.1744661.53090.064942
70.0271880.23860.406035
80.1572151.37960.085859
90.1028330.90240.184841
10-0.075958-0.66650.253534
110.198231.73950.042975
12-0.134916-1.18390.120051
13-0.011444-0.10040.460135
140.2064311.81140.036988
150.1122860.98530.16378
16-0.005113-0.04490.482167
170.0538670.47270.31889
18-0.039649-0.34790.364424
190.0539850.47370.318521
20-0.017842-0.15660.437998
21-0.092757-0.81390.209096
22-0.025996-0.22810.410081
23-0.038312-0.33620.368823
24-0.208378-1.82850.035673
25-0.100559-0.88240.190153
26-0.187963-1.64940.051573
27-0.120507-1.05740.146808
28-0.106914-0.93820.175547
29-0.022231-0.19510.422925
30-0.120803-1.060.14622
31-0.063516-0.55740.289452
32-0.066566-0.58410.280426
33-0.04098-0.35960.360068
34-0.010202-0.08950.46445
350.0256750.22530.411174
36-0.009982-0.08760.465214

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.153649 & 1.3483 & 0.090764 \tabularnewline
2 & 0.199484 & 1.7505 & 0.042011 \tabularnewline
3 & 0.223266 & 1.9592 & 0.026858 \tabularnewline
4 & 0.135786 & 1.1915 & 0.118555 \tabularnewline
5 & 0.087611 & 0.7688 & 0.222186 \tabularnewline
6 & 0.174466 & 1.5309 & 0.064942 \tabularnewline
7 & 0.027188 & 0.2386 & 0.406035 \tabularnewline
8 & 0.157215 & 1.3796 & 0.085859 \tabularnewline
9 & 0.102833 & 0.9024 & 0.184841 \tabularnewline
10 & -0.075958 & -0.6665 & 0.253534 \tabularnewline
11 & 0.19823 & 1.7395 & 0.042975 \tabularnewline
12 & -0.134916 & -1.1839 & 0.120051 \tabularnewline
13 & -0.011444 & -0.1004 & 0.460135 \tabularnewline
14 & 0.206431 & 1.8114 & 0.036988 \tabularnewline
15 & 0.112286 & 0.9853 & 0.16378 \tabularnewline
16 & -0.005113 & -0.0449 & 0.482167 \tabularnewline
17 & 0.053867 & 0.4727 & 0.31889 \tabularnewline
18 & -0.039649 & -0.3479 & 0.364424 \tabularnewline
19 & 0.053985 & 0.4737 & 0.318521 \tabularnewline
20 & -0.017842 & -0.1566 & 0.437998 \tabularnewline
21 & -0.092757 & -0.8139 & 0.209096 \tabularnewline
22 & -0.025996 & -0.2281 & 0.410081 \tabularnewline
23 & -0.038312 & -0.3362 & 0.368823 \tabularnewline
24 & -0.208378 & -1.8285 & 0.035673 \tabularnewline
25 & -0.100559 & -0.8824 & 0.190153 \tabularnewline
26 & -0.187963 & -1.6494 & 0.051573 \tabularnewline
27 & -0.120507 & -1.0574 & 0.146808 \tabularnewline
28 & -0.106914 & -0.9382 & 0.175547 \tabularnewline
29 & -0.022231 & -0.1951 & 0.422925 \tabularnewline
30 & -0.120803 & -1.06 & 0.14622 \tabularnewline
31 & -0.063516 & -0.5574 & 0.289452 \tabularnewline
32 & -0.066566 & -0.5841 & 0.280426 \tabularnewline
33 & -0.04098 & -0.3596 & 0.360068 \tabularnewline
34 & -0.010202 & -0.0895 & 0.46445 \tabularnewline
35 & 0.025675 & 0.2253 & 0.411174 \tabularnewline
36 & -0.009982 & -0.0876 & 0.465214 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63655&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.153649[/C][C]1.3483[/C][C]0.090764[/C][/ROW]
[ROW][C]2[/C][C]0.199484[/C][C]1.7505[/C][C]0.042011[/C][/ROW]
[ROW][C]3[/C][C]0.223266[/C][C]1.9592[/C][C]0.026858[/C][/ROW]
[ROW][C]4[/C][C]0.135786[/C][C]1.1915[/C][C]0.118555[/C][/ROW]
[ROW][C]5[/C][C]0.087611[/C][C]0.7688[/C][C]0.222186[/C][/ROW]
[ROW][C]6[/C][C]0.174466[/C][C]1.5309[/C][C]0.064942[/C][/ROW]
[ROW][C]7[/C][C]0.027188[/C][C]0.2386[/C][C]0.406035[/C][/ROW]
[ROW][C]8[/C][C]0.157215[/C][C]1.3796[/C][C]0.085859[/C][/ROW]
[ROW][C]9[/C][C]0.102833[/C][C]0.9024[/C][C]0.184841[/C][/ROW]
[ROW][C]10[/C][C]-0.075958[/C][C]-0.6665[/C][C]0.253534[/C][/ROW]
[ROW][C]11[/C][C]0.19823[/C][C]1.7395[/C][C]0.042975[/C][/ROW]
[ROW][C]12[/C][C]-0.134916[/C][C]-1.1839[/C][C]0.120051[/C][/ROW]
[ROW][C]13[/C][C]-0.011444[/C][C]-0.1004[/C][C]0.460135[/C][/ROW]
[ROW][C]14[/C][C]0.206431[/C][C]1.8114[/C][C]0.036988[/C][/ROW]
[ROW][C]15[/C][C]0.112286[/C][C]0.9853[/C][C]0.16378[/C][/ROW]
[ROW][C]16[/C][C]-0.005113[/C][C]-0.0449[/C][C]0.482167[/C][/ROW]
[ROW][C]17[/C][C]0.053867[/C][C]0.4727[/C][C]0.31889[/C][/ROW]
[ROW][C]18[/C][C]-0.039649[/C][C]-0.3479[/C][C]0.364424[/C][/ROW]
[ROW][C]19[/C][C]0.053985[/C][C]0.4737[/C][C]0.318521[/C][/ROW]
[ROW][C]20[/C][C]-0.017842[/C][C]-0.1566[/C][C]0.437998[/C][/ROW]
[ROW][C]21[/C][C]-0.092757[/C][C]-0.8139[/C][C]0.209096[/C][/ROW]
[ROW][C]22[/C][C]-0.025996[/C][C]-0.2281[/C][C]0.410081[/C][/ROW]
[ROW][C]23[/C][C]-0.038312[/C][C]-0.3362[/C][C]0.368823[/C][/ROW]
[ROW][C]24[/C][C]-0.208378[/C][C]-1.8285[/C][C]0.035673[/C][/ROW]
[ROW][C]25[/C][C]-0.100559[/C][C]-0.8824[/C][C]0.190153[/C][/ROW]
[ROW][C]26[/C][C]-0.187963[/C][C]-1.6494[/C][C]0.051573[/C][/ROW]
[ROW][C]27[/C][C]-0.120507[/C][C]-1.0574[/C][C]0.146808[/C][/ROW]
[ROW][C]28[/C][C]-0.106914[/C][C]-0.9382[/C][C]0.175547[/C][/ROW]
[ROW][C]29[/C][C]-0.022231[/C][C]-0.1951[/C][C]0.422925[/C][/ROW]
[ROW][C]30[/C][C]-0.120803[/C][C]-1.06[/C][C]0.14622[/C][/ROW]
[ROW][C]31[/C][C]-0.063516[/C][C]-0.5574[/C][C]0.289452[/C][/ROW]
[ROW][C]32[/C][C]-0.066566[/C][C]-0.5841[/C][C]0.280426[/C][/ROW]
[ROW][C]33[/C][C]-0.04098[/C][C]-0.3596[/C][C]0.360068[/C][/ROW]
[ROW][C]34[/C][C]-0.010202[/C][C]-0.0895[/C][C]0.46445[/C][/ROW]
[ROW][C]35[/C][C]0.025675[/C][C]0.2253[/C][C]0.411174[/C][/ROW]
[ROW][C]36[/C][C]-0.009982[/C][C]-0.0876[/C][C]0.465214[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63655&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63655&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.1536491.34830.090764
20.1994841.75050.042011
30.2232661.95920.026858
40.1357861.19150.118555
50.0876110.76880.222186
60.1744661.53090.064942
70.0271880.23860.406035
80.1572151.37960.085859
90.1028330.90240.184841
10-0.075958-0.66650.253534
110.198231.73950.042975
12-0.134916-1.18390.120051
13-0.011444-0.10040.460135
140.2064311.81140.036988
150.1122860.98530.16378
16-0.005113-0.04490.482167
170.0538670.47270.31889
18-0.039649-0.34790.364424
190.0539850.47370.318521
20-0.017842-0.15660.437998
21-0.092757-0.81390.209096
22-0.025996-0.22810.410081
23-0.038312-0.33620.368823
24-0.208378-1.82850.035673
25-0.100559-0.88240.190153
26-0.187963-1.64940.051573
27-0.120507-1.05740.146808
28-0.106914-0.93820.175547
29-0.022231-0.19510.422925
30-0.120803-1.060.14622
31-0.063516-0.55740.289452
32-0.066566-0.58410.280426
33-0.04098-0.35960.360068
34-0.010202-0.08950.46445
350.0256750.22530.411174
36-0.009982-0.08760.465214







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1536491.34830.090764
20.1801281.58060.059032
30.1804361.58330.058724
40.0610480.53570.296857
5-0.000897-0.00790.496868
60.1054890.92570.178758
7-0.050326-0.44160.330004
80.1063120.93290.176899
90.0335620.29450.384583
10-0.158116-1.38750.084652
110.177891.5610.061314
12-0.232891-2.04360.022206
130.0209380.18370.427354
140.2313482.03010.022902
150.0834880.73260.233011
16-0.037986-0.33330.369897
17-0.118876-1.04310.150075
18-0.023422-0.20550.418853
190.0379820.33330.369911
20-0.066101-0.580.281791
21-0.020314-0.17830.429496
22-0.153129-1.34370.091495
230.0290130.25460.399861
24-0.185005-1.62340.054294
25-0.105663-0.92720.178363
26-0.031234-0.27410.39238
270.0673240.59080.278205
28-0.037954-0.3330.370002
290.0426660.37440.354572
30-0.08462-0.74250.23001
310.042530.37320.355012
320.0543240.47670.317466
330.0186010.16320.435384
34-0.002812-0.02470.490189
350.1602061.40580.081902
36-0.046528-0.40830.342101

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.153649 & 1.3483 & 0.090764 \tabularnewline
2 & 0.180128 & 1.5806 & 0.059032 \tabularnewline
3 & 0.180436 & 1.5833 & 0.058724 \tabularnewline
4 & 0.061048 & 0.5357 & 0.296857 \tabularnewline
5 & -0.000897 & -0.0079 & 0.496868 \tabularnewline
6 & 0.105489 & 0.9257 & 0.178758 \tabularnewline
7 & -0.050326 & -0.4416 & 0.330004 \tabularnewline
8 & 0.106312 & 0.9329 & 0.176899 \tabularnewline
9 & 0.033562 & 0.2945 & 0.384583 \tabularnewline
10 & -0.158116 & -1.3875 & 0.084652 \tabularnewline
11 & 0.17789 & 1.561 & 0.061314 \tabularnewline
12 & -0.232891 & -2.0436 & 0.022206 \tabularnewline
13 & 0.020938 & 0.1837 & 0.427354 \tabularnewline
14 & 0.231348 & 2.0301 & 0.022902 \tabularnewline
15 & 0.083488 & 0.7326 & 0.233011 \tabularnewline
16 & -0.037986 & -0.3333 & 0.369897 \tabularnewline
17 & -0.118876 & -1.0431 & 0.150075 \tabularnewline
18 & -0.023422 & -0.2055 & 0.418853 \tabularnewline
19 & 0.037982 & 0.3333 & 0.369911 \tabularnewline
20 & -0.066101 & -0.58 & 0.281791 \tabularnewline
21 & -0.020314 & -0.1783 & 0.429496 \tabularnewline
22 & -0.153129 & -1.3437 & 0.091495 \tabularnewline
23 & 0.029013 & 0.2546 & 0.399861 \tabularnewline
24 & -0.185005 & -1.6234 & 0.054294 \tabularnewline
25 & -0.105663 & -0.9272 & 0.178363 \tabularnewline
26 & -0.031234 & -0.2741 & 0.39238 \tabularnewline
27 & 0.067324 & 0.5908 & 0.278205 \tabularnewline
28 & -0.037954 & -0.333 & 0.370002 \tabularnewline
29 & 0.042666 & 0.3744 & 0.354572 \tabularnewline
30 & -0.08462 & -0.7425 & 0.23001 \tabularnewline
31 & 0.04253 & 0.3732 & 0.355012 \tabularnewline
32 & 0.054324 & 0.4767 & 0.317466 \tabularnewline
33 & 0.018601 & 0.1632 & 0.435384 \tabularnewline
34 & -0.002812 & -0.0247 & 0.490189 \tabularnewline
35 & 0.160206 & 1.4058 & 0.081902 \tabularnewline
36 & -0.046528 & -0.4083 & 0.342101 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=63655&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.153649[/C][C]1.3483[/C][C]0.090764[/C][/ROW]
[ROW][C]2[/C][C]0.180128[/C][C]1.5806[/C][C]0.059032[/C][/ROW]
[ROW][C]3[/C][C]0.180436[/C][C]1.5833[/C][C]0.058724[/C][/ROW]
[ROW][C]4[/C][C]0.061048[/C][C]0.5357[/C][C]0.296857[/C][/ROW]
[ROW][C]5[/C][C]-0.000897[/C][C]-0.0079[/C][C]0.496868[/C][/ROW]
[ROW][C]6[/C][C]0.105489[/C][C]0.9257[/C][C]0.178758[/C][/ROW]
[ROW][C]7[/C][C]-0.050326[/C][C]-0.4416[/C][C]0.330004[/C][/ROW]
[ROW][C]8[/C][C]0.106312[/C][C]0.9329[/C][C]0.176899[/C][/ROW]
[ROW][C]9[/C][C]0.033562[/C][C]0.2945[/C][C]0.384583[/C][/ROW]
[ROW][C]10[/C][C]-0.158116[/C][C]-1.3875[/C][C]0.084652[/C][/ROW]
[ROW][C]11[/C][C]0.17789[/C][C]1.561[/C][C]0.061314[/C][/ROW]
[ROW][C]12[/C][C]-0.232891[/C][C]-2.0436[/C][C]0.022206[/C][/ROW]
[ROW][C]13[/C][C]0.020938[/C][C]0.1837[/C][C]0.427354[/C][/ROW]
[ROW][C]14[/C][C]0.231348[/C][C]2.0301[/C][C]0.022902[/C][/ROW]
[ROW][C]15[/C][C]0.083488[/C][C]0.7326[/C][C]0.233011[/C][/ROW]
[ROW][C]16[/C][C]-0.037986[/C][C]-0.3333[/C][C]0.369897[/C][/ROW]
[ROW][C]17[/C][C]-0.118876[/C][C]-1.0431[/C][C]0.150075[/C][/ROW]
[ROW][C]18[/C][C]-0.023422[/C][C]-0.2055[/C][C]0.418853[/C][/ROW]
[ROW][C]19[/C][C]0.037982[/C][C]0.3333[/C][C]0.369911[/C][/ROW]
[ROW][C]20[/C][C]-0.066101[/C][C]-0.58[/C][C]0.281791[/C][/ROW]
[ROW][C]21[/C][C]-0.020314[/C][C]-0.1783[/C][C]0.429496[/C][/ROW]
[ROW][C]22[/C][C]-0.153129[/C][C]-1.3437[/C][C]0.091495[/C][/ROW]
[ROW][C]23[/C][C]0.029013[/C][C]0.2546[/C][C]0.399861[/C][/ROW]
[ROW][C]24[/C][C]-0.185005[/C][C]-1.6234[/C][C]0.054294[/C][/ROW]
[ROW][C]25[/C][C]-0.105663[/C][C]-0.9272[/C][C]0.178363[/C][/ROW]
[ROW][C]26[/C][C]-0.031234[/C][C]-0.2741[/C][C]0.39238[/C][/ROW]
[ROW][C]27[/C][C]0.067324[/C][C]0.5908[/C][C]0.278205[/C][/ROW]
[ROW][C]28[/C][C]-0.037954[/C][C]-0.333[/C][C]0.370002[/C][/ROW]
[ROW][C]29[/C][C]0.042666[/C][C]0.3744[/C][C]0.354572[/C][/ROW]
[ROW][C]30[/C][C]-0.08462[/C][C]-0.7425[/C][C]0.23001[/C][/ROW]
[ROW][C]31[/C][C]0.04253[/C][C]0.3732[/C][C]0.355012[/C][/ROW]
[ROW][C]32[/C][C]0.054324[/C][C]0.4767[/C][C]0.317466[/C][/ROW]
[ROW][C]33[/C][C]0.018601[/C][C]0.1632[/C][C]0.435384[/C][/ROW]
[ROW][C]34[/C][C]-0.002812[/C][C]-0.0247[/C][C]0.490189[/C][/ROW]
[ROW][C]35[/C][C]0.160206[/C][C]1.4058[/C][C]0.081902[/C][/ROW]
[ROW][C]36[/C][C]-0.046528[/C][C]-0.4083[/C][C]0.342101[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=63655&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=63655&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.1536491.34830.090764
20.1801281.58060.059032
30.1804361.58330.058724
40.0610480.53570.296857
5-0.000897-0.00790.496868
60.1054890.92570.178758
7-0.050326-0.44160.330004
80.1063120.93290.176899
90.0335620.29450.384583
10-0.158116-1.38750.084652
110.177891.5610.061314
12-0.232891-2.04360.022206
130.0209380.18370.427354
140.2313482.03010.022902
150.0834880.73260.233011
16-0.037986-0.33330.369897
17-0.118876-1.04310.150075
18-0.023422-0.20550.418853
190.0379820.33330.369911
20-0.066101-0.580.281791
21-0.020314-0.17830.429496
22-0.153129-1.34370.091495
230.0290130.25460.399861
24-0.185005-1.62340.054294
25-0.105663-0.92720.178363
26-0.031234-0.27410.39238
270.0673240.59080.278205
28-0.037954-0.3330.370002
290.0426660.37440.354572
30-0.08462-0.74250.23001
310.042530.37320.355012
320.0543240.47670.317466
330.0186010.16320.435384
34-0.002812-0.02470.490189
350.1602061.40580.081902
36-0.046528-0.40830.342101



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