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 computationThu, 22 Dec 2011 08:49:50 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/22/t1324561844xiyxmfgoyty39zc.htm/, Retrieved Fri, 03 May 2024 13:33:33 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=159457, Retrieved Fri, 03 May 2024 13:33:33 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact101
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [montly dummies] [2011-12-22 13:26:17] [a2638725f7f7c6bd63902ba17eba666b]
- RMPD    [(Partial) Autocorrelation Function] [] [2011-12-22 13:49:50] [1e640daebbc6b5a89eef23229b5a56d5] [Current]
Feedback Forum

Post a new message
Dataseries X:
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




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net

\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 & 'Gertrude Mary Cox' @ cox.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159457&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]'Gertrude Mary Cox' @ cox.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159457&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159457&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'Gertrude Mary Cox' @ cox.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8758997.27580
20.7011565.82420
30.5648534.6927e-06
40.4706183.90920.000107
50.4265973.54360.000357
60.3831793.18290.001094
70.3253332.70240.004329
80.2663662.21260.015118
90.2635852.18950.015972
100.3150042.61660.005451
110.3912963.25030.000892
120.4215363.50150.000408
130.2950262.45070.008399
140.1385021.15050.126959
150.0099940.0830.46704
16-0.09448-0.78480.217626
17-0.150533-1.25040.107685
18-0.202469-1.68180.048561
19-0.255955-2.12610.018537
20-0.302596-2.51360.007145
21-0.292928-2.43320.00878
22-0.237331-1.97140.026344
23-0.166559-1.38350.085479
24-0.1278-1.06160.146063
25-0.199504-1.65720.051009
26-0.298047-2.47580.007877
27-0.366123-3.04120.001665
28-0.405363-3.36720.000622
29-0.411676-3.41960.000528
30-0.421401-3.50040.000409
31-0.425298-3.53280.000369
32-0.423792-3.52030.000384
33-0.37948-3.15220.001199
34-0.308274-2.56070.006318
35-0.230925-1.91820.029612
36-0.174857-1.45250.075452

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.875899 & 7.2758 & 0 \tabularnewline
2 & 0.701156 & 5.8242 & 0 \tabularnewline
3 & 0.564853 & 4.692 & 7e-06 \tabularnewline
4 & 0.470618 & 3.9092 & 0.000107 \tabularnewline
5 & 0.426597 & 3.5436 & 0.000357 \tabularnewline
6 & 0.383179 & 3.1829 & 0.001094 \tabularnewline
7 & 0.325333 & 2.7024 & 0.004329 \tabularnewline
8 & 0.266366 & 2.2126 & 0.015118 \tabularnewline
9 & 0.263585 & 2.1895 & 0.015972 \tabularnewline
10 & 0.315004 & 2.6166 & 0.005451 \tabularnewline
11 & 0.391296 & 3.2503 & 0.000892 \tabularnewline
12 & 0.421536 & 3.5015 & 0.000408 \tabularnewline
13 & 0.295026 & 2.4507 & 0.008399 \tabularnewline
14 & 0.138502 & 1.1505 & 0.126959 \tabularnewline
15 & 0.009994 & 0.083 & 0.46704 \tabularnewline
16 & -0.09448 & -0.7848 & 0.217626 \tabularnewline
17 & -0.150533 & -1.2504 & 0.107685 \tabularnewline
18 & -0.202469 & -1.6818 & 0.048561 \tabularnewline
19 & -0.255955 & -2.1261 & 0.018537 \tabularnewline
20 & -0.302596 & -2.5136 & 0.007145 \tabularnewline
21 & -0.292928 & -2.4332 & 0.00878 \tabularnewline
22 & -0.237331 & -1.9714 & 0.026344 \tabularnewline
23 & -0.166559 & -1.3835 & 0.085479 \tabularnewline
24 & -0.1278 & -1.0616 & 0.146063 \tabularnewline
25 & -0.199504 & -1.6572 & 0.051009 \tabularnewline
26 & -0.298047 & -2.4758 & 0.007877 \tabularnewline
27 & -0.366123 & -3.0412 & 0.001665 \tabularnewline
28 & -0.405363 & -3.3672 & 0.000622 \tabularnewline
29 & -0.411676 & -3.4196 & 0.000528 \tabularnewline
30 & -0.421401 & -3.5004 & 0.000409 \tabularnewline
31 & -0.425298 & -3.5328 & 0.000369 \tabularnewline
32 & -0.423792 & -3.5203 & 0.000384 \tabularnewline
33 & -0.37948 & -3.1522 & 0.001199 \tabularnewline
34 & -0.308274 & -2.5607 & 0.006318 \tabularnewline
35 & -0.230925 & -1.9182 & 0.029612 \tabularnewline
36 & -0.174857 & -1.4525 & 0.075452 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159457&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.875899[/C][C]7.2758[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.701156[/C][C]5.8242[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.564853[/C][C]4.692[/C][C]7e-06[/C][/ROW]
[ROW][C]4[/C][C]0.470618[/C][C]3.9092[/C][C]0.000107[/C][/ROW]
[ROW][C]5[/C][C]0.426597[/C][C]3.5436[/C][C]0.000357[/C][/ROW]
[ROW][C]6[/C][C]0.383179[/C][C]3.1829[/C][C]0.001094[/C][/ROW]
[ROW][C]7[/C][C]0.325333[/C][C]2.7024[/C][C]0.004329[/C][/ROW]
[ROW][C]8[/C][C]0.266366[/C][C]2.2126[/C][C]0.015118[/C][/ROW]
[ROW][C]9[/C][C]0.263585[/C][C]2.1895[/C][C]0.015972[/C][/ROW]
[ROW][C]10[/C][C]0.315004[/C][C]2.6166[/C][C]0.005451[/C][/ROW]
[ROW][C]11[/C][C]0.391296[/C][C]3.2503[/C][C]0.000892[/C][/ROW]
[ROW][C]12[/C][C]0.421536[/C][C]3.5015[/C][C]0.000408[/C][/ROW]
[ROW][C]13[/C][C]0.295026[/C][C]2.4507[/C][C]0.008399[/C][/ROW]
[ROW][C]14[/C][C]0.138502[/C][C]1.1505[/C][C]0.126959[/C][/ROW]
[ROW][C]15[/C][C]0.009994[/C][C]0.083[/C][C]0.46704[/C][/ROW]
[ROW][C]16[/C][C]-0.09448[/C][C]-0.7848[/C][C]0.217626[/C][/ROW]
[ROW][C]17[/C][C]-0.150533[/C][C]-1.2504[/C][C]0.107685[/C][/ROW]
[ROW][C]18[/C][C]-0.202469[/C][C]-1.6818[/C][C]0.048561[/C][/ROW]
[ROW][C]19[/C][C]-0.255955[/C][C]-2.1261[/C][C]0.018537[/C][/ROW]
[ROW][C]20[/C][C]-0.302596[/C][C]-2.5136[/C][C]0.007145[/C][/ROW]
[ROW][C]21[/C][C]-0.292928[/C][C]-2.4332[/C][C]0.00878[/C][/ROW]
[ROW][C]22[/C][C]-0.237331[/C][C]-1.9714[/C][C]0.026344[/C][/ROW]
[ROW][C]23[/C][C]-0.166559[/C][C]-1.3835[/C][C]0.085479[/C][/ROW]
[ROW][C]24[/C][C]-0.1278[/C][C]-1.0616[/C][C]0.146063[/C][/ROW]
[ROW][C]25[/C][C]-0.199504[/C][C]-1.6572[/C][C]0.051009[/C][/ROW]
[ROW][C]26[/C][C]-0.298047[/C][C]-2.4758[/C][C]0.007877[/C][/ROW]
[ROW][C]27[/C][C]-0.366123[/C][C]-3.0412[/C][C]0.001665[/C][/ROW]
[ROW][C]28[/C][C]-0.405363[/C][C]-3.3672[/C][C]0.000622[/C][/ROW]
[ROW][C]29[/C][C]-0.411676[/C][C]-3.4196[/C][C]0.000528[/C][/ROW]
[ROW][C]30[/C][C]-0.421401[/C][C]-3.5004[/C][C]0.000409[/C][/ROW]
[ROW][C]31[/C][C]-0.425298[/C][C]-3.5328[/C][C]0.000369[/C][/ROW]
[ROW][C]32[/C][C]-0.423792[/C][C]-3.5203[/C][C]0.000384[/C][/ROW]
[ROW][C]33[/C][C]-0.37948[/C][C]-3.1522[/C][C]0.001199[/C][/ROW]
[ROW][C]34[/C][C]-0.308274[/C][C]-2.5607[/C][C]0.006318[/C][/ROW]
[ROW][C]35[/C][C]-0.230925[/C][C]-1.9182[/C][C]0.029612[/C][/ROW]
[ROW][C]36[/C][C]-0.174857[/C][C]-1.4525[/C][C]0.075452[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159457&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159457&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.8758997.27580
20.7011565.82420
30.5648534.6927e-06
40.4706183.90920.000107
50.4265973.54360.000357
60.3831793.18290.001094
70.3253332.70240.004329
80.2663662.21260.015118
90.2635852.18950.015972
100.3150042.61660.005451
110.3912963.25030.000892
120.4215363.50150.000408
130.2950262.45070.008399
140.1385021.15050.126959
150.0099940.0830.46704
16-0.09448-0.78480.217626
17-0.150533-1.25040.107685
18-0.202469-1.68180.048561
19-0.255955-2.12610.018537
20-0.302596-2.51360.007145
21-0.292928-2.43320.00878
22-0.237331-1.97140.026344
23-0.166559-1.38350.085479
24-0.1278-1.06160.146063
25-0.199504-1.65720.051009
26-0.298047-2.47580.007877
27-0.366123-3.04120.001665
28-0.405363-3.36720.000622
29-0.411676-3.41960.000528
30-0.421401-3.50040.000409
31-0.425298-3.53280.000369
32-0.423792-3.52030.000384
33-0.37948-3.15220.001199
34-0.308274-2.56070.006318
35-0.230925-1.91820.029612
36-0.174857-1.45250.075452







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8758997.27580
2-0.283688-2.35650.010647
30.1166430.96890.167987
40.0261250.2170.414421
50.1328871.10380.136749
6-0.08954-0.74380.229768
7-0.019784-0.16430.434971
8-0.008991-0.07470.47034
90.2425452.01470.023916
100.1234191.02520.154426
110.1466741.21840.113617
12-0.136384-1.13290.130591
13-0.554889-4.60939e-06
140.0475470.3950.347048
15-0.132438-1.10010.137553
16-0.111493-0.92610.178803
170.0117540.09760.461253
18-0.049177-0.40850.342087
190.0583120.48440.314825
20-0.034817-0.28920.386643
210.0275440.22880.409852
22-0.06806-0.56540.286834
230.0110250.09160.463648
24-0.014264-0.11850.453014
25-0.105051-0.87260.192949
26-0.053362-0.44330.329484
270.0633810.52650.300121
280.0580340.48210.315643
29-0.054157-0.44990.327109
30-0.019235-0.15980.436763
310.0476220.39560.346818
32-0.050888-0.42270.336913
33-0.022604-0.18780.425807
34-0.131025-1.08840.140109
350.010370.08610.465803
360.0074790.06210.475321

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.875899 & 7.2758 & 0 \tabularnewline
2 & -0.283688 & -2.3565 & 0.010647 \tabularnewline
3 & 0.116643 & 0.9689 & 0.167987 \tabularnewline
4 & 0.026125 & 0.217 & 0.414421 \tabularnewline
5 & 0.132887 & 1.1038 & 0.136749 \tabularnewline
6 & -0.08954 & -0.7438 & 0.229768 \tabularnewline
7 & -0.019784 & -0.1643 & 0.434971 \tabularnewline
8 & -0.008991 & -0.0747 & 0.47034 \tabularnewline
9 & 0.242545 & 2.0147 & 0.023916 \tabularnewline
10 & 0.123419 & 1.0252 & 0.154426 \tabularnewline
11 & 0.146674 & 1.2184 & 0.113617 \tabularnewline
12 & -0.136384 & -1.1329 & 0.130591 \tabularnewline
13 & -0.554889 & -4.6093 & 9e-06 \tabularnewline
14 & 0.047547 & 0.395 & 0.347048 \tabularnewline
15 & -0.132438 & -1.1001 & 0.137553 \tabularnewline
16 & -0.111493 & -0.9261 & 0.178803 \tabularnewline
17 & 0.011754 & 0.0976 & 0.461253 \tabularnewline
18 & -0.049177 & -0.4085 & 0.342087 \tabularnewline
19 & 0.058312 & 0.4844 & 0.314825 \tabularnewline
20 & -0.034817 & -0.2892 & 0.386643 \tabularnewline
21 & 0.027544 & 0.2288 & 0.409852 \tabularnewline
22 & -0.06806 & -0.5654 & 0.286834 \tabularnewline
23 & 0.011025 & 0.0916 & 0.463648 \tabularnewline
24 & -0.014264 & -0.1185 & 0.453014 \tabularnewline
25 & -0.105051 & -0.8726 & 0.192949 \tabularnewline
26 & -0.053362 & -0.4433 & 0.329484 \tabularnewline
27 & 0.063381 & 0.5265 & 0.300121 \tabularnewline
28 & 0.058034 & 0.4821 & 0.315643 \tabularnewline
29 & -0.054157 & -0.4499 & 0.327109 \tabularnewline
30 & -0.019235 & -0.1598 & 0.436763 \tabularnewline
31 & 0.047622 & 0.3956 & 0.346818 \tabularnewline
32 & -0.050888 & -0.4227 & 0.336913 \tabularnewline
33 & -0.022604 & -0.1878 & 0.425807 \tabularnewline
34 & -0.131025 & -1.0884 & 0.140109 \tabularnewline
35 & 0.01037 & 0.0861 & 0.465803 \tabularnewline
36 & 0.007479 & 0.0621 & 0.475321 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159457&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.875899[/C][C]7.2758[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.283688[/C][C]-2.3565[/C][C]0.010647[/C][/ROW]
[ROW][C]3[/C][C]0.116643[/C][C]0.9689[/C][C]0.167987[/C][/ROW]
[ROW][C]4[/C][C]0.026125[/C][C]0.217[/C][C]0.414421[/C][/ROW]
[ROW][C]5[/C][C]0.132887[/C][C]1.1038[/C][C]0.136749[/C][/ROW]
[ROW][C]6[/C][C]-0.08954[/C][C]-0.7438[/C][C]0.229768[/C][/ROW]
[ROW][C]7[/C][C]-0.019784[/C][C]-0.1643[/C][C]0.434971[/C][/ROW]
[ROW][C]8[/C][C]-0.008991[/C][C]-0.0747[/C][C]0.47034[/C][/ROW]
[ROW][C]9[/C][C]0.242545[/C][C]2.0147[/C][C]0.023916[/C][/ROW]
[ROW][C]10[/C][C]0.123419[/C][C]1.0252[/C][C]0.154426[/C][/ROW]
[ROW][C]11[/C][C]0.146674[/C][C]1.2184[/C][C]0.113617[/C][/ROW]
[ROW][C]12[/C][C]-0.136384[/C][C]-1.1329[/C][C]0.130591[/C][/ROW]
[ROW][C]13[/C][C]-0.554889[/C][C]-4.6093[/C][C]9e-06[/C][/ROW]
[ROW][C]14[/C][C]0.047547[/C][C]0.395[/C][C]0.347048[/C][/ROW]
[ROW][C]15[/C][C]-0.132438[/C][C]-1.1001[/C][C]0.137553[/C][/ROW]
[ROW][C]16[/C][C]-0.111493[/C][C]-0.9261[/C][C]0.178803[/C][/ROW]
[ROW][C]17[/C][C]0.011754[/C][C]0.0976[/C][C]0.461253[/C][/ROW]
[ROW][C]18[/C][C]-0.049177[/C][C]-0.4085[/C][C]0.342087[/C][/ROW]
[ROW][C]19[/C][C]0.058312[/C][C]0.4844[/C][C]0.314825[/C][/ROW]
[ROW][C]20[/C][C]-0.034817[/C][C]-0.2892[/C][C]0.386643[/C][/ROW]
[ROW][C]21[/C][C]0.027544[/C][C]0.2288[/C][C]0.409852[/C][/ROW]
[ROW][C]22[/C][C]-0.06806[/C][C]-0.5654[/C][C]0.286834[/C][/ROW]
[ROW][C]23[/C][C]0.011025[/C][C]0.0916[/C][C]0.463648[/C][/ROW]
[ROW][C]24[/C][C]-0.014264[/C][C]-0.1185[/C][C]0.453014[/C][/ROW]
[ROW][C]25[/C][C]-0.105051[/C][C]-0.8726[/C][C]0.192949[/C][/ROW]
[ROW][C]26[/C][C]-0.053362[/C][C]-0.4433[/C][C]0.329484[/C][/ROW]
[ROW][C]27[/C][C]0.063381[/C][C]0.5265[/C][C]0.300121[/C][/ROW]
[ROW][C]28[/C][C]0.058034[/C][C]0.4821[/C][C]0.315643[/C][/ROW]
[ROW][C]29[/C][C]-0.054157[/C][C]-0.4499[/C][C]0.327109[/C][/ROW]
[ROW][C]30[/C][C]-0.019235[/C][C]-0.1598[/C][C]0.436763[/C][/ROW]
[ROW][C]31[/C][C]0.047622[/C][C]0.3956[/C][C]0.346818[/C][/ROW]
[ROW][C]32[/C][C]-0.050888[/C][C]-0.4227[/C][C]0.336913[/C][/ROW]
[ROW][C]33[/C][C]-0.022604[/C][C]-0.1878[/C][C]0.425807[/C][/ROW]
[ROW][C]34[/C][C]-0.131025[/C][C]-1.0884[/C][C]0.140109[/C][/ROW]
[ROW][C]35[/C][C]0.01037[/C][C]0.0861[/C][C]0.465803[/C][/ROW]
[ROW][C]36[/C][C]0.007479[/C][C]0.0621[/C][C]0.475321[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159457&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159457&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.8758997.27580
2-0.283688-2.35650.010647
30.1166430.96890.167987
40.0261250.2170.414421
50.1328871.10380.136749
6-0.08954-0.74380.229768
7-0.019784-0.16430.434971
8-0.008991-0.07470.47034
90.2425452.01470.023916
100.1234191.02520.154426
110.1466741.21840.113617
12-0.136384-1.13290.130591
13-0.554889-4.60939e-06
140.0475470.3950.347048
15-0.132438-1.10010.137553
16-0.111493-0.92610.178803
170.0117540.09760.461253
18-0.049177-0.40850.342087
190.0583120.48440.314825
20-0.034817-0.28920.386643
210.0275440.22880.409852
22-0.06806-0.56540.286834
230.0110250.09160.463648
24-0.014264-0.11850.453014
25-0.105051-0.87260.192949
26-0.053362-0.44330.329484
270.0633810.52650.300121
280.0580340.48210.315643
29-0.054157-0.44990.327109
30-0.019235-0.15980.436763
310.0476220.39560.346818
32-0.050888-0.42270.336913
33-0.022604-0.18780.425807
34-0.131025-1.08840.140109
350.010370.08610.465803
360.0074790.06210.475321



Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ; par8 = ;
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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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')