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, 21 Dec 2009 02:25:37 -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/21/t1261397441k3asgmgtfhipo4t.htm/, Retrieved Sun, 05 May 2024 16:39:43 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70122, Retrieved Sun, 05 May 2024 16:39:43 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact146
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [] [2009-11-18 12:11:35] [6ba840d2473f9a55d7b3e13093db69b8]
-    D      [Multiple Regression] [] [2009-12-15 15:01:33] [6ba840d2473f9a55d7b3e13093db69b8]
-    D          [Multiple Regression] [] [2009-12-21 09:25:37] [830aa0f7fb5acd5849dbc0c6ad889830] [Current]
Feedback Forum

Post a new message
Dataseries X:
2.6	30.5
2.4	28.6
2.5	30
2.7	28.2
3.2	27.6
2.8	24.9
2.8	23.8
3	24.3
3.1	23.6
3.1	24.2
3	28.1
2.4	30.1
2.7	31.1
3	32
2.7	32.4
2.7	34
2	35.1
2.4	37.1
2.6	37.3
2.4	38.1
2.3	39.5
2.4	38.3
2.5	37.3
2.6	38.7
2.6	37.5
2.6	38.7
2.7	37.9
2.8	36.6
2.6	35.5
2.6	37.6
2	38.6
2	40.3
2.1	39
1.9	36.8
2	36.5
2.5	34.1
2.9	34.2
3.3	31.9
3.5	33.7
3.8	33.5
4.6	33.8
4.4	29.9
5.3	32.3
5.8	30.5
5.9	28.5
5.6	29
5.8	23.8
5.5	17.9
4.6	9.9
4.2	3
4	4.2
3.5	0.4
2.3	0
2.2	2.4
1.4	4.2
0.6	8.2
0	9
0.5	13.6
0.1	14
0.1	17.6




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 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 & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70122&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]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70122&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70122&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'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 1.72689738135436 + 0.0180325925060919X[t] + 0.563065517828795M1[t] + 0.604580838282066M2[t] + 0.559211418219497M3[t] + 0.588103923918503M4[t] + 0.419685140811662M5[t] + 0.349102446604088M6[t] + 0.262651070991155M7[t] + 0.172953828727124M8[t] + 0.0885022159716228M9[t] + 0.0892638773611261M10[t] + 0.0662548720061118M11[t] + 0.0109433460576948t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  1.72689738135436 +  0.0180325925060919X[t] +  0.563065517828795M1[t] +  0.604580838282066M2[t] +  0.559211418219497M3[t] +  0.588103923918503M4[t] +  0.419685140811662M5[t] +  0.349102446604088M6[t] +  0.262651070991155M7[t] +  0.172953828727124M8[t] +  0.0885022159716228M9[t] +  0.0892638773611261M10[t] +  0.0662548720061118M11[t] +  0.0109433460576948t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70122&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  1.72689738135436 +  0.0180325925060919X[t] +  0.563065517828795M1[t] +  0.604580838282066M2[t] +  0.559211418219497M3[t] +  0.588103923918503M4[t] +  0.419685140811662M5[t] +  0.349102446604088M6[t] +  0.262651070991155M7[t] +  0.172953828727124M8[t] +  0.0885022159716228M9[t] +  0.0892638773611261M10[t] +  0.0662548720061118M11[t] +  0.0109433460576948t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70122&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70122&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
Y[t] = + 1.72689738135436 + 0.0180325925060919X[t] + 0.563065517828795M1[t] + 0.604580838282066M2[t] + 0.559211418219497M3[t] + 0.588103923918503M4[t] + 0.419685140811662M5[t] + 0.349102446604088M6[t] + 0.262651070991155M7[t] + 0.172953828727124M8[t] + 0.0885022159716228M9[t] + 0.0892638773611261M10[t] + 0.0662548720061118M11[t] + 0.0109433460576948t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1.726897381354361.1407281.51390.1369040.068452
X0.01803259250609190.0202370.89110.3775190.18876
M10.5630655178287950.9454770.59550.5544040.277202
M20.6045808382820660.9464870.63880.5261450.263073
M30.5592114182194970.9431460.59290.5561380.278069
M40.5881039239185030.94320.62350.5360230.268011
M50.4196851408116620.9417710.44560.6579520.328976
M60.3491024466040880.9403090.37130.7121460.356073
M70.2626510709911550.9379690.280.7807170.390358
M80.1729538287271240.9363510.18470.8542680.427134
M90.08850221597162280.9358710.09460.925070.462535
M100.08926387736112610.9353560.09540.9243850.462193
M110.06625487200611180.9351560.07080.9438250.471913
t0.01094334605769480.0136210.80340.4258630.212931

