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 computationFri, 20 Nov 2009 12:32:49 -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/t12587458703f9b8cg8ughddh0.htm/, Retrieved Sat, 20 Apr 2024 07:55:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58442, Retrieved Sat, 20 Apr 2024 07:55:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact120
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] [] [2009-11-20 19:32:49] [aa8eb70c35ea8a87edcd21d6427e653e] [Current]
Feedback Forum

Post a new message
Dataseries X:
589	130	595	139
584	127	591	135
573	122	589	130
567	117	584	127
569	112	573	122
621	113	567	117
629	149	569	112
628	157	621	113
612	157	629	149
595	147	628	157
597	137	612	157
593	132	595	147
590	125	597	137
580	123	593	132
574	117	590	125
573	114	580	123
573	111	574	117
620	112	573	114
626	144	573	111
620	150	620	112
588	149	626	144
566	134	620	150
557	123	588	149
561	116	566	134
549	117	557	123
532	111	561	116
526	105	549	117
511	102	532	111
499	95	526	105
555	93	511	102
565	124	499	95
542	130	555	93
527	124	565	124
510	115	542	130
514	106	527	124
517	105	510	115
508	105	514	106
493	101	517	105
490	95	508	105
469	93	493	101
478	84	490	95
528	87	469	93
534	116	478	84
518	120	528	87
506	117	534	116
502	109	518	120
516	105	506	117
528	107	502	109
533	109	516	105
536	109	528	107
537	108	533	109
524	107	536	109
536	99	537	108
587	103	524	107
597	131	536	99
581	137	587	103
564	135	597	131




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 74.8461699959766 + 2.19376705976759X[t] + 0.583817180808853Y1[t] -0.784569819676212Y2[t] -10.6853024858533M1[t] -16.6925710430407M2[t] -10.2731451518584M3[t] -12.6971781321019M4[t] + 2.54561934032703M5[t] + 54.8658399069361M6[t] -12.0357994812021M7[t] -66.5419062293564M8[t] -60.0192868381692M9[t] -40.3833766595293M10[t] -10.1516715402114M11[t] + 0.150462479682088t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  74.8461699959766 +  2.19376705976759X[t] +  0.583817180808853Y1[t] -0.784569819676212Y2[t] -10.6853024858533M1[t] -16.6925710430407M2[t] -10.2731451518584M3[t] -12.6971781321019M4[t] +  2.54561934032703M5[t] +  54.8658399069361M6[t] -12.0357994812021M7[t] -66.5419062293564M8[t] -60.0192868381692M9[t] -40.3833766595293M10[t] -10.1516715402114M11[t] +  0.150462479682088t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58442&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  74.8461699959766 +  2.19376705976759X[t] +  0.583817180808853Y1[t] -0.784569819676212Y2[t] -10.6853024858533M1[t] -16.6925710430407M2[t] -10.2731451518584M3[t] -12.6971781321019M4[t] +  2.54561934032703M5[t] +  54.8658399069361M6[t] -12.0357994812021M7[t] -66.5419062293564M8[t] -60.0192868381692M9[t] -40.3833766595293M10[t] -10.1516715402114M11[t] +  0.150462479682088t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58442&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58442&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] = + 74.8461699959766 + 2.19376705976759X[t] + 0.583817180808853Y1[t] -0.784569819676212Y2[t] -10.6853024858533M1[t] -16.6925710430407M2[t] -10.2731451518584M3[t] -12.6971781321019M4[t] + 2.54561934032703M5[t] + 54.8658399069361M6[t] -12.0357994812021M7[t] -66.5419062293564M8[t] -60.0192868381692M9[t] -40.3833766595293M10[t] -10.1516715402114M11[t] + 0.150462479682088t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)74.846169995976630.3514772.4660.0179370.008968
X2.193767059767590.3321966.603800
Y10.5838171808088530.1457154.00660.0002530.000127
Y2-0.7845698196762120.422976-1.85490.0708140.035407
M1-10.68530248585336.26046-1.70680.0954250.047713
M2-16.69257104304077.232645-2.30790.0261230.013061
M3-10.27314515185847.597654-1.35210.183740.09187
M4-12.69717813210197.727253-1.64320.1079960.053998
M52.545619340327039.1671880.27770.7826470.391324
M654.86583990693618.5829896.392400
M7-12.035799481202113.813277-0.87130.3886530.194326
M8-66.541906229356417.098992-3.89160.0003590.000179
M9-60.01928683816926.978926-8.600100
M10-40.38337665952935.812018-6.948300
M11-10.15167154021146.160731-1.64780.1070370.053518
t0.1504624796820880.1101291.36620.1793110.089656

