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 computationWed, 02 Dec 2009 08:52:41 -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/02/t1259769207rnp6q39tylezv1h.htm/, Retrieved Sat, 27 Apr 2024 19:24:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=62389, Retrieved Sat, 27 Apr 2024 19:24:46 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact131
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] [] [2009-12-02 15:52:41] [830aa0f7fb5acd5849dbc0c6ad889830] [Current]
Feedback Forum

Post a new message
Dataseries X:
519164
517009
509933
509127
500857
506971
569323
579714
577992
565464
547344
554788
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 time3 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 & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62389&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]3 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=62389&T=0

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2496892.10390.019464
2-0.198204-1.67010.049652
3-0.296246-2.49620.007438
4-0.261609-2.20440.015371
50.0768610.64760.259653
60.1712031.44260.076767
70.0412670.34770.364538
8-0.232648-1.96030.026941
9-0.270462-2.2790.01284
10-0.153942-1.29710.099392
110.2514632.11890.018801
120.7480756.30340
130.1690281.42430.079377
14-0.157835-1.32990.093897
15-0.253275-2.13410.018143
16-0.204727-1.72510.044434
170.0558510.47060.31968
180.0905930.76330.223892
190.023390.19710.422161
20-0.222438-1.87430.032502
21-0.221353-1.86520.033146
22-0.080702-0.680.249356
230.1920651.61840.055009
240.5512834.64528e-06
250.1177830.99250.162172
26-0.171899-1.44840.075947
27-0.247711-2.08720.020228
28-0.159903-1.34740.091073
290.0474120.39950.345361
300.0657350.55390.290695
310.0078880.06650.473596
32-0.188814-1.5910.058029
33-0.137288-1.15680.125613
34-0.057298-0.48280.31536
350.1292731.08930.139858
360.4237523.57060.000322

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.249689 & 2.1039 & 0.019464 \tabularnewline
2 & -0.198204 & -1.6701 & 0.049652 \tabularnewline
3 & -0.296246 & -2.4962 & 0.007438 \tabularnewline
4 & -0.261609 & -2.2044 & 0.015371 \tabularnewline
5 & 0.076861 & 0.6476 & 0.259653 \tabularnewline
6 & 0.171203 & 1.4426 & 0.076767 \tabularnewline
7 & 0.041267 & 0.3477 & 0.364538 \tabularnewline
8 & -0.232648 & -1.9603 & 0.026941 \tabularnewline
9 & -0.270462 & -2.279 & 0.01284 \tabularnewline
10 & -0.153942 & -1.2971 & 0.099392 \tabularnewline
11 & 0.251463 & 2.1189 & 0.018801 \tabularnewline
12 & 0.748075 & 6.3034 & 0 \tabularnewline
13 & 0.169028 & 1.4243 & 0.079377 \tabularnewline
14 & -0.157835 & -1.3299 & 0.093897 \tabularnewline
15 & -0.253275 & -2.1341 & 0.018143 \tabularnewline
16 & -0.204727 & -1.7251 & 0.044434 \tabularnewline
17 & 0.055851 & 0.4706 & 0.31968 \tabularnewline
18 & 0.090593 & 0.7633 & 0.223892 \tabularnewline
19 & 0.02339 & 0.1971 & 0.422161 \tabularnewline
20 & -0.222438 & -1.8743 & 0.032502 \tabularnewline
21 & -0.221353 & -1.8652 & 0.033146 \tabularnewline
22 & -0.080702 & -0.68 & 0.249356 \tabularnewline
23 & 0.192065 & 1.6184 & 0.055009 \tabularnewline
24 & 0.551283 & 4.6452 & 8e-06 \tabularnewline
25 & 0.117783 & 0.9925 & 0.162172 \tabularnewline
26 & -0.171899 & -1.4484 & 0.075947 \tabularnewline
27 & -0.247711 & -2.0872 & 0.020228 \tabularnewline
28 & -0.159903 & -1.3474 & 0.091073 \tabularnewline
29 & 0.047412 & 0.3995 & 0.345361 \tabularnewline
30 & 0.065735 & 0.5539 & 0.290695 \tabularnewline
31 & 0.007888 & 0.0665 & 0.473596 \tabularnewline
32 & -0.188814 & -1.591 & 0.058029 \tabularnewline
33 & -0.137288 & -1.1568 & 0.125613 \tabularnewline
34 & -0.057298 & -0.4828 & 0.31536 \tabularnewline
35 & 0.129273 & 1.0893 & 0.139858 \tabularnewline
36 & 0.423752 & 3.5706 & 0.000322 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62389&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.249689[/C][C]2.1039[/C][C]0.019464[/C][/ROW]
[ROW][C]2[/C][C]-0.198204[/C][C]-1.6701[/C][C]0.049652[/C][/ROW]
[ROW][C]3[/C][C]-0.296246[/C][C]-2.4962[/C][C]0.007438[/C][/ROW]
[ROW][C]4[/C][C]-0.261609[/C][C]-2.2044[/C][C]0.015371[/C][/ROW]
[ROW][C]5[/C][C]0.076861[/C][C]0.6476[/C][C]0.259653[/C][/ROW]
[ROW][C]6[/C][C]0.171203[/C][C]1.4426[/C][C]0.076767[/C][/ROW]
[ROW][C]7[/C][C]0.041267[/C][C]0.3477[/C][C]0.364538[/C][/ROW]
[ROW][C]8[/C][C]-0.232648[/C][C]-1.9603[/C][C]0.026941[/C][/ROW]
[ROW][C]9[/C][C]-0.270462[/C][C]-2.279[/C][C]0.01284[/C][/ROW]
[ROW][C]10[/C][C]-0.153942[/C][C]-1.2971[/C][C]0.099392[/C][/ROW]
[ROW][C]11[/C][C]0.251463[/C][C]2.1189[/C][C]0.018801[/C][/ROW]
[ROW][C]12[/C][C]0.748075[/C][C]6.3034[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.169028[/C][C]1.4243[/C][C]0.079377[/C][/ROW]
[ROW][C]14[/C][C]-0.157835[/C][C]-1.3299[/C][C]0.093897[/C][/ROW]
[ROW][C]15[/C][C]-0.253275[/C][C]-2.1341[/C][C]0.018143[/C][/ROW]
[ROW][C]16[/C][C]-0.204727[/C][C]-1.7251[/C][C]0.044434[/C][/ROW]
[ROW][C]17[/C][C]0.055851[/C][C]0.4706[/C][C]0.31968[/C][/ROW]
[ROW][C]18[/C][C]0.090593[/C][C]0.7633[/C][C]0.223892[/C][/ROW]
[ROW][C]19[/C][C]0.02339[/C][C]0.1971[/C][C]0.422161[/C][/ROW]
[ROW][C]20[/C][C]-0.222438[/C][C]-1.8743[/C][C]0.032502[/C][/ROW]
[ROW][C]21[/C][C]-0.221353[/C][C]-1.8652[/C][C]0.033146[/C][/ROW]
[ROW][C]22[/C][C]-0.080702[/C][C]-0.68[/C][C]0.249356[/C][/ROW]
[ROW][C]23[/C][C]0.192065[/C][C]1.6184[/C][C]0.055009[/C][/ROW]
[ROW][C]24[/C][C]0.551283[/C][C]4.6452[/C][C]8e-06[/C][/ROW]
[ROW][C]25[/C][C]0.117783[/C][C]0.9925[/C][C]0.162172[/C][/ROW]
[ROW][C]26[/C][C]-0.171899[/C][C]-1.4484[/C][C]0.075947[/C][/ROW]
[ROW][C]27[/C][C]-0.247711[/C][C]-2.0872[/C][C]0.020228[/C][/ROW]
[ROW][C]28[/C][C]-0.159903[/C][C]-1.3474[/C][C]0.091073[/C][/ROW]
[ROW][C]29[/C][C]0.047412[/C][C]0.3995[/C][C]0.345361[/C][/ROW]
[ROW][C]30[/C][C]0.065735[/C][C]0.5539[/C][C]0.290695[/C][/ROW]
[ROW][C]31[/C][C]0.007888[/C][C]0.0665[/C][C]0.473596[/C][/ROW]
[ROW][C]32[/C][C]-0.188814[/C][C]-1.591[/C][C]0.058029[/C][/ROW]
[ROW][C]33[/C][C]-0.137288[/C][C]-1.1568[/C][C]0.125613[/C][/ROW]
[ROW][C]34[/C][C]-0.057298[/C][C]-0.4828[/C][C]0.31536[/C][/ROW]
[ROW][C]35[/C][C]0.129273[/C][C]1.0893[/C][C]0.139858[/C][/ROW]
[ROW][C]36[/C][C]0.423752[/C][C]3.5706[/C][C]0.000322[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62389&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62389&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.2496892.10390.019464
2-0.198204-1.67010.049652
3-0.296246-2.49620.007438
4-0.261609-2.20440.015371
50.0768610.64760.259653
60.1712031.44260.076767
70.0412670.34770.364538
8-0.232648-1.96030.026941
9-0.270462-2.2790.01284
10-0.153942-1.29710.099392
110.2514632.11890.018801
120.7480756.30340
130.1690281.42430.079377
14-0.157835-1.32990.093897
15-0.253275-2.13410.018143
16-0.204727-1.72510.044434
170.0558510.47060.31968
180.0905930.76330.223892
190.023390.19710.422161
20-0.222438-1.87430.032502
21-0.221353-1.86520.033146
22-0.080702-0.680.249356
230.1920651.61840.055009
240.5512834.64528e-06
250.1177830.99250.162172
26-0.171899-1.44840.075947
27-0.247711-2.08720.020228
28-0.159903-1.34740.091073
290.0474120.39950.345361
300.0657350.55390.290695
310.0078880.06650.473596
32-0.188814-1.5910.058029
33-0.137288-1.15680.125613
34-0.057298-0.48280.31536
350.1292731.08930.139858
360.4237523.57060.000322







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2496892.10390.019464
2-0.277873-2.34140.011012
3-0.189104-1.59340.057755
4-0.214009-1.80330.037794
50.1067990.89990.185606
6-0.022825-0.19230.424016
7-0.068868-0.58030.281778
8-0.271552-2.28810.012555
9-0.142174-1.1980.117454
10-0.209394-1.76440.040984
110.1782931.50230.068724
120.6250315.26661e-06
13-0.129955-1.0950.138605
140.1439291.21280.114619
150.046620.39280.347812
160.0997610.84060.201697
17-0.122144-1.02920.153439
18-0.086626-0.72990.23392
190.034670.29210.385519
20-0.116928-0.98530.163922
210.0205430.17310.431534
220.0046320.0390.484488
23-0.106891-0.90070.185403
240.0081780.06890.472629
25-0.022554-0.190.424908
26-0.12829-1.0810.14168
27-0.131785-1.11040.135277
28-0.016482-0.13890.444969
29-0.034693-0.29230.385443
30-0.047476-0.40.345163
31-0.036962-0.31140.378188
320.0619530.5220.30164
330.0549520.4630.322377
34-0.083374-0.70250.242324
35-0.020216-0.17030.432614
360.0157910.13310.447263

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.249689 & 2.1039 & 0.019464 \tabularnewline
2 & -0.277873 & -2.3414 & 0.011012 \tabularnewline
3 & -0.189104 & -1.5934 & 0.057755 \tabularnewline
4 & -0.214009 & -1.8033 & 0.037794 \tabularnewline
5 & 0.106799 & 0.8999 & 0.185606 \tabularnewline
6 & -0.022825 & -0.1923 & 0.424016 \tabularnewline
7 & -0.068868 & -0.5803 & 0.281778 \tabularnewline
8 & -0.271552 & -2.2881 & 0.012555 \tabularnewline
9 & -0.142174 & -1.198 & 0.117454 \tabularnewline
10 & -0.209394 & -1.7644 & 0.040984 \tabularnewline
11 & 0.178293 & 1.5023 & 0.068724 \tabularnewline
12 & 0.625031 & 5.2666 & 1e-06 \tabularnewline
13 & -0.129955 & -1.095 & 0.138605 \tabularnewline
14 & 0.143929 & 1.2128 & 0.114619 \tabularnewline
15 & 0.04662 & 0.3928 & 0.347812 \tabularnewline
16 & 0.099761 & 0.8406 & 0.201697 \tabularnewline
17 & -0.122144 & -1.0292 & 0.153439 \tabularnewline
18 & -0.086626 & -0.7299 & 0.23392 \tabularnewline
19 & 0.03467 & 0.2921 & 0.385519 \tabularnewline
20 & -0.116928 & -0.9853 & 0.163922 \tabularnewline
21 & 0.020543 & 0.1731 & 0.431534 \tabularnewline
22 & 0.004632 & 0.039 & 0.484488 \tabularnewline
23 & -0.106891 & -0.9007 & 0.185403 \tabularnewline
24 & 0.008178 & 0.0689 & 0.472629 \tabularnewline
25 & -0.022554 & -0.19 & 0.424908 \tabularnewline
26 & -0.12829 & -1.081 & 0.14168 \tabularnewline
27 & -0.131785 & -1.1104 & 0.135277 \tabularnewline
28 & -0.016482 & -0.1389 & 0.444969 \tabularnewline
29 & -0.034693 & -0.2923 & 0.385443 \tabularnewline
30 & -0.047476 & -0.4 & 0.345163 \tabularnewline
31 & -0.036962 & -0.3114 & 0.378188 \tabularnewline
32 & 0.061953 & 0.522 & 0.30164 \tabularnewline
33 & 0.054952 & 0.463 & 0.322377 \tabularnewline
34 & -0.083374 & -0.7025 & 0.242324 \tabularnewline
35 & -0.020216 & -0.1703 & 0.432614 \tabularnewline
36 & 0.015791 & 0.1331 & 0.447263 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62389&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.249689[/C][C]2.1039[/C][C]0.019464[/C][/ROW]
[ROW][C]2[/C][C]-0.277873[/C][C]-2.3414[/C][C]0.011012[/C][/ROW]
[ROW][C]3[/C][C]-0.189104[/C][C]-1.5934[/C][C]0.057755[/C][/ROW]
[ROW][C]4[/C][C]-0.214009[/C][C]-1.8033[/C][C]0.037794[/C][/ROW]
[ROW][C]5[/C][C]0.106799[/C][C]0.8999[/C][C]0.185606[/C][/ROW]
[ROW][C]6[/C][C]-0.022825[/C][C]-0.1923[/C][C]0.424016[/C][/ROW]
[ROW][C]7[/C][C]-0.068868[/C][C]-0.5803[/C][C]0.281778[/C][/ROW]
[ROW][C]8[/C][C]-0.271552[/C][C]-2.2881[/C][C]0.012555[/C][/ROW]
[ROW][C]9[/C][C]-0.142174[/C][C]-1.198[/C][C]0.117454[/C][/ROW]
[ROW][C]10[/C][C]-0.209394[/C][C]-1.7644[/C][C]0.040984[/C][/ROW]
[ROW][C]11[/C][C]0.178293[/C][C]1.5023[/C][C]0.068724[/C][/ROW]
[ROW][C]12[/C][C]0.625031[/C][C]5.2666[/C][C]1e-06[/C][/ROW]
[ROW][C]13[/C][C]-0.129955[/C][C]-1.095[/C][C]0.138605[/C][/ROW]
[ROW][C]14[/C][C]0.143929[/C][C]1.2128[/C][C]0.114619[/C][/ROW]
[ROW][C]15[/C][C]0.04662[/C][C]0.3928[/C][C]0.347812[/C][/ROW]
[ROW][C]16[/C][C]0.099761[/C][C]0.8406[/C][C]0.201697[/C][/ROW]
[ROW][C]17[/C][C]-0.122144[/C][C]-1.0292[/C][C]0.153439[/C][/ROW]
[ROW][C]18[/C][C]-0.086626[/C][C]-0.7299[/C][C]0.23392[/C][/ROW]
[ROW][C]19[/C][C]0.03467[/C][C]0.2921[/C][C]0.385519[/C][/ROW]
[ROW][C]20[/C][C]-0.116928[/C][C]-0.9853[/C][C]0.163922[/C][/ROW]
[ROW][C]21[/C][C]0.020543[/C][C]0.1731[/C][C]0.431534[/C][/ROW]
[ROW][C]22[/C][C]0.004632[/C][C]0.039[/C][C]0.484488[/C][/ROW]
[ROW][C]23[/C][C]-0.106891[/C][C]-0.9007[/C][C]0.185403[/C][/ROW]
[ROW][C]24[/C][C]0.008178[/C][C]0.0689[/C][C]0.472629[/C][/ROW]
[ROW][C]25[/C][C]-0.022554[/C][C]-0.19[/C][C]0.424908[/C][/ROW]
[ROW][C]26[/C][C]-0.12829[/C][C]-1.081[/C][C]0.14168[/C][/ROW]
[ROW][C]27[/C][C]-0.131785[/C][C]-1.1104[/C][C]0.135277[/C][/ROW]
[ROW][C]28[/C][C]-0.016482[/C][C]-0.1389[/C][C]0.444969[/C][/ROW]
[ROW][C]29[/C][C]-0.034693[/C][C]-0.2923[/C][C]0.385443[/C][/ROW]
[ROW][C]30[/C][C]-0.047476[/C][C]-0.4[/C][C]0.345163[/C][/ROW]
[ROW][C]31[/C][C]-0.036962[/C][C]-0.3114[/C][C]0.378188[/C][/ROW]
[ROW][C]32[/C][C]0.061953[/C][C]0.522[/C][C]0.30164[/C][/ROW]
[ROW][C]33[/C][C]0.054952[/C][C]0.463[/C][C]0.322377[/C][/ROW]
[ROW][C]34[/C][C]-0.083374[/C][C]-0.7025[/C][C]0.242324[/C][/ROW]
[ROW][C]35[/C][C]-0.020216[/C][C]-0.1703[/C][C]0.432614[/C][/ROW]
[ROW][C]36[/C][C]0.015791[/C][C]0.1331[/C][C]0.447263[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62389&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62389&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.2496892.10390.019464
2-0.277873-2.34140.011012
3-0.189104-1.59340.057755
4-0.214009-1.80330.037794
50.1067990.89990.185606
6-0.022825-0.19230.424016
7-0.068868-0.58030.281778
8-0.271552-2.28810.012555
9-0.142174-1.1980.117454
10-0.209394-1.76440.040984
110.1782931.50230.068724
120.6250315.26661e-06
13-0.129955-1.0950.138605
140.1439291.21280.114619
150.046620.39280.347812
160.0997610.84060.201697
17-0.122144-1.02920.153439
18-0.086626-0.72990.23392
190.034670.29210.385519
20-0.116928-0.98530.163922
210.0205430.17310.431534
220.0046320.0390.484488
23-0.106891-0.90070.185403
240.0081780.06890.472629
25-0.022554-0.190.424908
26-0.12829-1.0810.14168
27-0.131785-1.11040.135277
28-0.016482-0.13890.444969
29-0.034693-0.29230.385443
30-0.047476-0.40.345163
31-0.036962-0.31140.378188
320.0619530.5220.30164
330.0549520.4630.322377
34-0.083374-0.70250.242324
35-0.020216-0.17030.432614
360.0157910.13310.447263



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