\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) & 1.72689738135436 & 1.140728 & 1.5139 & 0.136904 & 0.068452 \tabularnewline
X & 0.0180325925060919 & 0.020237 & 0.8911 & 0.377519 & 0.18876 \tabularnewline
M1 & 0.563065517828795 & 0.945477 & 0.5955 & 0.554404 & 0.277202 \tabularnewline
M2 & 0.604580838282066 & 0.946487 & 0.6388 & 0.526145 & 0.263073 \tabularnewline
M3 & 0.559211418219497 & 0.943146 & 0.5929 & 0.556138 & 0.278069 \tabularnewline
M4 & 0.588103923918503 & 0.9432 & 0.6235 & 0.536023 & 0.268011 \tabularnewline
M5 & 0.419685140811662 & 0.941771 & 0.4456 & 0.657952 & 0.328976 \tabularnewline
M6 & 0.349102446604088 & 0.940309 & 0.3713 & 0.712146 & 0.356073 \tabularnewline
M7 & 0.262651070991155 & 0.937969 & 0.28 & 0.780717 & 0.390358 \tabularnewline
M8 & 0.172953828727124 & 0.936351 & 0.1847 & 0.854268 & 0.427134 \tabularnewline
M9 & 0.0885022159716228 & 0.935871 & 0.0946 & 0.92507 & 0.462535 \tabularnewline
M10 & 0.0892638773611261 & 0.935356 & 0.0954 & 0.924385 & 0.462193 \tabularnewline
M11 & 0.0662548720061118 & 0.935156 & 0.0708 & 0.943825 & 0.471913 \tabularnewline
t & 0.0109433460576948 & 0.013621 & 0.8034 & 0.425863 & 0.212931 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70122&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]1.72689738135436[/C][C]1.140728[/C][C]1.5139[/C][C]0.136904[/C][C]0.068452[/C][/ROW]
[ROW][C]X[/C][C]0.0180325925060919[/C][C]0.020237[/C][C]0.8911[/C][C]0.377519[/C][C]0.18876[/C][/ROW]
[ROW][C]M1[/C][C]0.563065517828795[/C][C]0.945477[/C][C]0.5955[/C][C]0.554404[/C][C]0.277202[/C][/ROW]
[ROW][C]M2[/C][C]0.604580838282066[/C][C]0.946487[/C][C]0.6388[/C][C]0.526145[/C][C]0.263073[/C][/ROW]
[ROW][C]M3[/C][C]0.559211418219497[/C][C]0.943146[/C][C]0.5929[/C][C]0.556138[/C][C]0.278069[/C][/ROW]
[ROW][C]M4[/C][C]0.588103923918503[/C][C]0.9432[/C][C]0.6235[/C][C]0.536023[/C][C]0.268011[/C][/ROW]
[ROW][C]M5[/C][C]0.419685140811662[/C][C]0.941771[/C][C]0.4456[/C][C]0.657952[/C][C]0.328976[/C][/ROW]
[ROW][C]M6[/C][C]0.349102446604088[/C][C]0.940309[/C][C]0.3713[/C][C]0.712146[/C][C]0.356073[/C][/ROW]
[ROW][C]M7[/C][C]0.262651070991155[/C][C]0.937969[/C][C]0.28[/C][C]0.780717[/C][C]0.390358[/C][/ROW]
[ROW][C]M8[/C][C]0.172953828727124[/C][C]0.936351[/C][C]0.1847[/C][C]0.854268[/C][C]0.427134[/C][/ROW]
[ROW][C]M9[/C][C]0.0885022159716228[/C][C]0.935871[/C][C]0.0946[/C][C]0.92507[/C][C]0.462535[/C][/ROW]
[ROW][C]M10[/C][C]0.0892638773611261[/C][C]0.935356[/C][C]0.0954[/C][C]0.924385[/C][C]0.462193[/C][/ROW]
[ROW][C]M11[/C][C]0.0662548720061118[/C][C]0.935156[/C][C]0.0708[/C][C]0.943825[/C][C]0.471913[/C][/ROW]
[ROW][C]t[/C][C]0.0109433460576948[/C][C]0.013621[/C][C]0.8034[/C][C]0.425863[/C][C]0.212931[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70122&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70122&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)1.726897381354361.1407281.51390.1369040.068452
X0.01803259250609190.0202370.89110.3775190.18876
M10.5630655178287950.9454770.59550.5544040.277202
M20.6045808382820660.9464870.63880.5261450.263073
M30.5592114182194970.9431460.59290.5561380.278069
M40.5881039239185030.94320.62350.5360230.268011
M50.4196851408116620.9417710.44560.6579520.328976
M60.3491024466040880.9403090.37130.7121460.356073
M70.2626510709911550.9379690.280.7807170.390358
M80.1729538287271240.9363510.18470.8542680.427134
M90.08850221597162280.9358710.09460.925070.462535
M100.08926387736112610.9353560.09540.9243850.462193
M110.06625487200611180.9351560.07080.9438250.471913
t0.01094334605769480.0136210.80340.4258630.212931







