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:54:44 -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/t1259769343s1h4o0ehuo1xdsk.htm/, Retrieved Sun, 28 Apr 2024 11:23:18 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=62392, Retrieved Sun, 28 Apr 2024 11:23:18 +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:48:46] [b98453cac15ba1066b407e146608df68]
-    D      [(Partial) Autocorrelation Function] [] [2009-12-02 15:54:44] [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 time2 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 & 2 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62392&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]2 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=62392&T=0

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.003142-0.02410.490414
20.0797630.61270.271224
30.1195520.91830.1811
40.0264950.20350.419719
50.01190.09140.463739
60.1185010.91020.183205
70.0117540.09030.464183
80.1146980.8810.190943
90.0226930.17430.431111
10-0.097499-0.74890.228446
110.2240241.72080.045268
12-0.165036-1.26770.104948
13-0.055652-0.42750.335297
140.0876420.67320.251726
15-0.056215-0.43180.333732
16-0.062305-0.47860.317005
17-0.033988-0.26110.397475
18-0.031062-0.23860.406124
190.0012530.00960.496176
200.0128010.09830.461004
21-0.05365-0.41210.340883
220.0239390.18390.427368
230.0150810.11580.454085
24-0.201042-1.54420.063939
25-0.10766-0.82690.205799
26-0.156122-1.19920.117623
270.0127530.0980.46115
28-0.071288-0.54760.293025
290.0840740.64580.260462
30-0.047748-0.36680.357555
31-0.006358-0.04880.480609
32-0.042229-0.32440.373405
33-0.058095-0.44620.328531
34-0.022668-0.17410.431184
35-0.008419-0.06470.474328
36-0.0446-0.34260.366567

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.003142 & -0.0241 & 0.490414 \tabularnewline
2 & 0.079763 & 0.6127 & 0.271224 \tabularnewline
3 & 0.119552 & 0.9183 & 0.1811 \tabularnewline
4 & 0.026495 & 0.2035 & 0.419719 \tabularnewline
5 & 0.0119 & 0.0914 & 0.463739 \tabularnewline
6 & 0.118501 & 0.9102 & 0.183205 \tabularnewline
7 & 0.011754 & 0.0903 & 0.464183 \tabularnewline
8 & 0.114698 & 0.881 & 0.190943 \tabularnewline
9 & 0.022693 & 0.1743 & 0.431111 \tabularnewline
10 & -0.097499 & -0.7489 & 0.228446 \tabularnewline
11 & 0.224024 & 1.7208 & 0.045268 \tabularnewline
12 & -0.165036 & -1.2677 & 0.104948 \tabularnewline
13 & -0.055652 & -0.4275 & 0.335297 \tabularnewline
14 & 0.087642 & 0.6732 & 0.251726 \tabularnewline
15 & -0.056215 & -0.4318 & 0.333732 \tabularnewline
16 & -0.062305 & -0.4786 & 0.317005 \tabularnewline
17 & -0.033988 & -0.2611 & 0.397475 \tabularnewline
18 & -0.031062 & -0.2386 & 0.406124 \tabularnewline
19 & 0.001253 & 0.0096 & 0.496176 \tabularnewline
20 & 0.012801 & 0.0983 & 0.461004 \tabularnewline
21 & -0.05365 & -0.4121 & 0.340883 \tabularnewline
22 & 0.023939 & 0.1839 & 0.427368 \tabularnewline
23 & 0.015081 & 0.1158 & 0.454085 \tabularnewline
24 & -0.201042 & -1.5442 & 0.063939 \tabularnewline
25 & -0.10766 & -0.8269 & 0.205799 \tabularnewline
26 & -0.156122 & -1.1992 & 0.117623 \tabularnewline
27 & 0.012753 & 0.098 & 0.46115 \tabularnewline
28 & -0.071288 & -0.5476 & 0.293025 \tabularnewline
29 & 0.084074 & 0.6458 & 0.260462 \tabularnewline
30 & -0.047748 & -0.3668 & 0.357555 \tabularnewline
31 & -0.006358 & -0.0488 & 0.480609 \tabularnewline
32 & -0.042229 & -0.3244 & 0.373405 \tabularnewline
33 & -0.058095 & -0.4462 & 0.328531 \tabularnewline
34 & -0.022668 & -0.1741 & 0.431184 \tabularnewline
35 & -0.008419 & -0.0647 & 0.474328 \tabularnewline
36 & -0.0446 & -0.3426 & 0.366567 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62392&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.003142[/C][C]-0.0241[/C][C]0.490414[/C][/ROW]
[ROW][C]2[/C][C]0.079763[/C][C]0.6127[/C][C]0.271224[/C][/ROW]
[ROW][C]3[/C][C]0.119552[/C][C]0.9183[/C][C]0.1811[/C][/ROW]
[ROW][C]4[/C][C]0.026495[/C][C]0.2035[/C][C]0.419719[/C][/ROW]
[ROW][C]5[/C][C]0.0119[/C][C]0.0914[/C][C]0.463739[/C][/ROW]
[ROW][C]6[/C][C]0.118501[/C][C]0.9102[/C][C]0.183205[/C][/ROW]
[ROW][C]7[/C][C]0.011754[/C][C]0.0903[/C][C]0.464183[/C][/ROW]
[ROW][C]8[/C][C]0.114698[/C][C]0.881[/C][C]0.190943[/C][/ROW]
[ROW][C]9[/C][C]0.022693[/C][C]0.1743[/C][C]0.431111[/C][/ROW]
[ROW][C]10[/C][C]-0.097499[/C][C]-0.7489[/C][C]0.228446[/C][/ROW]
[ROW][C]11[/C][C]0.224024[/C][C]1.7208[/C][C]0.045268[/C][/ROW]
[ROW][C]12[/C][C]-0.165036[/C][C]-1.2677[/C][C]0.104948[/C][/ROW]
[ROW][C]13[/C][C]-0.055652[/C][C]-0.4275[/C][C]0.335297[/C][/ROW]
[ROW][C]14[/C][C]0.087642[/C][C]0.6732[/C][C]0.251726[/C][/ROW]
[ROW][C]15[/C][C]-0.056215[/C][C]-0.4318[/C][C]0.333732[/C][/ROW]
[ROW][C]16[/C][C]-0.062305[/C][C]-0.4786[/C][C]0.317005[/C][/ROW]
[ROW][C]17[/C][C]-0.033988[/C][C]-0.2611[/C][C]0.397475[/C][/ROW]
[ROW][C]18[/C][C]-0.031062[/C][C]-0.2386[/C][C]0.406124[/C][/ROW]
[ROW][C]19[/C][C]0.001253[/C][C]0.0096[/C][C]0.496176[/C][/ROW]
[ROW][C]20[/C][C]0.012801[/C][C]0.0983[/C][C]0.461004[/C][/ROW]
[ROW][C]21[/C][C]-0.05365[/C][C]-0.4121[/C][C]0.340883[/C][/ROW]
[ROW][C]22[/C][C]0.023939[/C][C]0.1839[/C][C]0.427368[/C][/ROW]
[ROW][C]23[/C][C]0.015081[/C][C]0.1158[/C][C]0.454085[/C][/ROW]
[ROW][C]24[/C][C]-0.201042[/C][C]-1.5442[/C][C]0.063939[/C][/ROW]
[ROW][C]25[/C][C]-0.10766[/C][C]-0.8269[/C][C]0.205799[/C][/ROW]
[ROW][C]26[/C][C]-0.156122[/C][C]-1.1992[/C][C]0.117623[/C][/ROW]
[ROW][C]27[/C][C]0.012753[/C][C]0.098[/C][C]0.46115[/C][/ROW]
[ROW][C]28[/C][C]-0.071288[/C][C]-0.5476[/C][C]0.293025[/C][/ROW]
[ROW][C]29[/C][C]0.084074[/C][C]0.6458[/C][C]0.260462[/C][/ROW]
[ROW][C]30[/C][C]-0.047748[/C][C]-0.3668[/C][C]0.357555[/C][/ROW]
[ROW][C]31[/C][C]-0.006358[/C][C]-0.0488[/C][C]0.480609[/C][/ROW]
[ROW][C]32[/C][C]-0.042229[/C][C]-0.3244[/C][C]0.373405[/C][/ROW]
[ROW][C]33[/C][C]-0.058095[/C][C]-0.4462[/C][C]0.328531[/C][/ROW]
[ROW][C]34[/C][C]-0.022668[/C][C]-0.1741[/C][C]0.431184[/C][/ROW]
[ROW][C]35[/C][C]-0.008419[/C][C]-0.0647[/C][C]0.474328[/C][/ROW]
[ROW][C]36[/C][C]-0.0446[/C][C]-0.3426[/C][C]0.366567[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62392&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62392&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
1-0.003142-0.02410.490414
20.0797630.61270.271224
30.1195520.91830.1811
40.0264950.20350.419719
50.01190.09140.463739
60.1185010.91020.183205
70.0117540.09030.464183
80.1146980.8810.190943
90.0226930.17430.431111
10-0.097499-0.74890.228446
110.2240241.72080.045268
12-0.165036-1.26770.104948
13-0.055652-0.42750.335297
140.0876420.67320.251726
15-0.056215-0.43180.333732
16-0.062305-0.47860.317005
17-0.033988-0.26110.397475
18-0.031062-0.23860.406124
190.0012530.00960.496176
200.0128010.09830.461004
21-0.05365-0.41210.340883
220.0239390.18390.427368
230.0150810.11580.454085
24-0.201042-1.54420.063939
25-0.10766-0.82690.205799
26-0.156122-1.19920.117623
270.0127530.0980.46115
28-0.071288-0.54760.293025
290.0840740.64580.260462
30-0.047748-0.36680.357555
31-0.006358-0.04880.480609
32-0.042229-0.32440.373405
33-0.058095-0.44620.328531
34-0.022668-0.17410.431184
35-0.008419-0.06470.474328
36-0.0446-0.34260.366567







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.003142-0.02410.490414
20.0797540.61260.271247
30.1208030.92790.178618
40.0224510.17240.431838
5-0.00679-0.05220.47929
60.1024330.78680.217272
70.0089750.06890.472636
80.0998460.76690.22309
9-0.000821-0.00630.497495
10-0.124166-0.95370.172054
110.2066071.5870.058932
12-0.182497-1.40180.083109
13-0.065827-0.50560.307502
140.0633550.48660.314159
15-0.044741-0.34370.366162
16-0.034138-0.26220.397032
17-0.09647-0.7410.230816
180.040310.30960.378968
190.0038010.02920.488405
200.0291530.22390.411795
210.0188290.14460.442748
22-0.073156-0.56190.288149
230.1238730.95150.172619
24-0.21761-1.67150.04996
25-0.172514-1.32510.095123
26-0.115615-0.88810.189059
270.0801680.61580.270202
28-0.01573-0.12080.45212
290.076120.58470.280494
300.0157510.1210.452056
310.0023010.01770.49298
320.0434210.33350.36996
33-0.054416-0.4180.338742
34-0.073702-0.56610.286732
350.0871030.66910.253036
36-0.068686-0.52760.299882

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.003142 & -0.0241 & 0.490414 \tabularnewline
2 & 0.079754 & 0.6126 & 0.271247 \tabularnewline
3 & 0.120803 & 0.9279 & 0.178618 \tabularnewline
4 & 0.022451 & 0.1724 & 0.431838 \tabularnewline
5 & -0.00679 & -0.0522 & 0.47929 \tabularnewline
6 & 0.102433 & 0.7868 & 0.217272 \tabularnewline
7 & 0.008975 & 0.0689 & 0.472636 \tabularnewline
8 & 0.099846 & 0.7669 & 0.22309 \tabularnewline
9 & -0.000821 & -0.0063 & 0.497495 \tabularnewline
10 & -0.124166 & -0.9537 & 0.172054 \tabularnewline
11 & 0.206607 & 1.587 & 0.058932 \tabularnewline
12 & -0.182497 & -1.4018 & 0.083109 \tabularnewline
13 & -0.065827 & -0.5056 & 0.307502 \tabularnewline
14 & 0.063355 & 0.4866 & 0.314159 \tabularnewline
15 & -0.044741 & -0.3437 & 0.366162 \tabularnewline
16 & -0.034138 & -0.2622 & 0.397032 \tabularnewline
17 & -0.09647 & -0.741 & 0.230816 \tabularnewline
18 & 0.04031 & 0.3096 & 0.378968 \tabularnewline
19 & 0.003801 & 0.0292 & 0.488405 \tabularnewline
20 & 0.029153 & 0.2239 & 0.411795 \tabularnewline
21 & 0.018829 & 0.1446 & 0.442748 \tabularnewline
22 & -0.073156 & -0.5619 & 0.288149 \tabularnewline
23 & 0.123873 & 0.9515 & 0.172619 \tabularnewline
24 & -0.21761 & -1.6715 & 0.04996 \tabularnewline
25 & -0.172514 & -1.3251 & 0.095123 \tabularnewline
26 & -0.115615 & -0.8881 & 0.189059 \tabularnewline
27 & 0.080168 & 0.6158 & 0.270202 \tabularnewline
28 & -0.01573 & -0.1208 & 0.45212 \tabularnewline
29 & 0.07612 & 0.5847 & 0.280494 \tabularnewline
30 & 0.015751 & 0.121 & 0.452056 \tabularnewline
31 & 0.002301 & 0.0177 & 0.49298 \tabularnewline
32 & 0.043421 & 0.3335 & 0.36996 \tabularnewline
33 & -0.054416 & -0.418 & 0.338742 \tabularnewline
34 & -0.073702 & -0.5661 & 0.286732 \tabularnewline
35 & 0.087103 & 0.6691 & 0.253036 \tabularnewline
36 & -0.068686 & -0.5276 & 0.299882 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62392&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.003142[/C][C]-0.0241[/C][C]0.490414[/C][/ROW]
[ROW][C]2[/C][C]0.079754[/C][C]0.6126[/C][C]0.271247[/C][/ROW]
[ROW][C]3[/C][C]0.120803[/C][C]0.9279[/C][C]0.178618[/C][/ROW]
[ROW][C]4[/C][C]0.022451[/C][C]0.1724[/C][C]0.431838[/C][/ROW]
[ROW][C]5[/C][C]-0.00679[/C][C]-0.0522[/C][C]0.47929[/C][/ROW]
[ROW][C]6[/C][C]0.102433[/C][C]0.7868[/C][C]0.217272[/C][/ROW]
[ROW][C]7[/C][C]0.008975[/C][C]0.0689[/C][C]0.472636[/C][/ROW]
[ROW][C]8[/C][C]0.099846[/C][C]0.7669[/C][C]0.22309[/C][/ROW]
[ROW][C]9[/C][C]-0.000821[/C][C]-0.0063[/C][C]0.497495[/C][/ROW]
[ROW][C]10[/C][C]-0.124166[/C][C]-0.9537[/C][C]0.172054[/C][/ROW]
[ROW][C]11[/C][C]0.206607[/C][C]1.587[/C][C]0.058932[/C][/ROW]
[ROW][C]12[/C][C]-0.182497[/C][C]-1.4018[/C][C]0.083109[/C][/ROW]
[ROW][C]13[/C][C]-0.065827[/C][C]-0.5056[/C][C]0.307502[/C][/ROW]
[ROW][C]14[/C][C]0.063355[/C][C]0.4866[/C][C]0.314159[/C][/ROW]
[ROW][C]15[/C][C]-0.044741[/C][C]-0.3437[/C][C]0.366162[/C][/ROW]
[ROW][C]16[/C][C]-0.034138[/C][C]-0.2622[/C][C]0.397032[/C][/ROW]
[ROW][C]17[/C][C]-0.09647[/C][C]-0.741[/C][C]0.230816[/C][/ROW]
[ROW][C]18[/C][C]0.04031[/C][C]0.3096[/C][C]0.378968[/C][/ROW]
[ROW][C]19[/C][C]0.003801[/C][C]0.0292[/C][C]0.488405[/C][/ROW]
[ROW][C]20[/C][C]0.029153[/C][C]0.2239[/C][C]0.411795[/C][/ROW]
[ROW][C]21[/C][C]0.018829[/C][C]0.1446[/C][C]0.442748[/C][/ROW]
[ROW][C]22[/C][C]-0.073156[/C][C]-0.5619[/C][C]0.288149[/C][/ROW]
[ROW][C]23[/C][C]0.123873[/C][C]0.9515[/C][C]0.172619[/C][/ROW]
[ROW][C]24[/C][C]-0.21761[/C][C]-1.6715[/C][C]0.04996[/C][/ROW]
[ROW][C]25[/C][C]-0.172514[/C][C]-1.3251[/C][C]0.095123[/C][/ROW]
[ROW][C]26[/C][C]-0.115615[/C][C]-0.8881[/C][C]0.189059[/C][/ROW]
[ROW][C]27[/C][C]0.080168[/C][C]0.6158[/C][C]0.270202[/C][/ROW]
[ROW][C]28[/C][C]-0.01573[/C][C]-0.1208[/C][C]0.45212[/C][/ROW]
[ROW][C]29[/C][C]0.07612[/C][C]0.5847[/C][C]0.280494[/C][/ROW]
[ROW][C]30[/C][C]0.015751[/C][C]0.121[/C][C]0.452056[/C][/ROW]
[ROW][C]31[/C][C]0.002301[/C][C]0.0177[/C][C]0.49298[/C][/ROW]
[ROW][C]32[/C][C]0.043421[/C][C]0.3335[/C][C]0.36996[/C][/ROW]
[ROW][C]33[/C][C]-0.054416[/C][C]-0.418[/C][C]0.338742[/C][/ROW]
[ROW][C]34[/C][C]-0.073702[/C][C]-0.5661[/C][C]0.286732[/C][/ROW]
[ROW][C]35[/C][C]0.087103[/C][C]0.6691[/C][C]0.253036[/C][/ROW]
[ROW][C]36[/C][C]-0.068686[/C][C]-0.5276[/C][C]0.299882[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62392&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62392&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
1-0.003142-0.02410.490414
20.0797540.61260.271247
30.1208030.92790.178618
40.0224510.17240.431838
5-0.00679-0.05220.47929
60.1024330.78680.217272
70.0089750.06890.472636
80.0998460.76690.22309
9-0.000821-0.00630.497495
10-0.124166-0.95370.172054
110.2066071.5870.058932
12-0.182497-1.40180.083109
13-0.065827-0.50560.307502
140.0633550.48660.314159
15-0.044741-0.34370.366162
16-0.034138-0.26220.397032
17-0.09647-0.7410.230816
180.040310.30960.378968
190.0038010.02920.488405
200.0291530.22390.411795
210.0188290.14460.442748
22-0.073156-0.56190.288149
230.1238730.95150.172619
24-0.21761-1.67150.04996
25-0.172514-1.32510.095123
26-0.115615-0.88810.189059
270.0801680.61580.270202
28-0.01573-0.12080.45212
290.076120.58470.280494
300.0157510.1210.452056
310.0023010.01770.49298
320.0434210.33350.36996
33-0.054416-0.4180.338742
34-0.073702-0.56610.286732
350.0871030.66910.253036
36-0.068686-0.52760.299882



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