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 computationWed, 18 Nov 2009 08:42:15 -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/18/t1258559074jupa2qtfiz846re.htm/, Retrieved Sat, 04 May 2024 08:34:31 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57485, Retrieved Sat, 04 May 2024 08:34:31 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact171
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 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [WS7 Include dummies] [2009-11-18 15:42:15] [82f421ff86a0429b20e3ed68bd89f1bd] [Current]
Feedback Forum

Post a new message
Dataseries X:
7,55	42,97
7,55	42,98
7,59	43,01
7,59	43,09
7,59	43,14
7,57	43,39
7,57	43,46
7,59	43,54
7,6	43,62
7,64	44,01
7,64	44,5
7,76	44,73
7,76	44,89
7,76	45,09
7,77	45,17
7,83	45,24
7,94	45,42
7,94	45,67
7,94	45,68
8,09	46,56
8,18	46,72
8,26	47,01
8,28	47,26
8,28	47,49
8,28	47,51
8,29	47,52
8,3	47,66
8,3	47,71
8,31	47,87
8,33	48
8,33	48
8,34	48,05
8,48	48,25
8,59	48,72
8,67	48,94
8,67	49,16
8,67	49,18
8,71	49,25
8,72	49,34
8,72	49,49
8,72	49,57
8,74	49,63
8,74	49,67
8,74	49,7
8,74	49,8
8,79	50,09
8,85	50,49
8,86	50,73
8,87	51,12
8,92	51,15
8,96	51,41
8,97	51,61
8,99	52,06
8,98	52,17
8,98	52,18
9,01	52,19
9,01	52,74
9,03	53,05
9,05	53,38
9,05	53,78




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57485&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] = + 0.39230876561183 + 0.165352215104075X[t] + 0.0399799276727355M1[t] + 0.0493973859060674M2[t] + 0.051555120093579M3[t] + 0.0473663764321304M4[t] + 0.0449415688529809M5[t] + 0.0204852144363287M6[t] + 0.0161860568436230M7[t] + 0.0234620916717671M8[t] + 0.035415308779079M9[t] + 0.0375420334926525M10[t] + 0.0176529847874754M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  0.39230876561183 +  0.165352215104075X[t] +  0.0399799276727355M1[t] +  0.0493973859060674M2[t] +  0.051555120093579M3[t] +  0.0473663764321304M4[t] +  0.0449415688529809M5[t] +  0.0204852144363287M6[t] +  0.0161860568436230M7[t] +  0.0234620916717671M8[t] +  0.035415308779079M9[t] +  0.0375420334926525M10[t] +  0.0176529847874754M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57485&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  0.39230876561183 +  0.165352215104075X[t] +  0.0399799276727355M1[t] +  0.0493973859060674M2[t] +  0.051555120093579M3[t] +  0.0473663764321304M4[t] +  0.0449415688529809M5[t] +  0.0204852144363287M6[t] +  0.0161860568436230M7[t] +  0.0234620916717671M8[t] +  0.035415308779079M9[t] +  0.0375420334926525M10[t] +  0.0176529847874754M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57485&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 0.39230876561183 + 0.165352215104075X[t] + 0.0399799276727355M1[t] + 0.0493973859060674M2[t] + 0.051555120093579M3[t] + 0.0473663764321304M4[t] + 0.0449415688529809M5[t] + 0.0204852144363287M6[t] + 0.0161860568436230M7[t] + 0.0234620916717671M8[t] + 0.035415308779079M9[t] + 0.0375420334926525M10[t] + 0.0176529847874754M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.392308765611830.2090511.87660.0667870.033393
X0.1653522151040750.00415939.75800
M10.03997992767273550.0617440.64750.5204520.260226
M20.04939738590606740.0617080.80050.4274480.213724
M30.0515551200935790.0616430.83630.4071930.203596
M40.04736637643213040.0615880.76910.4456880.222844
M50.04494156885298090.0615020.73070.4685680.234284
M60.02048521443632870.0614350.33340.7402810.370141
M70.01618605684362300.0614250.26350.7933090.396655
M80.02346209167176710.0613490.38240.7038630.351932
M90.0354153087790790.0612840.57790.5660990.283049
M100.03754203349265250.0612070.61340.5425960.271298
M110.01765298478747540.0611660.28860.774150.387075

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 0.39230876561183 & 0.209051 & 1.8766 & 0.066787 & 0.033393 \tabularnewline
X & 0.165352215104075 & 0.004159 & 39.758 & 0 & 0 \tabularnewline
M1 & 0.0399799276727355 & 0.061744 & 0.6475 & 0.520452 & 0.260226 \tabularnewline
M2 & 0.0493973859060674 & 0.061708 & 0.8005 & 0.427448 & 0.213724 \tabularnewline
M3 & 0.051555120093579 & 0.061643 & 0.8363 & 0.407193 & 0.203596 \tabularnewline
M4 & 0.0473663764321304 & 0.061588 & 0.7691 & 0.445688 & 0.222844 \tabularnewline
M5 & 0.0449415688529809 & 0.061502 & 0.7307 & 0.468568 & 0.234284 \tabularnewline
M6 & 0.0204852144363287 & 0.061435 & 0.3334 & 0.740281 & 0.370141 \tabularnewline
M7 & 0.0161860568436230 & 0.061425 & 0.2635 & 0.793309 & 0.396655 \tabularnewline
M8 & 0.0234620916717671 & 0.061349 & 0.3824 & 0.703863 & 0.351932 \tabularnewline
M9 & 0.035415308779079 & 0.061284 & 0.5779 & 0.566099 & 0.283049 \tabularnewline
M10 & 0.0375420334926525 & 0.061207 & 0.6134 & 0.542596 & 0.271298 \tabularnewline
M11 & 0.0176529847874754 & 0.061166 & 0.2886 & 0.77415 & 0.387075 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57485&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]0.39230876561183[/C][C]0.209051[/C][C]1.8766[/C][C]0.066787[/C][C]0.033393[/C][/ROW]
[ROW][C]X[/C][C]0.165352215104075[/C][C]0.004159[/C][C]39.758[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.0399799276727355[/C][C]0.061744[/C][C]0.6475[/C][C]0.520452[/C][C]0.260226[/C][/ROW]
[ROW][C]M2[/C][C]0.0493973859060674[/C][C]0.061708[/C][C]0.8005[/C][C]0.427448[/C][C]0.213724[/C][/ROW]
[ROW][C]M3[/C][C]0.051555120093579[/C][C]0.061643[/C][C]0.8363[/C][C]0.407193[/C][C]0.203596[/C][/ROW]
[ROW][C]M4[/C][C]0.0473663764321304[/C][C]0.061588[/C][C]0.7691[/C][C]0.445688[/C][C]0.222844[/C][/ROW]
[ROW][C]M5[/C][C]0.0449415688529809[/C][C]0.061502[/C][C]0.7307[/C][C]0.468568[/C][C]0.234284[/C][/ROW]
[ROW][C]M6[/C][C]0.0204852144363287[/C][C]0.061435[/C][C]0.3334[/C][C]0.740281[/C][C]0.370141[/C][/ROW]
[ROW][C]M7[/C][C]0.0161860568436230[/C][C]0.061425[/C][C]0.2635[/C][C]0.793309[/C][C]0.396655[/C][/ROW]
[ROW][C]M8[/C][C]0.0234620916717671[/C][C]0.061349[/C][C]0.3824[/C][C]0.703863[/C][C]0.351932[/C][/ROW]
[ROW][C]M9[/C][C]0.035415308779079[/C][C]0.061284[/C][C]0.5779[/C][C]0.566099[/C][C]0.283049[/C][/ROW]
[ROW][C]M10[/C][C]0.0375420334926525[/C][C]0.061207[/C][C]0.6134[/C][C]0.542596[/C][C]0.271298[/C][/ROW]
[ROW][C]M11[/C][C]0.0176529847874754[/C][C]0.061166[/C][C]0.2886[/C][C]0.77415[/C][C]0.387075[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57485&T=2

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.392308765611830.2090511.87660.0667870.033393
X0.1653522151040750.00415939.75800
M10.03997992767273550.0617440.64750.5204520.260226
M20.04939738590606740.0617080.80050.4274480.213724
M30.0515551200935790.0616430.83630.4071930.203596
M40.04736637643213040.0615880.76910.4456880.222844
M50.04494156885298090.0615020.73070.4685680.234284
M60.02048521443632870.0614350.33340.7402810.370141
M70.01618605684362300.0614250.26350.7933090.396655
M80.02346209167176710.0613490.38240.7038630.351932
M90.0354153087790790.0612840.57790.5660990.283049
M100.03754203349265250.0612070.61340.5425960.271298
M110.01765298478747540.0611660.28860.774150.387075







Multiple Linear Regression - Regression Statistics
Multiple R0.985965174331125
R-squared0.972127324993806
Adjusted R-squared0.96501089733265
F-TEST (value)136.6032750252
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.0966961826717787
Sum Squared Residuals0.439457131934818

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.985965174331125 \tabularnewline
R-squared & 0.972127324993806 \tabularnewline
Adjusted R-squared & 0.96501089733265 \tabularnewline
F-TEST (value) & 136.6032750252 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.0966961826717787 \tabularnewline
Sum Squared Residuals & 0.439457131934818 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57485&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.985965174331125[/C][/ROW]
[ROW][C]R-squared[/C][C]0.972127324993806[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.96501089733265[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]136.6032750252[/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[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.0966961826717787[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]0.439457131934818[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57485&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57485&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.985965174331125
R-squared0.972127324993806
Adjusted R-squared0.96501089733265
F-TEST (value)136.6032750252
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.0966961826717787
Sum Squared Residuals0.439457131934818







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
17.557.53747337630660.0125266236933963
27.557.548544356691010.00145564330898701
37.597.555662657331650.0343373426683528
47.597.564702090878530.0252979091214744
57.597.570544894054580.0194551059454208
67.577.58742659341395-0.0174265934139454
77.577.59470209087852-0.0247020908785247
87.597.615206302915-0.0252063029149949
97.67.64038769723063-0.0403876972306327
107.647.7070017858348-0.0670017858347955
117.647.76813532253061-0.128135322530615
127.767.78851334721708-0.0285133472170763
137.767.85494962930646-0.0949496293064644
147.767.89743753056061-0.137437530560612
157.777.91282344195645-0.142823441956449
167.837.92020935335229-0.0902093533522853
177.947.94754794449187-0.0075479444918688
187.947.96442964385124-0.0244296438512353
197.947.96178400840957-0.0217840084095699
208.098.1145699925293-0.0245699925293005
218.188.152979564053260.027020435946736
228.268.203058431147020.0569415688529811
238.288.224507436217860.0554925637821391
248.288.244885460904320.0351145390956768
258.288.28817243287914-0.0081724328791396
268.298.29924341326351-0.00924341326351327
278.38.3245504575656-0.0245504575655927
288.38.32862932465935-0.0286293246593485
298.318.35266087149685-0.0426608714968505
308.338.34970030504373-0.0197003050437290
318.338.34540114745102-0.0154011474510232
328.348.36094479303437-0.0209447930343707
338.488.40596845316250.0740315468375025
348.598.485810718974990.104189281025014
358.678.50229915759270.167700842407295
368.678.521023660128130.148976339871874
378.678.564310632102940.105689367897056
388.718.585302745393560.12469725460644
398.728.602342178940440.117657821059561
408.728.62295626754460.0970437324553985
418.728.633759637173780.0862403628262224
428.748.619224415663370.120775584336629
438.748.621539346674830.118460653325172
448.748.63377594795610.106224052043906
458.748.662264386573810.0777356134261873
468.798.712343253667570.07765674633243
478.858.758595091004020.091404908995978
488.868.780626637841520.0793733621584761
498.878.88509392940485-0.0150939294048486
508.928.89947195409130.0205280459086978
518.968.944621264205870.0153787357941280
528.978.97350296356524-0.00350296356523906
538.999.04548665278292-0.0554866527829239
548.989.03921904202772-0.0592190420277196
558.989.03657340658605-0.0565734065860544
569.019.04550296356524-0.0355029635652394
579.019.14839989897979-0.138399898979793
589.039.20178581037563-0.171785810375629
599.059.2364629926548-0.186462992654796
609.059.28495089390895-0.234950893908950

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 7.55 & 7.5374733763066 & 0.0125266236933963 \tabularnewline
2 & 7.55 & 7.54854435669101 & 0.00145564330898701 \tabularnewline
3 & 7.59 & 7.55566265733165 & 0.0343373426683528 \tabularnewline
4 & 7.59 & 7.56470209087853 & 0.0252979091214744 \tabularnewline
5 & 7.59 & 7.57054489405458 & 0.0194551059454208 \tabularnewline
6 & 7.57 & 7.58742659341395 & -0.0174265934139454 \tabularnewline
7 & 7.57 & 7.59470209087852 & -0.0247020908785247 \tabularnewline
8 & 7.59 & 7.615206302915 & -0.0252063029149949 \tabularnewline
9 & 7.6 & 7.64038769723063 & -0.0403876972306327 \tabularnewline
10 & 7.64 & 7.7070017858348 & -0.0670017858347955 \tabularnewline
11 & 7.64 & 7.76813532253061 & -0.128135322530615 \tabularnewline
12 & 7.76 & 7.78851334721708 & -0.0285133472170763 \tabularnewline
13 & 7.76 & 7.85494962930646 & -0.0949496293064644 \tabularnewline
14 & 7.76 & 7.89743753056061 & -0.137437530560612 \tabularnewline
15 & 7.77 & 7.91282344195645 & -0.142823441956449 \tabularnewline
16 & 7.83 & 7.92020935335229 & -0.0902093533522853 \tabularnewline
17 & 7.94 & 7.94754794449187 & -0.0075479444918688 \tabularnewline
18 & 7.94 & 7.96442964385124 & -0.0244296438512353 \tabularnewline
19 & 7.94 & 7.96178400840957 & -0.0217840084095699 \tabularnewline
20 & 8.09 & 8.1145699925293 & -0.0245699925293005 \tabularnewline
21 & 8.18 & 8.15297956405326 & 0.027020435946736 \tabularnewline
22 & 8.26 & 8.20305843114702 & 0.0569415688529811 \tabularnewline
23 & 8.28 & 8.22450743621786 & 0.0554925637821391 \tabularnewline
24 & 8.28 & 8.24488546090432 & 0.0351145390956768 \tabularnewline
25 & 8.28 & 8.28817243287914 & -0.0081724328791396 \tabularnewline
26 & 8.29 & 8.29924341326351 & -0.00924341326351327 \tabularnewline
27 & 8.3 & 8.3245504575656 & -0.0245504575655927 \tabularnewline
28 & 8.3 & 8.32862932465935 & -0.0286293246593485 \tabularnewline
29 & 8.31 & 8.35266087149685 & -0.0426608714968505 \tabularnewline
30 & 8.33 & 8.34970030504373 & -0.0197003050437290 \tabularnewline
31 & 8.33 & 8.34540114745102 & -0.0154011474510232 \tabularnewline
32 & 8.34 & 8.36094479303437 & -0.0209447930343707 \tabularnewline
33 & 8.48 & 8.4059684531625 & 0.0740315468375025 \tabularnewline
34 & 8.59 & 8.48581071897499 & 0.104189281025014 \tabularnewline
35 & 8.67 & 8.5022991575927 & 0.167700842407295 \tabularnewline
36 & 8.67 & 8.52102366012813 & 0.148976339871874 \tabularnewline
37 & 8.67 & 8.56431063210294 & 0.105689367897056 \tabularnewline
38 & 8.71 & 8.58530274539356 & 0.12469725460644 \tabularnewline
39 & 8.72 & 8.60234217894044 & 0.117657821059561 \tabularnewline
40 & 8.72 & 8.6229562675446 & 0.0970437324553985 \tabularnewline
41 & 8.72 & 8.63375963717378 & 0.0862403628262224 \tabularnewline
42 & 8.74 & 8.61922441566337 & 0.120775584336629 \tabularnewline
43 & 8.74 & 8.62153934667483 & 0.118460653325172 \tabularnewline
44 & 8.74 & 8.6337759479561 & 0.106224052043906 \tabularnewline
45 & 8.74 & 8.66226438657381 & 0.0777356134261873 \tabularnewline
46 & 8.79 & 8.71234325366757 & 0.07765674633243 \tabularnewline
47 & 8.85 & 8.75859509100402 & 0.091404908995978 \tabularnewline
48 & 8.86 & 8.78062663784152 & 0.0793733621584761 \tabularnewline
49 & 8.87 & 8.88509392940485 & -0.0150939294048486 \tabularnewline
50 & 8.92 & 8.8994719540913 & 0.0205280459086978 \tabularnewline
51 & 8.96 & 8.94462126420587 & 0.0153787357941280 \tabularnewline
52 & 8.97 & 8.97350296356524 & -0.00350296356523906 \tabularnewline
53 & 8.99 & 9.04548665278292 & -0.0554866527829239 \tabularnewline
54 & 8.98 & 9.03921904202772 & -0.0592190420277196 \tabularnewline
55 & 8.98 & 9.03657340658605 & -0.0565734065860544 \tabularnewline
56 & 9.01 & 9.04550296356524 & -0.0355029635652394 \tabularnewline
57 & 9.01 & 9.14839989897979 & -0.138399898979793 \tabularnewline
58 & 9.03 & 9.20178581037563 & -0.171785810375629 \tabularnewline
59 & 9.05 & 9.2364629926548 & -0.186462992654796 \tabularnewline
60 & 9.05 & 9.28495089390895 & -0.234950893908950 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57485&T=4

[TABLE]
[ROW][C]Multiple Linear Regression - Actuals, Interpolation, and Residuals[/C][/ROW]
[ROW][C]Time or Index[/C][C]Actuals[/C][C]InterpolationForecast[/C][C]ResidualsPrediction Error[/C][/ROW]
[ROW][C]1[/C][C]7.55[/C][C]7.5374733763066[/C][C]0.0125266236933963[/C][/ROW]
[ROW][C]2[/C][C]7.55[/C][C]7.54854435669101[/C][C]0.00145564330898701[/C][/ROW]
[ROW][C]3[/C][C]7.59[/C][C]7.55566265733165[/C][C]0.0343373426683528[/C][/ROW]
[ROW][C]4[/C][C]7.59[/C][C]7.56470209087853[/C][C]0.0252979091214744[/C][/ROW]
[ROW][C]5[/C][C]7.59[/C][C]7.57054489405458[/C][C]0.0194551059454208[/C][/ROW]
[ROW][C]6[/C][C]7.57[/C][C]7.58742659341395[/C][C]-0.0174265934139454[/C][/ROW]
[ROW][C]7[/C][C]7.57[/C][C]7.59470209087852[/C][C]-0.0247020908785247[/C][/ROW]
[ROW][C]8[/C][C]7.59[/C][C]7.615206302915[/C][C]-0.0252063029149949[/C][/ROW]
[ROW][C]9[/C][C]7.6[/C][C]7.64038769723063[/C][C]-0.0403876972306327[/C][/ROW]
[ROW][C]10[/C][C]7.64[/C][C]7.7070017858348[/C][C]-0.0670017858347955[/C][/ROW]
[ROW][C]11[/C][C]7.64[/C][C]7.76813532253061[/C][C]-0.128135322530615[/C][/ROW]
[ROW][C]12[/C][C]7.76[/C][C]7.78851334721708[/C][C]-0.0285133472170763[/C][/ROW]
[ROW][C]13[/C][C]7.76[/C][C]7.85494962930646[/C][C]-0.0949496293064644[/C][/ROW]
[ROW][C]14[/C][C]7.76[/C][C]7.89743753056061[/C][C]-0.137437530560612[/C][/ROW]
[ROW][C]15[/C][C]7.77[/C][C]7.91282344195645[/C][C]-0.142823441956449[/C][/ROW]
[ROW][C]16[/C][C]7.83[/C][C]7.92020935335229[/C][C]-0.0902093533522853[/C][/ROW]
[ROW][C]17[/C][C]7.94[/C][C]7.94754794449187[/C][C]-0.0075479444918688[/C][/ROW]
[ROW][C]18[/C][C]7.94[/C][C]7.96442964385124[/C][C]-0.0244296438512353[/C][/ROW]
[ROW][C]19[/C][C]7.94[/C][C]7.96178400840957[/C][C]-0.0217840084095699[/C][/ROW]
[ROW][C]20[/C][C]8.09[/C][C]8.1145699925293[/C][C]-0.0245699925293005[/C][/ROW]
[ROW][C]21[/C][C]8.18[/C][C]8.15297956405326[/C][C]0.027020435946736[/C][/ROW]
[ROW][C]22[/C][C]8.26[/C][C]8.20305843114702[/C][C]0.0569415688529811[/C][/ROW]
[ROW][C]23[/C][C]8.28[/C][C]8.22450743621786[/C][C]0.0554925637821391[/C][/ROW]
[ROW][C]24[/C][C]8.28[/C][C]8.24488546090432[/C][C]0.0351145390956768[/C][/ROW]
[ROW][C]25[/C][C]8.28[/C][C]8.28817243287914[/C][C]-0.0081724328791396[/C][/ROW]
[ROW][C]26[/C][C]8.29[/C][C]8.29924341326351[/C][C]-0.00924341326351327[/C][/ROW]
[ROW][C]27[/C][C]8.3[/C][C]8.3245504575656[/C][C]-0.0245504575655927[/C][/ROW]
[ROW][C]28[/C][C]8.3[/C][C]8.32862932465935[/C][C]-0.0286293246593485[/C][/ROW]
[ROW][C]29[/C][C]8.31[/C][C]8.35266087149685[/C][C]-0.0426608714968505[/C][/ROW]
[ROW][C]30[/C][C]8.33[/C][C]8.34970030504373[/C][C]-0.0197003050437290[/C][/ROW]
[ROW][C]31[/C][C]8.33[/C][C]8.34540114745102[/C][C]-0.0154011474510232[/C][/ROW]
[ROW][C]32[/C][C]8.34[/C][C]8.36094479303437[/C][C]-0.0209447930343707[/C][/ROW]
[ROW][C]33[/C][C]8.48[/C][C]8.4059684531625[/C][C]0.0740315468375025[/C][/ROW]
[ROW][C]34[/C][C]8.59[/C][C]8.48581071897499[/C][C]0.104189281025014[/C][/ROW]
[ROW][C]35[/C][C]8.67[/C][C]8.5022991575927[/C][C]0.167700842407295[/C][/ROW]
[ROW][C]36[/C][C]8.67[/C][C]8.52102366012813[/C][C]0.148976339871874[/C][/ROW]
[ROW][C]37[/C][C]8.67[/C][C]8.56431063210294[/C][C]0.105689367897056[/C][/ROW]
[ROW][C]38[/C][C]8.71[/C][C]8.58530274539356[/C][C]0.12469725460644[/C][/ROW]
[ROW][C]39[/C][C]8.72[/C][C]8.60234217894044[/C][C]0.117657821059561[/C][/ROW]
[ROW][C]40[/C][C]8.72[/C][C]8.6229562675446[/C][C]0.0970437324553985[/C][/ROW]
[ROW][C]41[/C][C]8.72[/C][C]8.63375963717378[/C][C]0.0862403628262224[/C][/ROW]
[ROW][C]42[/C][C]8.74[/C][C]8.61922441566337[/C][C]0.120775584336629[/C][/ROW]
[ROW][C]43[/C][C]8.74[/C][C]8.62153934667483[/C][C]0.118460653325172[/C][/ROW]
[ROW][C]44[/C][C]8.74[/C][C]8.6337759479561[/C][C]0.106224052043906[/C][/ROW]
[ROW][C]45[/C][C]8.74[/C][C]8.66226438657381[/C][C]0.0777356134261873[/C][/ROW]
[ROW][C]46[/C][C]8.79[/C][C]8.71234325366757[/C][C]0.07765674633243[/C][/ROW]
[ROW][C]47[/C][C]8.85[/C][C]8.75859509100402[/C][C]0.091404908995978[/C][/ROW]
[ROW][C]48[/C][C]8.86[/C][C]8.78062663784152[/C][C]0.0793733621584761[/C][/ROW]
[ROW][C]49[/C][C]8.87[/C][C]8.88509392940485[/C][C]-0.0150939294048486[/C][/ROW]
[ROW][C]50[/C][C]8.92[/C][C]8.8994719540913[/C][C]0.0205280459086978[/C][/ROW]
[ROW][C]51[/C][C]8.96[/C][C]8.94462126420587[/C][C]0.0153787357941280[/C][/ROW]
[ROW][C]52[/C][C]8.97[/C][C]8.97350296356524[/C][C]-0.00350296356523906[/C][/ROW]
[ROW][C]53[/C][C]8.99[/C][C]9.04548665278292[/C][C]-0.0554866527829239[/C][/ROW]
[ROW][C]54[/C][C]8.98[/C][C]9.03921904202772[/C][C]-0.0592190420277196[/C][/ROW]
[ROW][C]55[/C][C]8.98[/C][C]9.03657340658605[/C][C]-0.0565734065860544[/C][/ROW]
[ROW][C]56[/C][C]9.01[/C][C]9.04550296356524[/C][C]-0.0355029635652394[/C][/ROW]
[ROW][C]57[/C][C]9.01[/C][C]9.14839989897979[/C][C]-0.138399898979793[/C][/ROW]
[ROW][C]58[/C][C]9.03[/C][C]9.20178581037563[/C][C]-0.171785810375629[/C][/ROW]
[ROW][C]59[/C][C]9.05[/C][C]9.2364629926548[/C][C]-0.186462992654796[/C][/ROW]
[ROW][C]60[/C][C]9.05[/C][C]9.28495089390895[/C][C]-0.234950893908950[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57485&T=4

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
17.557.53747337630660.0125266236933963
27.557.548544356691010.00145564330898701
37.597.555662657331650.0343373426683528
47.597.564702090878530.0252979091214744
57.597.570544894054580.0194551059454208
67.577.58742659341395-0.0174265934139454
77.577.59470209087852-0.0247020908785247
87.597.615206302915-0.0252063029149949
97.67.64038769723063-0.0403876972306327
107.647.7070017858348-0.0670017858347955
117.647.76813532253061-0.128135322530615
127.767.78851334721708-0.0285133472170763
137.767.85494962930646-0.0949496293064644
147.767.89743753056061-0.137437530560612
157.777.91282344195645-0.142823441956449
167.837.92020935335229-0.0902093533522853
177.947.94754794449187-0.0075479444918688
187.947.96442964385124-0.0244296438512353
197.947.96178400840957-0.0217840084095699
208.098.1145699925293-0.0245699925293005
218.188.152979564053260.027020435946736
228.268.203058431147020.0569415688529811
238.288.224507436217860.0554925637821391
248.288.244885460904320.0351145390956768
258.288.28817243287914-0.0081724328791396
268.298.29924341326351-0.00924341326351327
278.38.3245504575656-0.0245504575655927
288.38.32862932465935-0.0286293246593485
298.318.35266087149685-0.0426608714968505
308.338.34970030504373-0.0197003050437290
318.338.34540114745102-0.0154011474510232
328.348.36094479303437-0.0209447930343707
338.488.40596845316250.0740315468375025
348.598.485810718974990.104189281025014
358.678.50229915759270.167700842407295
368.678.521023660128130.148976339871874
378.678.564310632102940.105689367897056
388.718.585302745393560.12469725460644
398.728.602342178940440.117657821059561
408.728.62295626754460.0970437324553985
418.728.633759637173780.0862403628262224
428.748.619224415663370.120775584336629
438.748.621539346674830.118460653325172
448.748.63377594795610.106224052043906
458.748.662264386573810.0777356134261873
468.798.712343253667570.07765674633243
478.858.758595091004020.091404908995978
488.868.780626637841520.0793733621584761
498.878.88509392940485-0.0150939294048486
508.928.89947195409130.0205280459086978
518.968.944621264205870.0153787357941280
528.978.97350296356524-0.00350296356523906
538.999.04548665278292-0.0554866527829239
548.989.03921904202772-0.0592190420277196
558.989.03657340658605-0.0565734065860544
569.019.04550296356524-0.0355029635652394
579.019.14839989897979-0.138399898979793
589.039.20178581037563-0.171785810375629
599.059.2364629926548-0.186462992654796
609.059.28495089390895-0.234950893908950







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.01138452354200790.02276904708401580.988615476457992
170.05481732148386720.1096346429677340.945182678516133
180.06965464000069960.1393092800013990.9303453599993
190.06759596790727680.1351919358145540.932404032092723
200.06980296070818750.1396059214163750.930197039291813
210.1037081741710310.2074163483420620.896291825828969
220.1607972388860640.3215944777721280.839202761113936
230.2605772776101370.5211545552202740.739422722389863
240.2023898873141290.4047797746282570.797610112685871
250.1612971716411230.3225943432822460.838702828358877
260.1509570731247890.3019141462495780.849042926875211
270.1524912943502800.3049825887005590.84750870564972
280.1681686847028450.3363373694056890.831831315297155
290.2256790986839910.4513581973679810.77432090131601
300.3156750368181330.6313500736362660.684324963181867
310.5413950163618970.9172099672762060.458604983638103
320.969228914305110.06154217138977990.0307710856948899
330.9925085306380450.01498293872391020.00749146936195508
340.9943604600320780.01127907993584440.00563953996792221
350.9957470930144050.008505813971190260.00425290698559513
360.9931111628988220.01377767420235650.00688883710117825
370.9881862482999020.02362750340019590.0118137517000979
380.9841092288480380.03178154230392370.0158907711519619
390.9808960175172210.03820796496555790.0191039824827789
400.9787940038946840.04241199221063190.0212059961053160
410.9726481820113130.05470363597737430.0273518179886872
420.9455589621536280.1088820756927440.0544410378463722
430.8996445187716240.2007109624567510.100355481228376
440.9226286192798990.1547427614402020.077371380720101

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0113845235420079 & 0.0227690470840158 & 0.988615476457992 \tabularnewline
17 & 0.0548173214838672 & 0.109634642967734 & 0.945182678516133 \tabularnewline
18 & 0.0696546400006996 & 0.139309280001399 & 0.9303453599993 \tabularnewline
19 & 0.0675959679072768 & 0.135191935814554 & 0.932404032092723 \tabularnewline
20 & 0.0698029607081875 & 0.139605921416375 & 0.930197039291813 \tabularnewline
21 & 0.103708174171031 & 0.207416348342062 & 0.896291825828969 \tabularnewline
22 & 0.160797238886064 & 0.321594477772128 & 0.839202761113936 \tabularnewline
23 & 0.260577277610137 & 0.521154555220274 & 0.739422722389863 \tabularnewline
24 & 0.202389887314129 & 0.404779774628257 & 0.797610112685871 \tabularnewline
25 & 0.161297171641123 & 0.322594343282246 & 0.838702828358877 \tabularnewline
26 & 0.150957073124789 & 0.301914146249578 & 0.849042926875211 \tabularnewline
27 & 0.152491294350280 & 0.304982588700559 & 0.84750870564972 \tabularnewline
28 & 0.168168684702845 & 0.336337369405689 & 0.831831315297155 \tabularnewline
29 & 0.225679098683991 & 0.451358197367981 & 0.77432090131601 \tabularnewline
30 & 0.315675036818133 & 0.631350073636266 & 0.684324963181867 \tabularnewline
31 & 0.541395016361897 & 0.917209967276206 & 0.458604983638103 \tabularnewline
32 & 0.96922891430511 & 0.0615421713897799 & 0.0307710856948899 \tabularnewline
33 & 0.992508530638045 & 0.0149829387239102 & 0.00749146936195508 \tabularnewline
34 & 0.994360460032078 & 0.0112790799358444 & 0.00563953996792221 \tabularnewline
35 & 0.995747093014405 & 0.00850581397119026 & 0.00425290698559513 \tabularnewline
36 & 0.993111162898822 & 0.0137776742023565 & 0.00688883710117825 \tabularnewline
37 & 0.988186248299902 & 0.0236275034001959 & 0.0118137517000979 \tabularnewline
38 & 0.984109228848038 & 0.0317815423039237 & 0.0158907711519619 \tabularnewline
39 & 0.980896017517221 & 0.0382079649655579 & 0.0191039824827789 \tabularnewline
40 & 0.978794003894684 & 0.0424119922106319 & 0.0212059961053160 \tabularnewline
41 & 0.972648182011313 & 0.0547036359773743 & 0.0273518179886872 \tabularnewline
42 & 0.945558962153628 & 0.108882075692744 & 0.0544410378463722 \tabularnewline
43 & 0.899644518771624 & 0.200710962456751 & 0.100355481228376 \tabularnewline
44 & 0.922628619279899 & 0.154742761440202 & 0.077371380720101 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57485&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.0113845235420079[/C][C]0.0227690470840158[/C][C]0.988615476457992[/C][/ROW]
[ROW][C]17[/C][C]0.0548173214838672[/C][C]0.109634642967734[/C][C]0.945182678516133[/C][/ROW]
[ROW][C]18[/C][C]0.0696546400006996[/C][C]0.139309280001399[/C][C]0.9303453599993[/C][/ROW]
[ROW][C]19[/C][C]0.0675959679072768[/C][C]0.135191935814554[/C][C]0.932404032092723[/C][/ROW]
[ROW][C]20[/C][C]0.0698029607081875[/C][C]0.139605921416375[/C][C]0.930197039291813[/C][/ROW]
[ROW][C]21[/C][C]0.103708174171031[/C][C]0.207416348342062[/C][C]0.896291825828969[/C][/ROW]
[ROW][C]22[/C][C]0.160797238886064[/C][C]0.321594477772128[/C][C]0.839202761113936[/C][/ROW]
[ROW][C]23[/C][C]0.260577277610137[/C][C]0.521154555220274[/C][C]0.739422722389863[/C][/ROW]
[ROW][C]24[/C][C]0.202389887314129[/C][C]0.404779774628257[/C][C]0.797610112685871[/C][/ROW]
[ROW][C]25[/C][C]0.161297171641123[/C][C]0.322594343282246[/C][C]0.838702828358877[/C][/ROW]
[ROW][C]26[/C][C]0.150957073124789[/C][C]0.301914146249578[/C][C]0.849042926875211[/C][/ROW]
[ROW][C]27[/C][C]0.152491294350280[/C][C]0.304982588700559[/C][C]0.84750870564972[/C][/ROW]
[ROW][C]28[/C][C]0.168168684702845[/C][C]0.336337369405689[/C][C]0.831831315297155[/C][/ROW]
[ROW][C]29[/C][C]0.225679098683991[/C][C]0.451358197367981[/C][C]0.77432090131601[/C][/ROW]
[ROW][C]30[/C][C]0.315675036818133[/C][C]0.631350073636266[/C][C]0.684324963181867[/C][/ROW]
[ROW][C]31[/C][C]0.541395016361897[/C][C]0.917209967276206[/C][C]0.458604983638103[/C][/ROW]
[ROW][C]32[/C][C]0.96922891430511[/C][C]0.0615421713897799[/C][C]0.0307710856948899[/C][/ROW]
[ROW][C]33[/C][C]0.992508530638045[/C][C]0.0149829387239102[/C][C]0.00749146936195508[/C][/ROW]
[ROW][C]34[/C][C]0.994360460032078[/C][C]0.0112790799358444[/C][C]0.00563953996792221[/C][/ROW]
[ROW][C]35[/C][C]0.995747093014405[/C][C]0.00850581397119026[/C][C]0.00425290698559513[/C][/ROW]
[ROW][C]36[/C][C]0.993111162898822[/C][C]0.0137776742023565[/C][C]0.00688883710117825[/C][/ROW]
[ROW][C]37[/C][C]0.988186248299902[/C][C]0.0236275034001959[/C][C]0.0118137517000979[/C][/ROW]
[ROW][C]38[/C][C]0.984109228848038[/C][C]0.0317815423039237[/C][C]0.0158907711519619[/C][/ROW]
[ROW][C]39[/C][C]0.980896017517221[/C][C]0.0382079649655579[/C][C]0.0191039824827789[/C][/ROW]
[ROW][C]40[/C][C]0.978794003894684[/C][C]0.0424119922106319[/C][C]0.0212059961053160[/C][/ROW]
[ROW][C]41[/C][C]0.972648182011313[/C][C]0.0547036359773743[/C][C]0.0273518179886872[/C][/ROW]
[ROW][C]42[/C][C]0.945558962153628[/C][C]0.108882075692744[/C][C]0.0544410378463722[/C][/ROW]
[ROW][C]43[/C][C]0.899644518771624[/C][C]0.200710962456751[/C][C]0.100355481228376[/C][/ROW]
[ROW][C]44[/C][C]0.922628619279899[/C][C]0.154742761440202[/C][C]0.077371380720101[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57485&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57485&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.01138452354200790.02276904708401580.988615476457992
170.05481732148386720.1096346429677340.945182678516133
180.06965464000069960.1393092800013990.9303453599993
190.06759596790727680.1351919358145540.932404032092723
200.06980296070818750.1396059214163750.930197039291813
210.1037081741710310.2074163483420620.896291825828969
220.1607972388860640.3215944777721280.839202761113936
230.2605772776101370.5211545552202740.739422722389863
240.2023898873141290.4047797746282570.797610112685871
250.1612971716411230.3225943432822460.838702828358877
260.1509570731247890.3019141462495780.849042926875211
270.1524912943502800.3049825887005590.84750870564972
280.1681686847028450.3363373694056890.831831315297155
290.2256790986839910.4513581973679810.77432090131601
300.3156750368181330.6313500736362660.684324963181867
310.5413950163618970.9172099672762060.458604983638103
320.969228914305110.06154217138977990.0307710856948899
330.9925085306380450.01498293872391020.00749146936195508
340.9943604600320780.01127907993584440.00563953996792221
350.9957470930144050.008505813971190260.00425290698559513
360.9931111628988220.01377767420235650.00688883710117825
370.9881862482999020.02362750340019590.0118137517000979
380.9841092288480380.03178154230392370.0158907711519619
390.9808960175172210.03820796496555790.0191039824827789
400.9787940038946840.04241199221063190.0212059961053160
410.9726481820113130.05470363597737430.0273518179886872
420.9455589621536280.1088820756927440.0544410378463722
430.8996445187716240.2007109624567510.100355481228376
440.9226286192798990.1547427614402020.077371380720101







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0344827586206897NOK
5% type I error level90.310344827586207NOK
10% type I error level110.379310344827586NOK

\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 & 9 & 0.310344827586207 & NOK \tabularnewline
10% type I error level & 11 & 0.379310344827586 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57485&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]9[/C][C]0.310344827586207[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]11[/C][C]0.379310344827586[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57485&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57485&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 level90.310344827586207NOK
10% type I error level110.379310344827586NOK



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