Multiple Linear Regression - Regression Statistics
Multiple R0.193509298948104
R-squared0.0374458487793868
Adjusted R-squared-0.234580324391656
F-TEST (value)0.137655315820812
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.999798347790672
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.47849940054841
Sum Squared Residuals100.554181961413

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.193509298948104 \tabularnewline
R-squared & 0.0374458487793868 \tabularnewline
Adjusted R-squared & -0.234580324391656 \tabularnewline
F-TEST (value) & 0.137655315820812 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0.999798347790672 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1.47849940054841 \tabularnewline
Sum Squared Residuals & 100.554181961413 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70122&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.193509298948104[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0374458487793868[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.234580324391656[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.137655315820812[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0.999798347790672[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1.47849940054841[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]100.554181961413[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70122&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70122&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.193509298948104
R-squared0.0374458487793868
Adjusted R-squared-0.234580324391656
F-TEST (value)0.137655315820812
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0.999798347790672
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.47849940054841
Sum Squared Residuals100.554181961413







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12.62.85090031667666-0.250900316676658
22.42.86909705742605-0.469097057426048
32.52.8599166129297-0.359916612929702
42.72.86729379817544-0.167293798175439
53.22.698998805622640.501001194377364
62.82.590671457706310.209328542293690
72.82.495327576394370.30467242360563
832.425589976441080.57441002355892
93.12.339458894989010.76054110501099
103.12.361983457939860.738016542060138
1132.42024490941630.5797550905837
122.42.40099856848007-0.000998568480067793
132.72.99304002487265-0.293040024872649
1433.06172802463910-0.0617280246390973
152.73.03451498763666-0.334514987636661
162.73.10320298740311-0.403202987403108
1722.96556340211066-0.965563402110662
182.42.94198923897297-0.541989238972968
192.62.87008772791895-0.270087727918947
202.42.80575990571749-0.405759905717485
212.32.75749726852821-0.457497268528208
222.42.74756316496809-0.347563164968095
232.52.71746491316468-0.217464913164683
242.62.68739901672480-0.0873990167247952
252.63.23976876960397-0.639768769603974
262.63.31386654712225-0.71386654712225
272.73.2650143991125-0.565014399112503
282.83.28140788061128-0.481407880611284
292.63.10409659180544-0.504096591805436
302.63.08232568791835-0.482325687918351
3123.02485025086920-1.02485025086920
3222.97675176192322-0.976751761923225
332.12.8798011249675-0.779801124967498
341.92.85183442890129-0.951834428901294
3522.83435899185215-0.834358991852147
362.52.73576924388911-0.235769243889109
372.93.31158136702621-0.411581367026208
383.33.32256507077316-0.022565070773162
393.53.320597663279250.179402336720746
403.83.356826996534740.443173003465263
414.63.204761337237421.39523866276258
424.43.074794878313781.32520512168622
435.33.042565070773162.25743492922684
445.82.931352508055862.86864749194414
455.92.821779056345873.07822094365413
465.62.842500360046112.75749963995389
475.82.736665219717123.06333478028288
485.52.574961397982762.92503860201724
494.63.004709521820511.59529047817949
504.22.932743300039441.26725669996056
5142.919956337041881.08004366295812
523.52.891268337275430.608731662724568
532.32.72657986322385-0.426579863223848
542.22.71021873708859-0.51021873708859
551.42.66716937404432-1.26716937404432
560.62.66054584786235-2.06054584786235
5702.60146365516942-2.60146365516942
580.52.69611858814464-2.19611858814464
590.12.69126596584975-2.59126596584975
600.12.70087177292327-2.60087177292327

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2.6 & 2.85090031667666 & -0.250900316676658 \tabularnewline
2 & 2.4 & 2.86909705742605 & -0.469097057426048 \tabularnewline
3 & 2.5 & 2.8599166129297 & -0.359916612929702 \tabularnewline
4 & 2.7 & 2.86729379817544 & -0.167293798175439 \tabularnewline
5 & 3.2 & 2.69899880562264 & 0.501001194377364 \tabularnewline
6 & 2.8 & 2.59067145770631 & 0.209328542293690 \tabularnewline
7 & 2.8 & 2.49532757639437 & 0.30467242360563 \tabularnewline
8 & 3 & 2.42558997644108 & 0.57441002355892 \tabularnewline
9 & 3.1 & 2.33945889498901 & 0.76054110501099 \tabularnewline
10 & 3.1 & 2.36198345793986 & 0.738016542060138 \tabularnewline
11 & 3 & 2.4202449094163 & 0.5797550905837 \tabularnewline
12 & 2.4 & 2.40099856848007 & -0.000998568480067793 \tabularnewline
13 & 2.7 & 2.99304002487265 & -0.293040024872649 \tabularnewline
14 & 3 & 3.06172802463910 & -0.0617280246390973 \tabularnewline
15 & 2.7 & 3.03451498763666 & -0.334514987636661 \tabularnewline
16 & 2.7 & 3.10320298740311 & -0.403202987403108 \tabularnewline
17 & 2 & 2.96556340211066 & -0.965563402110662 \tabularnewline
18 & 2.4 & 2.94198923897297 & -0.541989238972968 \tabularnewline
19 & 2.6 & 2.87008772791895 & -0.270087727918947 \tabularnewline
20 & 2.4 & 2.80575990571749 & -0.405759905717485 \tabularnewline
21 & 2.3 & 2.75749726852821 & -0.457497268528208 \tabularnewline
22 & 2.4 & 2.74756316496809 & -0.347563164968095 \tabularnewline
23 & 2.5 & 2.71746491316468 & -0.217464913164683 \tabularnewline
24 & 2.6 & 2.68739901672480 & -0.0873990167247952 \tabularnewline
25 & 2.6 & 3.23976876960397 & -0.639768769603974 \tabularnewline
26 & 2.6 & 3.31386654712225 & -0.71386654712225 \tabularnewline
27 & 2.7 & 3.2650143991125 & -0.565014399112503 \tabularnewline
28 & 2.8 & 3.28140788061128 & -0.481407880611284 \tabularnewline
29 & 2.6 & 3.10409659180544 & -0.504096591805436 \tabularnewline
30 & 2.6 & 3.08232568791835 & -0.482325687918351 \tabularnewline
31 & 2 & 3.02485025086920 & -1.02485025086920 \tabularnewline
32 & 2 & 2.97675176192322 & -0.976751761923225 \tabularnewline
33 & 2.1 & 2.8798011249675 & -0.779801124967498 \tabularnewline
34 & 1.9 & 2.85183442890129 & -0.951834428901294 \tabularnewline
35 & 2 & 2.83435899185215 & -0.834358991852147 \tabularnewline
36 & 2.5 & 2.73576924388911 & -0.235769243889109 \tabularnewline
37 & 2.9 & 3.31158136702621 & -0.411581367026208 \tabularnewline
38 & 3.3 & 3.32256507077316 & -0.022565070773162 \tabularnewline
39 & 3.5 & 3.32059766327925 & 0.179402336720746 \tabularnewline
40 & 3.8 & 3.35682699653474 & 0.443173003465263 \tabularnewline
41 & 4.6 & 3.20476133723742 & 1.39523866276258 \tabularnewline
42 & 4.4 & 3.07479487831378 & 1.32520512168622 \tabularnewline
43 & 5.3 & 3.04256507077316 & 2.25743492922684 \tabularnewline
44 & 5.8 & 2.93135250805586 & 2.86864749194414 \tabularnewline
45 & 5.9 & 2.82177905634587 & 3.07822094365413 \tabularnewline
46 & 5.6 & 2.84250036004611 & 2.75749963995389 \tabularnewline
47 & 5.8 & 2.73666521971712 & 3.06333478028288 \tabularnewline
48 & 5.5 & 2.57496139798276 & 2.92503860201724 \tabularnewline
49 & 4.6 & 3.00470952182051 & 1.59529047817949 \tabularnewline
50 & 4.2 & 2.93274330003944 & 1.26725669996056 \tabularnewline
51 & 4 & 2.91995633704188 & 1.08004366295812 \tabularnewline
52 & 3.5 & 2.89126833727543 & 0.608731662724568 \tabularnewline
53 & 2.3 & 2.72657986322385 & -0.426579863223848 \tabularnewline
54 & 2.2 & 2.71021873708859 & -0.51021873708859 \tabularnewline
55 & 1.4 & 2.66716937404432 & -1.26716937404432 \tabularnewline
56 & 0.6 & 2.66054584786235 & -2.06054584786235 \tabularnewline
57 & 0 & 2.60146365516942 & -2.60146365516942 \tabularnewline
58 & 0.5 & 2.69611858814464 & -2.19611858814464 \tabularnewline
59 & 0.1 & 2.69126596584975 & -2.59126596584975 \tabularnewline
60 & 0.1 & 2.70087177292327 & -2.60087177292327 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70122&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]2.6[/C][C]2.85090031667666[/C][C]-0.250900316676658[/C][/ROW]
[ROW][C]2[/C][C]2.4[/C][C]2.86909705742605[/C][C]-0.469097057426048[/C][/ROW]
[ROW][C]3[/C][C]2.5[/C][C]2.8599166129297[/C][C]-0.359916612929702[/C][/ROW]
[ROW][C]4[/C][C]2.7[/C][C]2.86729379817544[/C][C]-0.167293798175439[/C][/ROW]
[ROW][C]5[/C][C]3.2[/C][C]2.69899880562264[/C][C]0.501001194377364[/C][/ROW]
[ROW][C]6[/C][C]2.8[/C][C]2.59067145770631[/C][C]0.209328542293690[/C][/ROW]
[ROW][C]7[/C][C]2.8[/C][C]2.49532757639437[/C][C]0.30467242360563[/C][/ROW]
[ROW][C]8[/C][C]3[/C][C]2.42558997644108[/C][C]0.57441002355892[/C][/ROW]
[ROW][C]9[/C][C]3.1[/C][C]2.33945889498901[/C][C]0.76054110501099[/C][/ROW]
[ROW][C]10[/C][C]3.1[/C][C]2.36198345793986[/C][C]0.738016542060138[/C][/ROW]
[ROW][C]11[/C][C]3[/C][C]2.4202449094163[/C][C]0.5797550905837[/C][/ROW]
[ROW][C]12[/C][C]2.4[/C][C]2.40099856848007[/C][C]-0.000998568480067793[/C][/ROW]
[ROW][C]13[/C][C]2.7[/C][C]2.99304002487265[/C][C]-0.293040024872649[/C][/ROW]
[ROW][C]14[/C][C]3[/C][C]3.06172802463910[/C][C]-0.0617280246390973[/C][/ROW]
[ROW][C]15[/C][C]2.7[/C][C]3.03451498763666[/C][C]-0.334514987636661[/C][/ROW]
[ROW][C]16[/C][C]2.7[/C][C]3.10320298740311[/C][C]-0.403202987403108[/C][/ROW]
[ROW][C]17[/C][C]2[/C][C]2.96556340211066[/C][C]-0.965563402110662[/C][/ROW]
[ROW][C]18[/C][C]2.4[/C][C]2.94198923897297[/C][C]-0.541989238972968[/C][/ROW]
[ROW][C]19[/C][C]2.6[/C][C]2.87008772791895[/C][C]-0.270087727918947[/C][/ROW]
[ROW][C]20[/C][C]2.4[/C][C]2.80575990571749[/C][C]-0.405759905717485[/C][/ROW]
[ROW][C]21[/C][C]2.3[/C][C]2.75749726852821[/C][C]-0.457497268528208[/C][/ROW]
[ROW][C]22[/C][C]2.4[/C][C]2.74756316496809[/C][C]-0.347563164968095[/C][/ROW]
[ROW][C]23[/C][C]2.5[/C][C]2.71746491316468[/C][C]-0.217464913164683[/C][/ROW]
[ROW][C]24[/C][C]2.6[/C][C]2.68739901672480[/C][C]-0.0873990167247952[/C][/ROW]
[ROW][C]25[/C][C]2.6[/C][C]3.23976876960397[/C][C]-0.639768769603974[/C][/ROW]
[ROW][C]26[/C][C]2.6[/C][C]3.31386654712225[/C][C]-0.71386654712225[/C][/ROW]
[ROW][C]27[/C][C]2.7[/C][C]3.2650143991125[/C][C]-0.565014399112503[/C][/ROW]
[ROW][C]28[/C][C]2.8[/C][C]3.28140788061128[/C][C]-0.481407880611284[/C][/ROW]
[ROW][C]29[/C][C]2.6[/C][C]3.10409659180544[/C][C]-0.504096591805436[/C][/ROW]
[ROW][C]30[/C][C]2.6[/C][C]3.08232568791835[/C][C]-0.482325687918351[/C][/ROW]
[ROW][C]31[/C][C]2[/C][C]3.02485025086920[/C][C]-1.02485025086920[/C][/ROW]
[ROW][C]32[/C][C]2[/C][C]2.97675176192322[/C][C]-0.976751761923225[/C][/ROW]
[ROW][C]33[/C][C]2.1[/C][C]2.8798011249675[/C][C]-0.779801124967498[/C][/ROW]
[ROW][C]34[/C][C]1.9[/C][C]2.85183442890129[/C][C]-0.951834428901294[/C][/ROW]
[ROW][C]35[/C][C]2[/C][C]2.83435899185215[/C][C]-0.834358991852147[/C][/ROW]
[ROW][C]36[/C][C]2.5[/C][C]2.73576924388911[/C][C]-0.235769243889109[/C][/ROW]
[ROW][C]37[/C][C]2.9[/C][C]3.31158136702621[/C][C]-0.411581367026208[/C][/ROW]
[ROW][C]38[/C][C]3.3[/C][C]3.32256507077316[/C][C]-0.022565070773162[/C][/ROW]
[ROW][C]39[/C][C]3.5[/C][C]3.32059766327925[/C][C]0.179402336720746[/C][/ROW]
[ROW][C]40[/C][C]3.8[/C][C]3.35682699653474[/C][C]0.443173003465263[/C][/ROW]
[ROW][C]41[/C][C]4.6[/C][C]3.20476133723742[/C][C]1.39523866276258[/C][/ROW]
[ROW][C]42[/C][C]4.4[/C][C]3.07479487831378[/C][C]1.32520512168622[/C][/ROW]
[ROW][C]43[/C][C]5.3[/C][C]3.04256507077316[/C][C]2.25743492922684[/C][/ROW]
[ROW][C]44[/C][C]5.8[/C][C]2.93135250805586[/C][C]2.86864749194414[/C][/ROW]
[ROW][C]45[/C][C]5.9[/C][C]2.82177905634587[/C][C]3.07822094365413[/C][/ROW]
[ROW][C]46[/C][C]5.6[/C][C]2.84250036004611[/C][C]2.75749963995389[/C][/ROW]
[ROW][C]47[/C][C]5.8[/C][C]2.73666521971712[/C][C]3.06333478028288[/C][/ROW]
[ROW][C]48[/C][C]5.5[/C][C]2.57496139798276[/C][C]2.92503860201724[/C][/ROW]
[ROW][C]49[/C][C]4.6[/C][C]3.00470952182051[/C][C]1.59529047817949[/C][/ROW]
[ROW][C]50[/C][C]4.2[/C][C]2.93274330003944[/C][C]1.26725669996056[/C][/ROW]
[ROW][C]51[/C][C]4[/C][C]2.91995633704188[/C][C]1.08004366295812[/C][/ROW]
[ROW][C]52[/C][C]3.5[/C][C]2.89126833727543[/C][C]0.608731662724568[/C][/ROW]
[ROW][C]53[/C][C]2.3[/C][C]2.72657986322385[/C][C]-0.426579863223848[/C][/ROW]
[ROW][C]54[/C][C]2.2[/C][C]2.71021873708859[/C][C]-0.51021873708859[/C][/ROW]
[ROW][C]55[/C][C]1.4[/C][C]2.66716937404432[/C][C]-1.26716937404432[/C][/ROW]
[ROW][C]56[/C][C]0.6[/C][C]2.66054584786235[/C][C]-2.06054584786235[/C][/ROW]
[ROW][C]57[/C][C]0[/C][C]2.60146365516942[/C][C]-2.60146365516942[/C][/ROW]
[ROW][C]58[/C][C]0.5[/C][C]2.69611858814464[/C][C]-2.19611858814464[/C][/ROW]
[ROW][C]59[/C][C]0.1[/C][C]2.69126596584975[/C][C]-2.59126596584975[/C][/ROW]
[ROW][C]60[/C][C]0.1[/C][C]2.70087177292327[/C][C]-2.60087177292327[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70122&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70122&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
12.62.85090031667666-0.250900316676658
22.42.86909705742605-0.469097057426048
32.52.8599166129297-0.359916612929702
42.72.86729379817544-0.167293798175439
53.22.698998805622640.501001194377364
62.82.590671457706310.209328542293690
72.82.495327576394370.30467242360563
832.425589976441080.57441002355892
93.12.339458894989010.76054110501099
103.12.361983457939860.738016542060138
1132.42024490941630.5797550905837
122.42.40099856848007-0.000998568480067793
132.72.99304002487265-0.293040024872649
1433.06172802463910-0.0617280246390973
152.73.03451498763666-0.334514987636661
162.73.10320298740311-0.403202987403108
1722.96556340211066-0.965563402110662
182.42.94198923897297-0.541989238972968
192.62.87008772791895-0.270087727918947
202.42.80575990571749-0.405759905717485
212.32.75749726852821-0.457497268528208
222.42.74756316496809-0.347563164968095
232.52.71746491316468-0.217464913164683
242.62.68739901672480-0.0873990167247952
252.63.23976876960397-0.639768769603974
262.63.31386654712225-0.71386654712225
272.73.2650143991125-0.565014399112503
282.83.28140788061128-0.481407880611284
292.63.10409659180544-0.504096591805436
302.63.08232568791835-0.482325687918351
3123.02485025086920-1.02485025086920
3222.97675176192322-0.976751761923225
332.12.8798011249675-0.779801124967498
341.92.85183442890129-0.951834428901294
3522.83435899185215-0.834358991852147
362.52.73576924388911-0.235769243889109
372.93.31158136702621-0.411581367026208
383.33.32256507077316-0.022565070773162
393.53.320597663279250.179402336720746
403.83.356826996534740.443173003465263
414.63.204761337237421.39523866276258
424.43.074794878313781.32520512168622
435.33.042565070773162.25743492922684
445.82.931352508055862.86864749194414
455.92.821779056345873.07822094365413
465.62.842500360046112.75749963995389
475.82.736665219717123.06333478028288
485.52.574961397982762.92503860201724
494.63.004709521820511.59529047817949
504.22.932743300039441.26725669996056
5142.919956337041881.08004366295812
523.52.891268337275430.608731662724568
532.32.72657986322385-0.426579863223848
542.22.71021873708859-0.51021873708859
551.42.66716937404432-1.26716937404432
560.62.66054584786235-2.06054584786235
5702.60146365516942-2.60146365516942
580.52.69611858814464-2.19611858814464
590.12.69126596584975-2.59126596584975
600.12.70087177292327-2.60087177292327







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.01380753813059700.02761507626119400.986192461869403
180.004438582685688200.008877165371376410.995561417314312
190.001142208794651700.002284417589303390.998857791205348
200.0001998881954921140.0003997763909842290.999800111804508
213.25100474291404e-056.50200948582808e-050.99996748995257
224.86497989531882e-069.72995979063765e-060.999995135020105
237.27302783944554e-071.45460556788911e-060.999999272697216
241.83868799642384e-073.67737599284769e-070.9999998161312
252.51690393533294e-085.03380787066588e-080.99999997483096
263.35947602774986e-096.71895205549972e-090.999999996640524
274.40800755874597e-108.81601511749195e-100.9999999995592
285.28526746225048e-111.05705349245010e-100.999999999947147
297.15652035792799e-121.43130407158560e-110.999999999992844
308.21563564372013e-131.64312712874403e-120.999999999999178
317.26440141194268e-131.45288028238854e-120.999999999999274
323.55035417224154e-137.10070834448308e-130.999999999999645
331.52964399504690e-133.05928799009381e-130.999999999999847
345.12498726838839e-131.02499745367768e-120.999999999999488
352.91443539269332e-125.82887078538663e-120.999999999997086
363.54022438716447e-107.08044877432895e-100.999999999645978
378.40932300284752e-091.68186460056950e-080.999999991590677
381.12082152461754e-072.24164304923509e-070.999999887917848
391.35584549101814e-052.71169098203629e-050.99998644154509
400.001157054194554190.002314108389108390.998842945805446
410.01288693509717650.02577387019435310.987113064902823
420.3465975114359710.6931950228719420.653402488564029
430.8363881185914220.3272237628171570.163611881408578

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0138075381305970 & 0.0276150762611940 & 0.986192461869403 \tabularnewline
18 & 0.00443858268568820 & 0.00887716537137641 & 0.995561417314312 \tabularnewline
19 & 0.00114220879465170 & 0.00228441758930339 & 0.998857791205348 \tabularnewline
20 & 0.000199888195492114 & 0.000399776390984229 & 0.999800111804508 \tabularnewline
21 & 3.25100474291404e-05 & 6.50200948582808e-05 & 0.99996748995257 \tabularnewline
22 & 4.86497989531882e-06 & 9.72995979063765e-06 & 0.999995135020105 \tabularnewline
23 & 7.27302783944554e-07 & 1.45460556788911e-06 & 0.999999272697216 \tabularnewline
24 & 1.83868799642384e-07 & 3.67737599284769e-07 & 0.9999998161312 \tabularnewline
25 & 2.51690393533294e-08 & 5.03380787066588e-08 & 0.99999997483096 \tabularnewline
26 & 3.35947602774986e-09 & 6.71895205549972e-09 & 0.999999996640524 \tabularnewline
27 & 4.40800755874597e-10 & 8.81601511749195e-10 & 0.9999999995592 \tabularnewline
28 & 5.28526746225048e-11 & 1.05705349245010e-10 & 0.999999999947147 \tabularnewline
29 & 7.15652035792799e-12 & 1.43130407158560e-11 & 0.999999999992844 \tabularnewline
30 & 8.21563564372013e-13 & 1.64312712874403e-12 & 0.999999999999178 \tabularnewline
31 & 7.26440141194268e-13 & 1.45288028238854e-12 & 0.999999999999274 \tabularnewline
32 & 3.55035417224154e-13 & 7.10070834448308e-13 & 0.999999999999645 \tabularnewline
33 & 1.52964399504690e-13 & 3.05928799009381e-13 & 0.999999999999847 \tabularnewline
34 & 5.12498726838839e-13 & 1.02499745367768e-12 & 0.999999999999488 \tabularnewline
35 & 2.91443539269332e-12 & 5.82887078538663e-12 & 0.999999999997086 \tabularnewline
36 & 3.54022438716447e-10 & 7.08044877432895e-10 & 0.999999999645978 \tabularnewline
37 & 8.40932300284752e-09 & 1.68186460056950e-08 & 0.999999991590677 \tabularnewline
38 & 1.12082152461754e-07 & 2.24164304923509e-07 & 0.999999887917848 \tabularnewline
39 & 1.35584549101814e-05 & 2.71169098203629e-05 & 0.99998644154509 \tabularnewline
40 & 0.00115705419455419 & 0.00231410838910839 & 0.998842945805446 \tabularnewline
41 & 0.0128869350971765 & 0.0257738701943531 & 0.987113064902823 \tabularnewline
42 & 0.346597511435971 & 0.693195022871942 & 0.653402488564029 \tabularnewline
43 & 0.836388118591422 & 0.327223762817157 & 0.163611881408578 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70122&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]17[/C][C]0.0138075381305970[/C][C]0.0276150762611940[/C][C]0.986192461869403[/C][/ROW]
[ROW][C]18[/C][C]0.00443858268568820[/C][C]0.00887716537137641[/C][C]0.995561417314312[/C][/ROW]
[ROW][C]19[/C][C]0.00114220879465170[/C][C]0.00228441758930339[/C][C]0.998857791205348[/C][/ROW]
[ROW][C]20[/C][C]0.000199888195492114[/C][C]0.000399776390984229[/C][C]0.999800111804508[/C][/ROW]
[ROW][C]21[/C][C]3.25100474291404e-05[/C][C]6.50200948582808e-05[/C][C]0.99996748995257[/C][/ROW]
[ROW][C]22[/C][C]4.86497989531882e-06[/C][C]9.72995979063765e-06[/C][C]0.999995135020105[/C][/ROW]
[ROW][C]23[/C][C]7.27302783944554e-07[/C][C]1.45460556788911e-06[/C][C]0.999999272697216[/C][/ROW]
[ROW][C]24[/C][C]1.83868799642384e-07[/C][C]3.67737599284769e-07[/C][C]0.9999998161312[/C][/ROW]
[ROW][C]25[/C][C]2.51690393533294e-08[/C][C]5.03380787066588e-08[/C][C]0.99999997483096[/C][/ROW]
[ROW][C]26[/C][C]3.35947602774986e-09[/C][C]6.71895205549972e-09[/C][C]0.999999996640524[/C][/ROW]
[ROW][C]27[/C][C]4.40800755874597e-10[/C][C]8.81601511749195e-10[/C][C]0.9999999995592[/C][/ROW]
[ROW][C]28[/C][C]5.28526746225048e-11[/C][C]1.05705349245010e-10[/C][C]0.999999999947147[/C][/ROW]
[ROW][C]29[/C][C]7.15652035792799e-12[/C][C]1.43130407158560e-11[/C][C]0.999999999992844[/C][/ROW]
[ROW][C]30[/C][C]8.21563564372013e-13[/C][C]1.64312712874403e-12[/C][C]0.999999999999178[/C][/ROW]
[ROW][C]31[/C][C]7.26440141194268e-13[/C][C]1.45288028238854e-12[/C][C]0.999999999999274[/C][/ROW]
[ROW][C]32[/C][C]3.55035417224154e-13[/C][C]7.10070834448308e-13[/C][C]0.999999999999645[/C][/ROW]
[ROW][C]33[/C][C]1.52964399504690e-13[/C][C]3.05928799009381e-13[/C][C]0.999999999999847[/C][/ROW]
[ROW][C]34[/C][C]5.12498726838839e-13[/C][C]1.02499745367768e-12[/C][C]0.999999999999488[/C][/ROW]
[ROW][C]35[/C][C]2.91443539269332e-12[/C][C]5.82887078538663e-12[/C][C]0.999999999997086[/C][/ROW]
[ROW][C]36[/C][C]3.54022438716447e-10[/C][C]7.08044877432895e-10[/C][C]0.999999999645978[/C][/ROW]
[ROW][C]37[/C][C]8.40932300284752e-09[/C][C]1.68186460056950e-08[/C][C]0.999999991590677[/C][/ROW]
[ROW][C]38[/C][C]1.12082152461754e-07[/C][C]2.24164304923509e-07[/C][C]0.999999887917848[/C][/ROW]
[ROW][C]39[/C][C]1.35584549101814e-05[/C][C]2.71169098203629e-05[/C][C]0.99998644154509[/C][/ROW]
[ROW][C]40[/C][C]0.00115705419455419[/C][C]0.00231410838910839[/C][C]0.998842945805446[/C][/ROW]
[ROW][C]41[/C][C]0.0128869350971765[/C][C]0.0257738701943531[/C][C]0.987113064902823[/C][/ROW]
[ROW][C]42[/C][C]0.346597511435971[/C][C]0.693195022871942[/C][C]0.653402488564029[/C][/ROW]
[ROW][C]43[/C][C]0.836388118591422[/C][C]0.327223762817157[/C][C]0.163611881408578[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70122&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70122&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
170.01380753813059700.02761507626119400.986192461869403
180.004438582685688200.008877165371376410.995561417314312
190.001142208794651700.002284417589303390.998857791205348
200.0001998881954921140.0003997763909842290.999800111804508
213.25100474291404e-056.50200948582808e-050.99996748995257
224.86497989531882e-069.72995979063765e-060.999995135020105
237.27302783944554e-071.45460556788911e-060.999999272697216
241.83868799642384e-073.67737599284769e-070.9999998161312
252.51690393533294e-085.03380787066588e-080.99999997483096
263.35947602774986e-096.71895205549972e-090.999999996640524
274.40800755874597e-108.81601511749195e-100.9999999995592
285.28526746225048e-111.05705349245010e-100.999999999947147
297.15652035792799e-121.43130407158560e-110.999999999992844
308.21563564372013e-131.64312712874403e-120.999999999999178
317.26440141194268e-131.45288028238854e-120.999999999999274
323.55035417224154e-137.10070834448308e-130.999999999999645
331.52964399504690e-133.05928799009381e-130.999999999999847
345.12498726838839e-131.02499745367768e-120.999999999999488
352.91443539269332e-125.82887078538663e-120.999999999997086
363.54022438716447e-107.08044877432895e-100.999999999645978
378.40932300284752e-091.68186460056950e-080.999999991590677
381.12082152461754e-072.24164304923509e-070.999999887917848
391.35584549101814e-052.71169098203629e-050.99998644154509
400.001157054194554190.002314108389108390.998842945805446
410.01288693509717650.02577387019435310.987113064902823
420.3465975114359710.6931950228719420.653402488564029
430.8363881185914220.3272237628171570.163611881408578







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

\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 & 23 & 0.851851851851852 & NOK \tabularnewline
5% type I error level & 25 & 0.925925925925926 & NOK \tabularnewline
10% type I error level & 25 & 0.925925925925926 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70122&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]23[/C][C]0.851851851851852[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]25[/C][C]0.925925925925926[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]25[/C][C]0.925925925925926[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70122&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70122&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 level230.851851851851852NOK
5% type I error level250.925925925925926NOK
10% type I error level250.925925925925926NOK



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