\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) & 74.8461699959766 & 30.351477 & 2.466 & 0.017937 & 0.008968 \tabularnewline
X & 2.19376705976759 & 0.332196 & 6.6038 & 0 & 0 \tabularnewline
Y1 & 0.583817180808853 & 0.145715 & 4.0066 & 0.000253 & 0.000127 \tabularnewline
Y2 & -0.784569819676212 & 0.422976 & -1.8549 & 0.070814 & 0.035407 \tabularnewline
M1 & -10.6853024858533 & 6.26046 & -1.7068 & 0.095425 & 0.047713 \tabularnewline
M2 & -16.6925710430407 & 7.232645 & -2.3079 & 0.026123 & 0.013061 \tabularnewline
M3 & -10.2731451518584 & 7.597654 & -1.3521 & 0.18374 & 0.09187 \tabularnewline
M4 & -12.6971781321019 & 7.727253 & -1.6432 & 0.107996 & 0.053998 \tabularnewline
M5 & 2.54561934032703 & 9.167188 & 0.2777 & 0.782647 & 0.391324 \tabularnewline
M6 & 54.8658399069361 & 8.582989 & 6.3924 & 0 & 0 \tabularnewline
M7 & -12.0357994812021 & 13.813277 & -0.8713 & 0.388653 & 0.194326 \tabularnewline
M8 & -66.5419062293564 & 17.098992 & -3.8916 & 0.000359 & 0.000179 \tabularnewline
M9 & -60.0192868381692 & 6.978926 & -8.6001 & 0 & 0 \tabularnewline
M10 & -40.3833766595293 & 5.812018 & -6.9483 & 0 & 0 \tabularnewline
M11 & -10.1516715402114 & 6.160731 & -1.6478 & 0.107037 & 0.053518 \tabularnewline
t & 0.150462479682088 & 0.110129 & 1.3662 & 0.179311 & 0.089656 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58442&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]74.8461699959766[/C][C]30.351477[/C][C]2.466[/C][C]0.017937[/C][C]0.008968[/C][/ROW]
[ROW][C]X[/C][C]2.19376705976759[/C][C]0.332196[/C][C]6.6038[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y1[/C][C]0.583817180808853[/C][C]0.145715[/C][C]4.0066[/C][C]0.000253[/C][C]0.000127[/C][/ROW]
[ROW][C]Y2[/C][C]-0.784569819676212[/C][C]0.422976[/C][C]-1.8549[/C][C]0.070814[/C][C]0.035407[/C][/ROW]
[ROW][C]M1[/C][C]-10.6853024858533[/C][C]6.26046[/C][C]-1.7068[/C][C]0.095425[/C][C]0.047713[/C][/ROW]
[ROW][C]M2[/C][C]-16.6925710430407[/C][C]7.232645[/C][C]-2.3079[/C][C]0.026123[/C][C]0.013061[/C][/ROW]
[ROW][C]M3[/C][C]-10.2731451518584[/C][C]7.597654[/C][C]-1.3521[/C][C]0.18374[/C][C]0.09187[/C][/ROW]
[ROW][C]M4[/C][C]-12.6971781321019[/C][C]7.727253[/C][C]-1.6432[/C][C]0.107996[/C][C]0.053998[/C][/ROW]
[ROW][C]M5[/C][C]2.54561934032703[/C][C]9.167188[/C][C]0.2777[/C][C]0.782647[/C][C]0.391324[/C][/ROW]
[ROW][C]M6[/C][C]54.8658399069361[/C][C]8.582989[/C][C]6.3924[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]-12.0357994812021[/C][C]13.813277[/C][C]-0.8713[/C][C]0.388653[/C][C]0.194326[/C][/ROW]
[ROW][C]M8[/C][C]-66.5419062293564[/C][C]17.098992[/C][C]-3.8916[/C][C]0.000359[/C][C]0.000179[/C][/ROW]
[ROW][C]M9[/C][C]-60.0192868381692[/C][C]6.978926[/C][C]-8.6001[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-40.3833766595293[/C][C]5.812018[/C][C]-6.9483[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]-10.1516715402114[/C][C]6.160731[/C][C]-1.6478[/C][C]0.107037[/C][C]0.053518[/C][/ROW]
[ROW][C]t[/C][C]0.150462479682088[/C][C]0.110129[/C][C]1.3662[/C][C]0.179311[/C][C]0.089656[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58442&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58442&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)74.846169995976630.3514772.4660.0179370.008968
X2.193767059767590.3321966.603800
Y10.5838171808088530.1457154.00660.0002530.000127
Y2-0.7845698196762120.422976-1.85490.0708140.035407
M1-10.68530248585336.26046-1.70680.0954250.047713
M2-16.69257104304077.232645-2.30790.0261230.013061
M3-10.27314515185847.597654-1.35210.183740.09187
M4-12.69717813210197.727253-1.64320.1079960.053998
M52.545619340327039.1671880.27770.7826470.391324
M654.86583990693618.5829896.392400
M7-12.035799481202113.813277-0.87130.3886530.194326
M8-66.541906229356417.098992-3.89160.0003590.000179
M9-60.01928683816926.978926-8.600100
M10-40.38337665952935.812018-6.948300
M11-10.15167154021146.160731-1.64780.1070370.053518
t0.1504624796820880.1101291.36620.1793110.089656







Multiple Linear Regression - Regression Statistics
Multiple R0.987071748987967
R-squared0.974310637650165
Adjusted R-squared0.964912090449005
F-TEST (value)103.666089747359
F-TEST (DF numerator)15
F-TEST (DF denominator)41
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.7464999763229
Sum Squared Residuals2460.33873720999

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.987071748987967 \tabularnewline
R-squared & 0.974310637650165 \tabularnewline
Adjusted R-squared & 0.964912090449005 \tabularnewline
F-TEST (value) & 103.666089747359 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 41 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 7.7464999763229 \tabularnewline
Sum Squared Residuals & 2460.33873720999 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58442&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.987071748987967[/C][/ROW]
[ROW][C]R-squared[/C][C]0.974310637650165[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.964912090449005[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]103.666089747359[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]41[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]7.7464999763229[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2460.33873720999[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58442&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58442&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.987071748987967
R-squared0.974310637650165
Adjusted R-squared0.964912090449005
F-TEST (value)103.666089747359
F-TEST (DF numerator)15
F-TEST (DF denominator)41
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.7464999763229
Sum Squared Residuals2460.33873720999







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1589587.8170654058671.18293459413330
2584576.1819687045287.8180312954722
3573574.538236513318-1.53823651331768
4567560.7304542689036.26954573109736
5569562.6557390316596.34426096834063
6621617.7401351512463.25986484875400
7629635.055055854422-6.05505585442201
8628627.8234716464750.176528353525246
9612610.9225774554711.07742254452880
10595601.910903777899-6.91090377789872
11597601.014325886281-4.01432588628114
12593598.268430730348-5.26843073034825
13590581.3905538641848.60944613581628
14580572.7337940422897.26620595771116
15574569.8816172498554.11838275014532
16573556.75771340125416.2422865987457
17573566.7741880072676.22581199273327
18620623.208530391545-3.20853039154525
19626629.01160885468-3.01160885468073
20620614.4734046231545.52659537684597
21588597.34938828947-9.34938828946997
22566576.018933048368-10.0189330483677
23557564.372083023717-7.37208302371713
24561558.2424169425862.75758305741416
25549553.277257385341-4.27725738534084
26532542.085106410199-10.0851064101989
27526527.702016433075-1.70201643307534
28511513.629671597518-2.62967159751786
29499514.87107796446-15.8710779644599
30555556.550678638112-1.55067863811170
31565556.2924631504788.70753684952182
32542549.36232300526-7.36232300525979
33527524.3893099156492.61069008435057
34510506.2965649594023.7034350405978
35514512.8849902264181.11500977358164
36517518.12959348988-1.12959348987961
37508516.99115058403-8.9911505840297
38493504.895297629557-11.8952976295568
39490493.048229014536-3.04822901453604
40469480.768145961011-11.7681459610114
41478479.373469750845-1.37346975084486
42528527.7344328188050.265567181194724
43534536.917983647975-2.91798364797492
44518518.174557199987-0.174557199987186
45506499.0167162057976.98328379420343
46502488.77359821433113.2264017856686
47516505.72860086358310.2713991364166
48528524.3595588371863.6404411628137
49533529.5239727605793.47602723942096
50536529.1038332134286.89616678657241
51537534.8299007892162.17009921078374
52524532.114014771314-8.11401477131376
53536531.3255252457694.67447475423087
54587585.7662230002921.23377699970823
55597593.7228884924443.27711150755584
56581579.1662435251241.83375647487575
57564565.322008133613-1.32200813361284

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 589 & 587.817065405867 & 1.18293459413330 \tabularnewline
2 & 584 & 576.181968704528 & 7.8180312954722 \tabularnewline
3 & 573 & 574.538236513318 & -1.53823651331768 \tabularnewline
4 & 567 & 560.730454268903 & 6.26954573109736 \tabularnewline
5 & 569 & 562.655739031659 & 6.34426096834063 \tabularnewline
6 & 621 & 617.740135151246 & 3.25986484875400 \tabularnewline
7 & 629 & 635.055055854422 & -6.05505585442201 \tabularnewline
8 & 628 & 627.823471646475 & 0.176528353525246 \tabularnewline
9 & 612 & 610.922577455471 & 1.07742254452880 \tabularnewline
10 & 595 & 601.910903777899 & -6.91090377789872 \tabularnewline
11 & 597 & 601.014325886281 & -4.01432588628114 \tabularnewline
12 & 593 & 598.268430730348 & -5.26843073034825 \tabularnewline
13 & 590 & 581.390553864184 & 8.60944613581628 \tabularnewline
14 & 580 & 572.733794042289 & 7.26620595771116 \tabularnewline
15 & 574 & 569.881617249855 & 4.11838275014532 \tabularnewline
16 & 573 & 556.757713401254 & 16.2422865987457 \tabularnewline
17 & 573 & 566.774188007267 & 6.22581199273327 \tabularnewline
18 & 620 & 623.208530391545 & -3.20853039154525 \tabularnewline
19 & 626 & 629.01160885468 & -3.01160885468073 \tabularnewline
20 & 620 & 614.473404623154 & 5.52659537684597 \tabularnewline
21 & 588 & 597.34938828947 & -9.34938828946997 \tabularnewline
22 & 566 & 576.018933048368 & -10.0189330483677 \tabularnewline
23 & 557 & 564.372083023717 & -7.37208302371713 \tabularnewline
24 & 561 & 558.242416942586 & 2.75758305741416 \tabularnewline
25 & 549 & 553.277257385341 & -4.27725738534084 \tabularnewline
26 & 532 & 542.085106410199 & -10.0851064101989 \tabularnewline
27 & 526 & 527.702016433075 & -1.70201643307534 \tabularnewline
28 & 511 & 513.629671597518 & -2.62967159751786 \tabularnewline
29 & 499 & 514.87107796446 & -15.8710779644599 \tabularnewline
30 & 555 & 556.550678638112 & -1.55067863811170 \tabularnewline
31 & 565 & 556.292463150478 & 8.70753684952182 \tabularnewline
32 & 542 & 549.36232300526 & -7.36232300525979 \tabularnewline
33 & 527 & 524.389309915649 & 2.61069008435057 \tabularnewline
34 & 510 & 506.296564959402 & 3.7034350405978 \tabularnewline
35 & 514 & 512.884990226418 & 1.11500977358164 \tabularnewline
36 & 517 & 518.12959348988 & -1.12959348987961 \tabularnewline
37 & 508 & 516.99115058403 & -8.9911505840297 \tabularnewline
38 & 493 & 504.895297629557 & -11.8952976295568 \tabularnewline
39 & 490 & 493.048229014536 & -3.04822901453604 \tabularnewline
40 & 469 & 480.768145961011 & -11.7681459610114 \tabularnewline
41 & 478 & 479.373469750845 & -1.37346975084486 \tabularnewline
42 & 528 & 527.734432818805 & 0.265567181194724 \tabularnewline
43 & 534 & 536.917983647975 & -2.91798364797492 \tabularnewline
44 & 518 & 518.174557199987 & -0.174557199987186 \tabularnewline
45 & 506 & 499.016716205797 & 6.98328379420343 \tabularnewline
46 & 502 & 488.773598214331 & 13.2264017856686 \tabularnewline
47 & 516 & 505.728600863583 & 10.2713991364166 \tabularnewline
48 & 528 & 524.359558837186 & 3.6404411628137 \tabularnewline
49 & 533 & 529.523972760579 & 3.47602723942096 \tabularnewline
50 & 536 & 529.103833213428 & 6.89616678657241 \tabularnewline
51 & 537 & 534.829900789216 & 2.17009921078374 \tabularnewline
52 & 524 & 532.114014771314 & -8.11401477131376 \tabularnewline
53 & 536 & 531.325525245769 & 4.67447475423087 \tabularnewline
54 & 587 & 585.766223000292 & 1.23377699970823 \tabularnewline
55 & 597 & 593.722888492444 & 3.27711150755584 \tabularnewline
56 & 581 & 579.166243525124 & 1.83375647487575 \tabularnewline
57 & 564 & 565.322008133613 & -1.32200813361284 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58442&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]589[/C][C]587.817065405867[/C][C]1.18293459413330[/C][/ROW]
[ROW][C]2[/C][C]584[/C][C]576.181968704528[/C][C]7.8180312954722[/C][/ROW]
[ROW][C]3[/C][C]573[/C][C]574.538236513318[/C][C]-1.53823651331768[/C][/ROW]
[ROW][C]4[/C][C]567[/C][C]560.730454268903[/C][C]6.26954573109736[/C][/ROW]
[ROW][C]5[/C][C]569[/C][C]562.655739031659[/C][C]6.34426096834063[/C][/ROW]
[ROW][C]6[/C][C]621[/C][C]617.740135151246[/C][C]3.25986484875400[/C][/ROW]
[ROW][C]7[/C][C]629[/C][C]635.055055854422[/C][C]-6.05505585442201[/C][/ROW]
[ROW][C]8[/C][C]628[/C][C]627.823471646475[/C][C]0.176528353525246[/C][/ROW]
[ROW][C]9[/C][C]612[/C][C]610.922577455471[/C][C]1.07742254452880[/C][/ROW]
[ROW][C]10[/C][C]595[/C][C]601.910903777899[/C][C]-6.91090377789872[/C][/ROW]
[ROW][C]11[/C][C]597[/C][C]601.014325886281[/C][C]-4.01432588628114[/C][/ROW]
[ROW][C]12[/C][C]593[/C][C]598.268430730348[/C][C]-5.26843073034825[/C][/ROW]
[ROW][C]13[/C][C]590[/C][C]581.390553864184[/C][C]8.60944613581628[/C][/ROW]
[ROW][C]14[/C][C]580[/C][C]572.733794042289[/C][C]7.26620595771116[/C][/ROW]
[ROW][C]15[/C][C]574[/C][C]569.881617249855[/C][C]4.11838275014532[/C][/ROW]
[ROW][C]16[/C][C]573[/C][C]556.757713401254[/C][C]16.2422865987457[/C][/ROW]
[ROW][C]17[/C][C]573[/C][C]566.774188007267[/C][C]6.22581199273327[/C][/ROW]
[ROW][C]18[/C][C]620[/C][C]623.208530391545[/C][C]-3.20853039154525[/C][/ROW]
[ROW][C]19[/C][C]626[/C][C]629.01160885468[/C][C]-3.01160885468073[/C][/ROW]
[ROW][C]20[/C][C]620[/C][C]614.473404623154[/C][C]5.52659537684597[/C][/ROW]
[ROW][C]21[/C][C]588[/C][C]597.34938828947[/C][C]-9.34938828946997[/C][/ROW]
[ROW][C]22[/C][C]566[/C][C]576.018933048368[/C][C]-10.0189330483677[/C][/ROW]
[ROW][C]23[/C][C]557[/C][C]564.372083023717[/C][C]-7.37208302371713[/C][/ROW]
[ROW][C]24[/C][C]561[/C][C]558.242416942586[/C][C]2.75758305741416[/C][/ROW]
[ROW][C]25[/C][C]549[/C][C]553.277257385341[/C][C]-4.27725738534084[/C][/ROW]
[ROW][C]26[/C][C]532[/C][C]542.085106410199[/C][C]-10.0851064101989[/C][/ROW]
[ROW][C]27[/C][C]526[/C][C]527.702016433075[/C][C]-1.70201643307534[/C][/ROW]
[ROW][C]28[/C][C]511[/C][C]513.629671597518[/C][C]-2.62967159751786[/C][/ROW]
[ROW][C]29[/C][C]499[/C][C]514.87107796446[/C][C]-15.8710779644599[/C][/ROW]
[ROW][C]30[/C][C]555[/C][C]556.550678638112[/C][C]-1.55067863811170[/C][/ROW]
[ROW][C]31[/C][C]565[/C][C]556.292463150478[/C][C]8.70753684952182[/C][/ROW]
[ROW][C]32[/C][C]542[/C][C]549.36232300526[/C][C]-7.36232300525979[/C][/ROW]
[ROW][C]33[/C][C]527[/C][C]524.389309915649[/C][C]2.61069008435057[/C][/ROW]
[ROW][C]34[/C][C]510[/C][C]506.296564959402[/C][C]3.7034350405978[/C][/ROW]
[ROW][C]35[/C][C]514[/C][C]512.884990226418[/C][C]1.11500977358164[/C][/ROW]
[ROW][C]36[/C][C]517[/C][C]518.12959348988[/C][C]-1.12959348987961[/C][/ROW]
[ROW][C]37[/C][C]508[/C][C]516.99115058403[/C][C]-8.9911505840297[/C][/ROW]
[ROW][C]38[/C][C]493[/C][C]504.895297629557[/C][C]-11.8952976295568[/C][/ROW]
[ROW][C]39[/C][C]490[/C][C]493.048229014536[/C][C]-3.04822901453604[/C][/ROW]
[ROW][C]40[/C][C]469[/C][C]480.768145961011[/C][C]-11.7681459610114[/C][/ROW]
[ROW][C]41[/C][C]478[/C][C]479.373469750845[/C][C]-1.37346975084486[/C][/ROW]
[ROW][C]42[/C][C]528[/C][C]527.734432818805[/C][C]0.265567181194724[/C][/ROW]
[ROW][C]43[/C][C]534[/C][C]536.917983647975[/C][C]-2.91798364797492[/C][/ROW]
[ROW][C]44[/C][C]518[/C][C]518.174557199987[/C][C]-0.174557199987186[/C][/ROW]
[ROW][C]45[/C][C]506[/C][C]499.016716205797[/C][C]6.98328379420343[/C][/ROW]
[ROW][C]46[/C][C]502[/C][C]488.773598214331[/C][C]13.2264017856686[/C][/ROW]
[ROW][C]47[/C][C]516[/C][C]505.728600863583[/C][C]10.2713991364166[/C][/ROW]
[ROW][C]48[/C][C]528[/C][C]524.359558837186[/C][C]3.6404411628137[/C][/ROW]
[ROW][C]49[/C][C]533[/C][C]529.523972760579[/C][C]3.47602723942096[/C][/ROW]
[ROW][C]50[/C][C]536[/C][C]529.103833213428[/C][C]6.89616678657241[/C][/ROW]
[ROW][C]51[/C][C]537[/C][C]534.829900789216[/C][C]2.17009921078374[/C][/ROW]
[ROW][C]52[/C][C]524[/C][C]532.114014771314[/C][C]-8.11401477131376[/C][/ROW]
[ROW][C]53[/C][C]536[/C][C]531.325525245769[/C][C]4.67447475423087[/C][/ROW]
[ROW][C]54[/C][C]587[/C][C]585.766223000292[/C][C]1.23377699970823[/C][/ROW]
[ROW][C]55[/C][C]597[/C][C]593.722888492444[/C][C]3.27711150755584[/C][/ROW]
[ROW][C]56[/C][C]581[/C][C]579.166243525124[/C][C]1.83375647487575[/C][/ROW]
[ROW][C]57[/C][C]564[/C][C]565.322008133613[/C][C]-1.32200813361284[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58442&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58442&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
1589587.8170654058671.18293459413330
2584576.1819687045287.8180312954722
3573574.538236513318-1.53823651331768
4567560.7304542689036.26954573109736
5569562.6557390316596.34426096834063
6621617.7401351512463.25986484875400
7629635.055055854422-6.05505585442201
8628627.8234716464750.176528353525246
9612610.9225774554711.07742254452880
10595601.910903777899-6.91090377789872
11597601.014325886281-4.01432588628114
12593598.268430730348-5.26843073034825
13590581.3905538641848.60944613581628
14580572.7337940422897.26620595771116
15574569.8816172498554.11838275014532
16573556.75771340125416.2422865987457
17573566.7741880072676.22581199273327
18620623.208530391545-3.20853039154525
19626629.01160885468-3.01160885468073
20620614.4734046231545.52659537684597
21588597.34938828947-9.34938828946997
22566576.018933048368-10.0189330483677
23557564.372083023717-7.37208302371713
24561558.2424169425862.75758305741416
25549553.277257385341-4.27725738534084
26532542.085106410199-10.0851064101989
27526527.702016433075-1.70201643307534
28511513.629671597518-2.62967159751786
29499514.87107796446-15.8710779644599
30555556.550678638112-1.55067863811170
31565556.2924631504788.70753684952182
32542549.36232300526-7.36232300525979
33527524.3893099156492.61069008435057
34510506.2965649594023.7034350405978
35514512.8849902264181.11500977358164
36517518.12959348988-1.12959348987961
37508516.99115058403-8.9911505840297
38493504.895297629557-11.8952976295568
39490493.048229014536-3.04822901453604
40469480.768145961011-11.7681459610114
41478479.373469750845-1.37346975084486
42528527.7344328188050.265567181194724
43534536.917983647975-2.91798364797492
44518518.174557199987-0.174557199987186
45506499.0167162057976.98328379420343
46502488.77359821433113.2264017856686
47516505.72860086358310.2713991364166
48528524.3595588371863.6404411628137
49533529.5239727605793.47602723942096
50536529.1038332134286.89616678657241
51537534.8299007892162.17009921078374
52524532.114014771314-8.11401477131376
53536531.3255252457694.67447475423087
54587585.7662230002921.23377699970823
55597593.7228884924443.27711150755584
56581579.1662435251241.83375647487575
57564565.322008133613-1.32200813361284







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.02837689314585630.05675378629171250.971623106854144
200.04479218814964060.08958437629928130.95520781185036
210.3091700997836770.6183401995673540.690829900216323
220.2256282215910020.4512564431820040.774371778408998
230.2650940398741380.5301880797482750.734905960125862
240.3248048665142630.6496097330285260.675195133485737
250.3691145698779680.7382291397559360.630885430122032
260.3636318174499750.727263634899950.636368182550025
270.2835788747426930.5671577494853860.716421125257307
280.409088816124580.818177632249160.59091118387542
290.6477023369480230.7045953261039530.352297663051977
300.8290466261760740.3419067476478520.170953373823926
310.9194834470296950.1610331059406110.0805165529703053
320.874642267156270.2507154656874590.125357732843730
330.9672301694890980.06553966102180320.0327698305109016
340.963075906064350.07384818787129860.0369240939356493
350.9700800484628360.05983990307432760.0299199515371638
360.9678097794367420.06438044112651540.0321902205632577
370.9958887106446010.008222578710797320.00411128935539866
380.995445039697480.009109920605038540.00455496030251927

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.0283768931458563 & 0.0567537862917125 & 0.971623106854144 \tabularnewline
20 & 0.0447921881496406 & 0.0895843762992813 & 0.95520781185036 \tabularnewline
21 & 0.309170099783677 & 0.618340199567354 & 0.690829900216323 \tabularnewline
22 & 0.225628221591002 & 0.451256443182004 & 0.774371778408998 \tabularnewline
23 & 0.265094039874138 & 0.530188079748275 & 0.734905960125862 \tabularnewline
24 & 0.324804866514263 & 0.649609733028526 & 0.675195133485737 \tabularnewline
25 & 0.369114569877968 & 0.738229139755936 & 0.630885430122032 \tabularnewline
26 & 0.363631817449975 & 0.72726363489995 & 0.636368182550025 \tabularnewline
27 & 0.283578874742693 & 0.567157749485386 & 0.716421125257307 \tabularnewline
28 & 0.40908881612458 & 0.81817763224916 & 0.59091118387542 \tabularnewline
29 & 0.647702336948023 & 0.704595326103953 & 0.352297663051977 \tabularnewline
30 & 0.829046626176074 & 0.341906747647852 & 0.170953373823926 \tabularnewline
31 & 0.919483447029695 & 0.161033105940611 & 0.0805165529703053 \tabularnewline
32 & 0.87464226715627 & 0.250715465687459 & 0.125357732843730 \tabularnewline
33 & 0.967230169489098 & 0.0655396610218032 & 0.0327698305109016 \tabularnewline
34 & 0.96307590606435 & 0.0738481878712986 & 0.0369240939356493 \tabularnewline
35 & 0.970080048462836 & 0.0598399030743276 & 0.0299199515371638 \tabularnewline
36 & 0.967809779436742 & 0.0643804411265154 & 0.0321902205632577 \tabularnewline
37 & 0.995888710644601 & 0.00822257871079732 & 0.00411128935539866 \tabularnewline
38 & 0.99544503969748 & 0.00910992060503854 & 0.00455496030251927 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58442&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]19[/C][C]0.0283768931458563[/C][C]0.0567537862917125[/C][C]0.971623106854144[/C][/ROW]
[ROW][C]20[/C][C]0.0447921881496406[/C][C]0.0895843762992813[/C][C]0.95520781185036[/C][/ROW]
[ROW][C]21[/C][C]0.309170099783677[/C][C]0.618340199567354[/C][C]0.690829900216323[/C][/ROW]
[ROW][C]22[/C][C]0.225628221591002[/C][C]0.451256443182004[/C][C]0.774371778408998[/C][/ROW]
[ROW][C]23[/C][C]0.265094039874138[/C][C]0.530188079748275[/C][C]0.734905960125862[/C][/ROW]
[ROW][C]24[/C][C]0.324804866514263[/C][C]0.649609733028526[/C][C]0.675195133485737[/C][/ROW]
[ROW][C]25[/C][C]0.369114569877968[/C][C]0.738229139755936[/C][C]0.630885430122032[/C][/ROW]
[ROW][C]26[/C][C]0.363631817449975[/C][C]0.72726363489995[/C][C]0.636368182550025[/C][/ROW]
[ROW][C]27[/C][C]0.283578874742693[/C][C]0.567157749485386[/C][C]0.716421125257307[/C][/ROW]
[ROW][C]28[/C][C]0.40908881612458[/C][C]0.81817763224916[/C][C]0.59091118387542[/C][/ROW]
[ROW][C]29[/C][C]0.647702336948023[/C][C]0.704595326103953[/C][C]0.352297663051977[/C][/ROW]
[ROW][C]30[/C][C]0.829046626176074[/C][C]0.341906747647852[/C][C]0.170953373823926[/C][/ROW]
[ROW][C]31[/C][C]0.919483447029695[/C][C]0.161033105940611[/C][C]0.0805165529703053[/C][/ROW]
[ROW][C]32[/C][C]0.87464226715627[/C][C]0.250715465687459[/C][C]0.125357732843730[/C][/ROW]
[ROW][C]33[/C][C]0.967230169489098[/C][C]0.0655396610218032[/C][C]0.0327698305109016[/C][/ROW]
[ROW][C]34[/C][C]0.96307590606435[/C][C]0.0738481878712986[/C][C]0.0369240939356493[/C][/ROW]
[ROW][C]35[/C][C]0.970080048462836[/C][C]0.0598399030743276[/C][C]0.0299199515371638[/C][/ROW]
[ROW][C]36[/C][C]0.967809779436742[/C][C]0.0643804411265154[/C][C]0.0321902205632577[/C][/ROW]
[ROW][C]37[/C][C]0.995888710644601[/C][C]0.00822257871079732[/C][C]0.00411128935539866[/C][/ROW]
[ROW][C]38[/C][C]0.99544503969748[/C][C]0.00910992060503854[/C][C]0.00455496030251927[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58442&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58442&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
190.02837689314585630.05675378629171250.971623106854144
200.04479218814964060.08958437629928130.95520781185036
210.3091700997836770.6183401995673540.690829900216323
220.2256282215910020.4512564431820040.774371778408998
230.2650940398741380.5301880797482750.734905960125862
240.3248048665142630.6496097330285260.675195133485737
250.3691145698779680.7382291397559360.630885430122032
260.3636318174499750.727263634899950.636368182550025
270.2835788747426930.5671577494853860.716421125257307
280.409088816124580.818177632249160.59091118387542
290.6477023369480230.7045953261039530.352297663051977
300.8290466261760740.3419067476478520.170953373823926
310.9194834470296950.1610331059406110.0805165529703053
320.874642267156270.2507154656874590.125357732843730
330.9672301694890980.06553966102180320.0327698305109016
340.963075906064350.07384818787129860.0369240939356493
350.9700800484628360.05983990307432760.0299199515371638
360.9678097794367420.06438044112651540.0321902205632577
370.9958887106446010.008222578710797320.00411128935539866
380.995445039697480.009109920605038540.00455496030251927







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58442&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 level20.1NOK
5% type I error level20.1NOK
10% type I error level80.4NOK



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