Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 29 Nov 2010 19:00:08 +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/Nov/29/t1291057130bolx6ga7gwt0w0h.htm/, Retrieved Mon, 29 Apr 2024 11:53:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=103035, Retrieved Mon, 29 Apr 2024 11:53:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact145
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [HPC Retail Sales] [2008-03-08 13:40:54] [1c0f2c85e8a48e42648374b3bcceca26]
-  MPD  [Multiple Regression] [WS8 - Multiple Re...] [2010-11-28 10:30:02] [8ef49741e164ec6343c90c7935194465]
-   PD      [Multiple Regression] [ws 8 multiple reg...] [2010-11-29 19:00:08] [b47314d83d48c7bf812ec2bcd743b159] [Current]
Feedback Forum

Post a new message
Dataseries X:
167,16
179,84
174,44
180,35
193,17
195,16
202,43
189,91
195,98
212,09
205,81
204,31
196,07
199,98
199,10
198,31
195,72
223,04
238,41
259,73
326,54
335,15
321,81
368,62
369,59
425,00
439,72
362,23
328,76
348,55
328,18
329,34
295,55
237,38
226,85
220,14
239,36
224,69
230,98
233,47
256,70
253,41
224,95
210,37
191,09
198,85
211,04
206,25
201,19
194,37
191,08
192,87
181,61
157,67
196,14
246,35
271,90




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time8 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 8 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103035&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]8 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103035&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103035&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 time8 seconds
R Server'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
Tarweprijs[t] = + 246.070714285714 -14.5294523809523M1[t] -4.55276190476188M2[t] -2.39007142857144M3[t] -16.1333809523809M4[t] -18.5126904761905M5[t] -14.264M6[t] -11.9333095238095M7[t] -2.94061904761904M8[t] + 6.00607142857145M9[t] -3.71188095238094M10[t] -8.32719047619046M11[t] + 0.125309523809523t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Tarweprijs[t] =  +  246.070714285714 -14.5294523809523M1[t] -4.55276190476188M2[t] -2.39007142857144M3[t] -16.1333809523809M4[t] -18.5126904761905M5[t] -14.264M6[t] -11.9333095238095M7[t] -2.94061904761904M8[t] +  6.00607142857145M9[t] -3.71188095238094M10[t] -8.32719047619046M11[t] +  0.125309523809523t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103035&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Tarweprijs[t] =  +  246.070714285714 -14.5294523809523M1[t] -4.55276190476188M2[t] -2.39007142857144M3[t] -16.1333809523809M4[t] -18.5126904761905M5[t] -14.264M6[t] -11.9333095238095M7[t] -2.94061904761904M8[t] +  6.00607142857145M9[t] -3.71188095238094M10[t] -8.32719047619046M11[t] +  0.125309523809523t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103035&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103035&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Estimated Regression Equation
Tarweprijs[t] = + 246.070714285714 -14.5294523809523M1[t] -4.55276190476188M2[t] -2.39007142857144M3[t] -16.1333809523809M4[t] -18.5126904761905M5[t] -14.264M6[t] -11.9333095238095M7[t] -2.94061904761904M8[t] + 6.00607142857145M9[t] -3.71188095238094M10[t] -8.32719047619046M11[t] + 0.125309523809523t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)246.07071428571441.9484765.8661e-060
M1-14.529452380952350.67244-0.28670.7756630.387831
M2-4.5527619047618850.639039-0.08990.928770.464385
M3-2.3900714285714450.613044-0.04720.962550.481275
M4-16.133380952380950.594468-0.31890.7513290.375665
M5-18.512690476190550.58332-0.3660.7161310.358065
M6-14.26450.579603-0.2820.7792570.389629
M7-11.933309523809550.58332-0.23590.8145940.407297
M8-2.9406190476190450.594468-0.05810.9539150.476958
M96.0060714285714550.6130440.11870.906080.45304
M10-3.7118809523809453.329686-0.06960.9448250.472413
M11-8.3271904761904653.319109-0.15620.8766080.438304
t0.1253095238095230.6131870.20440.8390160.419508

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 246.070714285714 & 41.948476 & 5.866 & 1e-06 & 0 \tabularnewline
M1 & -14.5294523809523 & 50.67244 & -0.2867 & 0.775663 & 0.387831 \tabularnewline
M2 & -4.55276190476188 & 50.639039 & -0.0899 & 0.92877 & 0.464385 \tabularnewline
M3 & -2.39007142857144 & 50.613044 & -0.0472 & 0.96255 & 0.481275 \tabularnewline
M4 & -16.1333809523809 & 50.594468 & -0.3189 & 0.751329 & 0.375665 \tabularnewline
M5 & -18.5126904761905 & 50.58332 & -0.366 & 0.716131 & 0.358065 \tabularnewline
M6 & -14.264 & 50.579603 & -0.282 & 0.779257 & 0.389629 \tabularnewline
M7 & -11.9333095238095 & 50.58332 & -0.2359 & 0.814594 & 0.407297 \tabularnewline
M8 & -2.94061904761904 & 50.594468 & -0.0581 & 0.953915 & 0.476958 \tabularnewline
M9 & 6.00607142857145 & 50.613044 & 0.1187 & 0.90608 & 0.45304 \tabularnewline
M10 & -3.71188095238094 & 53.329686 & -0.0696 & 0.944825 & 0.472413 \tabularnewline
M11 & -8.32719047619046 & 53.319109 & -0.1562 & 0.876608 & 0.438304 \tabularnewline
t & 0.125309523809523 & 0.613187 & 0.2044 & 0.839016 & 0.419508 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103035&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]246.070714285714[/C][C]41.948476[/C][C]5.866[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-14.5294523809523[/C][C]50.67244[/C][C]-0.2867[/C][C]0.775663[/C][C]0.387831[/C][/ROW]
[ROW][C]M2[/C][C]-4.55276190476188[/C][C]50.639039[/C][C]-0.0899[/C][C]0.92877[/C][C]0.464385[/C][/ROW]
[ROW][C]M3[/C][C]-2.39007142857144[/C][C]50.613044[/C][C]-0.0472[/C][C]0.96255[/C][C]0.481275[/C][/ROW]
[ROW][C]M4[/C][C]-16.1333809523809[/C][C]50.594468[/C][C]-0.3189[/C][C]0.751329[/C][C]0.375665[/C][/ROW]
[ROW][C]M5[/C][C]-18.5126904761905[/C][C]50.58332[/C][C]-0.366[/C][C]0.716131[/C][C]0.358065[/C][/ROW]
[ROW][C]M6[/C][C]-14.264[/C][C]50.579603[/C][C]-0.282[/C][C]0.779257[/C][C]0.389629[/C][/ROW]
[ROW][C]M7[/C][C]-11.9333095238095[/C][C]50.58332[/C][C]-0.2359[/C][C]0.814594[/C][C]0.407297[/C][/ROW]
[ROW][C]M8[/C][C]-2.94061904761904[/C][C]50.594468[/C][C]-0.0581[/C][C]0.953915[/C][C]0.476958[/C][/ROW]
[ROW][C]M9[/C][C]6.00607142857145[/C][C]50.613044[/C][C]0.1187[/C][C]0.90608[/C][C]0.45304[/C][/ROW]
[ROW][C]M10[/C][C]-3.71188095238094[/C][C]53.329686[/C][C]-0.0696[/C][C]0.944825[/C][C]0.472413[/C][/ROW]
[ROW][C]M11[/C][C]-8.32719047619046[/C][C]53.319109[/C][C]-0.1562[/C][C]0.876608[/C][C]0.438304[/C][/ROW]
[ROW][C]t[/C][C]0.125309523809523[/C][C]0.613187[/C][C]0.2044[/C][C]0.839016[/C][C]0.419508[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103035&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103035&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)246.07071428571441.9484765.8661e-060
M1-14.529452380952350.67244-0.28670.7756630.387831
M2-4.5527619047618850.639039-0.08990.928770.464385
M3-2.3900714285714450.613044-0.04720.962550.481275
M4-16.133380952380950.594468-0.31890.7513290.375665
M5-18.512690476190550.58332-0.3660.7161310.358065
M6-14.26450.579603-0.2820.7792570.389629
M7-11.933309523809550.58332-0.23590.8145940.407297
M8-2.9406190476190450.594468-0.05810.9539150.476958
M96.0060714285714550.6130440.11870.906080.45304
M10-3.7118809523809453.329686-0.06960.9448250.472413
M11-8.3271904761904653.319109-0.15620.8766080.438304
t0.1253095238095230.6131870.20440.8390160.419508







Multiple Linear Regression - Regression Statistics
Multiple R0.115070824238089
R-squared0.0132412945908331
Adjusted R-squared-0.255874715975303
F-TEST (value)0.0492029239099433
F-TEST (DF numerator)12
F-TEST (DF denominator)44
p-value0.99999874385495
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation75.3996204688767
Sum Squared Residuals250144.521741429

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.115070824238089 \tabularnewline
R-squared & 0.0132412945908331 \tabularnewline
Adjusted R-squared & -0.255874715975303 \tabularnewline
F-TEST (value) & 0.0492029239099433 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 44 \tabularnewline
p-value & 0.99999874385495 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 75.3996204688767 \tabularnewline
Sum Squared Residuals & 250144.521741429 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103035&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.115070824238089[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0132412945908331[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.255874715975303[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.0492029239099433[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]44[/C][/ROW]
[ROW][C]p-value[/C][C]0.99999874385495[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]75.3996204688767[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]250144.521741429[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103035&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103035&T=3

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Regression Statistics
Multiple R0.115070824238089
R-squared0.0132412945908331
Adjusted R-squared-0.255874715975303
F-TEST (value)0.0492029239099433
F-TEST (DF numerator)12
F-TEST (DF denominator)44
p-value0.99999874385495
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation75.3996204688767
Sum Squared Residuals250144.521741429







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1167.16231.666571428571-64.5065714285712
2179.84241.768571428571-61.9285714285715
3174.44244.056571428571-69.6165714285714
4180.35230.438571428571-50.0885714285714
5193.17228.184571428571-35.0145714285715
6195.16232.558571428571-37.3985714285715
7202.43235.014571428571-32.5845714285714
8189.91244.132571428571-54.2225714285715
9195.98253.204571428571-57.2245714285714
10212.09243.611928571429-31.5219285714286
11205.81239.121928571429-33.3119285714286
12204.31247.574428571429-43.2644285714286
13196.07233.170285714286-37.1002857142858
14199.98243.272285714286-43.2922857142857
15199.1245.560285714286-46.4602857142857
16198.31231.942285714286-33.6322857142857
17195.72229.688285714286-33.9682857142857
18223.04234.062285714286-11.0222857142857
19238.41236.5182857142861.89171428571427
20259.73245.63628571428614.0937142857143
21326.54254.70828571428671.8317142857143
22335.15245.11564285714390.0343571428571
23321.81240.62564285714381.1843571428572
24368.62249.078142857143119.541857142857
25369.59234.674134.916
26425244.776180.224
27439.72247.064192.656
28362.23233.446128.784
29328.76231.19297.568
30348.55235.566112.984
31328.18238.02290.158
32329.34247.1482.2
33295.55256.21239.338
34237.38246.619357142857-9.23935714285715
35226.85242.129357142857-15.2793571428571
36220.14250.581857142857-30.4418571428571
37239.36236.1777142857143.1822857142857
38224.69246.279714285714-21.5897142857143
39230.98248.567714285714-17.5877142857143
40233.47234.949714285714-1.47971428571428
41256.7232.69571428571424.0042857142857
42253.41237.06971428571416.3402857142857
43224.95239.525714285714-14.5757142857143
44210.37248.643714285714-38.2737142857143
45191.09257.715714285714-66.6257142857143
46198.85248.123071428571-49.2730714285714
47211.04243.633071428571-32.5930714285714
48206.25252.085571428571-45.8355714285714
49201.19237.681428571429-36.4914285714286
50194.37247.783428571429-53.4134285714286
51191.08250.071428571429-58.9914285714285
52192.87236.453428571429-43.5834285714286
53181.61234.199428571429-52.5894285714285
54157.67238.573428571429-80.9034285714286
55196.14241.029428571429-44.8894285714286
56246.35250.147428571429-3.79742857142858
57271.9259.21942857142912.6805714285714

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 167.16 & 231.666571428571 & -64.5065714285712 \tabularnewline
2 & 179.84 & 241.768571428571 & -61.9285714285715 \tabularnewline
3 & 174.44 & 244.056571428571 & -69.6165714285714 \tabularnewline
4 & 180.35 & 230.438571428571 & -50.0885714285714 \tabularnewline
5 & 193.17 & 228.184571428571 & -35.0145714285715 \tabularnewline
6 & 195.16 & 232.558571428571 & -37.3985714285715 \tabularnewline
7 & 202.43 & 235.014571428571 & -32.5845714285714 \tabularnewline
8 & 189.91 & 244.132571428571 & -54.2225714285715 \tabularnewline
9 & 195.98 & 253.204571428571 & -57.2245714285714 \tabularnewline
10 & 212.09 & 243.611928571429 & -31.5219285714286 \tabularnewline
11 & 205.81 & 239.121928571429 & -33.3119285714286 \tabularnewline
12 & 204.31 & 247.574428571429 & -43.2644285714286 \tabularnewline
13 & 196.07 & 233.170285714286 & -37.1002857142858 \tabularnewline
14 & 199.98 & 243.272285714286 & -43.2922857142857 \tabularnewline
15 & 199.1 & 245.560285714286 & -46.4602857142857 \tabularnewline
16 & 198.31 & 231.942285714286 & -33.6322857142857 \tabularnewline
17 & 195.72 & 229.688285714286 & -33.9682857142857 \tabularnewline
18 & 223.04 & 234.062285714286 & -11.0222857142857 \tabularnewline
19 & 238.41 & 236.518285714286 & 1.89171428571427 \tabularnewline
20 & 259.73 & 245.636285714286 & 14.0937142857143 \tabularnewline
21 & 326.54 & 254.708285714286 & 71.8317142857143 \tabularnewline
22 & 335.15 & 245.115642857143 & 90.0343571428571 \tabularnewline
23 & 321.81 & 240.625642857143 & 81.1843571428572 \tabularnewline
24 & 368.62 & 249.078142857143 & 119.541857142857 \tabularnewline
25 & 369.59 & 234.674 & 134.916 \tabularnewline
26 & 425 & 244.776 & 180.224 \tabularnewline
27 & 439.72 & 247.064 & 192.656 \tabularnewline
28 & 362.23 & 233.446 & 128.784 \tabularnewline
29 & 328.76 & 231.192 & 97.568 \tabularnewline
30 & 348.55 & 235.566 & 112.984 \tabularnewline
31 & 328.18 & 238.022 & 90.158 \tabularnewline
32 & 329.34 & 247.14 & 82.2 \tabularnewline
33 & 295.55 & 256.212 & 39.338 \tabularnewline
34 & 237.38 & 246.619357142857 & -9.23935714285715 \tabularnewline
35 & 226.85 & 242.129357142857 & -15.2793571428571 \tabularnewline
36 & 220.14 & 250.581857142857 & -30.4418571428571 \tabularnewline
37 & 239.36 & 236.177714285714 & 3.1822857142857 \tabularnewline
38 & 224.69 & 246.279714285714 & -21.5897142857143 \tabularnewline
39 & 230.98 & 248.567714285714 & -17.5877142857143 \tabularnewline
40 & 233.47 & 234.949714285714 & -1.47971428571428 \tabularnewline
41 & 256.7 & 232.695714285714 & 24.0042857142857 \tabularnewline
42 & 253.41 & 237.069714285714 & 16.3402857142857 \tabularnewline
43 & 224.95 & 239.525714285714 & -14.5757142857143 \tabularnewline
44 & 210.37 & 248.643714285714 & -38.2737142857143 \tabularnewline
45 & 191.09 & 257.715714285714 & -66.6257142857143 \tabularnewline
46 & 198.85 & 248.123071428571 & -49.2730714285714 \tabularnewline
47 & 211.04 & 243.633071428571 & -32.5930714285714 \tabularnewline
48 & 206.25 & 252.085571428571 & -45.8355714285714 \tabularnewline
49 & 201.19 & 237.681428571429 & -36.4914285714286 \tabularnewline
50 & 194.37 & 247.783428571429 & -53.4134285714286 \tabularnewline
51 & 191.08 & 250.071428571429 & -58.9914285714285 \tabularnewline
52 & 192.87 & 236.453428571429 & -43.5834285714286 \tabularnewline
53 & 181.61 & 234.199428571429 & -52.5894285714285 \tabularnewline
54 & 157.67 & 238.573428571429 & -80.9034285714286 \tabularnewline
55 & 196.14 & 241.029428571429 & -44.8894285714286 \tabularnewline
56 & 246.35 & 250.147428571429 & -3.79742857142858 \tabularnewline
57 & 271.9 & 259.219428571429 & 12.6805714285714 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103035&T=4

[TABLE]
[ROW][C]Multiple Linear Regression - Actuals, Interpolation, and Residuals[/C][/ROW]
[ROW][C]Time or Index[/C][C]Actuals[/C][C]InterpolationForecast[/C][C]ResidualsPrediction Error[/C][/ROW]
[ROW][C]1[/C][C]167.16[/C][C]231.666571428571[/C][C]-64.5065714285712[/C][/ROW]
[ROW][C]2[/C][C]179.84[/C][C]241.768571428571[/C][C]-61.9285714285715[/C][/ROW]
[ROW][C]3[/C][C]174.44[/C][C]244.056571428571[/C][C]-69.6165714285714[/C][/ROW]
[ROW][C]4[/C][C]180.35[/C][C]230.438571428571[/C][C]-50.0885714285714[/C][/ROW]
[ROW][C]5[/C][C]193.17[/C][C]228.184571428571[/C][C]-35.0145714285715[/C][/ROW]
[ROW][C]6[/C][C]195.16[/C][C]232.558571428571[/C][C]-37.3985714285715[/C][/ROW]
[ROW][C]7[/C][C]202.43[/C][C]235.014571428571[/C][C]-32.5845714285714[/C][/ROW]
[ROW][C]8[/C][C]189.91[/C][C]244.132571428571[/C][C]-54.2225714285715[/C][/ROW]
[ROW][C]9[/C][C]195.98[/C][C]253.204571428571[/C][C]-57.2245714285714[/C][/ROW]
[ROW][C]10[/C][C]212.09[/C][C]243.611928571429[/C][C]-31.5219285714286[/C][/ROW]
[ROW][C]11[/C][C]205.81[/C][C]239.121928571429[/C][C]-33.3119285714286[/C][/ROW]
[ROW][C]12[/C][C]204.31[/C][C]247.574428571429[/C][C]-43.2644285714286[/C][/ROW]
[ROW][C]13[/C][C]196.07[/C][C]233.170285714286[/C][C]-37.1002857142858[/C][/ROW]
[ROW][C]14[/C][C]199.98[/C][C]243.272285714286[/C][C]-43.2922857142857[/C][/ROW]
[ROW][C]15[/C][C]199.1[/C][C]245.560285714286[/C][C]-46.4602857142857[/C][/ROW]
[ROW][C]16[/C][C]198.31[/C][C]231.942285714286[/C][C]-33.6322857142857[/C][/ROW]
[ROW][C]17[/C][C]195.72[/C][C]229.688285714286[/C][C]-33.9682857142857[/C][/ROW]
[ROW][C]18[/C][C]223.04[/C][C]234.062285714286[/C][C]-11.0222857142857[/C][/ROW]
[ROW][C]19[/C][C]238.41[/C][C]236.518285714286[/C][C]1.89171428571427[/C][/ROW]
[ROW][C]20[/C][C]259.73[/C][C]245.636285714286[/C][C]14.0937142857143[/C][/ROW]
[ROW][C]21[/C][C]326.54[/C][C]254.708285714286[/C][C]71.8317142857143[/C][/ROW]
[ROW][C]22[/C][C]335.15[/C][C]245.115642857143[/C][C]90.0343571428571[/C][/ROW]
[ROW][C]23[/C][C]321.81[/C][C]240.625642857143[/C][C]81.1843571428572[/C][/ROW]
[ROW][C]24[/C][C]368.62[/C][C]249.078142857143[/C][C]119.541857142857[/C][/ROW]
[ROW][C]25[/C][C]369.59[/C][C]234.674[/C][C]134.916[/C][/ROW]
[ROW][C]26[/C][C]425[/C][C]244.776[/C][C]180.224[/C][/ROW]
[ROW][C]27[/C][C]439.72[/C][C]247.064[/C][C]192.656[/C][/ROW]
[ROW][C]28[/C][C]362.23[/C][C]233.446[/C][C]128.784[/C][/ROW]
[ROW][C]29[/C][C]328.76[/C][C]231.192[/C][C]97.568[/C][/ROW]
[ROW][C]30[/C][C]348.55[/C][C]235.566[/C][C]112.984[/C][/ROW]
[ROW][C]31[/C][C]328.18[/C][C]238.022[/C][C]90.158[/C][/ROW]
[ROW][C]32[/C][C]329.34[/C][C]247.14[/C][C]82.2[/C][/ROW]
[ROW][C]33[/C][C]295.55[/C][C]256.212[/C][C]39.338[/C][/ROW]
[ROW][C]34[/C][C]237.38[/C][C]246.619357142857[/C][C]-9.23935714285715[/C][/ROW]
[ROW][C]35[/C][C]226.85[/C][C]242.129357142857[/C][C]-15.2793571428571[/C][/ROW]
[ROW][C]36[/C][C]220.14[/C][C]250.581857142857[/C][C]-30.4418571428571[/C][/ROW]
[ROW][C]37[/C][C]239.36[/C][C]236.177714285714[/C][C]3.1822857142857[/C][/ROW]
[ROW][C]38[/C][C]224.69[/C][C]246.279714285714[/C][C]-21.5897142857143[/C][/ROW]
[ROW][C]39[/C][C]230.98[/C][C]248.567714285714[/C][C]-17.5877142857143[/C][/ROW]
[ROW][C]40[/C][C]233.47[/C][C]234.949714285714[/C][C]-1.47971428571428[/C][/ROW]
[ROW][C]41[/C][C]256.7[/C][C]232.695714285714[/C][C]24.0042857142857[/C][/ROW]
[ROW][C]42[/C][C]253.41[/C][C]237.069714285714[/C][C]16.3402857142857[/C][/ROW]
[ROW][C]43[/C][C]224.95[/C][C]239.525714285714[/C][C]-14.5757142857143[/C][/ROW]
[ROW][C]44[/C][C]210.37[/C][C]248.643714285714[/C][C]-38.2737142857143[/C][/ROW]
[ROW][C]45[/C][C]191.09[/C][C]257.715714285714[/C][C]-66.6257142857143[/C][/ROW]
[ROW][C]46[/C][C]198.85[/C][C]248.123071428571[/C][C]-49.2730714285714[/C][/ROW]
[ROW][C]47[/C][C]211.04[/C][C]243.633071428571[/C][C]-32.5930714285714[/C][/ROW]
[ROW][C]48[/C][C]206.25[/C][C]252.085571428571[/C][C]-45.8355714285714[/C][/ROW]
[ROW][C]49[/C][C]201.19[/C][C]237.681428571429[/C][C]-36.4914285714286[/C][/ROW]
[ROW][C]50[/C][C]194.37[/C][C]247.783428571429[/C][C]-53.4134285714286[/C][/ROW]
[ROW][C]51[/C][C]191.08[/C][C]250.071428571429[/C][C]-58.9914285714285[/C][/ROW]
[ROW][C]52[/C][C]192.87[/C][C]236.453428571429[/C][C]-43.5834285714286[/C][/ROW]
[ROW][C]53[/C][C]181.61[/C][C]234.199428571429[/C][C]-52.5894285714285[/C][/ROW]
[ROW][C]54[/C][C]157.67[/C][C]238.573428571429[/C][C]-80.9034285714286[/C][/ROW]
[ROW][C]55[/C][C]196.14[/C][C]241.029428571429[/C][C]-44.8894285714286[/C][/ROW]
[ROW][C]56[/C][C]246.35[/C][C]250.147428571429[/C][C]-3.79742857142858[/C][/ROW]
[ROW][C]57[/C][C]271.9[/C][C]259.219428571429[/C][C]12.6805714285714[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103035&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103035&T=4

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1167.16231.666571428571-64.5065714285712
2179.84241.768571428571-61.9285714285715
3174.44244.056571428571-69.6165714285714
4180.35230.438571428571-50.0885714285714
5193.17228.184571428571-35.0145714285715
6195.16232.558571428571-37.3985714285715
7202.43235.014571428571-32.5845714285714
8189.91244.132571428571-54.2225714285715
9195.98253.204571428571-57.2245714285714
10212.09243.611928571429-31.5219285714286
11205.81239.121928571429-33.3119285714286
12204.31247.574428571429-43.2644285714286
13196.07233.170285714286-37.1002857142858
14199.98243.272285714286-43.2922857142857
15199.1245.560285714286-46.4602857142857
16198.31231.942285714286-33.6322857142857
17195.72229.688285714286-33.9682857142857
18223.04234.062285714286-11.0222857142857
19238.41236.5182857142861.89171428571427
20259.73245.63628571428614.0937142857143
21326.54254.70828571428671.8317142857143
22335.15245.11564285714390.0343571428571
23321.81240.62564285714381.1843571428572
24368.62249.078142857143119.541857142857
25369.59234.674134.916
26425244.776180.224
27439.72247.064192.656
28362.23233.446128.784
29328.76231.19297.568
30348.55235.566112.984
31328.18238.02290.158
32329.34247.1482.2
33295.55256.21239.338
34237.38246.619357142857-9.23935714285715
35226.85242.129357142857-15.2793571428571
36220.14250.581857142857-30.4418571428571
37239.36236.1777142857143.1822857142857
38224.69246.279714285714-21.5897142857143
39230.98248.567714285714-17.5877142857143
40233.47234.949714285714-1.47971428571428
41256.7232.69571428571424.0042857142857
42253.41237.06971428571416.3402857142857
43224.95239.525714285714-14.5757142857143
44210.37248.643714285714-38.2737142857143
45191.09257.715714285714-66.6257142857143
46198.85248.123071428571-49.2730714285714
47211.04243.633071428571-32.5930714285714
48206.25252.085571428571-45.8355714285714
49201.19237.681428571429-36.4914285714286
50194.37247.783428571429-53.4134285714286
51191.08250.071428571429-58.9914285714285
52192.87236.453428571429-43.5834285714286
53181.61234.199428571429-52.5894285714285
54157.67238.573428571429-80.9034285714286
55196.14241.029428571429-44.8894285714286
56246.35250.147428571429-3.79742857142858
57271.9259.21942857142912.6805714285714







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.000228760162409490.000457520324818980.99977123983759
170.000443131965778780.000886263931557560.999556868034221
189.80847139554618e-050.0001961694279109240.999901915286045
195.23562646792467e-050.0001047125293584930.99994764373532
200.001369741533516840.002739483067033690.998630258466483
210.06625547353146240.1325109470629250.933744526468538
220.1141321267360210.2282642534720430.885867873263979
230.120027086770030.240054173540060.87997291322997
240.2320169223654380.4640338447308760.767983077634562
250.2988023323723120.5976046647446240.701197667627688
260.583340669974090.8333186600518210.416659330025911
270.8910380447644290.2179239104711420.108961955235571
280.8949359582328930.2101280835342150.105064041767107
290.8595544880997450.280891023800510.140445511900255
300.886868929392570.2262621412148570.113131070607429
310.9001460513674850.1997078972650290.0998539486325146
320.9047459399529580.1905081200940830.0952540600470416
330.9133900297263150.1732199405473710.0866099702736853
340.9451556389997470.1096887220005060.054844361000253
350.9474746065292030.1050507869415930.0525253934707965
360.9465887477096060.1068225045807880.053411252290394
370.9250897209606220.1498205580787570.0749102790393784
380.8963894878511720.2072210242976560.103610512148828
390.8427423115239670.3145153769520650.157257688476033
400.7453793206790440.5092413586419120.254620679320956
410.6635536313262330.6728927373475340.336446368673767

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.00022876016240949 & 0.00045752032481898 & 0.99977123983759 \tabularnewline
17 & 0.00044313196577878 & 0.00088626393155756 & 0.999556868034221 \tabularnewline
18 & 9.80847139554618e-05 & 0.000196169427910924 & 0.999901915286045 \tabularnewline
19 & 5.23562646792467e-05 & 0.000104712529358493 & 0.99994764373532 \tabularnewline
20 & 0.00136974153351684 & 0.00273948306703369 & 0.998630258466483 \tabularnewline
21 & 0.0662554735314624 & 0.132510947062925 & 0.933744526468538 \tabularnewline
22 & 0.114132126736021 & 0.228264253472043 & 0.885867873263979 \tabularnewline
23 & 0.12002708677003 & 0.24005417354006 & 0.87997291322997 \tabularnewline
24 & 0.232016922365438 & 0.464033844730876 & 0.767983077634562 \tabularnewline
25 & 0.298802332372312 & 0.597604664744624 & 0.701197667627688 \tabularnewline
26 & 0.58334066997409 & 0.833318660051821 & 0.416659330025911 \tabularnewline
27 & 0.891038044764429 & 0.217923910471142 & 0.108961955235571 \tabularnewline
28 & 0.894935958232893 & 0.210128083534215 & 0.105064041767107 \tabularnewline
29 & 0.859554488099745 & 0.28089102380051 & 0.140445511900255 \tabularnewline
30 & 0.88686892939257 & 0.226262141214857 & 0.113131070607429 \tabularnewline
31 & 0.900146051367485 & 0.199707897265029 & 0.0998539486325146 \tabularnewline
32 & 0.904745939952958 & 0.190508120094083 & 0.0952540600470416 \tabularnewline
33 & 0.913390029726315 & 0.173219940547371 & 0.0866099702736853 \tabularnewline
34 & 0.945155638999747 & 0.109688722000506 & 0.054844361000253 \tabularnewline
35 & 0.947474606529203 & 0.105050786941593 & 0.0525253934707965 \tabularnewline
36 & 0.946588747709606 & 0.106822504580788 & 0.053411252290394 \tabularnewline
37 & 0.925089720960622 & 0.149820558078757 & 0.0749102790393784 \tabularnewline
38 & 0.896389487851172 & 0.207221024297656 & 0.103610512148828 \tabularnewline
39 & 0.842742311523967 & 0.314515376952065 & 0.157257688476033 \tabularnewline
40 & 0.745379320679044 & 0.509241358641912 & 0.254620679320956 \tabularnewline
41 & 0.663553631326233 & 0.672892737347534 & 0.336446368673767 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103035&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.00022876016240949[/C][C]0.00045752032481898[/C][C]0.99977123983759[/C][/ROW]
[ROW][C]17[/C][C]0.00044313196577878[/C][C]0.00088626393155756[/C][C]0.999556868034221[/C][/ROW]
[ROW][C]18[/C][C]9.80847139554618e-05[/C][C]0.000196169427910924[/C][C]0.999901915286045[/C][/ROW]
[ROW][C]19[/C][C]5.23562646792467e-05[/C][C]0.000104712529358493[/C][C]0.99994764373532[/C][/ROW]
[ROW][C]20[/C][C]0.00136974153351684[/C][C]0.00273948306703369[/C][C]0.998630258466483[/C][/ROW]
[ROW][C]21[/C][C]0.0662554735314624[/C][C]0.132510947062925[/C][C]0.933744526468538[/C][/ROW]
[ROW][C]22[/C][C]0.114132126736021[/C][C]0.228264253472043[/C][C]0.885867873263979[/C][/ROW]
[ROW][C]23[/C][C]0.12002708677003[/C][C]0.24005417354006[/C][C]0.87997291322997[/C][/ROW]
[ROW][C]24[/C][C]0.232016922365438[/C][C]0.464033844730876[/C][C]0.767983077634562[/C][/ROW]
[ROW][C]25[/C][C]0.298802332372312[/C][C]0.597604664744624[/C][C]0.701197667627688[/C][/ROW]
[ROW][C]26[/C][C]0.58334066997409[/C][C]0.833318660051821[/C][C]0.416659330025911[/C][/ROW]
[ROW][C]27[/C][C]0.891038044764429[/C][C]0.217923910471142[/C][C]0.108961955235571[/C][/ROW]
[ROW][C]28[/C][C]0.894935958232893[/C][C]0.210128083534215[/C][C]0.105064041767107[/C][/ROW]
[ROW][C]29[/C][C]0.859554488099745[/C][C]0.28089102380051[/C][C]0.140445511900255[/C][/ROW]
[ROW][C]30[/C][C]0.88686892939257[/C][C]0.226262141214857[/C][C]0.113131070607429[/C][/ROW]
[ROW][C]31[/C][C]0.900146051367485[/C][C]0.199707897265029[/C][C]0.0998539486325146[/C][/ROW]
[ROW][C]32[/C][C]0.904745939952958[/C][C]0.190508120094083[/C][C]0.0952540600470416[/C][/ROW]
[ROW][C]33[/C][C]0.913390029726315[/C][C]0.173219940547371[/C][C]0.0866099702736853[/C][/ROW]
[ROW][C]34[/C][C]0.945155638999747[/C][C]0.109688722000506[/C][C]0.054844361000253[/C][/ROW]
[ROW][C]35[/C][C]0.947474606529203[/C][C]0.105050786941593[/C][C]0.0525253934707965[/C][/ROW]
[ROW][C]36[/C][C]0.946588747709606[/C][C]0.106822504580788[/C][C]0.053411252290394[/C][/ROW]
[ROW][C]37[/C][C]0.925089720960622[/C][C]0.149820558078757[/C][C]0.0749102790393784[/C][/ROW]
[ROW][C]38[/C][C]0.896389487851172[/C][C]0.207221024297656[/C][C]0.103610512148828[/C][/ROW]
[ROW][C]39[/C][C]0.842742311523967[/C][C]0.314515376952065[/C][C]0.157257688476033[/C][/ROW]
[ROW][C]40[/C][C]0.745379320679044[/C][C]0.509241358641912[/C][C]0.254620679320956[/C][/ROW]
[ROW][C]41[/C][C]0.663553631326233[/C][C]0.672892737347534[/C][C]0.336446368673767[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103035&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103035&T=5

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.000228760162409490.000457520324818980.99977123983759
170.000443131965778780.000886263931557560.999556868034221
189.80847139554618e-050.0001961694279109240.999901915286045
195.23562646792467e-050.0001047125293584930.99994764373532
200.001369741533516840.002739483067033690.998630258466483
210.06625547353146240.1325109470629250.933744526468538
220.1141321267360210.2282642534720430.885867873263979
230.120027086770030.240054173540060.87997291322997
240.2320169223654380.4640338447308760.767983077634562
250.2988023323723120.5976046647446240.701197667627688
260.583340669974090.8333186600518210.416659330025911
270.8910380447644290.2179239104711420.108961955235571
280.8949359582328930.2101280835342150.105064041767107
290.8595544880997450.280891023800510.140445511900255
300.886868929392570.2262621412148570.113131070607429
310.9001460513674850.1997078972650290.0998539486325146
320.9047459399529580.1905081200940830.0952540600470416
330.9133900297263150.1732199405473710.0866099702736853
340.9451556389997470.1096887220005060.054844361000253
350.9474746065292030.1050507869415930.0525253934707965
360.9465887477096060.1068225045807880.053411252290394
370.9250897209606220.1498205580787570.0749102790393784
380.8963894878511720.2072210242976560.103610512148828
390.8427423115239670.3145153769520650.157257688476033
400.7453793206790440.5092413586419120.254620679320956
410.6635536313262330.6728927373475340.336446368673767







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level50.192307692307692NOK
5% type I error level50.192307692307692NOK
10% type I error level50.192307692307692NOK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 5 & 0.192307692307692 & NOK \tabularnewline
5% type I error level & 5 & 0.192307692307692 & NOK \tabularnewline
10% type I error level & 5 & 0.192307692307692 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=103035&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]5[/C][C]0.192307692307692[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]5[/C][C]0.192307692307692[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]5[/C][C]0.192307692307692[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=103035&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=103035&T=6

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level50.192307692307692NOK
5% type I error level50.192307692307692NOK
10% type I error level50.192307692307692NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}