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 computationSat, 21 Nov 2009 07:07:55 -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/21/t1258812528au3mjyx6pj17oju.htm/, Retrieved Sun, 28 Apr 2024 02:36:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58548, Retrieved Sun, 28 Apr 2024 02:36:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordscvm
Estimated Impact219
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]
-    D    [Multiple Regression] [model 1] [2009-11-17 14:36:29] [ed603017d2bee8fbd82b6d5ec04e12c3]
-    D      [Multiple Regression] [multiple regression] [2009-11-19 21:38:11] [ed603017d2bee8fbd82b6d5ec04e12c3]
-   P         [Multiple Regression] [monthly dummies] [2009-11-19 22:00:07] [ed603017d2bee8fbd82b6d5ec04e12c3]
-    D            [Multiple Regression] [W7: Monthly Dummies] [2009-11-21 14:07:55] [a5ada8bd39e806b5b90f09589c89554a] [Current]
Feedback Forum

Post a new message
Dataseries X:
6,3	2
6,2	1,8
6,1	2,7
6,3	2,3
6,5	1,9
6,6	2
6,5	2,3
6,2	2,8
6,2	2,4
5,9	2,3
6,1	2,7
6,1	2,7
6,1	2,9
6,1	3
6,1	2,2
6,4	2,3
6,7	2,8
6,9	2,8
7	2,8
7	2,2
6,8	2,6
6,4	2,8
5,9	2,5
5,5	2,4
5,5	2,3
5,6	1,9
5,8	1,7
5,9	2
6,1	2,1
6,1	1,7
6	1,8
6	1,8
5,9	1,8
5,5	1,3
5,6	1,3
5,4	1,3
5,2	1,2
5,2	1,4
5,2	2,2
5,5	2,9
5,8	3,1
5,8	3,5
5,5	3,6
5,3	4,4
5,1	4,1
5,2	5,1
5,8	5,8
5,8	5,9
5,5	5,4
5	5,5
4,9	4,8
5,3	3,2
6,1	2,7
6,5	2,1
6,8	1,9
6,6	0,6
6,4	0,7
6,4	-0,2
6,6	-1
6,7	-1,7




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58548&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
WMan>25[t] = + 6.22333640930995 -0.152517174202809Infl[t] -0.082389008510204M1[t] -0.188489695478315M2[t] -0.188489695478314M3[t] + 0.0440572131651802M4[t] + 0.401006869681123M5[t] + 0.525755152260843M6[t] + 0.514906182713011M7[t] + 0.356604121808674M8[t] + 0.210503434840562M9[t] + 0.00135240438839345M10[t] + 0.121352404388393M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
WMan>25[t] =  +  6.22333640930995 -0.152517174202809Infl[t] -0.082389008510204M1[t] -0.188489695478315M2[t] -0.188489695478314M3[t] +  0.0440572131651802M4[t] +  0.401006869681123M5[t] +  0.525755152260843M6[t] +  0.514906182713011M7[t] +  0.356604121808674M8[t] +  0.210503434840562M9[t] +  0.00135240438839345M10[t] +  0.121352404388393M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58548&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]WMan>25[t] =  +  6.22333640930995 -0.152517174202809Infl[t] -0.082389008510204M1[t] -0.188489695478315M2[t] -0.188489695478314M3[t] +  0.0440572131651802M4[t] +  0.401006869681123M5[t] +  0.525755152260843M6[t] +  0.514906182713011M7[t] +  0.356604121808674M8[t] +  0.210503434840562M9[t] +  0.00135240438839345M10[t] +  0.121352404388393M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58548&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58548&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
WMan>25[t] = + 6.22333640930995 -0.152517174202809Infl[t] -0.082389008510204M1[t] -0.188489695478315M2[t] -0.188489695478314M3[t] + 0.0440572131651802M4[t] + 0.401006869681123M5[t] + 0.525755152260843M6[t] + 0.514906182713011M7[t] + 0.356604121808674M8[t] + 0.210503434840562M9[t] + 0.00135240438839345M10[t] + 0.121352404388393M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)6.223336409309950.22774527.325800
Infl-0.1525171742028090.043116-3.53740.0009210.000461
M1-0.0823890085102040.29629-0.27810.7821790.391089
M2-0.1884896954783150.296134-0.63650.5275380.263769
M3-0.1884896954783140.296134-0.63650.5275380.263769
M40.04405721316518020.2955570.14910.882140.44107
M50.4010068696811230.2955061.3570.1812570.090628
M60.5257551522608430.2952851.78050.0814590.040729
M70.5149061827130110.295411.7430.0878690.043935
M80.3566041218086740.2951831.20810.2330610.116531
M90.2105034348405620.2951280.71330.4792110.239605
M100.001352404388393450.2950640.00460.9963620.498181
M110.1213524043883930.2950640.41130.682740.34137

