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 computationThu, 26 Nov 2009 11:26:06 -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/Nov/26/t1259260027uzo06mp1lnzhd9u.htm/, Retrieved Sun, 28 Apr 2024 22:25:36 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60236, Retrieved Sun, 28 Apr 2024 22:25:36 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact99
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:14:11] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [WS 7: Multiple Re...] [2009-11-26 18:21:11] [b00a5c3d5f6ccb867aa9e2de58adfa61]
-    D        [Multiple Regression] [WS 7: Multiple Re...] [2009-11-26 18:26:06] [63d6214c2814604a6f6cfa44dba5912e] [Current]
-    D          [Multiple Regression] [WS 7: Multiple Re...] [2009-11-26 18:29:20] [b00a5c3d5f6ccb867aa9e2de58adfa61]
Feedback Forum

Post a new message
Dataseries X:
7.7	10	8.1
7.5	9.2	7.7
7.6	9.2	7.5
7.8	9.5	7.6
7.8	9.6	7.8
7.8	9.5	7.8
7.5	9.1	7.8
7.5	8.9	7.5
7.1	9	7.5
7.5	10.1	7.1
7.5	10.3	7.5
7.6	10.2	7.5
7.7	9.6	7.6
7.7	9.2	7.7
7.9	9.3	7.7
8.1	9.4	7.9
8.2	9.4	8.1
8.2	9.2	8.2
8.2	9	8.2
7.9	9	8.2
7.3	9	7.9
6.9	9.8	7.3
6.6	10	6.9
6.7	9.8	6.6
6.9	9.3	6.7
7	9	6.9
7.1	9	7
7.2	9.1	7.1
7.1	9.1	7.2
6.9	9.1	7.1
7	9.2	6.9
6.8	8.8	7
6.4	8.3	6.8
6.7	8.4	6.4
6.6	8.1	6.7
6.4	7.7	6.6
6.3	7.9	6.4
6.2	7.9	6.3
6.5	8	6.2
6.8	7.9	6.5
6.8	7.6	6.8
6.4	7.1	6.8
6.1	6.8	6.4
5.8	6.5	6.1
6.1	6.9	5.8
7.2	8.2	6.1
7.3	8.7	7.2
6.9	8.3	7.3
6.1	7.9	6.9
5.8	7.5	6.1
6.2	7.8	5.8
7.1	8.3	6.2
7.7	8.4	7.1
7.9	8.2	7.7
7.7	7.7	7.9
7.4	7.2	7.7
7.5	7.3	7.4
8	8.1	7.5
8.1	8.5	8




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = -0.88950701685654 + 0.158263453991724X[t] + 0.876561943359466Y1[t] -0.0350224769283598M1[t] + 0.092789946679895M2[t] + 0.376979718036177M3[t] + 0.488008591198092M4[t] + 0.305502721955216M5[t] + 0.144327901969933M6[t] + 0.107961277896045M7[t] + 0.0473536395035613M8[t] + 0.0293919203823168M9[t] + 0.447288199200505M10[t] + 0.0349018923450704M11[t] + 0.00764007758049221t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  -0.88950701685654 +  0.158263453991724X[t] +  0.876561943359466Y1[t] -0.0350224769283598M1[t] +  0.092789946679895M2[t] +  0.376979718036177M3[t] +  0.488008591198092M4[t] +  0.305502721955216M5[t] +  0.144327901969933M6[t] +  0.107961277896045M7[t] +  0.0473536395035613M8[t] +  0.0293919203823168M9[t] +  0.447288199200505M10[t] +  0.0349018923450704M11[t] +  0.00764007758049221t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60236&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  -0.88950701685654 +  0.158263453991724X[t] +  0.876561943359466Y1[t] -0.0350224769283598M1[t] +  0.092789946679895M2[t] +  0.376979718036177M3[t] +  0.488008591198092M4[t] +  0.305502721955216M5[t] +  0.144327901969933M6[t] +  0.107961277896045M7[t] +  0.0473536395035613M8[t] +  0.0293919203823168M9[t] +  0.447288199200505M10[t] +  0.0349018923450704M11[t] +  0.00764007758049221t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60236&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60236&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] = -0.88950701685654 + 0.158263453991724X[t] + 0.876561943359466Y1[t] -0.0350224769283598M1[t] + 0.092789946679895M2[t] + 0.376979718036177M3[t] + 0.488008591198092M4[t] + 0.305502721955216M5[t] + 0.144327901969933M6[t] + 0.107961277896045M7[t] + 0.0473536395035613M8[t] + 0.0293919203823168M9[t] + 0.447288199200505M10[t] + 0.0349018923450704M11[t] + 0.00764007758049221t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-0.889507016856540.85323-1.04250.3028660.151433
X0.1582634539917240.0871691.81560.0762510.038126
Y10.8765619433594660.07770111.281200
M1-0.03502247692835980.190307-0.1840.8548340.427417
M20.0927899466798950.1949130.47610.6363890.318194
M30.3769797180361770.1920011.96340.0559360.027968
M40.4880085911980920.1896462.57330.0135220.006761
M50.3055027219552160.1928671.5840.1203530.060177
M60.1443279019699330.1982840.72790.4705390.23527
M70.1079612778960450.2025310.53310.5966730.298337
M80.04735363950356130.2075770.22810.8206050.410303
M90.02939192038231680.2019120.14560.8849270.442464
M100.4472881992005050.1887562.36970.0222550.011128
M110.03490189234507040.1910650.18270.8558960.427948
t0.007640077580492210.003991.91490.0620240.031012

