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 computationSat, 06 Dec 2008 08:47:29 -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/2008/Dec/06/t1228578491e20eii0eb62rvaz.htm/, Retrieved Sat, 18 May 2024 22:31:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=29710, Retrieved Sat, 18 May 2024 22:31:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact192
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]
F RMP   [(Partial) Autocorrelation Function] [Identification an...] [2008-12-04 19:44:00] [063e4b67ad7d3a8a83eccec794cd5aa7]
-    D    [(Partial) Autocorrelation Function] [Eigen tijdreeks A...] [2008-12-06 14:52:29] [063e4b67ad7d3a8a83eccec794cd5aa7]
-    D      [(Partial) Autocorrelation Function] [Eigen tijdreeks A...] [2008-12-06 14:55:00] [063e4b67ad7d3a8a83eccec794cd5aa7]
F    D          [(Partial) Autocorrelation Function] [Eigen tijdreeks t...] [2008-12-06 15:47:29] [6797a1f4a60918966297e9d9220cabc2] [Current]
Feedback Forum
2008-12-15 18:41:23 [Jeroen Michel] [reply
Ook hier stelt de student vast dat er een langetermijn trend valt op te tekenen en dat deze kunnen worden weggewerkt met een nieuwe/volgende berekening.Ook hier werden de parameters correct ingesteld.

Post a new message
Dataseries X:
6.2
6.1
5.9
5.6
5.5
5.5
5.6
5.7
5.6
5.4
5.3
5.3
5.4
5.5
5.6
5.7
5.8
5.8
5.7
5.9
6.1
6.4
6.4
6.3
6.2
6.2
6.3
6.5
6.6
6.6
6.7
6.6
6.7
7
7.2
7.3
7.5
7.6
7.7
7.8
7.8
7.7
7.6
7.6
7.7
7.8
7.8
7.8
7.7
7.6
7.4
7.1
7.1
7.3
7.6
7.8
7.7
7.6
7.5
7.5
7.5
7.6
7.6
7.7
7.8
7.7
7.6
7.6
7.6
7.7
7.8
7.8
7.9
7.9
7.8
7.8
7.7
7.5
7.1
6.9
7.1
7.1
7.1
7
6.9
6.8
6.7
6.8
6.8
6.7
6.8
6.7
6.6
6.4
6.4
6.4
6.5
6.5
6.4
6.3
6.2
6.3




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29710&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]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29710&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29710&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'George Udny Yule' @ 72.249.76.132







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9803059.90060
20.9443579.53750
30.9049769.13980
40.868278.76910
50.8366548.44980
60.8044028.12410
70.767067.74690
80.723297.30490
90.6724286.79120
100.6177486.23890
110.562595.68190
120.5105495.15631e-06
130.4626434.67255e-06
140.4187424.22912.6e-05
150.373983.7770.000134
160.3263553.2960.000675
170.2790762.81850.002898
180.2323682.34680.010434
190.1869331.88790.030939
200.1433681.44790.075349
210.0987190.9970.160559
220.0548270.55370.290489
230.010430.10530.458157
24-0.028624-0.28910.38655
25-0.059444-0.60040.274799
26-0.086896-0.87760.191109
27-0.11607-1.17220.121915
28-0.148714-1.50190.068101
29-0.182286-1.8410.034264
30-0.212198-2.14310.017242
31-0.234794-2.37130.009802
32-0.253029-2.55550.00604
33-0.269197-2.71880.003851
34-0.285654-2.8850.002388
35-0.302243-3.05250.001447
36-0.31826-3.21430.000876

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.980305 & 9.9006 & 0 \tabularnewline
2 & 0.944357 & 9.5375 & 0 \tabularnewline
3 & 0.904976 & 9.1398 & 0 \tabularnewline
4 & 0.86827 & 8.7691 & 0 \tabularnewline
5 & 0.836654 & 8.4498 & 0 \tabularnewline
6 & 0.804402 & 8.1241 & 0 \tabularnewline
7 & 0.76706 & 7.7469 & 0 \tabularnewline
8 & 0.72329 & 7.3049 & 0 \tabularnewline
9 & 0.672428 & 6.7912 & 0 \tabularnewline
10 & 0.617748 & 6.2389 & 0 \tabularnewline
11 & 0.56259 & 5.6819 & 0 \tabularnewline
12 & 0.510549 & 5.1563 & 1e-06 \tabularnewline
13 & 0.462643 & 4.6725 & 5e-06 \tabularnewline
14 & 0.418742 & 4.2291 & 2.6e-05 \tabularnewline
15 & 0.37398 & 3.777 & 0.000134 \tabularnewline
16 & 0.326355 & 3.296 & 0.000675 \tabularnewline
17 & 0.279076 & 2.8185 & 0.002898 \tabularnewline
18 & 0.232368 & 2.3468 & 0.010434 \tabularnewline
19 & 0.186933 & 1.8879 & 0.030939 \tabularnewline
20 & 0.143368 & 1.4479 & 0.075349 \tabularnewline
21 & 0.098719 & 0.997 & 0.160559 \tabularnewline
22 & 0.054827 & 0.5537 & 0.290489 \tabularnewline
23 & 0.01043 & 0.1053 & 0.458157 \tabularnewline
24 & -0.028624 & -0.2891 & 0.38655 \tabularnewline
25 & -0.059444 & -0.6004 & 0.274799 \tabularnewline
26 & -0.086896 & -0.8776 & 0.191109 \tabularnewline
27 & -0.11607 & -1.1722 & 0.121915 \tabularnewline
28 & -0.148714 & -1.5019 & 0.068101 \tabularnewline
29 & -0.182286 & -1.841 & 0.034264 \tabularnewline
30 & -0.212198 & -2.1431 & 0.017242 \tabularnewline
31 & -0.234794 & -2.3713 & 0.009802 \tabularnewline
32 & -0.253029 & -2.5555 & 0.00604 \tabularnewline
33 & -0.269197 & -2.7188 & 0.003851 \tabularnewline
34 & -0.285654 & -2.885 & 0.002388 \tabularnewline
35 & -0.302243 & -3.0525 & 0.001447 \tabularnewline
36 & -0.31826 & -3.2143 & 0.000876 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29710&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.980305[/C][C]9.9006[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.944357[/C][C]9.5375[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.904976[/C][C]9.1398[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.86827[/C][C]8.7691[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0.836654[/C][C]8.4498[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0.804402[/C][C]8.1241[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0.76706[/C][C]7.7469[/C][C]0[/C][/ROW]
[ROW][C]8[/C][C]0.72329[/C][C]7.3049[/C][C]0[/C][/ROW]
[ROW][C]9[/C][C]0.672428[/C][C]6.7912[/C][C]0[/C][/ROW]
[ROW][C]10[/C][C]0.617748[/C][C]6.2389[/C][C]0[/C][/ROW]
[ROW][C]11[/C][C]0.56259[/C][C]5.6819[/C][C]0[/C][/ROW]
[ROW][C]12[/C][C]0.510549[/C][C]5.1563[/C][C]1e-06[/C][/ROW]
[ROW][C]13[/C][C]0.462643[/C][C]4.6725[/C][C]5e-06[/C][/ROW]
[ROW][C]14[/C][C]0.418742[/C][C]4.2291[/C][C]2.6e-05[/C][/ROW]
[ROW][C]15[/C][C]0.37398[/C][C]3.777[/C][C]0.000134[/C][/ROW]
[ROW][C]16[/C][C]0.326355[/C][C]3.296[/C][C]0.000675[/C][/ROW]
[ROW][C]17[/C][C]0.279076[/C][C]2.8185[/C][C]0.002898[/C][/ROW]
[ROW][C]18[/C][C]0.232368[/C][C]2.3468[/C][C]0.010434[/C][/ROW]
[ROW][C]19[/C][C]0.186933[/C][C]1.8879[/C][C]0.030939[/C][/ROW]
[ROW][C]20[/C][C]0.143368[/C][C]1.4479[/C][C]0.075349[/C][/ROW]
[ROW][C]21[/C][C]0.098719[/C][C]0.997[/C][C]0.160559[/C][/ROW]
[ROW][C]22[/C][C]0.054827[/C][C]0.5537[/C][C]0.290489[/C][/ROW]
[ROW][C]23[/C][C]0.01043[/C][C]0.1053[/C][C]0.458157[/C][/ROW]
[ROW][C]24[/C][C]-0.028624[/C][C]-0.2891[/C][C]0.38655[/C][/ROW]
[ROW][C]25[/C][C]-0.059444[/C][C]-0.6004[/C][C]0.274799[/C][/ROW]
[ROW][C]26[/C][C]-0.086896[/C][C]-0.8776[/C][C]0.191109[/C][/ROW]
[ROW][C]27[/C][C]-0.11607[/C][C]-1.1722[/C][C]0.121915[/C][/ROW]
[ROW][C]28[/C][C]-0.148714[/C][C]-1.5019[/C][C]0.068101[/C][/ROW]
[ROW][C]29[/C][C]-0.182286[/C][C]-1.841[/C][C]0.034264[/C][/ROW]
[ROW][C]30[/C][C]-0.212198[/C][C]-2.1431[/C][C]0.017242[/C][/ROW]
[ROW][C]31[/C][C]-0.234794[/C][C]-2.3713[/C][C]0.009802[/C][/ROW]
[ROW][C]32[/C][C]-0.253029[/C][C]-2.5555[/C][C]0.00604[/C][/ROW]
[ROW][C]33[/C][C]-0.269197[/C][C]-2.7188[/C][C]0.003851[/C][/ROW]
[ROW][C]34[/C][C]-0.285654[/C][C]-2.885[/C][C]0.002388[/C][/ROW]
[ROW][C]35[/C][C]-0.302243[/C][C]-3.0525[/C][C]0.001447[/C][/ROW]
[ROW][C]36[/C][C]-0.31826[/C][C]-3.2143[/C][C]0.000876[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29710&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29710&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.9803059.90060
20.9443579.53750
30.9049769.13980
40.868278.76910
50.8366548.44980
60.8044028.12410
70.767067.74690
80.723297.30490
90.6724286.79120
100.6177486.23890
110.562595.68190
120.5105495.15631e-06
130.4626434.67255e-06
140.4187424.22912.6e-05
150.373983.7770.000134
160.3263553.2960.000675
170.2790762.81850.002898
180.2323682.34680.010434
190.1869331.88790.030939
200.1433681.44790.075349
210.0987190.9970.160559
220.0548270.55370.290489
230.010430.10530.458157
24-0.028624-0.28910.38655
25-0.059444-0.60040.274799
26-0.086896-0.87760.191109
27-0.11607-1.17220.121915
28-0.148714-1.50190.068101
29-0.182286-1.8410.034264
30-0.212198-2.14310.017242
31-0.234794-2.37130.009802
32-0.253029-2.55550.00604
33-0.269197-2.71880.003851
34-0.285654-2.8850.002388
35-0.302243-3.05250.001447
36-0.31826-3.21430.000876







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9803059.90060
2-0.426661-4.30911.9e-05
30.0780640.78840.216143
40.0617860.6240.267008
50.0572880.57860.282074
6-0.144303-1.45740.07404
7-0.110183-1.11280.134206
8-0.090259-0.91160.182072
9-0.128466-1.29740.098704
10-0.052083-0.5260.300011
11-0.035719-0.36070.359519
120.036090.36450.358122
130.0087830.08870.464747
140.0454770.45930.3235
15-0.095063-0.96010.169641
16-0.028909-0.2920.385453
170.0649520.6560.256655
18-0.056458-0.57020.284897
19-0.051196-0.51710.303119
20-0.034471-0.34810.364225
21-0.10596-1.07010.143541
220.0093320.09420.462548
23-0.089639-0.90530.183718
240.1717331.73440.042932
250.0738060.74540.22887
26-0.080509-0.81310.209028
27-0.116043-1.1720.121967
28-0.040359-0.40760.34221
290.0340310.34370.36589
300.0330720.3340.369529
310.0517550.52270.301157
32-0.117985-1.19160.118094
33-0.011441-0.11560.454118
34-0.062075-0.62690.266053
350.0478850.48360.314849
36-0.004693-0.04740.481146

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.980305 & 9.9006 & 0 \tabularnewline
2 & -0.426661 & -4.3091 & 1.9e-05 \tabularnewline
3 & 0.078064 & 0.7884 & 0.216143 \tabularnewline
4 & 0.061786 & 0.624 & 0.267008 \tabularnewline
5 & 0.057288 & 0.5786 & 0.282074 \tabularnewline
6 & -0.144303 & -1.4574 & 0.07404 \tabularnewline
7 & -0.110183 & -1.1128 & 0.134206 \tabularnewline
8 & -0.090259 & -0.9116 & 0.182072 \tabularnewline
9 & -0.128466 & -1.2974 & 0.098704 \tabularnewline
10 & -0.052083 & -0.526 & 0.300011 \tabularnewline
11 & -0.035719 & -0.3607 & 0.359519 \tabularnewline
12 & 0.03609 & 0.3645 & 0.358122 \tabularnewline
13 & 0.008783 & 0.0887 & 0.464747 \tabularnewline
14 & 0.045477 & 0.4593 & 0.3235 \tabularnewline
15 & -0.095063 & -0.9601 & 0.169641 \tabularnewline
16 & -0.028909 & -0.292 & 0.385453 \tabularnewline
17 & 0.064952 & 0.656 & 0.256655 \tabularnewline
18 & -0.056458 & -0.5702 & 0.284897 \tabularnewline
19 & -0.051196 & -0.5171 & 0.303119 \tabularnewline
20 & -0.034471 & -0.3481 & 0.364225 \tabularnewline
21 & -0.10596 & -1.0701 & 0.143541 \tabularnewline
22 & 0.009332 & 0.0942 & 0.462548 \tabularnewline
23 & -0.089639 & -0.9053 & 0.183718 \tabularnewline
24 & 0.171733 & 1.7344 & 0.042932 \tabularnewline
25 & 0.073806 & 0.7454 & 0.22887 \tabularnewline
26 & -0.080509 & -0.8131 & 0.209028 \tabularnewline
27 & -0.116043 & -1.172 & 0.121967 \tabularnewline
28 & -0.040359 & -0.4076 & 0.34221 \tabularnewline
29 & 0.034031 & 0.3437 & 0.36589 \tabularnewline
30 & 0.033072 & 0.334 & 0.369529 \tabularnewline
31 & 0.051755 & 0.5227 & 0.301157 \tabularnewline
32 & -0.117985 & -1.1916 & 0.118094 \tabularnewline
33 & -0.011441 & -0.1156 & 0.454118 \tabularnewline
34 & -0.062075 & -0.6269 & 0.266053 \tabularnewline
35 & 0.047885 & 0.4836 & 0.314849 \tabularnewline
36 & -0.004693 & -0.0474 & 0.481146 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=29710&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.980305[/C][C]9.9006[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.426661[/C][C]-4.3091[/C][C]1.9e-05[/C][/ROW]
[ROW][C]3[/C][C]0.078064[/C][C]0.7884[/C][C]0.216143[/C][/ROW]
[ROW][C]4[/C][C]0.061786[/C][C]0.624[/C][C]0.267008[/C][/ROW]
[ROW][C]5[/C][C]0.057288[/C][C]0.5786[/C][C]0.282074[/C][/ROW]
[ROW][C]6[/C][C]-0.144303[/C][C]-1.4574[/C][C]0.07404[/C][/ROW]
[ROW][C]7[/C][C]-0.110183[/C][C]-1.1128[/C][C]0.134206[/C][/ROW]
[ROW][C]8[/C][C]-0.090259[/C][C]-0.9116[/C][C]0.182072[/C][/ROW]
[ROW][C]9[/C][C]-0.128466[/C][C]-1.2974[/C][C]0.098704[/C][/ROW]
[ROW][C]10[/C][C]-0.052083[/C][C]-0.526[/C][C]0.300011[/C][/ROW]
[ROW][C]11[/C][C]-0.035719[/C][C]-0.3607[/C][C]0.359519[/C][/ROW]
[ROW][C]12[/C][C]0.03609[/C][C]0.3645[/C][C]0.358122[/C][/ROW]
[ROW][C]13[/C][C]0.008783[/C][C]0.0887[/C][C]0.464747[/C][/ROW]
[ROW][C]14[/C][C]0.045477[/C][C]0.4593[/C][C]0.3235[/C][/ROW]
[ROW][C]15[/C][C]-0.095063[/C][C]-0.9601[/C][C]0.169641[/C][/ROW]
[ROW][C]16[/C][C]-0.028909[/C][C]-0.292[/C][C]0.385453[/C][/ROW]
[ROW][C]17[/C][C]0.064952[/C][C]0.656[/C][C]0.256655[/C][/ROW]
[ROW][C]18[/C][C]-0.056458[/C][C]-0.5702[/C][C]0.284897[/C][/ROW]
[ROW][C]19[/C][C]-0.051196[/C][C]-0.5171[/C][C]0.303119[/C][/ROW]
[ROW][C]20[/C][C]-0.034471[/C][C]-0.3481[/C][C]0.364225[/C][/ROW]
[ROW][C]21[/C][C]-0.10596[/C][C]-1.0701[/C][C]0.143541[/C][/ROW]
[ROW][C]22[/C][C]0.009332[/C][C]0.0942[/C][C]0.462548[/C][/ROW]
[ROW][C]23[/C][C]-0.089639[/C][C]-0.9053[/C][C]0.183718[/C][/ROW]
[ROW][C]24[/C][C]0.171733[/C][C]1.7344[/C][C]0.042932[/C][/ROW]
[ROW][C]25[/C][C]0.073806[/C][C]0.7454[/C][C]0.22887[/C][/ROW]
[ROW][C]26[/C][C]-0.080509[/C][C]-0.8131[/C][C]0.209028[/C][/ROW]
[ROW][C]27[/C][C]-0.116043[/C][C]-1.172[/C][C]0.121967[/C][/ROW]
[ROW][C]28[/C][C]-0.040359[/C][C]-0.4076[/C][C]0.34221[/C][/ROW]
[ROW][C]29[/C][C]0.034031[/C][C]0.3437[/C][C]0.36589[/C][/ROW]
[ROW][C]30[/C][C]0.033072[/C][C]0.334[/C][C]0.369529[/C][/ROW]
[ROW][C]31[/C][C]0.051755[/C][C]0.5227[/C][C]0.301157[/C][/ROW]
[ROW][C]32[/C][C]-0.117985[/C][C]-1.1916[/C][C]0.118094[/C][/ROW]
[ROW][C]33[/C][C]-0.011441[/C][C]-0.1156[/C][C]0.454118[/C][/ROW]
[ROW][C]34[/C][C]-0.062075[/C][C]-0.6269[/C][C]0.266053[/C][/ROW]
[ROW][C]35[/C][C]0.047885[/C][C]0.4836[/C][C]0.314849[/C][/ROW]
[ROW][C]36[/C][C]-0.004693[/C][C]-0.0474[/C][C]0.481146[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=29710&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=29710&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.9803059.90060
2-0.426661-4.30911.9e-05
30.0780640.78840.216143
40.0617860.6240.267008
50.0572880.57860.282074
6-0.144303-1.45740.07404
7-0.110183-1.11280.134206
8-0.090259-0.91160.182072
9-0.128466-1.29740.098704
10-0.052083-0.5260.300011
11-0.035719-0.36070.359519
120.036090.36450.358122
130.0087830.08870.464747
140.0454770.45930.3235
15-0.095063-0.96010.169641
16-0.028909-0.2920.385453
170.0649520.6560.256655
18-0.056458-0.57020.284897
19-0.051196-0.51710.303119
20-0.034471-0.34810.364225
21-0.10596-1.07010.143541
220.0093320.09420.462548
23-0.089639-0.90530.183718
240.1717331.73440.042932
250.0738060.74540.22887
26-0.080509-0.81310.209028
27-0.116043-1.1720.121967
28-0.040359-0.40760.34221
290.0340310.34370.36589
300.0330720.3340.369529
310.0517550.52270.301157
32-0.117985-1.19160.118094
33-0.011441-0.11560.454118
34-0.062075-0.62690.266053
350.0478850.48360.314849
36-0.004693-0.04740.481146



Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
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 (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='lags',ylab='ACF')
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')