\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) & 6.22333640930995 & 0.227745 & 27.3258 & 0 & 0 \tabularnewline
Infl & -0.152517174202809 & 0.043116 & -3.5374 & 0.000921 & 0.000461 \tabularnewline
M1 & -0.082389008510204 & 0.29629 & -0.2781 & 0.782179 & 0.391089 \tabularnewline
M2 & -0.188489695478315 & 0.296134 & -0.6365 & 0.527538 & 0.263769 \tabularnewline
M3 & -0.188489695478314 & 0.296134 & -0.6365 & 0.527538 & 0.263769 \tabularnewline
M4 & 0.0440572131651802 & 0.295557 & 0.1491 & 0.88214 & 0.44107 \tabularnewline
M5 & 0.401006869681123 & 0.295506 & 1.357 & 0.181257 & 0.090628 \tabularnewline
M6 & 0.525755152260843 & 0.295285 & 1.7805 & 0.081459 & 0.040729 \tabularnewline
M7 & 0.514906182713011 & 0.29541 & 1.743 & 0.087869 & 0.043935 \tabularnewline
M8 & 0.356604121808674 & 0.295183 & 1.2081 & 0.233061 & 0.116531 \tabularnewline
M9 & 0.210503434840562 & 0.295128 & 0.7133 & 0.479211 & 0.239605 \tabularnewline
M10 & 0.00135240438839345 & 0.295064 & 0.0046 & 0.996362 & 0.498181 \tabularnewline
M11 & 0.121352404388393 & 0.295064 & 0.4113 & 0.68274 & 0.34137 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58548&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]6.22333640930995[/C][C]0.227745[/C][C]27.3258[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Infl[/C][C]-0.152517174202809[/C][C]0.043116[/C][C]-3.5374[/C][C]0.000921[/C][C]0.000461[/C][/ROW]
[ROW][C]M1[/C][C]-0.082389008510204[/C][C]0.29629[/C][C]-0.2781[/C][C]0.782179[/C][C]0.391089[/C][/ROW]
[ROW][C]M2[/C][C]-0.188489695478315[/C][C]0.296134[/C][C]-0.6365[/C][C]0.527538[/C][C]0.263769[/C][/ROW]
[ROW][C]M3[/C][C]-0.188489695478314[/C][C]0.296134[/C][C]-0.6365[/C][C]0.527538[/C][C]0.263769[/C][/ROW]
[ROW][C]M4[/C][C]0.0440572131651802[/C][C]0.295557[/C][C]0.1491[/C][C]0.88214[/C][C]0.44107[/C][/ROW]
[ROW][C]M5[/C][C]0.401006869681123[/C][C]0.295506[/C][C]1.357[/C][C]0.181257[/C][C]0.090628[/C][/ROW]
[ROW][C]M6[/C][C]0.525755152260843[/C][C]0.295285[/C][C]1.7805[/C][C]0.081459[/C][C]0.040729[/C][/ROW]
[ROW][C]M7[/C][C]0.514906182713011[/C][C]0.29541[/C][C]1.743[/C][C]0.087869[/C][C]0.043935[/C][/ROW]
[ROW][C]M8[/C][C]0.356604121808674[/C][C]0.295183[/C][C]1.2081[/C][C]0.233061[/C][C]0.116531[/C][/ROW]
[ROW][C]M9[/C][C]0.210503434840562[/C][C]0.295128[/C][C]0.7133[/C][C]0.479211[/C][C]0.239605[/C][/ROW]
[ROW][C]M10[/C][C]0.00135240438839345[/C][C]0.295064[/C][C]0.0046[/C][C]0.996362[/C][C]0.498181[/C][/ROW]
[ROW][C]M11[/C][C]0.121352404388393[/C][C]0.295064[/C][C]0.4113[/C][C]0.68274[/C][C]0.34137[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58548&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58548&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)6.223336409309950.22774527.325800
Infl-0.1525171742028090.043116-3.53740.0009210.000461
M1-0.0823890085102040.29629-0.27810.7821790.391089
M2-0.1884896954783150.296134-0.63650.5275380.263769
M3-0.1884896954783140.296134-0.63650.5275380.263769
M40.04405721316518020.2955570.14910.882140.44107
M50.4010068696811230.2955061.3570.1812570.090628
M60.5257551522608430.2952851.78050.0814590.040729
M70.5149061827130110.295411.7430.0878690.043935
M80.3566041218086740.2951831.20810.2330610.116531
M90.2105034348405620.2951280.71330.4792110.239605
M100.001352404388393450.2950640.00460.9963620.498181
M110.1213524043883930.2950640.41130.682740.34137







Multiple Linear Regression - Regression Statistics
Multiple R0.628606041061476
R-squared0.395145554858983
Adjusted R-squared0.240714632695319
F-TEST (value)2.55872042543534
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.0107957637171796
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.466438941307066
Sum Squared Residuals10.2255684404798

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.628606041061476 \tabularnewline
R-squared & 0.395145554858983 \tabularnewline
Adjusted R-squared & 0.240714632695319 \tabularnewline
F-TEST (value) & 2.55872042543534 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.0107957637171796 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.466438941307066 \tabularnewline
Sum Squared Residuals & 10.2255684404798 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58548&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.628606041061476[/C][/ROW]
[ROW][C]R-squared[/C][C]0.395145554858983[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.240714632695319[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]2.55872042543534[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.0107957637171796[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.466438941307066[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]10.2255684404798[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58548&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58548&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.628606041061476
R-squared0.395145554858983
Adjusted R-squared0.240714632695319
F-TEST (value)2.55872042543534
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.0107957637171796
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.466438941307066
Sum Squared Residuals10.2255684404798







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
16.35.835913052394140.464086947605858
26.25.760315800266580.439684199733416
36.15.623050343484060.476949656515944
46.35.916604121808670.383395878191325
56.56.334560648005740.165439351994258
66.66.444057213165180.155942786834820
76.56.38745309135650.112546908643494
86.26.152892443350760.0471075566492364
96.26.067798626063770.132201373936225
105.95.873899313031890.0261006869681122
116.15.932892443350760.167107556649236
126.15.811540038962370.288459961037629
136.15.698647595611600.401352404388395
146.15.577295191223210.522704808776786
156.15.699308930585460.400691069414539
166.45.916604121808670.483395878191326
176.76.197295191223210.502704808776787
186.96.322043473802930.577956526197068
1976.31119450425510.688805495744899
2076.244402747872450.75559725212755
216.86.037295191223210.762704808776786
226.45.797640725930480.602359274069517
235.95.96339587819133-0.0633958781913254
245.55.85729519122321-0.357295191223213
255.55.79015790013329-0.290157900133291
265.65.74506408284630-0.145064082846304
275.85.775567517686870.0244324823131342
285.95.96235927406952-0.0623592740695169
296.16.30405721316518-0.20405721316518
306.16.48981236542602-0.389812365426023
3166.46371167845791-0.46371167845791
3266.30540961755357-0.305409617553573
335.96.15930893058546-0.259308930585461
345.56.0264164872347-0.526416487234697
355.66.1464164872347-0.546416487234697
365.46.0250640828463-0.625064082846303
375.25.95792679175638-0.757926791756381
385.25.82132266994771-0.621322669947708
395.25.69930893058546-0.499308930585461
405.55.82509381728699-0.325093817286989
415.86.15154003896237-0.35154003896237
425.86.21528145186097-0.415281451860966
435.56.18918076489285-0.689180764892853
445.35.90886496462627-0.608864964626269
455.15.808519429919-0.708519429919
465.25.44685122526402-0.246851225264022
475.85.460089203322050.339910796677945
485.85.323485081513380.47651491848662
495.55.317354660104580.182645339895419
5055.19600225571619-0.196002255716190
514.95.30276427765816-0.402764277658156
525.35.77933866502615-0.479338665026146
536.16.21254690864349-0.112546908643494
546.56.42880549574490.0711945042551012
556.86.448459961037630.351540038962371
566.66.488430226596940.111569773403055
576.46.327077822208550.0729221777914492
586.46.255192248538910.144807751461089
596.66.497205987901160.102794012098841
606.76.482615605454730.217384394545268

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 6.3 & 5.83591305239414 & 0.464086947605858 \tabularnewline
2 & 6.2 & 5.76031580026658 & 0.439684199733416 \tabularnewline
3 & 6.1 & 5.62305034348406 & 0.476949656515944 \tabularnewline
4 & 6.3 & 5.91660412180867 & 0.383395878191325 \tabularnewline
5 & 6.5 & 6.33456064800574 & 0.165439351994258 \tabularnewline
6 & 6.6 & 6.44405721316518 & 0.155942786834820 \tabularnewline
7 & 6.5 & 6.3874530913565 & 0.112546908643494 \tabularnewline
8 & 6.2 & 6.15289244335076 & 0.0471075566492364 \tabularnewline
9 & 6.2 & 6.06779862606377 & 0.132201373936225 \tabularnewline
10 & 5.9 & 5.87389931303189 & 0.0261006869681122 \tabularnewline
11 & 6.1 & 5.93289244335076 & 0.167107556649236 \tabularnewline
12 & 6.1 & 5.81154003896237 & 0.288459961037629 \tabularnewline
13 & 6.1 & 5.69864759561160 & 0.401352404388395 \tabularnewline
14 & 6.1 & 5.57729519122321 & 0.522704808776786 \tabularnewline
15 & 6.1 & 5.69930893058546 & 0.400691069414539 \tabularnewline
16 & 6.4 & 5.91660412180867 & 0.483395878191326 \tabularnewline
17 & 6.7 & 6.19729519122321 & 0.502704808776787 \tabularnewline
18 & 6.9 & 6.32204347380293 & 0.577956526197068 \tabularnewline
19 & 7 & 6.3111945042551 & 0.688805495744899 \tabularnewline
20 & 7 & 6.24440274787245 & 0.75559725212755 \tabularnewline
21 & 6.8 & 6.03729519122321 & 0.762704808776786 \tabularnewline
22 & 6.4 & 5.79764072593048 & 0.602359274069517 \tabularnewline
23 & 5.9 & 5.96339587819133 & -0.0633958781913254 \tabularnewline
24 & 5.5 & 5.85729519122321 & -0.357295191223213 \tabularnewline
25 & 5.5 & 5.79015790013329 & -0.290157900133291 \tabularnewline
26 & 5.6 & 5.74506408284630 & -0.145064082846304 \tabularnewline
27 & 5.8 & 5.77556751768687 & 0.0244324823131342 \tabularnewline
28 & 5.9 & 5.96235927406952 & -0.0623592740695169 \tabularnewline
29 & 6.1 & 6.30405721316518 & -0.20405721316518 \tabularnewline
30 & 6.1 & 6.48981236542602 & -0.389812365426023 \tabularnewline
31 & 6 & 6.46371167845791 & -0.46371167845791 \tabularnewline
32 & 6 & 6.30540961755357 & -0.305409617553573 \tabularnewline
33 & 5.9 & 6.15930893058546 & -0.259308930585461 \tabularnewline
34 & 5.5 & 6.0264164872347 & -0.526416487234697 \tabularnewline
35 & 5.6 & 6.1464164872347 & -0.546416487234697 \tabularnewline
36 & 5.4 & 6.0250640828463 & -0.625064082846303 \tabularnewline
37 & 5.2 & 5.95792679175638 & -0.757926791756381 \tabularnewline
38 & 5.2 & 5.82132266994771 & -0.621322669947708 \tabularnewline
39 & 5.2 & 5.69930893058546 & -0.499308930585461 \tabularnewline
40 & 5.5 & 5.82509381728699 & -0.325093817286989 \tabularnewline
41 & 5.8 & 6.15154003896237 & -0.35154003896237 \tabularnewline
42 & 5.8 & 6.21528145186097 & -0.415281451860966 \tabularnewline
43 & 5.5 & 6.18918076489285 & -0.689180764892853 \tabularnewline
44 & 5.3 & 5.90886496462627 & -0.608864964626269 \tabularnewline
45 & 5.1 & 5.808519429919 & -0.708519429919 \tabularnewline
46 & 5.2 & 5.44685122526402 & -0.246851225264022 \tabularnewline
47 & 5.8 & 5.46008920332205 & 0.339910796677945 \tabularnewline
48 & 5.8 & 5.32348508151338 & 0.47651491848662 \tabularnewline
49 & 5.5 & 5.31735466010458 & 0.182645339895419 \tabularnewline
50 & 5 & 5.19600225571619 & -0.196002255716190 \tabularnewline
51 & 4.9 & 5.30276427765816 & -0.402764277658156 \tabularnewline
52 & 5.3 & 5.77933866502615 & -0.479338665026146 \tabularnewline
53 & 6.1 & 6.21254690864349 & -0.112546908643494 \tabularnewline
54 & 6.5 & 6.4288054957449 & 0.0711945042551012 \tabularnewline
55 & 6.8 & 6.44845996103763 & 0.351540038962371 \tabularnewline
56 & 6.6 & 6.48843022659694 & 0.111569773403055 \tabularnewline
57 & 6.4 & 6.32707782220855 & 0.0729221777914492 \tabularnewline
58 & 6.4 & 6.25519224853891 & 0.144807751461089 \tabularnewline
59 & 6.6 & 6.49720598790116 & 0.102794012098841 \tabularnewline
60 & 6.7 & 6.48261560545473 & 0.217384394545268 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58548&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]6.3[/C][C]5.83591305239414[/C][C]0.464086947605858[/C][/ROW]
[ROW][C]2[/C][C]6.2[/C][C]5.76031580026658[/C][C]0.439684199733416[/C][/ROW]
[ROW][C]3[/C][C]6.1[/C][C]5.62305034348406[/C][C]0.476949656515944[/C][/ROW]
[ROW][C]4[/C][C]6.3[/C][C]5.91660412180867[/C][C]0.383395878191325[/C][/ROW]
[ROW][C]5[/C][C]6.5[/C][C]6.33456064800574[/C][C]0.165439351994258[/C][/ROW]
[ROW][C]6[/C][C]6.6[/C][C]6.44405721316518[/C][C]0.155942786834820[/C][/ROW]
[ROW][C]7[/C][C]6.5[/C][C]6.3874530913565[/C][C]0.112546908643494[/C][/ROW]
[ROW][C]8[/C][C]6.2[/C][C]6.15289244335076[/C][C]0.0471075566492364[/C][/ROW]
[ROW][C]9[/C][C]6.2[/C][C]6.06779862606377[/C][C]0.132201373936225[/C][/ROW]
[ROW][C]10[/C][C]5.9[/C][C]5.87389931303189[/C][C]0.0261006869681122[/C][/ROW]
[ROW][C]11[/C][C]6.1[/C][C]5.93289244335076[/C][C]0.167107556649236[/C][/ROW]
[ROW][C]12[/C][C]6.1[/C][C]5.81154003896237[/C][C]0.288459961037629[/C][/ROW]
[ROW][C]13[/C][C]6.1[/C][C]5.69864759561160[/C][C]0.401352404388395[/C][/ROW]
[ROW][C]14[/C][C]6.1[/C][C]5.57729519122321[/C][C]0.522704808776786[/C][/ROW]
[ROW][C]15[/C][C]6.1[/C][C]5.69930893058546[/C][C]0.400691069414539[/C][/ROW]
[ROW][C]16[/C][C]6.4[/C][C]5.91660412180867[/C][C]0.483395878191326[/C][/ROW]
[ROW][C]17[/C][C]6.7[/C][C]6.19729519122321[/C][C]0.502704808776787[/C][/ROW]
[ROW][C]18[/C][C]6.9[/C][C]6.32204347380293[/C][C]0.577956526197068[/C][/ROW]
[ROW][C]19[/C][C]7[/C][C]6.3111945042551[/C][C]0.688805495744899[/C][/ROW]
[ROW][C]20[/C][C]7[/C][C]6.24440274787245[/C][C]0.75559725212755[/C][/ROW]
[ROW][C]21[/C][C]6.8[/C][C]6.03729519122321[/C][C]0.762704808776786[/C][/ROW]
[ROW][C]22[/C][C]6.4[/C][C]5.79764072593048[/C][C]0.602359274069517[/C][/ROW]
[ROW][C]23[/C][C]5.9[/C][C]5.96339587819133[/C][C]-0.0633958781913254[/C][/ROW]
[ROW][C]24[/C][C]5.5[/C][C]5.85729519122321[/C][C]-0.357295191223213[/C][/ROW]
[ROW][C]25[/C][C]5.5[/C][C]5.79015790013329[/C][C]-0.290157900133291[/C][/ROW]
[ROW][C]26[/C][C]5.6[/C][C]5.74506408284630[/C][C]-0.145064082846304[/C][/ROW]
[ROW][C]27[/C][C]5.8[/C][C]5.77556751768687[/C][C]0.0244324823131342[/C][/ROW]
[ROW][C]28[/C][C]5.9[/C][C]5.96235927406952[/C][C]-0.0623592740695169[/C][/ROW]
[ROW][C]29[/C][C]6.1[/C][C]6.30405721316518[/C][C]-0.20405721316518[/C][/ROW]
[ROW][C]30[/C][C]6.1[/C][C]6.48981236542602[/C][C]-0.389812365426023[/C][/ROW]
[ROW][C]31[/C][C]6[/C][C]6.46371167845791[/C][C]-0.46371167845791[/C][/ROW]
[ROW][C]32[/C][C]6[/C][C]6.30540961755357[/C][C]-0.305409617553573[/C][/ROW]
[ROW][C]33[/C][C]5.9[/C][C]6.15930893058546[/C][C]-0.259308930585461[/C][/ROW]
[ROW][C]34[/C][C]5.5[/C][C]6.0264164872347[/C][C]-0.526416487234697[/C][/ROW]
[ROW][C]35[/C][C]5.6[/C][C]6.1464164872347[/C][C]-0.546416487234697[/C][/ROW]
[ROW][C]36[/C][C]5.4[/C][C]6.0250640828463[/C][C]-0.625064082846303[/C][/ROW]
[ROW][C]37[/C][C]5.2[/C][C]5.95792679175638[/C][C]-0.757926791756381[/C][/ROW]
[ROW][C]38[/C][C]5.2[/C][C]5.82132266994771[/C][C]-0.621322669947708[/C][/ROW]
[ROW][C]39[/C][C]5.2[/C][C]5.69930893058546[/C][C]-0.499308930585461[/C][/ROW]
[ROW][C]40[/C][C]5.5[/C][C]5.82509381728699[/C][C]-0.325093817286989[/C][/ROW]
[ROW][C]41[/C][C]5.8[/C][C]6.15154003896237[/C][C]-0.35154003896237[/C][/ROW]
[ROW][C]42[/C][C]5.8[/C][C]6.21528145186097[/C][C]-0.415281451860966[/C][/ROW]
[ROW][C]43[/C][C]5.5[/C][C]6.18918076489285[/C][C]-0.689180764892853[/C][/ROW]
[ROW][C]44[/C][C]5.3[/C][C]5.90886496462627[/C][C]-0.608864964626269[/C][/ROW]
[ROW][C]45[/C][C]5.1[/C][C]5.808519429919[/C][C]-0.708519429919[/C][/ROW]
[ROW][C]46[/C][C]5.2[/C][C]5.44685122526402[/C][C]-0.246851225264022[/C][/ROW]
[ROW][C]47[/C][C]5.8[/C][C]5.46008920332205[/C][C]0.339910796677945[/C][/ROW]
[ROW][C]48[/C][C]5.8[/C][C]5.32348508151338[/C][C]0.47651491848662[/C][/ROW]
[ROW][C]49[/C][C]5.5[/C][C]5.31735466010458[/C][C]0.182645339895419[/C][/ROW]
[ROW][C]50[/C][C]5[/C][C]5.19600225571619[/C][C]-0.196002255716190[/C][/ROW]
[ROW][C]51[/C][C]4.9[/C][C]5.30276427765816[/C][C]-0.402764277658156[/C][/ROW]
[ROW][C]52[/C][C]5.3[/C][C]5.77933866502615[/C][C]-0.479338665026146[/C][/ROW]
[ROW][C]53[/C][C]6.1[/C][C]6.21254690864349[/C][C]-0.112546908643494[/C][/ROW]
[ROW][C]54[/C][C]6.5[/C][C]6.4288054957449[/C][C]0.0711945042551012[/C][/ROW]
[ROW][C]55[/C][C]6.8[/C][C]6.44845996103763[/C][C]0.351540038962371[/C][/ROW]
[ROW][C]56[/C][C]6.6[/C][C]6.48843022659694[/C][C]0.111569773403055[/C][/ROW]
[ROW][C]57[/C][C]6.4[/C][C]6.32707782220855[/C][C]0.0729221777914492[/C][/ROW]
[ROW][C]58[/C][C]6.4[/C][C]6.25519224853891[/C][C]0.144807751461089[/C][/ROW]
[ROW][C]59[/C][C]6.6[/C][C]6.49720598790116[/C][C]0.102794012098841[/C][/ROW]
[ROW][C]60[/C][C]6.7[/C][C]6.48261560545473[/C][C]0.217384394545268[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58548&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58548&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
16.35.835913052394140.464086947605858
26.25.760315800266580.439684199733416
36.15.623050343484060.476949656515944
46.35.916604121808670.383395878191325
56.56.334560648005740.165439351994258
66.66.444057213165180.155942786834820
76.56.38745309135650.112546908643494
86.26.152892443350760.0471075566492364
96.26.067798626063770.132201373936225
105.95.873899313031890.0261006869681122
116.15.932892443350760.167107556649236
126.15.811540038962370.288459961037629
136.15.698647595611600.401352404388395
146.15.577295191223210.522704808776786
156.15.699308930585460.400691069414539
166.45.916604121808670.483395878191326
176.76.197295191223210.502704808776787
186.96.322043473802930.577956526197068
1976.31119450425510.688805495744899
2076.244402747872450.75559725212755
216.86.037295191223210.762704808776786
226.45.797640725930480.602359274069517
235.95.96339587819133-0.0633958781913254
245.55.85729519122321-0.357295191223213
255.55.79015790013329-0.290157900133291
265.65.74506408284630-0.145064082846304
275.85.775567517686870.0244324823131342
285.95.96235927406952-0.0623592740695169
296.16.30405721316518-0.20405721316518
306.16.48981236542602-0.389812365426023
3166.46371167845791-0.46371167845791
3266.30540961755357-0.305409617553573
335.96.15930893058546-0.259308930585461
345.56.0264164872347-0.526416487234697
355.66.1464164872347-0.546416487234697
365.46.0250640828463-0.625064082846303
375.25.95792679175638-0.757926791756381
385.25.82132266994771-0.621322669947708
395.25.69930893058546-0.499308930585461
405.55.82509381728699-0.325093817286989
415.86.15154003896237-0.35154003896237
425.86.21528145186097-0.415281451860966
435.56.18918076489285-0.689180764892853
445.35.90886496462627-0.608864964626269
455.15.808519429919-0.708519429919
465.25.44685122526402-0.246851225264022
475.85.460089203322050.339910796677945
485.85.323485081513380.47651491848662
495.55.317354660104580.182645339895419
5055.19600225571619-0.196002255716190
514.95.30276427765816-0.402764277658156
525.35.77933866502615-0.479338665026146
536.16.21254690864349-0.112546908643494
546.56.42880549574490.0711945042551012
556.86.448459961037630.351540038962371
566.66.488430226596940.111569773403055
576.46.327077822208550.0729221777914492
586.46.255192248538910.144807751461089
596.66.497205987901160.102794012098841
606.76.482615605454730.217384394545268







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.003092116201280380.006184232402560750.99690788379872
170.005347683105404590.01069536621080920.994652316894595
180.005882998995173260.01176599799034650.994117001004827
190.01636569296601100.03273138593202190.98363430703399
200.1201554462815360.2403108925630720.879844553718464
210.2098805562118880.4197611124237760.790119443788112
220.25414193547620.50828387095240.7458580645238
230.1796646262637580.3593292525275170.820335373736242
240.2014655221123460.4029310442246930.798534477887654
250.2666589195807290.5333178391614590.733341080419271
260.2547119548346870.5094239096693740.745288045165313
270.2100115319628750.420023063925750.789988468037125
280.1871434696560720.3742869393121440.812856530343928
290.1614547166022380.3229094332044750.838545283397762
300.1412583122571910.2825166245143830.858741687742809
310.1295172098704640.2590344197409270.870482790129536
320.09482088035020780.1896417607004160.905179119649792
330.0661369504912160.1322739009824320.933863049508784
340.04879000358677540.09758000717355070.951209996413225
350.05448261736021740.1089652347204350.945517382639783
360.1000751863639920.2001503727279840.899924813636008
370.1781158697665840.3562317395331680.821884130233416
380.1866404669882340.3732809339764680.813359533011766
390.2136592927707780.4273185855415570.786340707229222
400.2605834659713480.5211669319426970.739416534028652
410.2665448546583730.5330897093167450.733455145341627
420.3049999125753930.6099998251507860.695000087424607
430.557887266832490.8842254663350190.442112733167509
440.6244398200635590.7511203598728820.375560179936441

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.00309211620128038 & 0.00618423240256075 & 0.99690788379872 \tabularnewline
17 & 0.00534768310540459 & 0.0106953662108092 & 0.994652316894595 \tabularnewline
18 & 0.00588299899517326 & 0.0117659979903465 & 0.994117001004827 \tabularnewline
19 & 0.0163656929660110 & 0.0327313859320219 & 0.98363430703399 \tabularnewline
20 & 0.120155446281536 & 0.240310892563072 & 0.879844553718464 \tabularnewline
21 & 0.209880556211888 & 0.419761112423776 & 0.790119443788112 \tabularnewline
22 & 0.2541419354762 & 0.5082838709524 & 0.7458580645238 \tabularnewline
23 & 0.179664626263758 & 0.359329252527517 & 0.820335373736242 \tabularnewline
24 & 0.201465522112346 & 0.402931044224693 & 0.798534477887654 \tabularnewline
25 & 0.266658919580729 & 0.533317839161459 & 0.733341080419271 \tabularnewline
26 & 0.254711954834687 & 0.509423909669374 & 0.745288045165313 \tabularnewline
27 & 0.210011531962875 & 0.42002306392575 & 0.789988468037125 \tabularnewline
28 & 0.187143469656072 & 0.374286939312144 & 0.812856530343928 \tabularnewline
29 & 0.161454716602238 & 0.322909433204475 & 0.838545283397762 \tabularnewline
30 & 0.141258312257191 & 0.282516624514383 & 0.858741687742809 \tabularnewline
31 & 0.129517209870464 & 0.259034419740927 & 0.870482790129536 \tabularnewline
32 & 0.0948208803502078 & 0.189641760700416 & 0.905179119649792 \tabularnewline
33 & 0.066136950491216 & 0.132273900982432 & 0.933863049508784 \tabularnewline
34 & 0.0487900035867754 & 0.0975800071735507 & 0.951209996413225 \tabularnewline
35 & 0.0544826173602174 & 0.108965234720435 & 0.945517382639783 \tabularnewline
36 & 0.100075186363992 & 0.200150372727984 & 0.899924813636008 \tabularnewline
37 & 0.178115869766584 & 0.356231739533168 & 0.821884130233416 \tabularnewline
38 & 0.186640466988234 & 0.373280933976468 & 0.813359533011766 \tabularnewline
39 & 0.213659292770778 & 0.427318585541557 & 0.786340707229222 \tabularnewline
40 & 0.260583465971348 & 0.521166931942697 & 0.739416534028652 \tabularnewline
41 & 0.266544854658373 & 0.533089709316745 & 0.733455145341627 \tabularnewline
42 & 0.304999912575393 & 0.609999825150786 & 0.695000087424607 \tabularnewline
43 & 0.55788726683249 & 0.884225466335019 & 0.442112733167509 \tabularnewline
44 & 0.624439820063559 & 0.751120359872882 & 0.375560179936441 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58548&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]16[/C][C]0.00309211620128038[/C][C]0.00618423240256075[/C][C]0.99690788379872[/C][/ROW]
[ROW][C]17[/C][C]0.00534768310540459[/C][C]0.0106953662108092[/C][C]0.994652316894595[/C][/ROW]
[ROW][C]18[/C][C]0.00588299899517326[/C][C]0.0117659979903465[/C][C]0.994117001004827[/C][/ROW]
[ROW][C]19[/C][C]0.0163656929660110[/C][C]0.0327313859320219[/C][C]0.98363430703399[/C][/ROW]
[ROW][C]20[/C][C]0.120155446281536[/C][C]0.240310892563072[/C][C]0.879844553718464[/C][/ROW]
[ROW][C]21[/C][C]0.209880556211888[/C][C]0.419761112423776[/C][C]0.790119443788112[/C][/ROW]
[ROW][C]22[/C][C]0.2541419354762[/C][C]0.5082838709524[/C][C]0.7458580645238[/C][/ROW]
[ROW][C]23[/C][C]0.179664626263758[/C][C]0.359329252527517[/C][C]0.820335373736242[/C][/ROW]
[ROW][C]24[/C][C]0.201465522112346[/C][C]0.402931044224693[/C][C]0.798534477887654[/C][/ROW]
[ROW][C]25[/C][C]0.266658919580729[/C][C]0.533317839161459[/C][C]0.733341080419271[/C][/ROW]
[ROW][C]26[/C][C]0.254711954834687[/C][C]0.509423909669374[/C][C]0.745288045165313[/C][/ROW]
[ROW][C]27[/C][C]0.210011531962875[/C][C]0.42002306392575[/C][C]0.789988468037125[/C][/ROW]
[ROW][C]28[/C][C]0.187143469656072[/C][C]0.374286939312144[/C][C]0.812856530343928[/C][/ROW]
[ROW][C]29[/C][C]0.161454716602238[/C][C]0.322909433204475[/C][C]0.838545283397762[/C][/ROW]
[ROW][C]30[/C][C]0.141258312257191[/C][C]0.282516624514383[/C][C]0.858741687742809[/C][/ROW]
[ROW][C]31[/C][C]0.129517209870464[/C][C]0.259034419740927[/C][C]0.870482790129536[/C][/ROW]
[ROW][C]32[/C][C]0.0948208803502078[/C][C]0.189641760700416[/C][C]0.905179119649792[/C][/ROW]
[ROW][C]33[/C][C]0.066136950491216[/C][C]0.132273900982432[/C][C]0.933863049508784[/C][/ROW]
[ROW][C]34[/C][C]0.0487900035867754[/C][C]0.0975800071735507[/C][C]0.951209996413225[/C][/ROW]
[ROW][C]35[/C][C]0.0544826173602174[/C][C]0.108965234720435[/C][C]0.945517382639783[/C][/ROW]
[ROW][C]36[/C][C]0.100075186363992[/C][C]0.200150372727984[/C][C]0.899924813636008[/C][/ROW]
[ROW][C]37[/C][C]0.178115869766584[/C][C]0.356231739533168[/C][C]0.821884130233416[/C][/ROW]
[ROW][C]38[/C][C]0.186640466988234[/C][C]0.373280933976468[/C][C]0.813359533011766[/C][/ROW]
[ROW][C]39[/C][C]0.213659292770778[/C][C]0.427318585541557[/C][C]0.786340707229222[/C][/ROW]
[ROW][C]40[/C][C]0.260583465971348[/C][C]0.521166931942697[/C][C]0.739416534028652[/C][/ROW]
[ROW][C]41[/C][C]0.266544854658373[/C][C]0.533089709316745[/C][C]0.733455145341627[/C][/ROW]
[ROW][C]42[/C][C]0.304999912575393[/C][C]0.609999825150786[/C][C]0.695000087424607[/C][/ROW]
[ROW][C]43[/C][C]0.55788726683249[/C][C]0.884225466335019[/C][C]0.442112733167509[/C][/ROW]
[ROW][C]44[/C][C]0.624439820063559[/C][C]0.751120359872882[/C][C]0.375560179936441[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58548&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.003092116201280380.006184232402560750.99690788379872
170.005347683105404590.01069536621080920.994652316894595
180.005882998995173260.01176599799034650.994117001004827
190.01636569296601100.03273138593202190.98363430703399
200.1201554462815360.2403108925630720.879844553718464
210.2098805562118880.4197611124237760.790119443788112
220.25414193547620.50828387095240.7458580645238
230.1796646262637580.3593292525275170.820335373736242
240.2014655221123460.4029310442246930.798534477887654
250.2666589195807290.5333178391614590.733341080419271
260.2547119548346870.5094239096693740.745288045165313
270.2100115319628750.420023063925750.789988468037125
280.1871434696560720.3742869393121440.812856530343928
290.1614547166022380.3229094332044750.838545283397762
300.1412583122571910.2825166245143830.858741687742809
310.1295172098704640.2590344197409270.870482790129536
320.09482088035020780.1896417607004160.905179119649792
330.0661369504912160.1322739009824320.933863049508784
340.04879000358677540.09758000717355070.951209996413225
350.05448261736021740.1089652347204350.945517382639783
360.1000751863639920.2001503727279840.899924813636008
370.1781158697665840.3562317395331680.821884130233416
380.1866404669882340.3732809339764680.813359533011766
390.2136592927707780.4273185855415570.786340707229222
400.2605834659713480.5211669319426970.739416534028652
410.2665448546583730.5330897093167450.733455145341627
420.3049999125753930.6099998251507860.695000087424607
430.557887266832490.8842254663350190.442112733167509
440.6244398200635590.7511203598728820.375560179936441







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58548&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.0344827586206897NOK
5% type I error level40.137931034482759NOK
10% type I error level50.172413793103448NOK



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