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:26:03 -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/t1227868017xg8yxtgcrvmn585.htm/, Retrieved Sun, 19 May 2024 12:40:13 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25987, Retrieved Sun, 19 May 2024 12:40:13 +0000
QR Codes:

Original text written by user:d=1 D=0
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact212
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:26:03] [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 time4 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 4 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25987&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]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25987&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25987&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 time4 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.435572-3.34570.000716
2-0.283589-2.17830.016696
30.4197513.22420.00103
4-0.243683-1.87180.033099
5-0.092133-0.70770.240962
60.3504812.69210.004613
7-0.274844-2.11110.019504
8-0.028387-0.2180.414074
90.2432821.86870.033317
10-0.273508-2.10090.019968
11-0.072404-0.55610.290108
120.4283443.29020.000846
13-0.217706-1.67220.049888
14-0.088014-0.6760.250826
150.1843011.41560.081068
16-0.197139-1.51430.06765
170.0372350.2860.387937
180.1550751.19120.119181
19-0.126282-0.970.168006
20-0.023091-0.17740.429916
210.0879240.67540.251043
22-0.176126-1.35280.090633
230.1052740.80860.21099
240.0827440.63560.263757
25-0.029821-0.22910.409807
26-0.014296-0.10980.456468
27-0.02769-0.21270.416152
28-0.012714-0.09770.461269
290.0709940.54530.293797
30-0.081963-0.62960.265704
310.048740.37440.354732
320.0050670.03890.484543
33-0.045189-0.34710.364875
34-0.023583-0.18110.428438
350.0038240.02940.488332
360.0800990.61530.270377

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.435572 & -3.3457 & 0.000716 \tabularnewline
2 & -0.283589 & -2.1783 & 0.016696 \tabularnewline
3 & 0.419751 & 3.2242 & 0.00103 \tabularnewline
4 & -0.243683 & -1.8718 & 0.033099 \tabularnewline
5 & -0.092133 & -0.7077 & 0.240962 \tabularnewline
6 & 0.350481 & 2.6921 & 0.004613 \tabularnewline
7 & -0.274844 & -2.1111 & 0.019504 \tabularnewline
8 & -0.028387 & -0.218 & 0.414074 \tabularnewline
9 & 0.243282 & 1.8687 & 0.033317 \tabularnewline
10 & -0.273508 & -2.1009 & 0.019968 \tabularnewline
11 & -0.072404 & -0.5561 & 0.290108 \tabularnewline
12 & 0.428344 & 3.2902 & 0.000846 \tabularnewline
13 & -0.217706 & -1.6722 & 0.049888 \tabularnewline
14 & -0.088014 & -0.676 & 0.250826 \tabularnewline
15 & 0.184301 & 1.4156 & 0.081068 \tabularnewline
16 & -0.197139 & -1.5143 & 0.06765 \tabularnewline
17 & 0.037235 & 0.286 & 0.387937 \tabularnewline
18 & 0.155075 & 1.1912 & 0.119181 \tabularnewline
19 & -0.126282 & -0.97 & 0.168006 \tabularnewline
20 & -0.023091 & -0.1774 & 0.429916 \tabularnewline
21 & 0.087924 & 0.6754 & 0.251043 \tabularnewline
22 & -0.176126 & -1.3528 & 0.090633 \tabularnewline
23 & 0.105274 & 0.8086 & 0.21099 \tabularnewline
24 & 0.082744 & 0.6356 & 0.263757 \tabularnewline
25 & -0.029821 & -0.2291 & 0.409807 \tabularnewline
26 & -0.014296 & -0.1098 & 0.456468 \tabularnewline
27 & -0.02769 & -0.2127 & 0.416152 \tabularnewline
28 & -0.012714 & -0.0977 & 0.461269 \tabularnewline
29 & 0.070994 & 0.5453 & 0.293797 \tabularnewline
30 & -0.081963 & -0.6296 & 0.265704 \tabularnewline
31 & 0.04874 & 0.3744 & 0.354732 \tabularnewline
32 & 0.005067 & 0.0389 & 0.484543 \tabularnewline
33 & -0.045189 & -0.3471 & 0.364875 \tabularnewline
34 & -0.023583 & -0.1811 & 0.428438 \tabularnewline
35 & 0.003824 & 0.0294 & 0.488332 \tabularnewline
36 & 0.080099 & 0.6153 & 0.270377 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25987&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.435572[/C][C]-3.3457[/C][C]0.000716[/C][/ROW]
[ROW][C]2[/C][C]-0.283589[/C][C]-2.1783[/C][C]0.016696[/C][/ROW]
[ROW][C]3[/C][C]0.419751[/C][C]3.2242[/C][C]0.00103[/C][/ROW]
[ROW][C]4[/C][C]-0.243683[/C][C]-1.8718[/C][C]0.033099[/C][/ROW]
[ROW][C]5[/C][C]-0.092133[/C][C]-0.7077[/C][C]0.240962[/C][/ROW]
[ROW][C]6[/C][C]0.350481[/C][C]2.6921[/C][C]0.004613[/C][/ROW]
[ROW][C]7[/C][C]-0.274844[/C][C]-2.1111[/C][C]0.019504[/C][/ROW]
[ROW][C]8[/C][C]-0.028387[/C][C]-0.218[/C][C]0.414074[/C][/ROW]
[ROW][C]9[/C][C]0.243282[/C][C]1.8687[/C][C]0.033317[/C][/ROW]
[ROW][C]10[/C][C]-0.273508[/C][C]-2.1009[/C][C]0.019968[/C][/ROW]
[ROW][C]11[/C][C]-0.072404[/C][C]-0.5561[/C][C]0.290108[/C][/ROW]
[ROW][C]12[/C][C]0.428344[/C][C]3.2902[/C][C]0.000846[/C][/ROW]
[ROW][C]13[/C][C]-0.217706[/C][C]-1.6722[/C][C]0.049888[/C][/ROW]
[ROW][C]14[/C][C]-0.088014[/C][C]-0.676[/C][C]0.250826[/C][/ROW]
[ROW][C]15[/C][C]0.184301[/C][C]1.4156[/C][C]0.081068[/C][/ROW]
[ROW][C]16[/C][C]-0.197139[/C][C]-1.5143[/C][C]0.06765[/C][/ROW]
[ROW][C]17[/C][C]0.037235[/C][C]0.286[/C][C]0.387937[/C][/ROW]
[ROW][C]18[/C][C]0.155075[/C][C]1.1912[/C][C]0.119181[/C][/ROW]
[ROW][C]19[/C][C]-0.126282[/C][C]-0.97[/C][C]0.168006[/C][/ROW]
[ROW][C]20[/C][C]-0.023091[/C][C]-0.1774[/C][C]0.429916[/C][/ROW]
[ROW][C]21[/C][C]0.087924[/C][C]0.6754[/C][C]0.251043[/C][/ROW]
[ROW][C]22[/C][C]-0.176126[/C][C]-1.3528[/C][C]0.090633[/C][/ROW]
[ROW][C]23[/C][C]0.105274[/C][C]0.8086[/C][C]0.21099[/C][/ROW]
[ROW][C]24[/C][C]0.082744[/C][C]0.6356[/C][C]0.263757[/C][/ROW]
[ROW][C]25[/C][C]-0.029821[/C][C]-0.2291[/C][C]0.409807[/C][/ROW]
[ROW][C]26[/C][C]-0.014296[/C][C]-0.1098[/C][C]0.456468[/C][/ROW]
[ROW][C]27[/C][C]-0.02769[/C][C]-0.2127[/C][C]0.416152[/C][/ROW]
[ROW][C]28[/C][C]-0.012714[/C][C]-0.0977[/C][C]0.461269[/C][/ROW]
[ROW][C]29[/C][C]0.070994[/C][C]0.5453[/C][C]0.293797[/C][/ROW]
[ROW][C]30[/C][C]-0.081963[/C][C]-0.6296[/C][C]0.265704[/C][/ROW]
[ROW][C]31[/C][C]0.04874[/C][C]0.3744[/C][C]0.354732[/C][/ROW]
[ROW][C]32[/C][C]0.005067[/C][C]0.0389[/C][C]0.484543[/C][/ROW]
[ROW][C]33[/C][C]-0.045189[/C][C]-0.3471[/C][C]0.364875[/C][/ROW]
[ROW][C]34[/C][C]-0.023583[/C][C]-0.1811[/C][C]0.428438[/C][/ROW]
[ROW][C]35[/C][C]0.003824[/C][C]0.0294[/C][C]0.488332[/C][/ROW]
[ROW][C]36[/C][C]0.080099[/C][C]0.6153[/C][C]0.270377[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25987&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25987&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.435572-3.34570.000716
2-0.283589-2.17830.016696
30.4197513.22420.00103
4-0.243683-1.87180.033099
5-0.092133-0.70770.240962
60.3504812.69210.004613
7-0.274844-2.11110.019504
8-0.028387-0.2180.414074
90.2432821.86870.033317
10-0.273508-2.10090.019968
11-0.072404-0.55610.290108
120.4283443.29020.000846
13-0.217706-1.67220.049888
14-0.088014-0.6760.250826
150.1843011.41560.081068
16-0.197139-1.51430.06765
170.0372350.2860.387937
180.1550751.19120.119181
19-0.126282-0.970.168006
20-0.023091-0.17740.429916
210.0879240.67540.251043
22-0.176126-1.35280.090633
230.1052740.80860.21099
240.0827440.63560.263757
25-0.029821-0.22910.409807
26-0.014296-0.10980.456468
27-0.02769-0.21270.416152
28-0.012714-0.09770.461269
290.0709940.54530.293797
30-0.081963-0.62960.265704
310.048740.37440.354732
320.0050670.03890.484543
33-0.045189-0.34710.364875
34-0.023583-0.18110.428438
350.0038240.02940.488332
360.0800990.61530.270377







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.435572-3.34570.000716
2-0.584137-4.48681.7e-05
3-0.056878-0.43690.331893
4-0.266254-2.04510.022655
5-0.257792-1.98010.026179
60.0356420.27380.392609
7-0.10707-0.82240.207075
8-0.068501-0.52620.300372
9-0.006134-0.04710.48129
10-0.170696-1.31110.097445
11-0.441561-3.39170.000623
12-0.102315-0.78590.217537
130.0401050.30810.379564
140.1686541.29550.100105
150.1292590.99290.162416
160.0380880.29260.385444
17-0.001625-0.01250.495041
18-0.146024-1.12160.133282
19-0.005944-0.04570.481869
20-0.04494-0.34520.365588
21-0.028373-0.21790.414116
22-0.172043-1.32150.09572
23-0.002979-0.02290.49091
24-0.152728-1.17310.12273
250.0232740.17880.429364
260.0219160.16830.433446
27-0.041287-0.31710.376133
280.0193210.14840.441265
290.0959540.7370.232011
30-0.03625-0.27840.390824
31-0.113797-0.87410.192806
32-0.118898-0.91330.182407
33-0.019285-0.14810.441372
340.0277860.21340.415864
35-0.09781-0.75130.227731
360.0507860.39010.348936

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.435572 & -3.3457 & 0.000716 \tabularnewline
2 & -0.584137 & -4.4868 & 1.7e-05 \tabularnewline
3 & -0.056878 & -0.4369 & 0.331893 \tabularnewline
4 & -0.266254 & -2.0451 & 0.022655 \tabularnewline
5 & -0.257792 & -1.9801 & 0.026179 \tabularnewline
6 & 0.035642 & 0.2738 & 0.392609 \tabularnewline
7 & -0.10707 & -0.8224 & 0.207075 \tabularnewline
8 & -0.068501 & -0.5262 & 0.300372 \tabularnewline
9 & -0.006134 & -0.0471 & 0.48129 \tabularnewline
10 & -0.170696 & -1.3111 & 0.097445 \tabularnewline
11 & -0.441561 & -3.3917 & 0.000623 \tabularnewline
12 & -0.102315 & -0.7859 & 0.217537 \tabularnewline
13 & 0.040105 & 0.3081 & 0.379564 \tabularnewline
14 & 0.168654 & 1.2955 & 0.100105 \tabularnewline
15 & 0.129259 & 0.9929 & 0.162416 \tabularnewline
16 & 0.038088 & 0.2926 & 0.385444 \tabularnewline
17 & -0.001625 & -0.0125 & 0.495041 \tabularnewline
18 & -0.146024 & -1.1216 & 0.133282 \tabularnewline
19 & -0.005944 & -0.0457 & 0.481869 \tabularnewline
20 & -0.04494 & -0.3452 & 0.365588 \tabularnewline
21 & -0.028373 & -0.2179 & 0.414116 \tabularnewline
22 & -0.172043 & -1.3215 & 0.09572 \tabularnewline
23 & -0.002979 & -0.0229 & 0.49091 \tabularnewline
24 & -0.152728 & -1.1731 & 0.12273 \tabularnewline
25 & 0.023274 & 0.1788 & 0.429364 \tabularnewline
26 & 0.021916 & 0.1683 & 0.433446 \tabularnewline
27 & -0.041287 & -0.3171 & 0.376133 \tabularnewline
28 & 0.019321 & 0.1484 & 0.441265 \tabularnewline
29 & 0.095954 & 0.737 & 0.232011 \tabularnewline
30 & -0.03625 & -0.2784 & 0.390824 \tabularnewline
31 & -0.113797 & -0.8741 & 0.192806 \tabularnewline
32 & -0.118898 & -0.9133 & 0.182407 \tabularnewline
33 & -0.019285 & -0.1481 & 0.441372 \tabularnewline
34 & 0.027786 & 0.2134 & 0.415864 \tabularnewline
35 & -0.09781 & -0.7513 & 0.227731 \tabularnewline
36 & 0.050786 & 0.3901 & 0.348936 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25987&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.435572[/C][C]-3.3457[/C][C]0.000716[/C][/ROW]
[ROW][C]2[/C][C]-0.584137[/C][C]-4.4868[/C][C]1.7e-05[/C][/ROW]
[ROW][C]3[/C][C]-0.056878[/C][C]-0.4369[/C][C]0.331893[/C][/ROW]
[ROW][C]4[/C][C]-0.266254[/C][C]-2.0451[/C][C]0.022655[/C][/ROW]
[ROW][C]5[/C][C]-0.257792[/C][C]-1.9801[/C][C]0.026179[/C][/ROW]
[ROW][C]6[/C][C]0.035642[/C][C]0.2738[/C][C]0.392609[/C][/ROW]
[ROW][C]7[/C][C]-0.10707[/C][C]-0.8224[/C][C]0.207075[/C][/ROW]
[ROW][C]8[/C][C]-0.068501[/C][C]-0.5262[/C][C]0.300372[/C][/ROW]
[ROW][C]9[/C][C]-0.006134[/C][C]-0.0471[/C][C]0.48129[/C][/ROW]
[ROW][C]10[/C][C]-0.170696[/C][C]-1.3111[/C][C]0.097445[/C][/ROW]
[ROW][C]11[/C][C]-0.441561[/C][C]-3.3917[/C][C]0.000623[/C][/ROW]
[ROW][C]12[/C][C]-0.102315[/C][C]-0.7859[/C][C]0.217537[/C][/ROW]
[ROW][C]13[/C][C]0.040105[/C][C]0.3081[/C][C]0.379564[/C][/ROW]
[ROW][C]14[/C][C]0.168654[/C][C]1.2955[/C][C]0.100105[/C][/ROW]
[ROW][C]15[/C][C]0.129259[/C][C]0.9929[/C][C]0.162416[/C][/ROW]
[ROW][C]16[/C][C]0.038088[/C][C]0.2926[/C][C]0.385444[/C][/ROW]
[ROW][C]17[/C][C]-0.001625[/C][C]-0.0125[/C][C]0.495041[/C][/ROW]
[ROW][C]18[/C][C]-0.146024[/C][C]-1.1216[/C][C]0.133282[/C][/ROW]
[ROW][C]19[/C][C]-0.005944[/C][C]-0.0457[/C][C]0.481869[/C][/ROW]
[ROW][C]20[/C][C]-0.04494[/C][C]-0.3452[/C][C]0.365588[/C][/ROW]
[ROW][C]21[/C][C]-0.028373[/C][C]-0.2179[/C][C]0.414116[/C][/ROW]
[ROW][C]22[/C][C]-0.172043[/C][C]-1.3215[/C][C]0.09572[/C][/ROW]
[ROW][C]23[/C][C]-0.002979[/C][C]-0.0229[/C][C]0.49091[/C][/ROW]
[ROW][C]24[/C][C]-0.152728[/C][C]-1.1731[/C][C]0.12273[/C][/ROW]
[ROW][C]25[/C][C]0.023274[/C][C]0.1788[/C][C]0.429364[/C][/ROW]
[ROW][C]26[/C][C]0.021916[/C][C]0.1683[/C][C]0.433446[/C][/ROW]
[ROW][C]27[/C][C]-0.041287[/C][C]-0.3171[/C][C]0.376133[/C][/ROW]
[ROW][C]28[/C][C]0.019321[/C][C]0.1484[/C][C]0.441265[/C][/ROW]
[ROW][C]29[/C][C]0.095954[/C][C]0.737[/C][C]0.232011[/C][/ROW]
[ROW][C]30[/C][C]-0.03625[/C][C]-0.2784[/C][C]0.390824[/C][/ROW]
[ROW][C]31[/C][C]-0.113797[/C][C]-0.8741[/C][C]0.192806[/C][/ROW]
[ROW][C]32[/C][C]-0.118898[/C][C]-0.9133[/C][C]0.182407[/C][/ROW]
[ROW][C]33[/C][C]-0.019285[/C][C]-0.1481[/C][C]0.441372[/C][/ROW]
[ROW][C]34[/C][C]0.027786[/C][C]0.2134[/C][C]0.415864[/C][/ROW]
[ROW][C]35[/C][C]-0.09781[/C][C]-0.7513[/C][C]0.227731[/C][/ROW]
[ROW][C]36[/C][C]0.050786[/C][C]0.3901[/C][C]0.348936[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25987&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25987&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.435572-3.34570.000716
2-0.584137-4.48681.7e-05
3-0.056878-0.43690.331893
4-0.266254-2.04510.022655
5-0.257792-1.98010.026179
60.0356420.27380.392609
7-0.10707-0.82240.207075
8-0.068501-0.52620.300372
9-0.006134-0.04710.48129
10-0.170696-1.31110.097445
11-0.441561-3.39170.000623
12-0.102315-0.78590.217537
130.0401050.30810.379564
140.1686541.29550.100105
150.1292590.99290.162416
160.0380880.29260.385444
17-0.001625-0.01250.495041
18-0.146024-1.12160.133282
19-0.005944-0.04570.481869
20-0.04494-0.34520.365588
21-0.028373-0.21790.414116
22-0.172043-1.32150.09572
23-0.002979-0.02290.49091
24-0.152728-1.17310.12273
250.0232740.17880.429364
260.0219160.16830.433446
27-0.041287-0.31710.376133
280.0193210.14840.441265
290.0959540.7370.232011
30-0.03625-0.27840.390824
31-0.113797-0.87410.192806
32-0.118898-0.91330.182407
33-0.019285-0.14810.441372
340.0277860.21340.415864
35-0.09781-0.75130.227731
360.0507860.39010.348936



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