Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 08:50:20 -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/20/t1258732264ut062q0m9xjbesn.htm/, Retrieved Wed, 24 Apr 2024 00:12:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58285, Retrieved Wed, 24 Apr 2024 00:12:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact135
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]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [WS 7.3] [2009-11-20 15:50:20] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

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




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=58285&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=58285&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58285&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
WLMan[t] = + 3.06136906151439 + 0.483974470410013WLVrouw[t] + 0.259166439019543M1[t] + 0.253554573223732M2[t] + 0.164737601509922M3[t] + 0.104318076837112M4[t] + 0.00582161571510191M5[t] -0.237226165346313M6[t] -0.255209948593140M7[t] -0.355693644920158M8[t] -0.284510616633968M9[t] -0.266212183673976M10[t] -0.176952218938585M11[t] -0.00534966597958625t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
WLMan[t] =  +  3.06136906151439 +  0.483974470410013WLVrouw[t] +  0.259166439019543M1[t] +  0.253554573223732M2[t] +  0.164737601509922M3[t] +  0.104318076837112M4[t] +  0.00582161571510191M5[t] -0.237226165346313M6[t] -0.255209948593140M7[t] -0.355693644920158M8[t] -0.284510616633968M9[t] -0.266212183673976M10[t] -0.176952218938585M11[t] -0.00534966597958625t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58285&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]WLMan[t] =  +  3.06136906151439 +  0.483974470410013WLVrouw[t] +  0.259166439019543M1[t] +  0.253554573223732M2[t] +  0.164737601509922M3[t] +  0.104318076837112M4[t] +  0.00582161571510191M5[t] -0.237226165346313M6[t] -0.255209948593140M7[t] -0.355693644920158M8[t] -0.284510616633968M9[t] -0.266212183673976M10[t] -0.176952218938585M11[t] -0.00534966597958625t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58285&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58285&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
WLMan[t] = + 3.06136906151439 + 0.483974470410013WLVrouw[t] + 0.259166439019543M1[t] + 0.253554573223732M2[t] + 0.164737601509922M3[t] + 0.104318076837112M4[t] + 0.00582161571510191M5[t] -0.237226165346313M6[t] -0.255209948593140M7[t] -0.355693644920158M8[t] -0.284510616633968M9[t] -0.266212183673976M10[t] -0.176952218938585M11[t] -0.00534966597958625t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3.061369061514390.9948523.07720.0035150.001757
WLVrouw0.4839744704100130.0959145.04598e-064e-06
M10.2591664390195430.2506771.03390.3066040.153302
M20.2535545732237320.2502781.01310.3163150.158158
M30.1647376015099220.2506020.65740.5142210.25711
M40.1043180768371120.2543790.41010.6836450.341822
M50.005821615715101910.2584650.02250.9821280.491064
M6-0.2372261653463130.255006-0.93030.3570830.178542
M7-0.2552099485931400.253746-1.00580.3197890.159895
M8-0.3556936449201580.260746-1.36410.1791610.089581
M9-0.2845106166339680.255123-1.11520.2705620.135281
M10-0.2662121836739760.249265-1.0680.2910990.14555
M11-0.1769522189385850.248861-0.7110.4806440.240322
t-0.005349665979586250.004964-1.07780.2867620.143381

