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 computationMon, 27 Dec 2010 23:46:01 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/28/t1293493529tem4uo6unybjemd.htm/, Retrieved Sat, 04 May 2024 20:31:09 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=116189, Retrieved Sat, 04 May 2024 20:31:09 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact189
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2010-12-27 23:46:01] [c984196f1244e05baf3e7c2e52d47a33] [Current]
-   P     [(Partial) Autocorrelation Function] [] [2010-12-28 16:35:46] [f57e4c4cbbe8f12a19647529ae7266aa]
Feedback Forum

Post a new message
Dataseries X:
110.43
114.77
132.21
122.86
118.5
130.3
113.25
104.54
132.78
122.99
133.14
125.83
122.99
125.7
148.47
120.75
136.7
139.17
123.47
112.76
137.99
139.75
140.22
121.6
132.33
130.34
149.05
130.47
139.29
146.55
137.79
122.95
139.51
155.77
143.95
125.07
142.35
144.34
145.87
156.01
146.74
156.45
152.29
122.56
154.59
149.68
118.75
109.22
104.19
107.33
114.07
107.92
103.53
117.3
112.09
95.08
123.28
121.98
121.74
119.93
115.11




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116189&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]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116189&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116189&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'RServer@AstonUniversity' @ vre.aston.ac.uk







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.406261-2.81470.00353
20.0597050.41360.340486
30.3892932.69710.00481
4-0.318894-2.20940.015977
50.1838111.27350.10449
60.1318280.91330.182817
7-0.377125-2.61280.005978
80.2438481.68940.048812
9-0.103377-0.71620.238664
10-0.192576-1.33420.094216
110.1420570.98420.164976
12-0.170366-1.18030.121843
13-0.120044-0.83170.204852
140.0910820.6310.265505
15-0.051436-0.35640.361566
16-0.075007-0.51970.302843
170.1036740.71830.238036
18-0.1138-0.78840.217161
190.0335750.23260.408525
200.0893880.61930.269325
21-0.071545-0.49570.311193
22-0.096158-0.66620.254236
230.2923562.02550.024198
24-0.289595-2.00640.025234
250.1317720.91290.182917
260.0778940.53970.295962
27-0.199282-1.38070.086888
280.1921721.33140.094672
29-0.028175-0.19520.423029
30-0.080985-0.56110.288676
310.1544731.07020.144936
32-0.120934-0.83790.203132
330.0264410.18320.427711
340.0892320.61820.269678
35-0.109272-0.75710.226357
360.0009430.00650.497408

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.406261 & -2.8147 & 0.00353 \tabularnewline
2 & 0.059705 & 0.4136 & 0.340486 \tabularnewline
3 & 0.389293 & 2.6971 & 0.00481 \tabularnewline
4 & -0.318894 & -2.2094 & 0.015977 \tabularnewline
5 & 0.183811 & 1.2735 & 0.10449 \tabularnewline
6 & 0.131828 & 0.9133 & 0.182817 \tabularnewline
7 & -0.377125 & -2.6128 & 0.005978 \tabularnewline
8 & 0.243848 & 1.6894 & 0.048812 \tabularnewline
9 & -0.103377 & -0.7162 & 0.238664 \tabularnewline
10 & -0.192576 & -1.3342 & 0.094216 \tabularnewline
11 & 0.142057 & 0.9842 & 0.164976 \tabularnewline
12 & -0.170366 & -1.1803 & 0.121843 \tabularnewline
13 & -0.120044 & -0.8317 & 0.204852 \tabularnewline
14 & 0.091082 & 0.631 & 0.265505 \tabularnewline
15 & -0.051436 & -0.3564 & 0.361566 \tabularnewline
16 & -0.075007 & -0.5197 & 0.302843 \tabularnewline
17 & 0.103674 & 0.7183 & 0.238036 \tabularnewline
18 & -0.1138 & -0.7884 & 0.217161 \tabularnewline
19 & 0.033575 & 0.2326 & 0.408525 \tabularnewline
20 & 0.089388 & 0.6193 & 0.269325 \tabularnewline
21 & -0.071545 & -0.4957 & 0.311193 \tabularnewline
22 & -0.096158 & -0.6662 & 0.254236 \tabularnewline
23 & 0.292356 & 2.0255 & 0.024198 \tabularnewline
24 & -0.289595 & -2.0064 & 0.025234 \tabularnewline
25 & 0.131772 & 0.9129 & 0.182917 \tabularnewline
26 & 0.077894 & 0.5397 & 0.295962 \tabularnewline
27 & -0.199282 & -1.3807 & 0.086888 \tabularnewline
28 & 0.192172 & 1.3314 & 0.094672 \tabularnewline
29 & -0.028175 & -0.1952 & 0.423029 \tabularnewline
30 & -0.080985 & -0.5611 & 0.288676 \tabularnewline
31 & 0.154473 & 1.0702 & 0.144936 \tabularnewline
32 & -0.120934 & -0.8379 & 0.203132 \tabularnewline
33 & 0.026441 & 0.1832 & 0.427711 \tabularnewline
34 & 0.089232 & 0.6182 & 0.269678 \tabularnewline
35 & -0.109272 & -0.7571 & 0.226357 \tabularnewline
36 & 0.000943 & 0.0065 & 0.497408 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116189&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.406261[/C][C]-2.8147[/C][C]0.00353[/C][/ROW]
[ROW][C]2[/C][C]0.059705[/C][C]0.4136[/C][C]0.340486[/C][/ROW]
[ROW][C]3[/C][C]0.389293[/C][C]2.6971[/C][C]0.00481[/C][/ROW]
[ROW][C]4[/C][C]-0.318894[/C][C]-2.2094[/C][C]0.015977[/C][/ROW]
[ROW][C]5[/C][C]0.183811[/C][C]1.2735[/C][C]0.10449[/C][/ROW]
[ROW][C]6[/C][C]0.131828[/C][C]0.9133[/C][C]0.182817[/C][/ROW]
[ROW][C]7[/C][C]-0.377125[/C][C]-2.6128[/C][C]0.005978[/C][/ROW]
[ROW][C]8[/C][C]0.243848[/C][C]1.6894[/C][C]0.048812[/C][/ROW]
[ROW][C]9[/C][C]-0.103377[/C][C]-0.7162[/C][C]0.238664[/C][/ROW]
[ROW][C]10[/C][C]-0.192576[/C][C]-1.3342[/C][C]0.094216[/C][/ROW]
[ROW][C]11[/C][C]0.142057[/C][C]0.9842[/C][C]0.164976[/C][/ROW]
[ROW][C]12[/C][C]-0.170366[/C][C]-1.1803[/C][C]0.121843[/C][/ROW]
[ROW][C]13[/C][C]-0.120044[/C][C]-0.8317[/C][C]0.204852[/C][/ROW]
[ROW][C]14[/C][C]0.091082[/C][C]0.631[/C][C]0.265505[/C][/ROW]
[ROW][C]15[/C][C]-0.051436[/C][C]-0.3564[/C][C]0.361566[/C][/ROW]
[ROW][C]16[/C][C]-0.075007[/C][C]-0.5197[/C][C]0.302843[/C][/ROW]
[ROW][C]17[/C][C]0.103674[/C][C]0.7183[/C][C]0.238036[/C][/ROW]
[ROW][C]18[/C][C]-0.1138[/C][C]-0.7884[/C][C]0.217161[/C][/ROW]
[ROW][C]19[/C][C]0.033575[/C][C]0.2326[/C][C]0.408525[/C][/ROW]
[ROW][C]20[/C][C]0.089388[/C][C]0.6193[/C][C]0.269325[/C][/ROW]
[ROW][C]21[/C][C]-0.071545[/C][C]-0.4957[/C][C]0.311193[/C][/ROW]
[ROW][C]22[/C][C]-0.096158[/C][C]-0.6662[/C][C]0.254236[/C][/ROW]
[ROW][C]23[/C][C]0.292356[/C][C]2.0255[/C][C]0.024198[/C][/ROW]
[ROW][C]24[/C][C]-0.289595[/C][C]-2.0064[/C][C]0.025234[/C][/ROW]
[ROW][C]25[/C][C]0.131772[/C][C]0.9129[/C][C]0.182917[/C][/ROW]
[ROW][C]26[/C][C]0.077894[/C][C]0.5397[/C][C]0.295962[/C][/ROW]
[ROW][C]27[/C][C]-0.199282[/C][C]-1.3807[/C][C]0.086888[/C][/ROW]
[ROW][C]28[/C][C]0.192172[/C][C]1.3314[/C][C]0.094672[/C][/ROW]
[ROW][C]29[/C][C]-0.028175[/C][C]-0.1952[/C][C]0.423029[/C][/ROW]
[ROW][C]30[/C][C]-0.080985[/C][C]-0.5611[/C][C]0.288676[/C][/ROW]
[ROW][C]31[/C][C]0.154473[/C][C]1.0702[/C][C]0.144936[/C][/ROW]
[ROW][C]32[/C][C]-0.120934[/C][C]-0.8379[/C][C]0.203132[/C][/ROW]
[ROW][C]33[/C][C]0.026441[/C][C]0.1832[/C][C]0.427711[/C][/ROW]
[ROW][C]34[/C][C]0.089232[/C][C]0.6182[/C][C]0.269678[/C][/ROW]
[ROW][C]35[/C][C]-0.109272[/C][C]-0.7571[/C][C]0.226357[/C][/ROW]
[ROW][C]36[/C][C]0.000943[/C][C]0.0065[/C][C]0.497408[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116189&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116189&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.406261-2.81470.00353
20.0597050.41360.340486
30.3892932.69710.00481
4-0.318894-2.20940.015977
50.1838111.27350.10449
60.1318280.91330.182817
7-0.377125-2.61280.005978
80.2438481.68940.048812
9-0.103377-0.71620.238664
10-0.192576-1.33420.094216
110.1420570.98420.164976
12-0.170366-1.18030.121843
13-0.120044-0.83170.204852
140.0910820.6310.265505
15-0.051436-0.35640.361566
16-0.075007-0.51970.302843
170.1036740.71830.238036
18-0.1138-0.78840.217161
190.0335750.23260.408525
200.0893880.61930.269325
21-0.071545-0.49570.311193
22-0.096158-0.66620.254236
230.2923562.02550.024198
24-0.289595-2.00640.025234
250.1317720.91290.182917
260.0778940.53970.295962
27-0.199282-1.38070.086888
280.1921721.33140.094672
29-0.028175-0.19520.423029
30-0.080985-0.56110.288676
310.1544731.07020.144936
32-0.120934-0.83790.203132
330.0264410.18320.427711
340.0892320.61820.269678
35-0.109272-0.75710.226357
360.0009430.00650.497408







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.406261-2.81470.00353
2-0.126166-0.87410.193207
30.4446513.08060.001707
40.0203370.14090.44427
50.0070960.04920.480496
60.0847520.58720.279918
7-0.273022-1.89160.032296
8-0.135176-0.93650.176845
9-0.076068-0.5270.300306
10-0.043752-0.30310.381552
11-0.07524-0.52130.302285
12-0.041905-0.29030.386408
13-0.126175-0.87420.19319
14-0.134454-0.93150.178121
150.1427480.9890.163815
160.0364670.25270.400808
170.0141650.09810.461115
18-0.106619-0.73870.23185
19-0.078114-0.54120.295441
20-0.044091-0.30550.380664
210.0189670.13140.448
22-0.21795-1.510.068799
230.1821971.26230.106471
24-0.106975-0.74110.231108
25-0.051857-0.35930.360483
26-0.065515-0.45390.325972
270.0223820.15510.43871
280.0508720.35250.36302
29-0.018473-0.1280.449348
300.1206880.83610.203607
31-0.115355-0.79920.214055
32-0.083857-0.5810.281987
33-0.023205-0.16080.436475
34-0.017255-0.11950.45267
350.0163970.11360.455012
36-0.104595-0.72470.23609

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.406261 & -2.8147 & 0.00353 \tabularnewline
2 & -0.126166 & -0.8741 & 0.193207 \tabularnewline
3 & 0.444651 & 3.0806 & 0.001707 \tabularnewline
4 & 0.020337 & 0.1409 & 0.44427 \tabularnewline
5 & 0.007096 & 0.0492 & 0.480496 \tabularnewline
6 & 0.084752 & 0.5872 & 0.279918 \tabularnewline
7 & -0.273022 & -1.8916 & 0.032296 \tabularnewline
8 & -0.135176 & -0.9365 & 0.176845 \tabularnewline
9 & -0.076068 & -0.527 & 0.300306 \tabularnewline
10 & -0.043752 & -0.3031 & 0.381552 \tabularnewline
11 & -0.07524 & -0.5213 & 0.302285 \tabularnewline
12 & -0.041905 & -0.2903 & 0.386408 \tabularnewline
13 & -0.126175 & -0.8742 & 0.19319 \tabularnewline
14 & -0.134454 & -0.9315 & 0.178121 \tabularnewline
15 & 0.142748 & 0.989 & 0.163815 \tabularnewline
16 & 0.036467 & 0.2527 & 0.400808 \tabularnewline
17 & 0.014165 & 0.0981 & 0.461115 \tabularnewline
18 & -0.106619 & -0.7387 & 0.23185 \tabularnewline
19 & -0.078114 & -0.5412 & 0.295441 \tabularnewline
20 & -0.044091 & -0.3055 & 0.380664 \tabularnewline
21 & 0.018967 & 0.1314 & 0.448 \tabularnewline
22 & -0.21795 & -1.51 & 0.068799 \tabularnewline
23 & 0.182197 & 1.2623 & 0.106471 \tabularnewline
24 & -0.106975 & -0.7411 & 0.231108 \tabularnewline
25 & -0.051857 & -0.3593 & 0.360483 \tabularnewline
26 & -0.065515 & -0.4539 & 0.325972 \tabularnewline
27 & 0.022382 & 0.1551 & 0.43871 \tabularnewline
28 & 0.050872 & 0.3525 & 0.36302 \tabularnewline
29 & -0.018473 & -0.128 & 0.449348 \tabularnewline
30 & 0.120688 & 0.8361 & 0.203607 \tabularnewline
31 & -0.115355 & -0.7992 & 0.214055 \tabularnewline
32 & -0.083857 & -0.581 & 0.281987 \tabularnewline
33 & -0.023205 & -0.1608 & 0.436475 \tabularnewline
34 & -0.017255 & -0.1195 & 0.45267 \tabularnewline
35 & 0.016397 & 0.1136 & 0.455012 \tabularnewline
36 & -0.104595 & -0.7247 & 0.23609 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=116189&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.406261[/C][C]-2.8147[/C][C]0.00353[/C][/ROW]
[ROW][C]2[/C][C]-0.126166[/C][C]-0.8741[/C][C]0.193207[/C][/ROW]
[ROW][C]3[/C][C]0.444651[/C][C]3.0806[/C][C]0.001707[/C][/ROW]
[ROW][C]4[/C][C]0.020337[/C][C]0.1409[/C][C]0.44427[/C][/ROW]
[ROW][C]5[/C][C]0.007096[/C][C]0.0492[/C][C]0.480496[/C][/ROW]
[ROW][C]6[/C][C]0.084752[/C][C]0.5872[/C][C]0.279918[/C][/ROW]
[ROW][C]7[/C][C]-0.273022[/C][C]-1.8916[/C][C]0.032296[/C][/ROW]
[ROW][C]8[/C][C]-0.135176[/C][C]-0.9365[/C][C]0.176845[/C][/ROW]
[ROW][C]9[/C][C]-0.076068[/C][C]-0.527[/C][C]0.300306[/C][/ROW]
[ROW][C]10[/C][C]-0.043752[/C][C]-0.3031[/C][C]0.381552[/C][/ROW]
[ROW][C]11[/C][C]-0.07524[/C][C]-0.5213[/C][C]0.302285[/C][/ROW]
[ROW][C]12[/C][C]-0.041905[/C][C]-0.2903[/C][C]0.386408[/C][/ROW]
[ROW][C]13[/C][C]-0.126175[/C][C]-0.8742[/C][C]0.19319[/C][/ROW]
[ROW][C]14[/C][C]-0.134454[/C][C]-0.9315[/C][C]0.178121[/C][/ROW]
[ROW][C]15[/C][C]0.142748[/C][C]0.989[/C][C]0.163815[/C][/ROW]
[ROW][C]16[/C][C]0.036467[/C][C]0.2527[/C][C]0.400808[/C][/ROW]
[ROW][C]17[/C][C]0.014165[/C][C]0.0981[/C][C]0.461115[/C][/ROW]
[ROW][C]18[/C][C]-0.106619[/C][C]-0.7387[/C][C]0.23185[/C][/ROW]
[ROW][C]19[/C][C]-0.078114[/C][C]-0.5412[/C][C]0.295441[/C][/ROW]
[ROW][C]20[/C][C]-0.044091[/C][C]-0.3055[/C][C]0.380664[/C][/ROW]
[ROW][C]21[/C][C]0.018967[/C][C]0.1314[/C][C]0.448[/C][/ROW]
[ROW][C]22[/C][C]-0.21795[/C][C]-1.51[/C][C]0.068799[/C][/ROW]
[ROW][C]23[/C][C]0.182197[/C][C]1.2623[/C][C]0.106471[/C][/ROW]
[ROW][C]24[/C][C]-0.106975[/C][C]-0.7411[/C][C]0.231108[/C][/ROW]
[ROW][C]25[/C][C]-0.051857[/C][C]-0.3593[/C][C]0.360483[/C][/ROW]
[ROW][C]26[/C][C]-0.065515[/C][C]-0.4539[/C][C]0.325972[/C][/ROW]
[ROW][C]27[/C][C]0.022382[/C][C]0.1551[/C][C]0.43871[/C][/ROW]
[ROW][C]28[/C][C]0.050872[/C][C]0.3525[/C][C]0.36302[/C][/ROW]
[ROW][C]29[/C][C]-0.018473[/C][C]-0.128[/C][C]0.449348[/C][/ROW]
[ROW][C]30[/C][C]0.120688[/C][C]0.8361[/C][C]0.203607[/C][/ROW]
[ROW][C]31[/C][C]-0.115355[/C][C]-0.7992[/C][C]0.214055[/C][/ROW]
[ROW][C]32[/C][C]-0.083857[/C][C]-0.581[/C][C]0.281987[/C][/ROW]
[ROW][C]33[/C][C]-0.023205[/C][C]-0.1608[/C][C]0.436475[/C][/ROW]
[ROW][C]34[/C][C]-0.017255[/C][C]-0.1195[/C][C]0.45267[/C][/ROW]
[ROW][C]35[/C][C]0.016397[/C][C]0.1136[/C][C]0.455012[/C][/ROW]
[ROW][C]36[/C][C]-0.104595[/C][C]-0.7247[/C][C]0.23609[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=116189&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=116189&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.406261-2.81470.00353
2-0.126166-0.87410.193207
30.4446513.08060.001707
40.0203370.14090.44427
50.0070960.04920.480496
60.0847520.58720.279918
7-0.273022-1.89160.032296
8-0.135176-0.93650.176845
9-0.076068-0.5270.300306
10-0.043752-0.30310.381552
11-0.07524-0.52130.302285
12-0.041905-0.29030.386408
13-0.126175-0.87420.19319
14-0.134454-0.93150.178121
150.1427480.9890.163815
160.0364670.25270.400808
170.0141650.09810.461115
18-0.106619-0.73870.23185
19-0.078114-0.54120.295441
20-0.044091-0.30550.380664
210.0189670.13140.448
22-0.21795-1.510.068799
230.1821971.26230.106471
24-0.106975-0.74110.231108
25-0.051857-0.35930.360483
26-0.065515-0.45390.325972
270.0223820.15510.43871
280.0508720.35250.36302
29-0.018473-0.1280.449348
300.1206880.83610.203607
31-0.115355-0.79920.214055
32-0.083857-0.5810.281987
33-0.023205-0.16080.436475
34-0.017255-0.11950.45267
350.0163970.11360.455012
36-0.104595-0.72470.23609



Parameters (Session):
par1 = 36 ; par2 = 0.8 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
Parameters (R input):
par1 = 36 ; par2 = 0.8 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ; par8 = ;
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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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')