\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) & -0.88950701685654 & 0.85323 & -1.0425 & 0.302866 & 0.151433 \tabularnewline
X & 0.158263453991724 & 0.087169 & 1.8156 & 0.076251 & 0.038126 \tabularnewline
Y1 & 0.876561943359466 & 0.077701 & 11.2812 & 0 & 0 \tabularnewline
M1 & -0.0350224769283598 & 0.190307 & -0.184 & 0.854834 & 0.427417 \tabularnewline
M2 & 0.092789946679895 & 0.194913 & 0.4761 & 0.636389 & 0.318194 \tabularnewline
M3 & 0.376979718036177 & 0.192001 & 1.9634 & 0.055936 & 0.027968 \tabularnewline
M4 & 0.488008591198092 & 0.189646 & 2.5733 & 0.013522 & 0.006761 \tabularnewline
M5 & 0.305502721955216 & 0.192867 & 1.584 & 0.120353 & 0.060177 \tabularnewline
M6 & 0.144327901969933 & 0.198284 & 0.7279 & 0.470539 & 0.23527 \tabularnewline
M7 & 0.107961277896045 & 0.202531 & 0.5331 & 0.596673 & 0.298337 \tabularnewline
M8 & 0.0473536395035613 & 0.207577 & 0.2281 & 0.820605 & 0.410303 \tabularnewline
M9 & 0.0293919203823168 & 0.201912 & 0.1456 & 0.884927 & 0.442464 \tabularnewline
M10 & 0.447288199200505 & 0.188756 & 2.3697 & 0.022255 & 0.011128 \tabularnewline
M11 & 0.0349018923450704 & 0.191065 & 0.1827 & 0.855896 & 0.427948 \tabularnewline
t & 0.00764007758049221 & 0.00399 & 1.9149 & 0.062024 & 0.031012 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60236&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]-0.88950701685654[/C][C]0.85323[/C][C]-1.0425[/C][C]0.302866[/C][C]0.151433[/C][/ROW]
[ROW][C]X[/C][C]0.158263453991724[/C][C]0.087169[/C][C]1.8156[/C][C]0.076251[/C][C]0.038126[/C][/ROW]
[ROW][C]Y1[/C][C]0.876561943359466[/C][C]0.077701[/C][C]11.2812[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.0350224769283598[/C][C]0.190307[/C][C]-0.184[/C][C]0.854834[/C][C]0.427417[/C][/ROW]
[ROW][C]M2[/C][C]0.092789946679895[/C][C]0.194913[/C][C]0.4761[/C][C]0.636389[/C][C]0.318194[/C][/ROW]
[ROW][C]M3[/C][C]0.376979718036177[/C][C]0.192001[/C][C]1.9634[/C][C]0.055936[/C][C]0.027968[/C][/ROW]
[ROW][C]M4[/C][C]0.488008591198092[/C][C]0.189646[/C][C]2.5733[/C][C]0.013522[/C][C]0.006761[/C][/ROW]
[ROW][C]M5[/C][C]0.305502721955216[/C][C]0.192867[/C][C]1.584[/C][C]0.120353[/C][C]0.060177[/C][/ROW]
[ROW][C]M6[/C][C]0.144327901969933[/C][C]0.198284[/C][C]0.7279[/C][C]0.470539[/C][C]0.23527[/C][/ROW]
[ROW][C]M7[/C][C]0.107961277896045[/C][C]0.202531[/C][C]0.5331[/C][C]0.596673[/C][C]0.298337[/C][/ROW]
[ROW][C]M8[/C][C]0.0473536395035613[/C][C]0.207577[/C][C]0.2281[/C][C]0.820605[/C][C]0.410303[/C][/ROW]
[ROW][C]M9[/C][C]0.0293919203823168[/C][C]0.201912[/C][C]0.1456[/C][C]0.884927[/C][C]0.442464[/C][/ROW]
[ROW][C]M10[/C][C]0.447288199200505[/C][C]0.188756[/C][C]2.3697[/C][C]0.022255[/C][C]0.011128[/C][/ROW]
[ROW][C]M11[/C][C]0.0349018923450704[/C][C]0.191065[/C][C]0.1827[/C][C]0.855896[/C][C]0.427948[/C][/ROW]
[ROW][C]t[/C][C]0.00764007758049221[/C][C]0.00399[/C][C]1.9149[/C][C]0.062024[/C][C]0.031012[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60236&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60236&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)-0.889507016856540.85323-1.04250.3028660.151433
X0.1582634539917240.0871691.81560.0762510.038126
Y10.8765619433594660.07770111.281200
M1-0.03502247692835980.190307-0.1840.8548340.427417
M20.0927899466798950.1949130.47610.6363890.318194
M30.3769797180361770.1920011.96340.0559360.027968
M40.4880085911980920.1896462.57330.0135220.006761
M50.3055027219552160.1928671.5840.1203530.060177
M60.1443279019699330.1982840.72790.4705390.23527
M70.1079612778960450.2025310.53310.5966730.298337
M80.04735363950356130.2075770.22810.8206050.410303
M90.02939192038231680.2019120.14560.8849270.442464
M100.4472881992005050.1887562.36970.0222550.011128
M110.03490189234507040.1910650.18270.8558960.427948
t0.007640077580492210.003991.91490.0620240.031012







Multiple Linear Regression - Regression Statistics
Multiple R0.92753981229745
R-squared0.860330103396789
Adjusted R-squared0.815889681750313
F-TEST (value)19.3591795829643
F-TEST (DF numerator)14
F-TEST (DF denominator)44
p-value2.48689957516035e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.280712364207064
Sum Squared Residuals3.46717498242365

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.92753981229745 \tabularnewline
R-squared & 0.860330103396789 \tabularnewline
Adjusted R-squared & 0.815889681750313 \tabularnewline
F-TEST (value) & 19.3591795829643 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 44 \tabularnewline
p-value & 2.48689957516035e-14 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.280712364207064 \tabularnewline
Sum Squared Residuals & 3.46717498242365 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60236&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.92753981229745[/C][/ROW]
[ROW][C]R-squared[/C][C]0.860330103396789[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.815889681750313[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]19.3591795829643[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]44[/C][/ROW]
[ROW][C]p-value[/C][C]2.48689957516035e-14[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.280712364207064[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]3.46717498242365[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60236&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60236&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.92753981229745
R-squared0.860330103396789
Adjusted R-squared0.815889681750313
F-TEST (value)19.3591795829643
F-TEST (DF numerator)14
F-TEST (DF denominator)44
p-value2.48689957516035e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.280712364207064
Sum Squared Residuals3.46717498242365







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
17.77.7658968649245-0.065896864924496
27.57.424113825576080.0758861744239167
37.67.540631285840970.0593687141590346
47.87.794435467116840.00556453288316393
57.87.81070840952552-0.0107084095255172
67.87.641347321721550.158652678278446
77.57.54931539363147-0.0493153936314696
87.57.20172655901330.298273440986706
97.17.20723126287171-0.107231262871714
107.57.45623264131750.0437673586824969
117.57.43376388018470.0662361198153081
127.67.390675720020940.209324279979058
137.77.355991442613990.344008557386014
147.77.515794756541990.184205243458009
157.97.823450950877940.0765490491220631
168.18.13325863569141-0.0332586356914102
178.28.133705232700920.0662947672990804
188.28.036173993833730.16382600616627
198.27.975794756541990.224205243458010
207.97.92282719573-0.0228271957299975
217.37.64953697118141-0.349536971181407
226.97.67574692475779-0.775746924757786
236.66.9520286089374-0.352028608937403
246.76.630145520366640.069854479633361
256.96.611287588358860.288712411641143
2676.874573442021980.125426557978020
277.17.2540594852947-0.154059485294701
287.27.47621097577223-0.276210975772226
297.17.38900137844579-0.28900137844579
306.97.14781044170505-0.247810441705051
3176.959597851938940.0404021480610638
326.86.9309811038662-0.130981103866202
336.46.6662153466577-0.266215346657694
346.76.75695327111176-0.0569532711117606
356.66.567696588647140.0323034113528587
366.46.389473197949930.0105268020500740
376.36.218431100728510.081568899271489
386.26.26622740758131-0.066227407581311
396.56.486227407581310.0137725924186891
406.86.85203859593239-0.0520385959323855
416.86.89266235108032-0.0926623510803243
426.46.65999588167967-0.259995881679671
436.16.23316552164497-0.133165521644974
445.85.86975034162762-0.0697503416276246
456.15.659765498675720.440234501324278
467.26.554012928271480.645987071728518
477.37.192616563687810.107383436312185
486.97.1897055616625-0.289705561662493
496.16.74839300337415-0.648393003374151
505.86.11929056827864-0.319290568278635
516.26.195630870405090.00436912959491395
527.16.744056325487140.355943674512858
537.77.373922628247450.326077371752551
547.97.714672361060.185327638940007
557.77.78212647624263-0.0821264762426299
567.47.47471479976288-0.0747147997628828
577.57.217250920613460.282749079386536
5887.857054234541470.142945765458531
598.17.953894358542950.146105641457051

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 7.7 & 7.7658968649245 & -0.065896864924496 \tabularnewline
2 & 7.5 & 7.42411382557608 & 0.0758861744239167 \tabularnewline
3 & 7.6 & 7.54063128584097 & 0.0593687141590346 \tabularnewline
4 & 7.8 & 7.79443546711684 & 0.00556453288316393 \tabularnewline
5 & 7.8 & 7.81070840952552 & -0.0107084095255172 \tabularnewline
6 & 7.8 & 7.64134732172155 & 0.158652678278446 \tabularnewline
7 & 7.5 & 7.54931539363147 & -0.0493153936314696 \tabularnewline
8 & 7.5 & 7.2017265590133 & 0.298273440986706 \tabularnewline
9 & 7.1 & 7.20723126287171 & -0.107231262871714 \tabularnewline
10 & 7.5 & 7.4562326413175 & 0.0437673586824969 \tabularnewline
11 & 7.5 & 7.4337638801847 & 0.0662361198153081 \tabularnewline
12 & 7.6 & 7.39067572002094 & 0.209324279979058 \tabularnewline
13 & 7.7 & 7.35599144261399 & 0.344008557386014 \tabularnewline
14 & 7.7 & 7.51579475654199 & 0.184205243458009 \tabularnewline
15 & 7.9 & 7.82345095087794 & 0.0765490491220631 \tabularnewline
16 & 8.1 & 8.13325863569141 & -0.0332586356914102 \tabularnewline
17 & 8.2 & 8.13370523270092 & 0.0662947672990804 \tabularnewline
18 & 8.2 & 8.03617399383373 & 0.16382600616627 \tabularnewline
19 & 8.2 & 7.97579475654199 & 0.224205243458010 \tabularnewline
20 & 7.9 & 7.92282719573 & -0.0228271957299975 \tabularnewline
21 & 7.3 & 7.64953697118141 & -0.349536971181407 \tabularnewline
22 & 6.9 & 7.67574692475779 & -0.775746924757786 \tabularnewline
23 & 6.6 & 6.9520286089374 & -0.352028608937403 \tabularnewline
24 & 6.7 & 6.63014552036664 & 0.069854479633361 \tabularnewline
25 & 6.9 & 6.61128758835886 & 0.288712411641143 \tabularnewline
26 & 7 & 6.87457344202198 & 0.125426557978020 \tabularnewline
27 & 7.1 & 7.2540594852947 & -0.154059485294701 \tabularnewline
28 & 7.2 & 7.47621097577223 & -0.276210975772226 \tabularnewline
29 & 7.1 & 7.38900137844579 & -0.28900137844579 \tabularnewline
30 & 6.9 & 7.14781044170505 & -0.247810441705051 \tabularnewline
31 & 7 & 6.95959785193894 & 0.0404021480610638 \tabularnewline
32 & 6.8 & 6.9309811038662 & -0.130981103866202 \tabularnewline
33 & 6.4 & 6.6662153466577 & -0.266215346657694 \tabularnewline
34 & 6.7 & 6.75695327111176 & -0.0569532711117606 \tabularnewline
35 & 6.6 & 6.56769658864714 & 0.0323034113528587 \tabularnewline
36 & 6.4 & 6.38947319794993 & 0.0105268020500740 \tabularnewline
37 & 6.3 & 6.21843110072851 & 0.081568899271489 \tabularnewline
38 & 6.2 & 6.26622740758131 & -0.066227407581311 \tabularnewline
39 & 6.5 & 6.48622740758131 & 0.0137725924186891 \tabularnewline
40 & 6.8 & 6.85203859593239 & -0.0520385959323855 \tabularnewline
41 & 6.8 & 6.89266235108032 & -0.0926623510803243 \tabularnewline
42 & 6.4 & 6.65999588167967 & -0.259995881679671 \tabularnewline
43 & 6.1 & 6.23316552164497 & -0.133165521644974 \tabularnewline
44 & 5.8 & 5.86975034162762 & -0.0697503416276246 \tabularnewline
45 & 6.1 & 5.65976549867572 & 0.440234501324278 \tabularnewline
46 & 7.2 & 6.55401292827148 & 0.645987071728518 \tabularnewline
47 & 7.3 & 7.19261656368781 & 0.107383436312185 \tabularnewline
48 & 6.9 & 7.1897055616625 & -0.289705561662493 \tabularnewline
49 & 6.1 & 6.74839300337415 & -0.648393003374151 \tabularnewline
50 & 5.8 & 6.11929056827864 & -0.319290568278635 \tabularnewline
51 & 6.2 & 6.19563087040509 & 0.00436912959491395 \tabularnewline
52 & 7.1 & 6.74405632548714 & 0.355943674512858 \tabularnewline
53 & 7.7 & 7.37392262824745 & 0.326077371752551 \tabularnewline
54 & 7.9 & 7.71467236106 & 0.185327638940007 \tabularnewline
55 & 7.7 & 7.78212647624263 & -0.0821264762426299 \tabularnewline
56 & 7.4 & 7.47471479976288 & -0.0747147997628828 \tabularnewline
57 & 7.5 & 7.21725092061346 & 0.282749079386536 \tabularnewline
58 & 8 & 7.85705423454147 & 0.142945765458531 \tabularnewline
59 & 8.1 & 7.95389435854295 & 0.146105641457051 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60236&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]7.7[/C][C]7.7658968649245[/C][C]-0.065896864924496[/C][/ROW]
[ROW][C]2[/C][C]7.5[/C][C]7.42411382557608[/C][C]0.0758861744239167[/C][/ROW]
[ROW][C]3[/C][C]7.6[/C][C]7.54063128584097[/C][C]0.0593687141590346[/C][/ROW]
[ROW][C]4[/C][C]7.8[/C][C]7.79443546711684[/C][C]0.00556453288316393[/C][/ROW]
[ROW][C]5[/C][C]7.8[/C][C]7.81070840952552[/C][C]-0.0107084095255172[/C][/ROW]
[ROW][C]6[/C][C]7.8[/C][C]7.64134732172155[/C][C]0.158652678278446[/C][/ROW]
[ROW][C]7[/C][C]7.5[/C][C]7.54931539363147[/C][C]-0.0493153936314696[/C][/ROW]
[ROW][C]8[/C][C]7.5[/C][C]7.2017265590133[/C][C]0.298273440986706[/C][/ROW]
[ROW][C]9[/C][C]7.1[/C][C]7.20723126287171[/C][C]-0.107231262871714[/C][/ROW]
[ROW][C]10[/C][C]7.5[/C][C]7.4562326413175[/C][C]0.0437673586824969[/C][/ROW]
[ROW][C]11[/C][C]7.5[/C][C]7.4337638801847[/C][C]0.0662361198153081[/C][/ROW]
[ROW][C]12[/C][C]7.6[/C][C]7.39067572002094[/C][C]0.209324279979058[/C][/ROW]
[ROW][C]13[/C][C]7.7[/C][C]7.35599144261399[/C][C]0.344008557386014[/C][/ROW]
[ROW][C]14[/C][C]7.7[/C][C]7.51579475654199[/C][C]0.184205243458009[/C][/ROW]
[ROW][C]15[/C][C]7.9[/C][C]7.82345095087794[/C][C]0.0765490491220631[/C][/ROW]
[ROW][C]16[/C][C]8.1[/C][C]8.13325863569141[/C][C]-0.0332586356914102[/C][/ROW]
[ROW][C]17[/C][C]8.2[/C][C]8.13370523270092[/C][C]0.0662947672990804[/C][/ROW]
[ROW][C]18[/C][C]8.2[/C][C]8.03617399383373[/C][C]0.16382600616627[/C][/ROW]
[ROW][C]19[/C][C]8.2[/C][C]7.97579475654199[/C][C]0.224205243458010[/C][/ROW]
[ROW][C]20[/C][C]7.9[/C][C]7.92282719573[/C][C]-0.0228271957299975[/C][/ROW]
[ROW][C]21[/C][C]7.3[/C][C]7.64953697118141[/C][C]-0.349536971181407[/C][/ROW]
[ROW][C]22[/C][C]6.9[/C][C]7.67574692475779[/C][C]-0.775746924757786[/C][/ROW]
[ROW][C]23[/C][C]6.6[/C][C]6.9520286089374[/C][C]-0.352028608937403[/C][/ROW]
[ROW][C]24[/C][C]6.7[/C][C]6.63014552036664[/C][C]0.069854479633361[/C][/ROW]
[ROW][C]25[/C][C]6.9[/C][C]6.61128758835886[/C][C]0.288712411641143[/C][/ROW]
[ROW][C]26[/C][C]7[/C][C]6.87457344202198[/C][C]0.125426557978020[/C][/ROW]
[ROW][C]27[/C][C]7.1[/C][C]7.2540594852947[/C][C]-0.154059485294701[/C][/ROW]
[ROW][C]28[/C][C]7.2[/C][C]7.47621097577223[/C][C]-0.276210975772226[/C][/ROW]
[ROW][C]29[/C][C]7.1[/C][C]7.38900137844579[/C][C]-0.28900137844579[/C][/ROW]
[ROW][C]30[/C][C]6.9[/C][C]7.14781044170505[/C][C]-0.247810441705051[/C][/ROW]
[ROW][C]31[/C][C]7[/C][C]6.95959785193894[/C][C]0.0404021480610638[/C][/ROW]
[ROW][C]32[/C][C]6.8[/C][C]6.9309811038662[/C][C]-0.130981103866202[/C][/ROW]
[ROW][C]33[/C][C]6.4[/C][C]6.6662153466577[/C][C]-0.266215346657694[/C][/ROW]
[ROW][C]34[/C][C]6.7[/C][C]6.75695327111176[/C][C]-0.0569532711117606[/C][/ROW]
[ROW][C]35[/C][C]6.6[/C][C]6.56769658864714[/C][C]0.0323034113528587[/C][/ROW]
[ROW][C]36[/C][C]6.4[/C][C]6.38947319794993[/C][C]0.0105268020500740[/C][/ROW]
[ROW][C]37[/C][C]6.3[/C][C]6.21843110072851[/C][C]0.081568899271489[/C][/ROW]
[ROW][C]38[/C][C]6.2[/C][C]6.26622740758131[/C][C]-0.066227407581311[/C][/ROW]
[ROW][C]39[/C][C]6.5[/C][C]6.48622740758131[/C][C]0.0137725924186891[/C][/ROW]
[ROW][C]40[/C][C]6.8[/C][C]6.85203859593239[/C][C]-0.0520385959323855[/C][/ROW]
[ROW][C]41[/C][C]6.8[/C][C]6.89266235108032[/C][C]-0.0926623510803243[/C][/ROW]
[ROW][C]42[/C][C]6.4[/C][C]6.65999588167967[/C][C]-0.259995881679671[/C][/ROW]
[ROW][C]43[/C][C]6.1[/C][C]6.23316552164497[/C][C]-0.133165521644974[/C][/ROW]
[ROW][C]44[/C][C]5.8[/C][C]5.86975034162762[/C][C]-0.0697503416276246[/C][/ROW]
[ROW][C]45[/C][C]6.1[/C][C]5.65976549867572[/C][C]0.440234501324278[/C][/ROW]
[ROW][C]46[/C][C]7.2[/C][C]6.55401292827148[/C][C]0.645987071728518[/C][/ROW]
[ROW][C]47[/C][C]7.3[/C][C]7.19261656368781[/C][C]0.107383436312185[/C][/ROW]
[ROW][C]48[/C][C]6.9[/C][C]7.1897055616625[/C][C]-0.289705561662493[/C][/ROW]
[ROW][C]49[/C][C]6.1[/C][C]6.74839300337415[/C][C]-0.648393003374151[/C][/ROW]
[ROW][C]50[/C][C]5.8[/C][C]6.11929056827864[/C][C]-0.319290568278635[/C][/ROW]
[ROW][C]51[/C][C]6.2[/C][C]6.19563087040509[/C][C]0.00436912959491395[/C][/ROW]
[ROW][C]52[/C][C]7.1[/C][C]6.74405632548714[/C][C]0.355943674512858[/C][/ROW]
[ROW][C]53[/C][C]7.7[/C][C]7.37392262824745[/C][C]0.326077371752551[/C][/ROW]
[ROW][C]54[/C][C]7.9[/C][C]7.71467236106[/C][C]0.185327638940007[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.78212647624263[/C][C]-0.0821264762426299[/C][/ROW]
[ROW][C]56[/C][C]7.4[/C][C]7.47471479976288[/C][C]-0.0747147997628828[/C][/ROW]
[ROW][C]57[/C][C]7.5[/C][C]7.21725092061346[/C][C]0.282749079386536[/C][/ROW]
[ROW][C]58[/C][C]8[/C][C]7.85705423454147[/C][C]0.142945765458531[/C][/ROW]
[ROW][C]59[/C][C]8.1[/C][C]7.95389435854295[/C][C]0.146105641457051[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60236&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60236&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
17.77.7658968649245-0.065896864924496
27.57.424113825576080.0758861744239167
37.67.540631285840970.0593687141590346
47.87.794435467116840.00556453288316393
57.87.81070840952552-0.0107084095255172
67.87.641347321721550.158652678278446
77.57.54931539363147-0.0493153936314696
87.57.20172655901330.298273440986706
97.17.20723126287171-0.107231262871714
107.57.45623264131750.0437673586824969
117.57.43376388018470.0662361198153081
127.67.390675720020940.209324279979058
137.77.355991442613990.344008557386014
147.77.515794756541990.184205243458009
157.97.823450950877940.0765490491220631
168.18.13325863569141-0.0332586356914102
178.28.133705232700920.0662947672990804
188.28.036173993833730.16382600616627
198.27.975794756541990.224205243458010
207.97.92282719573-0.0228271957299975
217.37.64953697118141-0.349536971181407
226.97.67574692475779-0.775746924757786
236.66.9520286089374-0.352028608937403
246.76.630145520366640.069854479633361
256.96.611287588358860.288712411641143
2676.874573442021980.125426557978020
277.17.2540594852947-0.154059485294701
287.27.47621097577223-0.276210975772226
297.17.38900137844579-0.28900137844579
306.97.14781044170505-0.247810441705051
3176.959597851938940.0404021480610638
326.86.9309811038662-0.130981103866202
336.46.6662153466577-0.266215346657694
346.76.75695327111176-0.0569532711117606
356.66.567696588647140.0323034113528587
366.46.389473197949930.0105268020500740
376.36.218431100728510.081568899271489
386.26.26622740758131-0.066227407581311
396.56.486227407581310.0137725924186891
406.86.85203859593239-0.0520385959323855
416.86.89266235108032-0.0926623510803243
426.46.65999588167967-0.259995881679671
436.16.23316552164497-0.133165521644974
445.85.86975034162762-0.0697503416276246
456.15.659765498675720.440234501324278
467.26.554012928271480.645987071728518
477.37.192616563687810.107383436312185
486.97.1897055616625-0.289705561662493
496.16.74839300337415-0.648393003374151
505.86.11929056827864-0.319290568278635
516.26.195630870405090.00436912959491395
527.16.744056325487140.355943674512858
537.77.373922628247450.326077371752551
547.97.714672361060.185327638940007
557.77.78212647624263-0.0821264762426299
567.47.47471479976288-0.0747147997628828
577.57.217250920613460.282749079386536
5887.857054234541470.142945765458531
598.17.953894358542950.146105641457051







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.000968504570836870.001937009141673740.999031495429163
190.02130929709689570.04261859419379140.978690702903104
200.01502443847304600.03004887694609210.984975561526954
210.009516122424779070.01903224484955810.990483877575221
220.4130758259830750.8261516519661510.586924174016925
230.5750702537286740.8498594925426520.424929746271326
240.4652515211534170.9305030423068340.534748478846583
250.4970020039762350.994004007952470.502997996023765
260.5372266401495460.9255467197009070.462773359850453
270.5002862796885970.9994274406228060.499713720311403
280.419463965184020.838927930368040.58053603481598
290.3605781791023440.7211563582046880.639421820897656
300.3293892440549770.6587784881099550.670610755945023
310.2435850076486440.4871700152972890.756414992351356
320.1745563312578770.3491126625157550.825443668742123
330.2898044296672980.5796088593345960.710195570332702
340.5928923055492750.814215388901450.407107694450725
350.4995866753391490.9991733506782980.500413324660851
360.6288212059067240.7423575881865510.371178794093276
370.9608005379113280.07839892417734430.0391994620886722
380.951269722667190.0974605546656210.0487302773328105
390.9454622794989590.1090754410020830.0545377205010413
400.9038364423814780.1923271152370440.0961635576185218
410.8771399354567740.2457201290864520.122860064543226

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.00096850457083687 & 0.00193700914167374 & 0.999031495429163 \tabularnewline
19 & 0.0213092970968957 & 0.0426185941937914 & 0.978690702903104 \tabularnewline
20 & 0.0150244384730460 & 0.0300488769460921 & 0.984975561526954 \tabularnewline
21 & 0.00951612242477907 & 0.0190322448495581 & 0.990483877575221 \tabularnewline
22 & 0.413075825983075 & 0.826151651966151 & 0.586924174016925 \tabularnewline
23 & 0.575070253728674 & 0.849859492542652 & 0.424929746271326 \tabularnewline
24 & 0.465251521153417 & 0.930503042306834 & 0.534748478846583 \tabularnewline
25 & 0.497002003976235 & 0.99400400795247 & 0.502997996023765 \tabularnewline
26 & 0.537226640149546 & 0.925546719700907 & 0.462773359850453 \tabularnewline
27 & 0.500286279688597 & 0.999427440622806 & 0.499713720311403 \tabularnewline
28 & 0.41946396518402 & 0.83892793036804 & 0.58053603481598 \tabularnewline
29 & 0.360578179102344 & 0.721156358204688 & 0.639421820897656 \tabularnewline
30 & 0.329389244054977 & 0.658778488109955 & 0.670610755945023 \tabularnewline
31 & 0.243585007648644 & 0.487170015297289 & 0.756414992351356 \tabularnewline
32 & 0.174556331257877 & 0.349112662515755 & 0.825443668742123 \tabularnewline
33 & 0.289804429667298 & 0.579608859334596 & 0.710195570332702 \tabularnewline
34 & 0.592892305549275 & 0.81421538890145 & 0.407107694450725 \tabularnewline
35 & 0.499586675339149 & 0.999173350678298 & 0.500413324660851 \tabularnewline
36 & 0.628821205906724 & 0.742357588186551 & 0.371178794093276 \tabularnewline
37 & 0.960800537911328 & 0.0783989241773443 & 0.0391994620886722 \tabularnewline
38 & 0.95126972266719 & 0.097460554665621 & 0.0487302773328105 \tabularnewline
39 & 0.945462279498959 & 0.109075441002083 & 0.0545377205010413 \tabularnewline
40 & 0.903836442381478 & 0.192327115237044 & 0.0961635576185218 \tabularnewline
41 & 0.877139935456774 & 0.245720129086452 & 0.122860064543226 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60236&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]18[/C][C]0.00096850457083687[/C][C]0.00193700914167374[/C][C]0.999031495429163[/C][/ROW]
[ROW][C]19[/C][C]0.0213092970968957[/C][C]0.0426185941937914[/C][C]0.978690702903104[/C][/ROW]
[ROW][C]20[/C][C]0.0150244384730460[/C][C]0.0300488769460921[/C][C]0.984975561526954[/C][/ROW]
[ROW][C]21[/C][C]0.00951612242477907[/C][C]0.0190322448495581[/C][C]0.990483877575221[/C][/ROW]
[ROW][C]22[/C][C]0.413075825983075[/C][C]0.826151651966151[/C][C]0.586924174016925[/C][/ROW]
[ROW][C]23[/C][C]0.575070253728674[/C][C]0.849859492542652[/C][C]0.424929746271326[/C][/ROW]
[ROW][C]24[/C][C]0.465251521153417[/C][C]0.930503042306834[/C][C]0.534748478846583[/C][/ROW]
[ROW][C]25[/C][C]0.497002003976235[/C][C]0.99400400795247[/C][C]0.502997996023765[/C][/ROW]
[ROW][C]26[/C][C]0.537226640149546[/C][C]0.925546719700907[/C][C]0.462773359850453[/C][/ROW]
[ROW][C]27[/C][C]0.500286279688597[/C][C]0.999427440622806[/C][C]0.499713720311403[/C][/ROW]
[ROW][C]28[/C][C]0.41946396518402[/C][C]0.83892793036804[/C][C]0.58053603481598[/C][/ROW]
[ROW][C]29[/C][C]0.360578179102344[/C][C]0.721156358204688[/C][C]0.639421820897656[/C][/ROW]
[ROW][C]30[/C][C]0.329389244054977[/C][C]0.658778488109955[/C][C]0.670610755945023[/C][/ROW]
[ROW][C]31[/C][C]0.243585007648644[/C][C]0.487170015297289[/C][C]0.756414992351356[/C][/ROW]
[ROW][C]32[/C][C]0.174556331257877[/C][C]0.349112662515755[/C][C]0.825443668742123[/C][/ROW]
[ROW][C]33[/C][C]0.289804429667298[/C][C]0.579608859334596[/C][C]0.710195570332702[/C][/ROW]
[ROW][C]34[/C][C]0.592892305549275[/C][C]0.81421538890145[/C][C]0.407107694450725[/C][/ROW]
[ROW][C]35[/C][C]0.499586675339149[/C][C]0.999173350678298[/C][C]0.500413324660851[/C][/ROW]
[ROW][C]36[/C][C]0.628821205906724[/C][C]0.742357588186551[/C][C]0.371178794093276[/C][/ROW]
[ROW][C]37[/C][C]0.960800537911328[/C][C]0.0783989241773443[/C][C]0.0391994620886722[/C][/ROW]
[ROW][C]38[/C][C]0.95126972266719[/C][C]0.097460554665621[/C][C]0.0487302773328105[/C][/ROW]
[ROW][C]39[/C][C]0.945462279498959[/C][C]0.109075441002083[/C][C]0.0545377205010413[/C][/ROW]
[ROW][C]40[/C][C]0.903836442381478[/C][C]0.192327115237044[/C][C]0.0961635576185218[/C][/ROW]
[ROW][C]41[/C][C]0.877139935456774[/C][C]0.245720129086452[/C][C]0.122860064543226[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60236&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60236&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
180.000968504570836870.001937009141673740.999031495429163
190.02130929709689570.04261859419379140.978690702903104
200.01502443847304600.03004887694609210.984975561526954
210.009516122424779070.01903224484955810.990483877575221
220.4130758259830750.8261516519661510.586924174016925
230.5750702537286740.8498594925426520.424929746271326
240.4652515211534170.9305030423068340.534748478846583
250.4970020039762350.994004007952470.502997996023765
260.5372266401495460.9255467197009070.462773359850453
270.5002862796885970.9994274406228060.499713720311403
280.419463965184020.838927930368040.58053603481598
290.3605781791023440.7211563582046880.639421820897656
300.3293892440549770.6587784881099550.670610755945023
310.2435850076486440.4871700152972890.756414992351356
320.1745563312578770.3491126625157550.825443668742123
330.2898044296672980.5796088593345960.710195570332702
340.5928923055492750.814215388901450.407107694450725
350.4995866753391490.9991733506782980.500413324660851
360.6288212059067240.7423575881865510.371178794093276
370.9608005379113280.07839892417734430.0391994620886722
380.951269722667190.0974605546656210.0487302773328105
390.9454622794989590.1090754410020830.0545377205010413
400.9038364423814780.1923271152370440.0961635576185218
410.8771399354567740.2457201290864520.122860064543226







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0416666666666667NOK
5% type I error level40.166666666666667NOK
10% type I error level60.25NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60236&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 level10.0416666666666667NOK
5% type I error level40.166666666666667NOK
10% type I error level60.25NOK



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