\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) & 3.06136906151439 & 0.994852 & 3.0772 & 0.003515 & 0.001757 \tabularnewline
WLVrouw & 0.483974470410013 & 0.095914 & 5.0459 & 8e-06 & 4e-06 \tabularnewline
M1 & 0.259166439019543 & 0.250677 & 1.0339 & 0.306604 & 0.153302 \tabularnewline
M2 & 0.253554573223732 & 0.250278 & 1.0131 & 0.316315 & 0.158158 \tabularnewline
M3 & 0.164737601509922 & 0.250602 & 0.6574 & 0.514221 & 0.25711 \tabularnewline
M4 & 0.104318076837112 & 0.254379 & 0.4101 & 0.683645 & 0.341822 \tabularnewline
M5 & 0.00582161571510191 & 0.258465 & 0.0225 & 0.982128 & 0.491064 \tabularnewline
M6 & -0.237226165346313 & 0.255006 & -0.9303 & 0.357083 & 0.178542 \tabularnewline
M7 & -0.255209948593140 & 0.253746 & -1.0058 & 0.319789 & 0.159895 \tabularnewline
M8 & -0.355693644920158 & 0.260746 & -1.3641 & 0.179161 & 0.089581 \tabularnewline
M9 & -0.284510616633968 & 0.255123 & -1.1152 & 0.270562 & 0.135281 \tabularnewline
M10 & -0.266212183673976 & 0.249265 & -1.068 & 0.291099 & 0.14555 \tabularnewline
M11 & -0.176952218938585 & 0.248861 & -0.711 & 0.480644 & 0.240322 \tabularnewline
t & -0.00534966597958625 & 0.004964 & -1.0778 & 0.286762 & 0.143381 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58285&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]3.06136906151439[/C][C]0.994852[/C][C]3.0772[/C][C]0.003515[/C][C]0.001757[/C][/ROW]
[ROW][C]WLVrouw[/C][C]0.483974470410013[/C][C]0.095914[/C][C]5.0459[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M1[/C][C]0.259166439019543[/C][C]0.250677[/C][C]1.0339[/C][C]0.306604[/C][C]0.153302[/C][/ROW]
[ROW][C]M2[/C][C]0.253554573223732[/C][C]0.250278[/C][C]1.0131[/C][C]0.316315[/C][C]0.158158[/C][/ROW]
[ROW][C]M3[/C][C]0.164737601509922[/C][C]0.250602[/C][C]0.6574[/C][C]0.514221[/C][C]0.25711[/C][/ROW]
[ROW][C]M4[/C][C]0.104318076837112[/C][C]0.254379[/C][C]0.4101[/C][C]0.683645[/C][C]0.341822[/C][/ROW]
[ROW][C]M5[/C][C]0.00582161571510191[/C][C]0.258465[/C][C]0.0225[/C][C]0.982128[/C][C]0.491064[/C][/ROW]
[ROW][C]M6[/C][C]-0.237226165346313[/C][C]0.255006[/C][C]-0.9303[/C][C]0.357083[/C][C]0.178542[/C][/ROW]
[ROW][C]M7[/C][C]-0.255209948593140[/C][C]0.253746[/C][C]-1.0058[/C][C]0.319789[/C][C]0.159895[/C][/ROW]
[ROW][C]M8[/C][C]-0.355693644920158[/C][C]0.260746[/C][C]-1.3641[/C][C]0.179161[/C][C]0.089581[/C][/ROW]
[ROW][C]M9[/C][C]-0.284510616633968[/C][C]0.255123[/C][C]-1.1152[/C][C]0.270562[/C][C]0.135281[/C][/ROW]
[ROW][C]M10[/C][C]-0.266212183673976[/C][C]0.249265[/C][C]-1.068[/C][C]0.291099[/C][C]0.14555[/C][/ROW]
[ROW][C]M11[/C][C]-0.176952218938585[/C][C]0.248861[/C][C]-0.711[/C][C]0.480644[/C][C]0.240322[/C][/ROW]
[ROW][C]t[/C][C]-0.00534966597958625[/C][C]0.004964[/C][C]-1.0778[/C][C]0.286762[/C][C]0.143381[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58285&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58285&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)3.061369061514390.9948523.07720.0035150.001757
WLVrouw0.4839744704100130.0959145.04598e-064e-06
M10.2591664390195430.2506771.03390.3066040.153302
M20.2535545732237320.2502781.01310.3163150.158158
M30.1647376015099220.2506020.65740.5142210.25711
M40.1043180768371120.2543790.41010.6836450.341822
M50.005821615715101910.2584650.02250.9821280.491064
M6-0.2372261653463130.255006-0.93030.3570830.178542
M7-0.2552099485931400.253746-1.00580.3197890.159895
M8-0.3556936449201580.260746-1.36410.1791610.089581
M9-0.2845106166339680.255123-1.11520.2705620.135281
M10-0.2662121836739760.249265-1.0680.2910990.14555
M11-0.1769522189385850.248861-0.7110.4806440.240322
t-0.005349665979586250.004964-1.07780.2867620.143381







Multiple Linear Regression - Regression Statistics
Multiple R0.855373338223595
R-squared0.731663547743777
Adjusted R-squared0.655829332975714
F-TEST (value)9.64819837564813
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value3.1079736562134e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.392871359511733
Sum Squared Residuals7.10000363573149

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.855373338223595 \tabularnewline
R-squared & 0.731663547743777 \tabularnewline
Adjusted R-squared & 0.655829332975714 \tabularnewline
F-TEST (value) & 9.64819837564813 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 3.1079736562134e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.392871359511733 \tabularnewline
Sum Squared Residuals & 7.10000363573149 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58285&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.855373338223595[/C][/ROW]
[ROW][C]R-squared[/C][C]0.731663547743777[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.655829332975714[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]9.64819837564813[/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]3.1079736562134e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.392871359511733[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]7.10000363573149[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58285&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58285&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.855373338223595
R-squared0.731663547743777
Adjusted R-squared0.655829332975714
F-TEST (value)9.64819837564813
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value3.1079736562134e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.392871359511733
Sum Squared Residuals7.10000363573149







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.28.106533091613490.0934669083865133
288.04717411279708-0.0471741127970784
37.57.71102023989868-0.211020239898676
46.87.16127657883627-0.361276578836268
56.56.91223811061167-0.412238110611666
66.66.90582789877567-0.305827898775672
77.67.80204594332828-0.202045943328284
888.03499471030869-0.034994710308689
98.18.004033178533290.0959668214667092
107.77.581404922144680.118595077855316
117.57.278135644572480.221864355427522
127.67.449738197531480.150261802468523
137.87.84874731169444-0.0487473116944376
147.87.88618322696004-0.0861832269600417
157.87.743619142225640.0563808577743558
167.57.484260163409240.0157398365907572
177.57.283619142225640.216380857774356
187.17.083619142225640.0163808577743564
197.57.59265761045024-0.0926576104502444
207.57.58361914222564-0.0836191422256437
217.67.60105505749125-0.00105505749124558
227.77.323619142225640.376380857774357
237.77.213939652817440.486060347182557
247.97.433939652817440.466060347182557
258.17.73615387289840.363846127101598
268.27.7251923411230.474807658876995
278.27.53423080934760.665769190652395
288.27.37166672461320.828333275386793
297.97.267820597511610.63217940248839
307.37.019423150470610.280576849529392
316.97.3832692775722-0.483269277572206
326.67.3742308093476-0.774230809347605
336.77.3432692775722-0.643269277572206
346.97.1142308093476-0.214230809347605
3577.05294876698041-0.052948766980406
367.17.2245513199394-0.124551319939405
377.27.52676554002036-0.326765540020362
387.17.51580400824496-0.415804008244965
396.97.42163737055157-0.521637370551568
4077.40426562694017-0.404265626940174
416.87.10682971167457-0.306829711674573
426.46.61644502942856-0.216445029428564
436.76.641509027243150.0584909727568479
446.66.390483323813540.209516676186455
456.46.262726897956140.137273102043858
466.36.37247055901855-0.0724705590185516
476.26.45638085777436-0.256380857774356
486.56.67638085777436-0.176380857774356
496.86.88180018377331-0.0818001837733118
506.86.725646310874910.0743536891250899
516.46.38949243797650.0105075620234931
526.16.17853090620111-0.0785309062011079
535.85.9294924379765-0.129492437976507
546.15.874684779099510.225315220900489
557.26.480518141406110.719481858593886
567.36.616672014304520.683327985695483
576.96.488915588447120.411084411552884
586.16.30827456726352-0.208274567263517
595.86.19859507785532-0.398595077855316
606.26.51538997193732-0.315389971937318

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.2 & 8.10653309161349 & 0.0934669083865133 \tabularnewline
2 & 8 & 8.04717411279708 & -0.0471741127970784 \tabularnewline
3 & 7.5 & 7.71102023989868 & -0.211020239898676 \tabularnewline
4 & 6.8 & 7.16127657883627 & -0.361276578836268 \tabularnewline
5 & 6.5 & 6.91223811061167 & -0.412238110611666 \tabularnewline
6 & 6.6 & 6.90582789877567 & -0.305827898775672 \tabularnewline
7 & 7.6 & 7.80204594332828 & -0.202045943328284 \tabularnewline
8 & 8 & 8.03499471030869 & -0.034994710308689 \tabularnewline
9 & 8.1 & 8.00403317853329 & 0.0959668214667092 \tabularnewline
10 & 7.7 & 7.58140492214468 & 0.118595077855316 \tabularnewline
11 & 7.5 & 7.27813564457248 & 0.221864355427522 \tabularnewline
12 & 7.6 & 7.44973819753148 & 0.150261802468523 \tabularnewline
13 & 7.8 & 7.84874731169444 & -0.0487473116944376 \tabularnewline
14 & 7.8 & 7.88618322696004 & -0.0861832269600417 \tabularnewline
15 & 7.8 & 7.74361914222564 & 0.0563808577743558 \tabularnewline
16 & 7.5 & 7.48426016340924 & 0.0157398365907572 \tabularnewline
17 & 7.5 & 7.28361914222564 & 0.216380857774356 \tabularnewline
18 & 7.1 & 7.08361914222564 & 0.0163808577743564 \tabularnewline
19 & 7.5 & 7.59265761045024 & -0.0926576104502444 \tabularnewline
20 & 7.5 & 7.58361914222564 & -0.0836191422256437 \tabularnewline
21 & 7.6 & 7.60105505749125 & -0.00105505749124558 \tabularnewline
22 & 7.7 & 7.32361914222564 & 0.376380857774357 \tabularnewline
23 & 7.7 & 7.21393965281744 & 0.486060347182557 \tabularnewline
24 & 7.9 & 7.43393965281744 & 0.466060347182557 \tabularnewline
25 & 8.1 & 7.7361538728984 & 0.363846127101598 \tabularnewline
26 & 8.2 & 7.725192341123 & 0.474807658876995 \tabularnewline
27 & 8.2 & 7.5342308093476 & 0.665769190652395 \tabularnewline
28 & 8.2 & 7.3716667246132 & 0.828333275386793 \tabularnewline
29 & 7.9 & 7.26782059751161 & 0.63217940248839 \tabularnewline
30 & 7.3 & 7.01942315047061 & 0.280576849529392 \tabularnewline
31 & 6.9 & 7.3832692775722 & -0.483269277572206 \tabularnewline
32 & 6.6 & 7.3742308093476 & -0.774230809347605 \tabularnewline
33 & 6.7 & 7.3432692775722 & -0.643269277572206 \tabularnewline
34 & 6.9 & 7.1142308093476 & -0.214230809347605 \tabularnewline
35 & 7 & 7.05294876698041 & -0.052948766980406 \tabularnewline
36 & 7.1 & 7.2245513199394 & -0.124551319939405 \tabularnewline
37 & 7.2 & 7.52676554002036 & -0.326765540020362 \tabularnewline
38 & 7.1 & 7.51580400824496 & -0.415804008244965 \tabularnewline
39 & 6.9 & 7.42163737055157 & -0.521637370551568 \tabularnewline
40 & 7 & 7.40426562694017 & -0.404265626940174 \tabularnewline
41 & 6.8 & 7.10682971167457 & -0.306829711674573 \tabularnewline
42 & 6.4 & 6.61644502942856 & -0.216445029428564 \tabularnewline
43 & 6.7 & 6.64150902724315 & 0.0584909727568479 \tabularnewline
44 & 6.6 & 6.39048332381354 & 0.209516676186455 \tabularnewline
45 & 6.4 & 6.26272689795614 & 0.137273102043858 \tabularnewline
46 & 6.3 & 6.37247055901855 & -0.0724705590185516 \tabularnewline
47 & 6.2 & 6.45638085777436 & -0.256380857774356 \tabularnewline
48 & 6.5 & 6.67638085777436 & -0.176380857774356 \tabularnewline
49 & 6.8 & 6.88180018377331 & -0.0818001837733118 \tabularnewline
50 & 6.8 & 6.72564631087491 & 0.0743536891250899 \tabularnewline
51 & 6.4 & 6.3894924379765 & 0.0105075620234931 \tabularnewline
52 & 6.1 & 6.17853090620111 & -0.0785309062011079 \tabularnewline
53 & 5.8 & 5.9294924379765 & -0.129492437976507 \tabularnewline
54 & 6.1 & 5.87468477909951 & 0.225315220900489 \tabularnewline
55 & 7.2 & 6.48051814140611 & 0.719481858593886 \tabularnewline
56 & 7.3 & 6.61667201430452 & 0.683327985695483 \tabularnewline
57 & 6.9 & 6.48891558844712 & 0.411084411552884 \tabularnewline
58 & 6.1 & 6.30827456726352 & -0.208274567263517 \tabularnewline
59 & 5.8 & 6.19859507785532 & -0.398595077855316 \tabularnewline
60 & 6.2 & 6.51538997193732 & -0.315389971937318 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58285&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]8.2[/C][C]8.10653309161349[/C][C]0.0934669083865133[/C][/ROW]
[ROW][C]2[/C][C]8[/C][C]8.04717411279708[/C][C]-0.0471741127970784[/C][/ROW]
[ROW][C]3[/C][C]7.5[/C][C]7.71102023989868[/C][C]-0.211020239898676[/C][/ROW]
[ROW][C]4[/C][C]6.8[/C][C]7.16127657883627[/C][C]-0.361276578836268[/C][/ROW]
[ROW][C]5[/C][C]6.5[/C][C]6.91223811061167[/C][C]-0.412238110611666[/C][/ROW]
[ROW][C]6[/C][C]6.6[/C][C]6.90582789877567[/C][C]-0.305827898775672[/C][/ROW]
[ROW][C]7[/C][C]7.6[/C][C]7.80204594332828[/C][C]-0.202045943328284[/C][/ROW]
[ROW][C]8[/C][C]8[/C][C]8.03499471030869[/C][C]-0.034994710308689[/C][/ROW]
[ROW][C]9[/C][C]8.1[/C][C]8.00403317853329[/C][C]0.0959668214667092[/C][/ROW]
[ROW][C]10[/C][C]7.7[/C][C]7.58140492214468[/C][C]0.118595077855316[/C][/ROW]
[ROW][C]11[/C][C]7.5[/C][C]7.27813564457248[/C][C]0.221864355427522[/C][/ROW]
[ROW][C]12[/C][C]7.6[/C][C]7.44973819753148[/C][C]0.150261802468523[/C][/ROW]
[ROW][C]13[/C][C]7.8[/C][C]7.84874731169444[/C][C]-0.0487473116944376[/C][/ROW]
[ROW][C]14[/C][C]7.8[/C][C]7.88618322696004[/C][C]-0.0861832269600417[/C][/ROW]
[ROW][C]15[/C][C]7.8[/C][C]7.74361914222564[/C][C]0.0563808577743558[/C][/ROW]
[ROW][C]16[/C][C]7.5[/C][C]7.48426016340924[/C][C]0.0157398365907572[/C][/ROW]
[ROW][C]17[/C][C]7.5[/C][C]7.28361914222564[/C][C]0.216380857774356[/C][/ROW]
[ROW][C]18[/C][C]7.1[/C][C]7.08361914222564[/C][C]0.0163808577743564[/C][/ROW]
[ROW][C]19[/C][C]7.5[/C][C]7.59265761045024[/C][C]-0.0926576104502444[/C][/ROW]
[ROW][C]20[/C][C]7.5[/C][C]7.58361914222564[/C][C]-0.0836191422256437[/C][/ROW]
[ROW][C]21[/C][C]7.6[/C][C]7.60105505749125[/C][C]-0.00105505749124558[/C][/ROW]
[ROW][C]22[/C][C]7.7[/C][C]7.32361914222564[/C][C]0.376380857774357[/C][/ROW]
[ROW][C]23[/C][C]7.7[/C][C]7.21393965281744[/C][C]0.486060347182557[/C][/ROW]
[ROW][C]24[/C][C]7.9[/C][C]7.43393965281744[/C][C]0.466060347182557[/C][/ROW]
[ROW][C]25[/C][C]8.1[/C][C]7.7361538728984[/C][C]0.363846127101598[/C][/ROW]
[ROW][C]26[/C][C]8.2[/C][C]7.725192341123[/C][C]0.474807658876995[/C][/ROW]
[ROW][C]27[/C][C]8.2[/C][C]7.5342308093476[/C][C]0.665769190652395[/C][/ROW]
[ROW][C]28[/C][C]8.2[/C][C]7.3716667246132[/C][C]0.828333275386793[/C][/ROW]
[ROW][C]29[/C][C]7.9[/C][C]7.26782059751161[/C][C]0.63217940248839[/C][/ROW]
[ROW][C]30[/C][C]7.3[/C][C]7.01942315047061[/C][C]0.280576849529392[/C][/ROW]
[ROW][C]31[/C][C]6.9[/C][C]7.3832692775722[/C][C]-0.483269277572206[/C][/ROW]
[ROW][C]32[/C][C]6.6[/C][C]7.3742308093476[/C][C]-0.774230809347605[/C][/ROW]
[ROW][C]33[/C][C]6.7[/C][C]7.3432692775722[/C][C]-0.643269277572206[/C][/ROW]
[ROW][C]34[/C][C]6.9[/C][C]7.1142308093476[/C][C]-0.214230809347605[/C][/ROW]
[ROW][C]35[/C][C]7[/C][C]7.05294876698041[/C][C]-0.052948766980406[/C][/ROW]
[ROW][C]36[/C][C]7.1[/C][C]7.2245513199394[/C][C]-0.124551319939405[/C][/ROW]
[ROW][C]37[/C][C]7.2[/C][C]7.52676554002036[/C][C]-0.326765540020362[/C][/ROW]
[ROW][C]38[/C][C]7.1[/C][C]7.51580400824496[/C][C]-0.415804008244965[/C][/ROW]
[ROW][C]39[/C][C]6.9[/C][C]7.42163737055157[/C][C]-0.521637370551568[/C][/ROW]
[ROW][C]40[/C][C]7[/C][C]7.40426562694017[/C][C]-0.404265626940174[/C][/ROW]
[ROW][C]41[/C][C]6.8[/C][C]7.10682971167457[/C][C]-0.306829711674573[/C][/ROW]
[ROW][C]42[/C][C]6.4[/C][C]6.61644502942856[/C][C]-0.216445029428564[/C][/ROW]
[ROW][C]43[/C][C]6.7[/C][C]6.64150902724315[/C][C]0.0584909727568479[/C][/ROW]
[ROW][C]44[/C][C]6.6[/C][C]6.39048332381354[/C][C]0.209516676186455[/C][/ROW]
[ROW][C]45[/C][C]6.4[/C][C]6.26272689795614[/C][C]0.137273102043858[/C][/ROW]
[ROW][C]46[/C][C]6.3[/C][C]6.37247055901855[/C][C]-0.0724705590185516[/C][/ROW]
[ROW][C]47[/C][C]6.2[/C][C]6.45638085777436[/C][C]-0.256380857774356[/C][/ROW]
[ROW][C]48[/C][C]6.5[/C][C]6.67638085777436[/C][C]-0.176380857774356[/C][/ROW]
[ROW][C]49[/C][C]6.8[/C][C]6.88180018377331[/C][C]-0.0818001837733118[/C][/ROW]
[ROW][C]50[/C][C]6.8[/C][C]6.72564631087491[/C][C]0.0743536891250899[/C][/ROW]
[ROW][C]51[/C][C]6.4[/C][C]6.3894924379765[/C][C]0.0105075620234931[/C][/ROW]
[ROW][C]52[/C][C]6.1[/C][C]6.17853090620111[/C][C]-0.0785309062011079[/C][/ROW]
[ROW][C]53[/C][C]5.8[/C][C]5.9294924379765[/C][C]-0.129492437976507[/C][/ROW]
[ROW][C]54[/C][C]6.1[/C][C]5.87468477909951[/C][C]0.225315220900489[/C][/ROW]
[ROW][C]55[/C][C]7.2[/C][C]6.48051814140611[/C][C]0.719481858593886[/C][/ROW]
[ROW][C]56[/C][C]7.3[/C][C]6.61667201430452[/C][C]0.683327985695483[/C][/ROW]
[ROW][C]57[/C][C]6.9[/C][C]6.48891558844712[/C][C]0.411084411552884[/C][/ROW]
[ROW][C]58[/C][C]6.1[/C][C]6.30827456726352[/C][C]-0.208274567263517[/C][/ROW]
[ROW][C]59[/C][C]5.8[/C][C]6.19859507785532[/C][C]-0.398595077855316[/C][/ROW]
[ROW][C]60[/C][C]6.2[/C][C]6.51538997193732[/C][C]-0.315389971937318[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58285&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58285&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
18.28.106533091613490.0934669083865133
288.04717411279708-0.0471741127970784
37.57.71102023989868-0.211020239898676
46.87.16127657883627-0.361276578836268
56.56.91223811061167-0.412238110611666
66.66.90582789877567-0.305827898775672
77.67.80204594332828-0.202045943328284
888.03499471030869-0.034994710308689
98.18.004033178533290.0959668214667092
107.77.581404922144680.118595077855316
117.57.278135644572480.221864355427522
127.67.449738197531480.150261802468523
137.87.84874731169444-0.0487473116944376
147.87.88618322696004-0.0861832269600417
157.87.743619142225640.0563808577743558
167.57.484260163409240.0157398365907572
177.57.283619142225640.216380857774356
187.17.083619142225640.0163808577743564
197.57.59265761045024-0.0926576104502444
207.57.58361914222564-0.0836191422256437
217.67.60105505749125-0.00105505749124558
227.77.323619142225640.376380857774357
237.77.213939652817440.486060347182557
247.97.433939652817440.466060347182557
258.17.73615387289840.363846127101598
268.27.7251923411230.474807658876995
278.27.53423080934760.665769190652395
288.27.37166672461320.828333275386793
297.97.267820597511610.63217940248839
307.37.019423150470610.280576849529392
316.97.3832692775722-0.483269277572206
326.67.3742308093476-0.774230809347605
336.77.3432692775722-0.643269277572206
346.97.1142308093476-0.214230809347605
3577.05294876698041-0.052948766980406
367.17.2245513199394-0.124551319939405
377.27.52676554002036-0.326765540020362
387.17.51580400824496-0.415804008244965
396.97.42163737055157-0.521637370551568
4077.40426562694017-0.404265626940174
416.87.10682971167457-0.306829711674573
426.46.61644502942856-0.216445029428564
436.76.641509027243150.0584909727568479
446.66.390483323813540.209516676186455
456.46.262726897956140.137273102043858
466.36.37247055901855-0.0724705590185516
476.26.45638085777436-0.256380857774356
486.56.67638085777436-0.176380857774356
496.86.88180018377331-0.0818001837733118
506.86.725646310874910.0743536891250899
516.46.38949243797650.0105075620234931
526.16.17853090620111-0.0785309062011079
535.85.9294924379765-0.129492437976507
546.15.874684779099510.225315220900489
557.26.480518141406110.719481858593886
567.36.616672014304520.683327985695483
576.96.488915588447120.411084411552884
586.16.30827456726352-0.208274567263517
595.86.19859507785532-0.398595077855316
606.26.51538997193732-0.315389971937318







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.005133560969956040.01026712193991210.994866439030044
180.0006651415262557120.001330283052511420.999334858473744
190.0003434037239602220.0006868074479204440.99965659627604
200.0001445203188261060.0002890406376522120.999855479681174
212.25283597051782e-054.50567194103564e-050.999977471640295
222.96577437613986e-055.93154875227972e-050.999970342256239
237.21257982427057e-061.44251596485411e-050.999992787420176
241.84097440275898e-063.68194880551796e-060.999998159025597
258.53108423484873e-071.70621684696975e-060.999999146891577
263.58514114687643e-067.17028229375285e-060.999996414858853
275.04561291695984e-050.0001009122583391970.99994954387083
280.0007934780659069390.001586956131813880.999206521934093
290.002398208828175060.004796417656350120.997601791171825
300.003234091783073380.006468183566146750.996765908216927
310.02551199740749220.05102399481498450.974488002592508
320.2933389482771320.5866778965542640.706661051722868
330.5785567586154240.8428864827691510.421443241384576
340.5583231250118330.8833537499763330.441676874988167
350.7467214975799590.5065570048400820.253278502420041
360.8561011552735150.287797689452970.143898844726485
370.8092059909939580.3815880180120840.190794009006042
380.7723095834868570.4553808330262850.227690416513143
390.7954536889844190.4090926220311620.204546311015581
400.802295044815930.3954099103681380.197704955184069
410.7181709318704970.5636581362590060.281829068129503
420.7033992194929430.5932015610141140.296600780507057
430.9816050464818120.03678990703637550.0183949535181878

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.00513356096995604 & 0.0102671219399121 & 0.994866439030044 \tabularnewline
18 & 0.000665141526255712 & 0.00133028305251142 & 0.999334858473744 \tabularnewline
19 & 0.000343403723960222 & 0.000686807447920444 & 0.99965659627604 \tabularnewline
20 & 0.000144520318826106 & 0.000289040637652212 & 0.999855479681174 \tabularnewline
21 & 2.25283597051782e-05 & 4.50567194103564e-05 & 0.999977471640295 \tabularnewline
22 & 2.96577437613986e-05 & 5.93154875227972e-05 & 0.999970342256239 \tabularnewline
23 & 7.21257982427057e-06 & 1.44251596485411e-05 & 0.999992787420176 \tabularnewline
24 & 1.84097440275898e-06 & 3.68194880551796e-06 & 0.999998159025597 \tabularnewline
25 & 8.53108423484873e-07 & 1.70621684696975e-06 & 0.999999146891577 \tabularnewline
26 & 3.58514114687643e-06 & 7.17028229375285e-06 & 0.999996414858853 \tabularnewline
27 & 5.04561291695984e-05 & 0.000100912258339197 & 0.99994954387083 \tabularnewline
28 & 0.000793478065906939 & 0.00158695613181388 & 0.999206521934093 \tabularnewline
29 & 0.00239820882817506 & 0.00479641765635012 & 0.997601791171825 \tabularnewline
30 & 0.00323409178307338 & 0.00646818356614675 & 0.996765908216927 \tabularnewline
31 & 0.0255119974074922 & 0.0510239948149845 & 0.974488002592508 \tabularnewline
32 & 0.293338948277132 & 0.586677896554264 & 0.706661051722868 \tabularnewline
33 & 0.578556758615424 & 0.842886482769151 & 0.421443241384576 \tabularnewline
34 & 0.558323125011833 & 0.883353749976333 & 0.441676874988167 \tabularnewline
35 & 0.746721497579959 & 0.506557004840082 & 0.253278502420041 \tabularnewline
36 & 0.856101155273515 & 0.28779768945297 & 0.143898844726485 \tabularnewline
37 & 0.809205990993958 & 0.381588018012084 & 0.190794009006042 \tabularnewline
38 & 0.772309583486857 & 0.455380833026285 & 0.227690416513143 \tabularnewline
39 & 0.795453688984419 & 0.409092622031162 & 0.204546311015581 \tabularnewline
40 & 0.80229504481593 & 0.395409910368138 & 0.197704955184069 \tabularnewline
41 & 0.718170931870497 & 0.563658136259006 & 0.281829068129503 \tabularnewline
42 & 0.703399219492943 & 0.593201561014114 & 0.296600780507057 \tabularnewline
43 & 0.981605046481812 & 0.0367899070363755 & 0.0183949535181878 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58285&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.00513356096995604[/C][C]0.0102671219399121[/C][C]0.994866439030044[/C][/ROW]
[ROW][C]18[/C][C]0.000665141526255712[/C][C]0.00133028305251142[/C][C]0.999334858473744[/C][/ROW]
[ROW][C]19[/C][C]0.000343403723960222[/C][C]0.000686807447920444[/C][C]0.99965659627604[/C][/ROW]
[ROW][C]20[/C][C]0.000144520318826106[/C][C]0.000289040637652212[/C][C]0.999855479681174[/C][/ROW]
[ROW][C]21[/C][C]2.25283597051782e-05[/C][C]4.50567194103564e-05[/C][C]0.999977471640295[/C][/ROW]
[ROW][C]22[/C][C]2.96577437613986e-05[/C][C]5.93154875227972e-05[/C][C]0.999970342256239[/C][/ROW]
[ROW][C]23[/C][C]7.21257982427057e-06[/C][C]1.44251596485411e-05[/C][C]0.999992787420176[/C][/ROW]
[ROW][C]24[/C][C]1.84097440275898e-06[/C][C]3.68194880551796e-06[/C][C]0.999998159025597[/C][/ROW]
[ROW][C]25[/C][C]8.53108423484873e-07[/C][C]1.70621684696975e-06[/C][C]0.999999146891577[/C][/ROW]
[ROW][C]26[/C][C]3.58514114687643e-06[/C][C]7.17028229375285e-06[/C][C]0.999996414858853[/C][/ROW]
[ROW][C]27[/C][C]5.04561291695984e-05[/C][C]0.000100912258339197[/C][C]0.99994954387083[/C][/ROW]
[ROW][C]28[/C][C]0.000793478065906939[/C][C]0.00158695613181388[/C][C]0.999206521934093[/C][/ROW]
[ROW][C]29[/C][C]0.00239820882817506[/C][C]0.00479641765635012[/C][C]0.997601791171825[/C][/ROW]
[ROW][C]30[/C][C]0.00323409178307338[/C][C]0.00646818356614675[/C][C]0.996765908216927[/C][/ROW]
[ROW][C]31[/C][C]0.0255119974074922[/C][C]0.0510239948149845[/C][C]0.974488002592508[/C][/ROW]
[ROW][C]32[/C][C]0.293338948277132[/C][C]0.586677896554264[/C][C]0.706661051722868[/C][/ROW]
[ROW][C]33[/C][C]0.578556758615424[/C][C]0.842886482769151[/C][C]0.421443241384576[/C][/ROW]
[ROW][C]34[/C][C]0.558323125011833[/C][C]0.883353749976333[/C][C]0.441676874988167[/C][/ROW]
[ROW][C]35[/C][C]0.746721497579959[/C][C]0.506557004840082[/C][C]0.253278502420041[/C][/ROW]
[ROW][C]36[/C][C]0.856101155273515[/C][C]0.28779768945297[/C][C]0.143898844726485[/C][/ROW]
[ROW][C]37[/C][C]0.809205990993958[/C][C]0.381588018012084[/C][C]0.190794009006042[/C][/ROW]
[ROW][C]38[/C][C]0.772309583486857[/C][C]0.455380833026285[/C][C]0.227690416513143[/C][/ROW]
[ROW][C]39[/C][C]0.795453688984419[/C][C]0.409092622031162[/C][C]0.204546311015581[/C][/ROW]
[ROW][C]40[/C][C]0.80229504481593[/C][C]0.395409910368138[/C][C]0.197704955184069[/C][/ROW]
[ROW][C]41[/C][C]0.718170931870497[/C][C]0.563658136259006[/C][C]0.281829068129503[/C][/ROW]
[ROW][C]42[/C][C]0.703399219492943[/C][C]0.593201561014114[/C][C]0.296600780507057[/C][/ROW]
[ROW][C]43[/C][C]0.981605046481812[/C][C]0.0367899070363755[/C][C]0.0183949535181878[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58285&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58285&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.005133560969956040.01026712193991210.994866439030044
180.0006651415262557120.001330283052511420.999334858473744
190.0003434037239602220.0006868074479204440.99965659627604
200.0001445203188261060.0002890406376522120.999855479681174
212.25283597051782e-054.50567194103564e-050.999977471640295
222.96577437613986e-055.93154875227972e-050.999970342256239
237.21257982427057e-061.44251596485411e-050.999992787420176
241.84097440275898e-063.68194880551796e-060.999998159025597
258.53108423484873e-071.70621684696975e-060.999999146891577
263.58514114687643e-067.17028229375285e-060.999996414858853
275.04561291695984e-050.0001009122583391970.99994954387083
280.0007934780659069390.001586956131813880.999206521934093
290.002398208828175060.004796417656350120.997601791171825
300.003234091783073380.006468183566146750.996765908216927
310.02551199740749220.05102399481498450.974488002592508
320.2933389482771320.5866778965542640.706661051722868
330.5785567586154240.8428864827691510.421443241384576
340.5583231250118330.8833537499763330.441676874988167
350.7467214975799590.5065570048400820.253278502420041
360.8561011552735150.287797689452970.143898844726485
370.8092059909939580.3815880180120840.190794009006042
380.7723095834868570.4553808330262850.227690416513143
390.7954536889844190.4090926220311620.204546311015581
400.802295044815930.3954099103681380.197704955184069
410.7181709318704970.5636581362590060.281829068129503
420.7033992194929430.5932015610141140.296600780507057
430.9816050464818120.03678990703637550.0183949535181878







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level130.481481481481481NOK
5% type I error level150.555555555555556NOK
10% type I error level160.592592592592593NOK

\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 & 13 & 0.481481481481481 & NOK \tabularnewline
5% type I error level & 15 & 0.555555555555556 & NOK \tabularnewline
10% type I error level & 16 & 0.592592592592593 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58285&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]13[/C][C]0.481481481481481[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]15[/C][C]0.555555555555556[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]16[/C][C]0.592592592592593[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58285&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58285&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 level130.481481481481481NOK
5% type I error level150.555555555555556NOK
10% type I error level160.592592592592593NOK



Parameters (Session):
par1 = 2 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 2 ; 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')
}