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, 28 Nov 2008 03:23: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/2008/Nov/28/t1227867860y9wtjyvone5vamj.htm/, Retrieved Sun, 19 May 2024 12:35:46 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25986, Retrieved Sun, 19 May 2024 12:35:46 +0000
QR Codes:

Original text written by user:d=0 D=0
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact193
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Law of Averages] [Random Walk Simul...] [2008-11-25 18:40:39] [b98453cac15ba1066b407e146608df68]
F       [Law of Averages] [Random Walk Simul...] [2008-11-27 19:45:04] [58bf45a666dc5198906262e8815a9722]
F RMPD    [Standard Deviation-Mean Plot] [Standard Deviatio...] [2008-11-27 22:08:29] [58bf45a666dc5198906262e8815a9722]
- RMP       [(Partial) Autocorrelation Function] [(Partial) Autocor...] [2008-11-27 22:25:58] [58bf45a666dc5198906262e8815a9722]
-   PD          [(Partial) Autocorrelation Function] [(Partial) Autocor...] [2008-11-28 10:23:41] [63db34dadd44fb018112addcdefe949f] [Current]
Feedback Forum

Post a new message
Dataseries X:
101
88
108
116
104
110
105
107
124
109
102
125
102
101
116
114
115
119
108
110
120
113
111
121
99
104
117
108
122
122
111
111
131
108
118
119
104
105
118
124
123
114
119
116
129
112
123
124
117
110
118
135
127
117
137
130
132
142
122
126




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=25986&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=25986&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25986&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.3464342.68350.004701
20.2130021.64990.052094
30.4469993.46240.000497
40.1884091.45940.074834
50.2088011.61740.055523
60.3453832.67530.004804
70.0623840.48320.315348
80.1108970.8590.196878
90.2207241.70970.046242
100.0172560.13370.447057
110.1527121.18290.120756
120.4215463.26530.000905
130.0860960.66690.253696
140.0211450.16380.435223
150.1194990.92560.179173
16-0.047195-0.36560.357987
170.0564250.43710.331815
180.117310.90870.183577
19-0.034774-0.26940.394288
20-0.039916-0.30920.379125
210.0048110.03730.485199
22-0.06824-0.52860.299521
230.0959520.74320.230119
240.1536081.18980.119397
250.0295080.22860.409992
26-0.045521-0.35260.362809
27-0.056023-0.4340.33294
28-0.092733-0.71830.237677
29-0.048147-0.37290.355252
30-0.09269-0.7180.23778
31-0.07972-0.61750.269618
32-0.129506-1.00320.159908
33-0.115376-0.89370.187527
34-0.114597-0.88770.189132
35-0.039647-0.30710.379915
360.0413630.32040.374892

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.346434 & 2.6835 & 0.004701 \tabularnewline
2 & 0.213002 & 1.6499 & 0.052094 \tabularnewline
3 & 0.446999 & 3.4624 & 0.000497 \tabularnewline
4 & 0.188409 & 1.4594 & 0.074834 \tabularnewline
5 & 0.208801 & 1.6174 & 0.055523 \tabularnewline
6 & 0.345383 & 2.6753 & 0.004804 \tabularnewline
7 & 0.062384 & 0.4832 & 0.315348 \tabularnewline
8 & 0.110897 & 0.859 & 0.196878 \tabularnewline
9 & 0.220724 & 1.7097 & 0.046242 \tabularnewline
10 & 0.017256 & 0.1337 & 0.447057 \tabularnewline
11 & 0.152712 & 1.1829 & 0.120756 \tabularnewline
12 & 0.421546 & 3.2653 & 0.000905 \tabularnewline
13 & 0.086096 & 0.6669 & 0.253696 \tabularnewline
14 & 0.021145 & 0.1638 & 0.435223 \tabularnewline
15 & 0.119499 & 0.9256 & 0.179173 \tabularnewline
16 & -0.047195 & -0.3656 & 0.357987 \tabularnewline
17 & 0.056425 & 0.4371 & 0.331815 \tabularnewline
18 & 0.11731 & 0.9087 & 0.183577 \tabularnewline
19 & -0.034774 & -0.2694 & 0.394288 \tabularnewline
20 & -0.039916 & -0.3092 & 0.379125 \tabularnewline
21 & 0.004811 & 0.0373 & 0.485199 \tabularnewline
22 & -0.06824 & -0.5286 & 0.299521 \tabularnewline
23 & 0.095952 & 0.7432 & 0.230119 \tabularnewline
24 & 0.153608 & 1.1898 & 0.119397 \tabularnewline
25 & 0.029508 & 0.2286 & 0.409992 \tabularnewline
26 & -0.045521 & -0.3526 & 0.362809 \tabularnewline
27 & -0.056023 & -0.434 & 0.33294 \tabularnewline
28 & -0.092733 & -0.7183 & 0.237677 \tabularnewline
29 & -0.048147 & -0.3729 & 0.355252 \tabularnewline
30 & -0.09269 & -0.718 & 0.23778 \tabularnewline
31 & -0.07972 & -0.6175 & 0.269618 \tabularnewline
32 & -0.129506 & -1.0032 & 0.159908 \tabularnewline
33 & -0.115376 & -0.8937 & 0.187527 \tabularnewline
34 & -0.114597 & -0.8877 & 0.189132 \tabularnewline
35 & -0.039647 & -0.3071 & 0.379915 \tabularnewline
36 & 0.041363 & 0.3204 & 0.374892 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25986&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.346434[/C][C]2.6835[/C][C]0.004701[/C][/ROW]
[ROW][C]2[/C][C]0.213002[/C][C]1.6499[/C][C]0.052094[/C][/ROW]
[ROW][C]3[/C][C]0.446999[/C][C]3.4624[/C][C]0.000497[/C][/ROW]
[ROW][C]4[/C][C]0.188409[/C][C]1.4594[/C][C]0.074834[/C][/ROW]
[ROW][C]5[/C][C]0.208801[/C][C]1.6174[/C][C]0.055523[/C][/ROW]
[ROW][C]6[/C][C]0.345383[/C][C]2.6753[/C][C]0.004804[/C][/ROW]
[ROW][C]7[/C][C]0.062384[/C][C]0.4832[/C][C]0.315348[/C][/ROW]
[ROW][C]8[/C][C]0.110897[/C][C]0.859[/C][C]0.196878[/C][/ROW]
[ROW][C]9[/C][C]0.220724[/C][C]1.7097[/C][C]0.046242[/C][/ROW]
[ROW][C]10[/C][C]0.017256[/C][C]0.1337[/C][C]0.447057[/C][/ROW]
[ROW][C]11[/C][C]0.152712[/C][C]1.1829[/C][C]0.120756[/C][/ROW]
[ROW][C]12[/C][C]0.421546[/C][C]3.2653[/C][C]0.000905[/C][/ROW]
[ROW][C]13[/C][C]0.086096[/C][C]0.6669[/C][C]0.253696[/C][/ROW]
[ROW][C]14[/C][C]0.021145[/C][C]0.1638[/C][C]0.435223[/C][/ROW]
[ROW][C]15[/C][C]0.119499[/C][C]0.9256[/C][C]0.179173[/C][/ROW]
[ROW][C]16[/C][C]-0.047195[/C][C]-0.3656[/C][C]0.357987[/C][/ROW]
[ROW][C]17[/C][C]0.056425[/C][C]0.4371[/C][C]0.331815[/C][/ROW]
[ROW][C]18[/C][C]0.11731[/C][C]0.9087[/C][C]0.183577[/C][/ROW]
[ROW][C]19[/C][C]-0.034774[/C][C]-0.2694[/C][C]0.394288[/C][/ROW]
[ROW][C]20[/C][C]-0.039916[/C][C]-0.3092[/C][C]0.379125[/C][/ROW]
[ROW][C]21[/C][C]0.004811[/C][C]0.0373[/C][C]0.485199[/C][/ROW]
[ROW][C]22[/C][C]-0.06824[/C][C]-0.5286[/C][C]0.299521[/C][/ROW]
[ROW][C]23[/C][C]0.095952[/C][C]0.7432[/C][C]0.230119[/C][/ROW]
[ROW][C]24[/C][C]0.153608[/C][C]1.1898[/C][C]0.119397[/C][/ROW]
[ROW][C]25[/C][C]0.029508[/C][C]0.2286[/C][C]0.409992[/C][/ROW]
[ROW][C]26[/C][C]-0.045521[/C][C]-0.3526[/C][C]0.362809[/C][/ROW]
[ROW][C]27[/C][C]-0.056023[/C][C]-0.434[/C][C]0.33294[/C][/ROW]
[ROW][C]28[/C][C]-0.092733[/C][C]-0.7183[/C][C]0.237677[/C][/ROW]
[ROW][C]29[/C][C]-0.048147[/C][C]-0.3729[/C][C]0.355252[/C][/ROW]
[ROW][C]30[/C][C]-0.09269[/C][C]-0.718[/C][C]0.23778[/C][/ROW]
[ROW][C]31[/C][C]-0.07972[/C][C]-0.6175[/C][C]0.269618[/C][/ROW]
[ROW][C]32[/C][C]-0.129506[/C][C]-1.0032[/C][C]0.159908[/C][/ROW]
[ROW][C]33[/C][C]-0.115376[/C][C]-0.8937[/C][C]0.187527[/C][/ROW]
[ROW][C]34[/C][C]-0.114597[/C][C]-0.8877[/C][C]0.189132[/C][/ROW]
[ROW][C]35[/C][C]-0.039647[/C][C]-0.3071[/C][C]0.379915[/C][/ROW]
[ROW][C]36[/C][C]0.041363[/C][C]0.3204[/C][C]0.374892[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25986&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25986&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.3464342.68350.004701
20.2130021.64990.052094
30.4469993.46240.000497
40.1884091.45940.074834
50.2088011.61740.055523
60.3453832.67530.004804
70.0623840.48320.315348
80.1108970.8590.196878
90.2207241.70970.046242
100.0172560.13370.447057
110.1527121.18290.120756
120.4215463.26530.000905
130.0860960.66690.253696
140.0211450.16380.435223
150.1194990.92560.179173
16-0.047195-0.36560.357987
170.0564250.43710.331815
180.117310.90870.183577
19-0.034774-0.26940.394288
20-0.039916-0.30920.379125
210.0048110.03730.485199
22-0.06824-0.52860.299521
230.0959520.74320.230119
240.1536081.18980.119397
250.0295080.22860.409992
26-0.045521-0.35260.362809
27-0.056023-0.4340.33294
28-0.092733-0.71830.237677
29-0.048147-0.37290.355252
30-0.09269-0.7180.23778
31-0.07972-0.61750.269618
32-0.129506-1.00320.159908
33-0.115376-0.89370.187527
34-0.114597-0.88770.189132
35-0.039647-0.30710.379915
360.0413630.32040.374892







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3464342.68350.004701
20.1056670.81850.208157
30.3957883.06580.001626
4-0.088427-0.68490.248007
50.1390531.07710.142874
60.1190350.9220.1801
7-0.151511-1.17360.122597
80.0315610.24450.403851
90.0210350.16290.435559
10-0.051663-0.40020.345223
110.1281920.9930.162357
120.3512282.72060.004257
13-0.115635-0.89570.186996
14-0.164137-1.27140.104246
15-0.174242-1.34970.091096
16-0.088298-0.6840.248318
170.043080.33370.369886
180.031490.24390.404062
190.1474341.1420.128992
20-0.08559-0.6630.254941
21-0.044597-0.34550.365482
22-0.031801-0.24630.403135
230.1163990.90160.185431
24-0.02312-0.17910.429235
250.082120.63610.263564
26-0.109948-0.85170.198897
27-0.108313-0.8390.202402
28-0.064531-0.49990.309503
29-0.066923-0.51840.303049
30-0.087023-0.67410.251425
310.0841580.65190.258482
320.0341160.26430.396242
330.1012970.78460.217875
34-0.080902-0.62670.266628
35-0.055595-0.43060.334138
360.0138980.10770.457315

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.346434 & 2.6835 & 0.004701 \tabularnewline
2 & 0.105667 & 0.8185 & 0.208157 \tabularnewline
3 & 0.395788 & 3.0658 & 0.001626 \tabularnewline
4 & -0.088427 & -0.6849 & 0.248007 \tabularnewline
5 & 0.139053 & 1.0771 & 0.142874 \tabularnewline
6 & 0.119035 & 0.922 & 0.1801 \tabularnewline
7 & -0.151511 & -1.1736 & 0.122597 \tabularnewline
8 & 0.031561 & 0.2445 & 0.403851 \tabularnewline
9 & 0.021035 & 0.1629 & 0.435559 \tabularnewline
10 & -0.051663 & -0.4002 & 0.345223 \tabularnewline
11 & 0.128192 & 0.993 & 0.162357 \tabularnewline
12 & 0.351228 & 2.7206 & 0.004257 \tabularnewline
13 & -0.115635 & -0.8957 & 0.186996 \tabularnewline
14 & -0.164137 & -1.2714 & 0.104246 \tabularnewline
15 & -0.174242 & -1.3497 & 0.091096 \tabularnewline
16 & -0.088298 & -0.684 & 0.248318 \tabularnewline
17 & 0.04308 & 0.3337 & 0.369886 \tabularnewline
18 & 0.03149 & 0.2439 & 0.404062 \tabularnewline
19 & 0.147434 & 1.142 & 0.128992 \tabularnewline
20 & -0.08559 & -0.663 & 0.254941 \tabularnewline
21 & -0.044597 & -0.3455 & 0.365482 \tabularnewline
22 & -0.031801 & -0.2463 & 0.403135 \tabularnewline
23 & 0.116399 & 0.9016 & 0.185431 \tabularnewline
24 & -0.02312 & -0.1791 & 0.429235 \tabularnewline
25 & 0.08212 & 0.6361 & 0.263564 \tabularnewline
26 & -0.109948 & -0.8517 & 0.198897 \tabularnewline
27 & -0.108313 & -0.839 & 0.202402 \tabularnewline
28 & -0.064531 & -0.4999 & 0.309503 \tabularnewline
29 & -0.066923 & -0.5184 & 0.303049 \tabularnewline
30 & -0.087023 & -0.6741 & 0.251425 \tabularnewline
31 & 0.084158 & 0.6519 & 0.258482 \tabularnewline
32 & 0.034116 & 0.2643 & 0.396242 \tabularnewline
33 & 0.101297 & 0.7846 & 0.217875 \tabularnewline
34 & -0.080902 & -0.6267 & 0.266628 \tabularnewline
35 & -0.055595 & -0.4306 & 0.334138 \tabularnewline
36 & 0.013898 & 0.1077 & 0.457315 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25986&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.346434[/C][C]2.6835[/C][C]0.004701[/C][/ROW]
[ROW][C]2[/C][C]0.105667[/C][C]0.8185[/C][C]0.208157[/C][/ROW]
[ROW][C]3[/C][C]0.395788[/C][C]3.0658[/C][C]0.001626[/C][/ROW]
[ROW][C]4[/C][C]-0.088427[/C][C]-0.6849[/C][C]0.248007[/C][/ROW]
[ROW][C]5[/C][C]0.139053[/C][C]1.0771[/C][C]0.142874[/C][/ROW]
[ROW][C]6[/C][C]0.119035[/C][C]0.922[/C][C]0.1801[/C][/ROW]
[ROW][C]7[/C][C]-0.151511[/C][C]-1.1736[/C][C]0.122597[/C][/ROW]
[ROW][C]8[/C][C]0.031561[/C][C]0.2445[/C][C]0.403851[/C][/ROW]
[ROW][C]9[/C][C]0.021035[/C][C]0.1629[/C][C]0.435559[/C][/ROW]
[ROW][C]10[/C][C]-0.051663[/C][C]-0.4002[/C][C]0.345223[/C][/ROW]
[ROW][C]11[/C][C]0.128192[/C][C]0.993[/C][C]0.162357[/C][/ROW]
[ROW][C]12[/C][C]0.351228[/C][C]2.7206[/C][C]0.004257[/C][/ROW]
[ROW][C]13[/C][C]-0.115635[/C][C]-0.8957[/C][C]0.186996[/C][/ROW]
[ROW][C]14[/C][C]-0.164137[/C][C]-1.2714[/C][C]0.104246[/C][/ROW]
[ROW][C]15[/C][C]-0.174242[/C][C]-1.3497[/C][C]0.091096[/C][/ROW]
[ROW][C]16[/C][C]-0.088298[/C][C]-0.684[/C][C]0.248318[/C][/ROW]
[ROW][C]17[/C][C]0.04308[/C][C]0.3337[/C][C]0.369886[/C][/ROW]
[ROW][C]18[/C][C]0.03149[/C][C]0.2439[/C][C]0.404062[/C][/ROW]
[ROW][C]19[/C][C]0.147434[/C][C]1.142[/C][C]0.128992[/C][/ROW]
[ROW][C]20[/C][C]-0.08559[/C][C]-0.663[/C][C]0.254941[/C][/ROW]
[ROW][C]21[/C][C]-0.044597[/C][C]-0.3455[/C][C]0.365482[/C][/ROW]
[ROW][C]22[/C][C]-0.031801[/C][C]-0.2463[/C][C]0.403135[/C][/ROW]
[ROW][C]23[/C][C]0.116399[/C][C]0.9016[/C][C]0.185431[/C][/ROW]
[ROW][C]24[/C][C]-0.02312[/C][C]-0.1791[/C][C]0.429235[/C][/ROW]
[ROW][C]25[/C][C]0.08212[/C][C]0.6361[/C][C]0.263564[/C][/ROW]
[ROW][C]26[/C][C]-0.109948[/C][C]-0.8517[/C][C]0.198897[/C][/ROW]
[ROW][C]27[/C][C]-0.108313[/C][C]-0.839[/C][C]0.202402[/C][/ROW]
[ROW][C]28[/C][C]-0.064531[/C][C]-0.4999[/C][C]0.309503[/C][/ROW]
[ROW][C]29[/C][C]-0.066923[/C][C]-0.5184[/C][C]0.303049[/C][/ROW]
[ROW][C]30[/C][C]-0.087023[/C][C]-0.6741[/C][C]0.251425[/C][/ROW]
[ROW][C]31[/C][C]0.084158[/C][C]0.6519[/C][C]0.258482[/C][/ROW]
[ROW][C]32[/C][C]0.034116[/C][C]0.2643[/C][C]0.396242[/C][/ROW]
[ROW][C]33[/C][C]0.101297[/C][C]0.7846[/C][C]0.217875[/C][/ROW]
[ROW][C]34[/C][C]-0.080902[/C][C]-0.6267[/C][C]0.266628[/C][/ROW]
[ROW][C]35[/C][C]-0.055595[/C][C]-0.4306[/C][C]0.334138[/C][/ROW]
[ROW][C]36[/C][C]0.013898[/C][C]0.1077[/C][C]0.457315[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25986&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25986&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.3464342.68350.004701
20.1056670.81850.208157
30.3957883.06580.001626
4-0.088427-0.68490.248007
50.1390531.07710.142874
60.1190350.9220.1801
7-0.151511-1.17360.122597
80.0315610.24450.403851
90.0210350.16290.435559
10-0.051663-0.40020.345223
110.1281920.9930.162357
120.3512282.72060.004257
13-0.115635-0.89570.186996
14-0.164137-1.27140.104246
15-0.174242-1.34970.091096
16-0.088298-0.6840.248318
170.043080.33370.369886
180.031490.24390.404062
190.1474341.1420.128992
20-0.08559-0.6630.254941
21-0.044597-0.34550.365482
22-0.031801-0.24630.403135
230.1163990.90160.185431
24-0.02312-0.17910.429235
250.082120.63610.263564
26-0.109948-0.85170.198897
27-0.108313-0.8390.202402
28-0.064531-0.49990.309503
29-0.066923-0.51840.303049
30-0.087023-0.67410.251425
310.0841580.65190.258482
320.0341160.26430.396242
330.1012970.78460.217875
34-0.080902-0.62670.266628
35-0.055595-0.43060.334138
360.0138980.10770.457315



Parameters (Session):
par1 = 36 ; 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')