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, 17 Dec 2009 04:04: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/17/t1261047934ymrkhqvqmqheeqf.htm/, Retrieved Tue, 30 Apr 2024 06:07:55 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=68734, Retrieved Tue, 30 Apr 2024 06:07:55 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact97
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-17 11:04:44] [e76c6d261190c0179bc6006a5cdb804c] [Current]
Feedback Forum

Post a new message
Dataseries X:
359640
364080
364080
359640
359640
359640
359640
359640
364080
368520
372960
377400
406780
402050
392590
368940
368940
378400
406780
420970
420970
406780
392590
392590
394250
399000
403750
399000
408500
403750
403750
399000
403750
403750
403750
403750
405450
405450
405450
405450
410220
400680
386370
381600
381600
381600
381600
376830
381420
381420
386310
396090
391200
371640
356970
342300
332520
342300
347190
352080
357130
347070
337010
337010
331980




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68734&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.385153.08120.001519
2-0.032537-0.26030.397737
3-0.45363-3.6290.000283
4-0.394582-3.15670.001217
5-0.167499-1.340.092493
60.2065721.65260.051658
70.234711.87770.032492
80.1949341.55950.061908
90.014570.11660.453786
10-0.024193-0.19350.423572
110.046720.37380.35491
120.0908270.72660.235056
13-0.03021-0.24170.404899
140.0320560.25640.399215
15-0.055833-0.44670.328312
160.0232230.18580.4266
17-0.043998-0.3520.363004
180.0034340.02750.489084
190.0104770.08380.466732
200.1226170.98090.16516
210.0275110.22010.413251
220.0150620.12050.452234
23-0.055361-0.44290.329671
24-0.078724-0.62980.265535
25-0.053548-0.42840.334904
260.0298940.23920.405875
270.0509770.40780.342386
280.0094510.07560.469984
29-0.11118-0.88940.188548
30-0.114067-0.91250.182456
310.052820.42260.337015
320.1664411.33150.093869
330.0920870.73670.231999
34-0.01561-0.12490.450505
35-0.201967-1.61570.055536
36-0.253986-2.03190.02316

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.38515 & 3.0812 & 0.001519 \tabularnewline
2 & -0.032537 & -0.2603 & 0.397737 \tabularnewline
3 & -0.45363 & -3.629 & 0.000283 \tabularnewline
4 & -0.394582 & -3.1567 & 0.001217 \tabularnewline
5 & -0.167499 & -1.34 & 0.092493 \tabularnewline
6 & 0.206572 & 1.6526 & 0.051658 \tabularnewline
7 & 0.23471 & 1.8777 & 0.032492 \tabularnewline
8 & 0.194934 & 1.5595 & 0.061908 \tabularnewline
9 & 0.01457 & 0.1166 & 0.453786 \tabularnewline
10 & -0.024193 & -0.1935 & 0.423572 \tabularnewline
11 & 0.04672 & 0.3738 & 0.35491 \tabularnewline
12 & 0.090827 & 0.7266 & 0.235056 \tabularnewline
13 & -0.03021 & -0.2417 & 0.404899 \tabularnewline
14 & 0.032056 & 0.2564 & 0.399215 \tabularnewline
15 & -0.055833 & -0.4467 & 0.328312 \tabularnewline
16 & 0.023223 & 0.1858 & 0.4266 \tabularnewline
17 & -0.043998 & -0.352 & 0.363004 \tabularnewline
18 & 0.003434 & 0.0275 & 0.489084 \tabularnewline
19 & 0.010477 & 0.0838 & 0.466732 \tabularnewline
20 & 0.122617 & 0.9809 & 0.16516 \tabularnewline
21 & 0.027511 & 0.2201 & 0.413251 \tabularnewline
22 & 0.015062 & 0.1205 & 0.452234 \tabularnewline
23 & -0.055361 & -0.4429 & 0.329671 \tabularnewline
24 & -0.078724 & -0.6298 & 0.265535 \tabularnewline
25 & -0.053548 & -0.4284 & 0.334904 \tabularnewline
26 & 0.029894 & 0.2392 & 0.405875 \tabularnewline
27 & 0.050977 & 0.4078 & 0.342386 \tabularnewline
28 & 0.009451 & 0.0756 & 0.469984 \tabularnewline
29 & -0.11118 & -0.8894 & 0.188548 \tabularnewline
30 & -0.114067 & -0.9125 & 0.182456 \tabularnewline
31 & 0.05282 & 0.4226 & 0.337015 \tabularnewline
32 & 0.166441 & 1.3315 & 0.093869 \tabularnewline
33 & 0.092087 & 0.7367 & 0.231999 \tabularnewline
34 & -0.01561 & -0.1249 & 0.450505 \tabularnewline
35 & -0.201967 & -1.6157 & 0.055536 \tabularnewline
36 & -0.253986 & -2.0319 & 0.02316 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68734&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.38515[/C][C]3.0812[/C][C]0.001519[/C][/ROW]
[ROW][C]2[/C][C]-0.032537[/C][C]-0.2603[/C][C]0.397737[/C][/ROW]
[ROW][C]3[/C][C]-0.45363[/C][C]-3.629[/C][C]0.000283[/C][/ROW]
[ROW][C]4[/C][C]-0.394582[/C][C]-3.1567[/C][C]0.001217[/C][/ROW]
[ROW][C]5[/C][C]-0.167499[/C][C]-1.34[/C][C]0.092493[/C][/ROW]
[ROW][C]6[/C][C]0.206572[/C][C]1.6526[/C][C]0.051658[/C][/ROW]
[ROW][C]7[/C][C]0.23471[/C][C]1.8777[/C][C]0.032492[/C][/ROW]
[ROW][C]8[/C][C]0.194934[/C][C]1.5595[/C][C]0.061908[/C][/ROW]
[ROW][C]9[/C][C]0.01457[/C][C]0.1166[/C][C]0.453786[/C][/ROW]
[ROW][C]10[/C][C]-0.024193[/C][C]-0.1935[/C][C]0.423572[/C][/ROW]
[ROW][C]11[/C][C]0.04672[/C][C]0.3738[/C][C]0.35491[/C][/ROW]
[ROW][C]12[/C][C]0.090827[/C][C]0.7266[/C][C]0.235056[/C][/ROW]
[ROW][C]13[/C][C]-0.03021[/C][C]-0.2417[/C][C]0.404899[/C][/ROW]
[ROW][C]14[/C][C]0.032056[/C][C]0.2564[/C][C]0.399215[/C][/ROW]
[ROW][C]15[/C][C]-0.055833[/C][C]-0.4467[/C][C]0.328312[/C][/ROW]
[ROW][C]16[/C][C]0.023223[/C][C]0.1858[/C][C]0.4266[/C][/ROW]
[ROW][C]17[/C][C]-0.043998[/C][C]-0.352[/C][C]0.363004[/C][/ROW]
[ROW][C]18[/C][C]0.003434[/C][C]0.0275[/C][C]0.489084[/C][/ROW]
[ROW][C]19[/C][C]0.010477[/C][C]0.0838[/C][C]0.466732[/C][/ROW]
[ROW][C]20[/C][C]0.122617[/C][C]0.9809[/C][C]0.16516[/C][/ROW]
[ROW][C]21[/C][C]0.027511[/C][C]0.2201[/C][C]0.413251[/C][/ROW]
[ROW][C]22[/C][C]0.015062[/C][C]0.1205[/C][C]0.452234[/C][/ROW]
[ROW][C]23[/C][C]-0.055361[/C][C]-0.4429[/C][C]0.329671[/C][/ROW]
[ROW][C]24[/C][C]-0.078724[/C][C]-0.6298[/C][C]0.265535[/C][/ROW]
[ROW][C]25[/C][C]-0.053548[/C][C]-0.4284[/C][C]0.334904[/C][/ROW]
[ROW][C]26[/C][C]0.029894[/C][C]0.2392[/C][C]0.405875[/C][/ROW]
[ROW][C]27[/C][C]0.050977[/C][C]0.4078[/C][C]0.342386[/C][/ROW]
[ROW][C]28[/C][C]0.009451[/C][C]0.0756[/C][C]0.469984[/C][/ROW]
[ROW][C]29[/C][C]-0.11118[/C][C]-0.8894[/C][C]0.188548[/C][/ROW]
[ROW][C]30[/C][C]-0.114067[/C][C]-0.9125[/C][C]0.182456[/C][/ROW]
[ROW][C]31[/C][C]0.05282[/C][C]0.4226[/C][C]0.337015[/C][/ROW]
[ROW][C]32[/C][C]0.166441[/C][C]1.3315[/C][C]0.093869[/C][/ROW]
[ROW][C]33[/C][C]0.092087[/C][C]0.7367[/C][C]0.231999[/C][/ROW]
[ROW][C]34[/C][C]-0.01561[/C][C]-0.1249[/C][C]0.450505[/C][/ROW]
[ROW][C]35[/C][C]-0.201967[/C][C]-1.6157[/C][C]0.055536[/C][/ROW]
[ROW][C]36[/C][C]-0.253986[/C][C]-2.0319[/C][C]0.02316[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68734&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68734&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.385153.08120.001519
2-0.032537-0.26030.397737
3-0.45363-3.6290.000283
4-0.394582-3.15670.001217
5-0.167499-1.340.092493
60.2065721.65260.051658
70.234711.87770.032492
80.1949341.55950.061908
90.014570.11660.453786
10-0.024193-0.19350.423572
110.046720.37380.35491
120.0908270.72660.235056
13-0.03021-0.24170.404899
140.0320560.25640.399215
15-0.055833-0.44670.328312
160.0232230.18580.4266
17-0.043998-0.3520.363004
180.0034340.02750.489084
190.0104770.08380.466732
200.1226170.98090.16516
210.0275110.22010.413251
220.0150620.12050.452234
23-0.055361-0.44290.329671
24-0.078724-0.62980.265535
25-0.053548-0.42840.334904
260.0298940.23920.405875
270.0509770.40780.342386
280.0094510.07560.469984
29-0.11118-0.88940.188548
30-0.114067-0.91250.182456
310.052820.42260.337015
320.1664411.33150.093869
330.0920870.73670.231999
34-0.01561-0.12490.450505
35-0.201967-1.61570.055536
36-0.253986-2.03190.02316







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.385153.08120.001519
2-0.212382-1.69910.047083
3-0.438538-3.50830.000415
4-0.085796-0.68640.247481
5-0.028794-0.23040.409276
60.1208220.96660.168698
7-0.093549-0.74840.228482
80.0354360.28350.388859
90.0605660.48450.314834
100.1134480.90760.183751
110.2136721.70940.046114
120.0696690.55740.289615
13-0.083019-0.66410.254491
140.2362381.88990.031651
150.0204440.16360.4353
160.0622030.49760.310228
17-0.128863-1.03090.153233
18-0.028449-0.22760.410343
190.0741790.59340.277492
200.0564410.45150.326568
21-0.127089-1.01670.156559
22-0.10139-0.81110.210152
230.0174710.13980.44464
24-0.00771-0.06170.475506
25-0.050398-0.40320.344078
26-0.077686-0.62150.268242
27-0.015681-0.12540.450281
28-0.079345-0.63480.263925
29-0.099014-0.79210.21561
30-0.102287-0.81830.208112
310.1442611.15410.126377
320.077960.62370.267526
33-0.081247-0.650.259016
34-0.049074-0.39260.347962
35-0.035982-0.28790.387195
36-0.059982-0.47990.316484

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.38515 & 3.0812 & 0.001519 \tabularnewline
2 & -0.212382 & -1.6991 & 0.047083 \tabularnewline
3 & -0.438538 & -3.5083 & 0.000415 \tabularnewline
4 & -0.085796 & -0.6864 & 0.247481 \tabularnewline
5 & -0.028794 & -0.2304 & 0.409276 \tabularnewline
6 & 0.120822 & 0.9666 & 0.168698 \tabularnewline
7 & -0.093549 & -0.7484 & 0.228482 \tabularnewline
8 & 0.035436 & 0.2835 & 0.388859 \tabularnewline
9 & 0.060566 & 0.4845 & 0.314834 \tabularnewline
10 & 0.113448 & 0.9076 & 0.183751 \tabularnewline
11 & 0.213672 & 1.7094 & 0.046114 \tabularnewline
12 & 0.069669 & 0.5574 & 0.289615 \tabularnewline
13 & -0.083019 & -0.6641 & 0.254491 \tabularnewline
14 & 0.236238 & 1.8899 & 0.031651 \tabularnewline
15 & 0.020444 & 0.1636 & 0.4353 \tabularnewline
16 & 0.062203 & 0.4976 & 0.310228 \tabularnewline
17 & -0.128863 & -1.0309 & 0.153233 \tabularnewline
18 & -0.028449 & -0.2276 & 0.410343 \tabularnewline
19 & 0.074179 & 0.5934 & 0.277492 \tabularnewline
20 & 0.056441 & 0.4515 & 0.326568 \tabularnewline
21 & -0.127089 & -1.0167 & 0.156559 \tabularnewline
22 & -0.10139 & -0.8111 & 0.210152 \tabularnewline
23 & 0.017471 & 0.1398 & 0.44464 \tabularnewline
24 & -0.00771 & -0.0617 & 0.475506 \tabularnewline
25 & -0.050398 & -0.4032 & 0.344078 \tabularnewline
26 & -0.077686 & -0.6215 & 0.268242 \tabularnewline
27 & -0.015681 & -0.1254 & 0.450281 \tabularnewline
28 & -0.079345 & -0.6348 & 0.263925 \tabularnewline
29 & -0.099014 & -0.7921 & 0.21561 \tabularnewline
30 & -0.102287 & -0.8183 & 0.208112 \tabularnewline
31 & 0.144261 & 1.1541 & 0.126377 \tabularnewline
32 & 0.07796 & 0.6237 & 0.267526 \tabularnewline
33 & -0.081247 & -0.65 & 0.259016 \tabularnewline
34 & -0.049074 & -0.3926 & 0.347962 \tabularnewline
35 & -0.035982 & -0.2879 & 0.387195 \tabularnewline
36 & -0.059982 & -0.4799 & 0.316484 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=68734&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.38515[/C][C]3.0812[/C][C]0.001519[/C][/ROW]
[ROW][C]2[/C][C]-0.212382[/C][C]-1.6991[/C][C]0.047083[/C][/ROW]
[ROW][C]3[/C][C]-0.438538[/C][C]-3.5083[/C][C]0.000415[/C][/ROW]
[ROW][C]4[/C][C]-0.085796[/C][C]-0.6864[/C][C]0.247481[/C][/ROW]
[ROW][C]5[/C][C]-0.028794[/C][C]-0.2304[/C][C]0.409276[/C][/ROW]
[ROW][C]6[/C][C]0.120822[/C][C]0.9666[/C][C]0.168698[/C][/ROW]
[ROW][C]7[/C][C]-0.093549[/C][C]-0.7484[/C][C]0.228482[/C][/ROW]
[ROW][C]8[/C][C]0.035436[/C][C]0.2835[/C][C]0.388859[/C][/ROW]
[ROW][C]9[/C][C]0.060566[/C][C]0.4845[/C][C]0.314834[/C][/ROW]
[ROW][C]10[/C][C]0.113448[/C][C]0.9076[/C][C]0.183751[/C][/ROW]
[ROW][C]11[/C][C]0.213672[/C][C]1.7094[/C][C]0.046114[/C][/ROW]
[ROW][C]12[/C][C]0.069669[/C][C]0.5574[/C][C]0.289615[/C][/ROW]
[ROW][C]13[/C][C]-0.083019[/C][C]-0.6641[/C][C]0.254491[/C][/ROW]
[ROW][C]14[/C][C]0.236238[/C][C]1.8899[/C][C]0.031651[/C][/ROW]
[ROW][C]15[/C][C]0.020444[/C][C]0.1636[/C][C]0.4353[/C][/ROW]
[ROW][C]16[/C][C]0.062203[/C][C]0.4976[/C][C]0.310228[/C][/ROW]
[ROW][C]17[/C][C]-0.128863[/C][C]-1.0309[/C][C]0.153233[/C][/ROW]
[ROW][C]18[/C][C]-0.028449[/C][C]-0.2276[/C][C]0.410343[/C][/ROW]
[ROW][C]19[/C][C]0.074179[/C][C]0.5934[/C][C]0.277492[/C][/ROW]
[ROW][C]20[/C][C]0.056441[/C][C]0.4515[/C][C]0.326568[/C][/ROW]
[ROW][C]21[/C][C]-0.127089[/C][C]-1.0167[/C][C]0.156559[/C][/ROW]
[ROW][C]22[/C][C]-0.10139[/C][C]-0.8111[/C][C]0.210152[/C][/ROW]
[ROW][C]23[/C][C]0.017471[/C][C]0.1398[/C][C]0.44464[/C][/ROW]
[ROW][C]24[/C][C]-0.00771[/C][C]-0.0617[/C][C]0.475506[/C][/ROW]
[ROW][C]25[/C][C]-0.050398[/C][C]-0.4032[/C][C]0.344078[/C][/ROW]
[ROW][C]26[/C][C]-0.077686[/C][C]-0.6215[/C][C]0.268242[/C][/ROW]
[ROW][C]27[/C][C]-0.015681[/C][C]-0.1254[/C][C]0.450281[/C][/ROW]
[ROW][C]28[/C][C]-0.079345[/C][C]-0.6348[/C][C]0.263925[/C][/ROW]
[ROW][C]29[/C][C]-0.099014[/C][C]-0.7921[/C][C]0.21561[/C][/ROW]
[ROW][C]30[/C][C]-0.102287[/C][C]-0.8183[/C][C]0.208112[/C][/ROW]
[ROW][C]31[/C][C]0.144261[/C][C]1.1541[/C][C]0.126377[/C][/ROW]
[ROW][C]32[/C][C]0.07796[/C][C]0.6237[/C][C]0.267526[/C][/ROW]
[ROW][C]33[/C][C]-0.081247[/C][C]-0.65[/C][C]0.259016[/C][/ROW]
[ROW][C]34[/C][C]-0.049074[/C][C]-0.3926[/C][C]0.347962[/C][/ROW]
[ROW][C]35[/C][C]-0.035982[/C][C]-0.2879[/C][C]0.387195[/C][/ROW]
[ROW][C]36[/C][C]-0.059982[/C][C]-0.4799[/C][C]0.316484[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=68734&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=68734&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.385153.08120.001519
2-0.212382-1.69910.047083
3-0.438538-3.50830.000415
4-0.085796-0.68640.247481
5-0.028794-0.23040.409276
60.1208220.96660.168698
7-0.093549-0.74840.228482
80.0354360.28350.388859
90.0605660.48450.314834
100.1134480.90760.183751
110.2136721.70940.046114
120.0696690.55740.289615
13-0.083019-0.66410.254491
140.2362381.88990.031651
150.0204440.16360.4353
160.0622030.49760.310228
17-0.128863-1.03090.153233
18-0.028449-0.22760.410343
190.0741790.59340.277492
200.0564410.45150.326568
21-0.127089-1.01670.156559
22-0.10139-0.81110.210152
230.0174710.13980.44464
24-0.00771-0.06170.475506
25-0.050398-0.40320.344078
26-0.077686-0.62150.268242
27-0.015681-0.12540.450281
28-0.079345-0.63480.263925
29-0.099014-0.79210.21561
30-0.102287-0.81830.208112
310.1442611.15410.126377
320.077960.62370.267526
33-0.081247-0.650.259016
34-0.049074-0.39260.347962
35-0.035982-0.28790.387195
36-0.059982-0.47990.316484



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