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 computationSun, 13 Dec 2009 05:15:51 -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/13/t126070663233oainncj8939su.htm/, Retrieved Sat, 27 Apr 2024 20:31:33 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=67235, Retrieved Sat, 27 Apr 2024 20:31:33 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact105
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:46:03] [b98453cac15ba1066b407e146608df68]
-    D    [(Partial) Autocorrelation Function] [] [2009-12-04 13:49:09] [4d62210f0915d3a20cbf115865da7cd4]
-           [(Partial) Autocorrelation Function] [] [2009-12-04 19:44:41] [8d2349dc1d6314bc274adc9ad027c980]
-   P           [(Partial) Autocorrelation Function] [] [2009-12-13 12:15:51] [30a48cc4afddc7f052994dfe2358176d] [Current]
Feedback Forum

Post a new message
Dataseries X:
5560
3922
3759
4138
4634
3996
4308
4143
4429
5219
4929
5755
5592
4163
4962
5208
4755
4491
5732
5731
5040
6102
4904
5369
5578
4619
4731
5011
5299
4146
4625
4736
4219
5116
4205
4121
5103
4300
4578
3809
5526
4247
3830
4394
4826
4409
4569
4106
4794
3914
3793
4405
4022
4100
4788
3163
3585
3903
4178
3863
4187




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67235&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.3361462.62540.005463
20.3031832.36790.010537
30.4449233.4750.000473
40.334122.60960.005695
50.2399091.87380.032878
60.2085031.62850.054291
70.2097841.63850.053236
80.1778941.38940.084882
90.1683061.31450.096798
100.1737921.35740.089834
110.0062630.04890.480573
120.1922421.50150.069198
130.0354080.27650.391531
14-0.004636-0.03620.485619
15-0.017094-0.13350.447116
16-0.051052-0.39870.345742
17-0.052055-0.40660.342876
18-0.032196-0.25150.401154
19-0.108239-0.84540.200604
20-0.114654-0.89550.187027
210.0038420.030.48808
22-0.080517-0.62890.265894
23-0.14065-1.09850.138149
24-0.036639-0.28620.387863
25-0.074509-0.58190.281379
26-0.097335-0.76020.225028
27-0.116325-0.90850.183588
28-0.131609-1.02790.154029
29-0.138069-1.07840.142561
30-0.123637-0.96560.16902
31-0.235901-1.84240.035136
32-0.216739-1.69280.047799
33-0.118308-0.9240.179559
34-0.208679-1.62980.054145
35-0.23875-1.86470.033518
36-0.130954-1.02280.155225

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.336146 & 2.6254 & 0.005463 \tabularnewline
2 & 0.303183 & 2.3679 & 0.010537 \tabularnewline
3 & 0.444923 & 3.475 & 0.000473 \tabularnewline
4 & 0.33412 & 2.6096 & 0.005695 \tabularnewline
5 & 0.239909 & 1.8738 & 0.032878 \tabularnewline
6 & 0.208503 & 1.6285 & 0.054291 \tabularnewline
7 & 0.209784 & 1.6385 & 0.053236 \tabularnewline
8 & 0.177894 & 1.3894 & 0.084882 \tabularnewline
9 & 0.168306 & 1.3145 & 0.096798 \tabularnewline
10 & 0.173792 & 1.3574 & 0.089834 \tabularnewline
11 & 0.006263 & 0.0489 & 0.480573 \tabularnewline
12 & 0.192242 & 1.5015 & 0.069198 \tabularnewline
13 & 0.035408 & 0.2765 & 0.391531 \tabularnewline
14 & -0.004636 & -0.0362 & 0.485619 \tabularnewline
15 & -0.017094 & -0.1335 & 0.447116 \tabularnewline
16 & -0.051052 & -0.3987 & 0.345742 \tabularnewline
17 & -0.052055 & -0.4066 & 0.342876 \tabularnewline
18 & -0.032196 & -0.2515 & 0.401154 \tabularnewline
19 & -0.108239 & -0.8454 & 0.200604 \tabularnewline
20 & -0.114654 & -0.8955 & 0.187027 \tabularnewline
21 & 0.003842 & 0.03 & 0.48808 \tabularnewline
22 & -0.080517 & -0.6289 & 0.265894 \tabularnewline
23 & -0.14065 & -1.0985 & 0.138149 \tabularnewline
24 & -0.036639 & -0.2862 & 0.387863 \tabularnewline
25 & -0.074509 & -0.5819 & 0.281379 \tabularnewline
26 & -0.097335 & -0.7602 & 0.225028 \tabularnewline
27 & -0.116325 & -0.9085 & 0.183588 \tabularnewline
28 & -0.131609 & -1.0279 & 0.154029 \tabularnewline
29 & -0.138069 & -1.0784 & 0.142561 \tabularnewline
30 & -0.123637 & -0.9656 & 0.16902 \tabularnewline
31 & -0.235901 & -1.8424 & 0.035136 \tabularnewline
32 & -0.216739 & -1.6928 & 0.047799 \tabularnewline
33 & -0.118308 & -0.924 & 0.179559 \tabularnewline
34 & -0.208679 & -1.6298 & 0.054145 \tabularnewline
35 & -0.23875 & -1.8647 & 0.033518 \tabularnewline
36 & -0.130954 & -1.0228 & 0.155225 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67235&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.336146[/C][C]2.6254[/C][C]0.005463[/C][/ROW]
[ROW][C]2[/C][C]0.303183[/C][C]2.3679[/C][C]0.010537[/C][/ROW]
[ROW][C]3[/C][C]0.444923[/C][C]3.475[/C][C]0.000473[/C][/ROW]
[ROW][C]4[/C][C]0.33412[/C][C]2.6096[/C][C]0.005695[/C][/ROW]
[ROW][C]5[/C][C]0.239909[/C][C]1.8738[/C][C]0.032878[/C][/ROW]
[ROW][C]6[/C][C]0.208503[/C][C]1.6285[/C][C]0.054291[/C][/ROW]
[ROW][C]7[/C][C]0.209784[/C][C]1.6385[/C][C]0.053236[/C][/ROW]
[ROW][C]8[/C][C]0.177894[/C][C]1.3894[/C][C]0.084882[/C][/ROW]
[ROW][C]9[/C][C]0.168306[/C][C]1.3145[/C][C]0.096798[/C][/ROW]
[ROW][C]10[/C][C]0.173792[/C][C]1.3574[/C][C]0.089834[/C][/ROW]
[ROW][C]11[/C][C]0.006263[/C][C]0.0489[/C][C]0.480573[/C][/ROW]
[ROW][C]12[/C][C]0.192242[/C][C]1.5015[/C][C]0.069198[/C][/ROW]
[ROW][C]13[/C][C]0.035408[/C][C]0.2765[/C][C]0.391531[/C][/ROW]
[ROW][C]14[/C][C]-0.004636[/C][C]-0.0362[/C][C]0.485619[/C][/ROW]
[ROW][C]15[/C][C]-0.017094[/C][C]-0.1335[/C][C]0.447116[/C][/ROW]
[ROW][C]16[/C][C]-0.051052[/C][C]-0.3987[/C][C]0.345742[/C][/ROW]
[ROW][C]17[/C][C]-0.052055[/C][C]-0.4066[/C][C]0.342876[/C][/ROW]
[ROW][C]18[/C][C]-0.032196[/C][C]-0.2515[/C][C]0.401154[/C][/ROW]
[ROW][C]19[/C][C]-0.108239[/C][C]-0.8454[/C][C]0.200604[/C][/ROW]
[ROW][C]20[/C][C]-0.114654[/C][C]-0.8955[/C][C]0.187027[/C][/ROW]
[ROW][C]21[/C][C]0.003842[/C][C]0.03[/C][C]0.48808[/C][/ROW]
[ROW][C]22[/C][C]-0.080517[/C][C]-0.6289[/C][C]0.265894[/C][/ROW]
[ROW][C]23[/C][C]-0.14065[/C][C]-1.0985[/C][C]0.138149[/C][/ROW]
[ROW][C]24[/C][C]-0.036639[/C][C]-0.2862[/C][C]0.387863[/C][/ROW]
[ROW][C]25[/C][C]-0.074509[/C][C]-0.5819[/C][C]0.281379[/C][/ROW]
[ROW][C]26[/C][C]-0.097335[/C][C]-0.7602[/C][C]0.225028[/C][/ROW]
[ROW][C]27[/C][C]-0.116325[/C][C]-0.9085[/C][C]0.183588[/C][/ROW]
[ROW][C]28[/C][C]-0.131609[/C][C]-1.0279[/C][C]0.154029[/C][/ROW]
[ROW][C]29[/C][C]-0.138069[/C][C]-1.0784[/C][C]0.142561[/C][/ROW]
[ROW][C]30[/C][C]-0.123637[/C][C]-0.9656[/C][C]0.16902[/C][/ROW]
[ROW][C]31[/C][C]-0.235901[/C][C]-1.8424[/C][C]0.035136[/C][/ROW]
[ROW][C]32[/C][C]-0.216739[/C][C]-1.6928[/C][C]0.047799[/C][/ROW]
[ROW][C]33[/C][C]-0.118308[/C][C]-0.924[/C][C]0.179559[/C][/ROW]
[ROW][C]34[/C][C]-0.208679[/C][C]-1.6298[/C][C]0.054145[/C][/ROW]
[ROW][C]35[/C][C]-0.23875[/C][C]-1.8647[/C][C]0.033518[/C][/ROW]
[ROW][C]36[/C][C]-0.130954[/C][C]-1.0228[/C][C]0.155225[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67235&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67235&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.3361462.62540.005463
20.3031832.36790.010537
30.4449233.4750.000473
40.334122.60960.005695
50.2399091.87380.032878
60.2085031.62850.054291
70.2097841.63850.053236
80.1778941.38940.084882
90.1683061.31450.096798
100.1737921.35740.089834
110.0062630.04890.480573
120.1922421.50150.069198
130.0354080.27650.391531
14-0.004636-0.03620.485619
15-0.017094-0.13350.447116
16-0.051052-0.39870.345742
17-0.052055-0.40660.342876
18-0.032196-0.25150.401154
19-0.108239-0.84540.200604
20-0.114654-0.89550.187027
210.0038420.030.48808
22-0.080517-0.62890.265894
23-0.14065-1.09850.138149
24-0.036639-0.28620.387863
25-0.074509-0.58190.281379
26-0.097335-0.76020.225028
27-0.116325-0.90850.183588
28-0.131609-1.02790.154029
29-0.138069-1.07840.142561
30-0.123637-0.96560.16902
31-0.235901-1.84240.035136
32-0.216739-1.69280.047799
33-0.118308-0.9240.179559
34-0.208679-1.62980.054145
35-0.23875-1.86470.033518
36-0.130954-1.02280.155225







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3361462.62540.005463
20.2144171.67460.049562
30.3459912.70230.004453
40.1289071.00680.159005
50.0039150.03060.487855
6-0.061037-0.47670.317635
7-0.006719-0.05250.47916
80.0144110.11260.455378
90.051130.39930.345518
100.0576710.45040.327001
11-0.177428-1.38580.085433
120.1386391.08280.141579
13-0.130949-1.02270.155234
14-0.014469-0.1130.455197
15-0.117986-0.92150.18021
16-0.059948-0.46820.320652
17-0.017045-0.13310.447267
180.0716690.55980.288849
19-0.058936-0.46030.323466
20-0.052097-0.40690.342757
210.1244270.97180.167493
22-0.075871-0.59260.27783
230.0228940.17880.429342
24-0.028441-0.22210.412478
250.016280.12720.449618
26-0.020913-0.16330.435396
27-0.039758-0.31050.378612
28-0.086215-0.67340.25163
29-0.042485-0.33180.370583
30-0.03229-0.25220.40087
31-0.188889-1.47530.072641
32-0.008136-0.06350.47477
33-0.008327-0.0650.47418
34-0.02129-0.16630.434244
35-0.057691-0.45060.326944
360.0475740.37160.355751

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.336146 & 2.6254 & 0.005463 \tabularnewline
2 & 0.214417 & 1.6746 & 0.049562 \tabularnewline
3 & 0.345991 & 2.7023 & 0.004453 \tabularnewline
4 & 0.128907 & 1.0068 & 0.159005 \tabularnewline
5 & 0.003915 & 0.0306 & 0.487855 \tabularnewline
6 & -0.061037 & -0.4767 & 0.317635 \tabularnewline
7 & -0.006719 & -0.0525 & 0.47916 \tabularnewline
8 & 0.014411 & 0.1126 & 0.455378 \tabularnewline
9 & 0.05113 & 0.3993 & 0.345518 \tabularnewline
10 & 0.057671 & 0.4504 & 0.327001 \tabularnewline
11 & -0.177428 & -1.3858 & 0.085433 \tabularnewline
12 & 0.138639 & 1.0828 & 0.141579 \tabularnewline
13 & -0.130949 & -1.0227 & 0.155234 \tabularnewline
14 & -0.014469 & -0.113 & 0.455197 \tabularnewline
15 & -0.117986 & -0.9215 & 0.18021 \tabularnewline
16 & -0.059948 & -0.4682 & 0.320652 \tabularnewline
17 & -0.017045 & -0.1331 & 0.447267 \tabularnewline
18 & 0.071669 & 0.5598 & 0.288849 \tabularnewline
19 & -0.058936 & -0.4603 & 0.323466 \tabularnewline
20 & -0.052097 & -0.4069 & 0.342757 \tabularnewline
21 & 0.124427 & 0.9718 & 0.167493 \tabularnewline
22 & -0.075871 & -0.5926 & 0.27783 \tabularnewline
23 & 0.022894 & 0.1788 & 0.429342 \tabularnewline
24 & -0.028441 & -0.2221 & 0.412478 \tabularnewline
25 & 0.01628 & 0.1272 & 0.449618 \tabularnewline
26 & -0.020913 & -0.1633 & 0.435396 \tabularnewline
27 & -0.039758 & -0.3105 & 0.378612 \tabularnewline
28 & -0.086215 & -0.6734 & 0.25163 \tabularnewline
29 & -0.042485 & -0.3318 & 0.370583 \tabularnewline
30 & -0.03229 & -0.2522 & 0.40087 \tabularnewline
31 & -0.188889 & -1.4753 & 0.072641 \tabularnewline
32 & -0.008136 & -0.0635 & 0.47477 \tabularnewline
33 & -0.008327 & -0.065 & 0.47418 \tabularnewline
34 & -0.02129 & -0.1663 & 0.434244 \tabularnewline
35 & -0.057691 & -0.4506 & 0.326944 \tabularnewline
36 & 0.047574 & 0.3716 & 0.355751 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67235&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.336146[/C][C]2.6254[/C][C]0.005463[/C][/ROW]
[ROW][C]2[/C][C]0.214417[/C][C]1.6746[/C][C]0.049562[/C][/ROW]
[ROW][C]3[/C][C]0.345991[/C][C]2.7023[/C][C]0.004453[/C][/ROW]
[ROW][C]4[/C][C]0.128907[/C][C]1.0068[/C][C]0.159005[/C][/ROW]
[ROW][C]5[/C][C]0.003915[/C][C]0.0306[/C][C]0.487855[/C][/ROW]
[ROW][C]6[/C][C]-0.061037[/C][C]-0.4767[/C][C]0.317635[/C][/ROW]
[ROW][C]7[/C][C]-0.006719[/C][C]-0.0525[/C][C]0.47916[/C][/ROW]
[ROW][C]8[/C][C]0.014411[/C][C]0.1126[/C][C]0.455378[/C][/ROW]
[ROW][C]9[/C][C]0.05113[/C][C]0.3993[/C][C]0.345518[/C][/ROW]
[ROW][C]10[/C][C]0.057671[/C][C]0.4504[/C][C]0.327001[/C][/ROW]
[ROW][C]11[/C][C]-0.177428[/C][C]-1.3858[/C][C]0.085433[/C][/ROW]
[ROW][C]12[/C][C]0.138639[/C][C]1.0828[/C][C]0.141579[/C][/ROW]
[ROW][C]13[/C][C]-0.130949[/C][C]-1.0227[/C][C]0.155234[/C][/ROW]
[ROW][C]14[/C][C]-0.014469[/C][C]-0.113[/C][C]0.455197[/C][/ROW]
[ROW][C]15[/C][C]-0.117986[/C][C]-0.9215[/C][C]0.18021[/C][/ROW]
[ROW][C]16[/C][C]-0.059948[/C][C]-0.4682[/C][C]0.320652[/C][/ROW]
[ROW][C]17[/C][C]-0.017045[/C][C]-0.1331[/C][C]0.447267[/C][/ROW]
[ROW][C]18[/C][C]0.071669[/C][C]0.5598[/C][C]0.288849[/C][/ROW]
[ROW][C]19[/C][C]-0.058936[/C][C]-0.4603[/C][C]0.323466[/C][/ROW]
[ROW][C]20[/C][C]-0.052097[/C][C]-0.4069[/C][C]0.342757[/C][/ROW]
[ROW][C]21[/C][C]0.124427[/C][C]0.9718[/C][C]0.167493[/C][/ROW]
[ROW][C]22[/C][C]-0.075871[/C][C]-0.5926[/C][C]0.27783[/C][/ROW]
[ROW][C]23[/C][C]0.022894[/C][C]0.1788[/C][C]0.429342[/C][/ROW]
[ROW][C]24[/C][C]-0.028441[/C][C]-0.2221[/C][C]0.412478[/C][/ROW]
[ROW][C]25[/C][C]0.01628[/C][C]0.1272[/C][C]0.449618[/C][/ROW]
[ROW][C]26[/C][C]-0.020913[/C][C]-0.1633[/C][C]0.435396[/C][/ROW]
[ROW][C]27[/C][C]-0.039758[/C][C]-0.3105[/C][C]0.378612[/C][/ROW]
[ROW][C]28[/C][C]-0.086215[/C][C]-0.6734[/C][C]0.25163[/C][/ROW]
[ROW][C]29[/C][C]-0.042485[/C][C]-0.3318[/C][C]0.370583[/C][/ROW]
[ROW][C]30[/C][C]-0.03229[/C][C]-0.2522[/C][C]0.40087[/C][/ROW]
[ROW][C]31[/C][C]-0.188889[/C][C]-1.4753[/C][C]0.072641[/C][/ROW]
[ROW][C]32[/C][C]-0.008136[/C][C]-0.0635[/C][C]0.47477[/C][/ROW]
[ROW][C]33[/C][C]-0.008327[/C][C]-0.065[/C][C]0.47418[/C][/ROW]
[ROW][C]34[/C][C]-0.02129[/C][C]-0.1663[/C][C]0.434244[/C][/ROW]
[ROW][C]35[/C][C]-0.057691[/C][C]-0.4506[/C][C]0.326944[/C][/ROW]
[ROW][C]36[/C][C]0.047574[/C][C]0.3716[/C][C]0.355751[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67235&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67235&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.3361462.62540.005463
20.2144171.67460.049562
30.3459912.70230.004453
40.1289071.00680.159005
50.0039150.03060.487855
6-0.061037-0.47670.317635
7-0.006719-0.05250.47916
80.0144110.11260.455378
90.051130.39930.345518
100.0576710.45040.327001
11-0.177428-1.38580.085433
120.1386391.08280.141579
13-0.130949-1.02270.155234
14-0.014469-0.1130.455197
15-0.117986-0.92150.18021
16-0.059948-0.46820.320652
17-0.017045-0.13310.447267
180.0716690.55980.288849
19-0.058936-0.46030.323466
20-0.052097-0.40690.342757
210.1244270.97180.167493
22-0.075871-0.59260.27783
230.0228940.17880.429342
24-0.028441-0.22210.412478
250.016280.12720.449618
26-0.020913-0.16330.435396
27-0.039758-0.31050.378612
28-0.086215-0.67340.25163
29-0.042485-0.33180.370583
30-0.03229-0.25220.40087
31-0.188889-1.47530.072641
32-0.008136-0.06350.47477
33-0.008327-0.0650.47418
34-0.02129-0.16630.434244
35-0.057691-0.45060.326944
360.0475740.37160.355751



Parameters (Session):
par1 = 36 ; par2 = 0.3 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
Parameters (R input):
par1 = 36 ; par2 = 0.3 ; par3 = 0 ; 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')