Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 27 Nov 2009 05:02:57 -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/27/t1259323470sak993azii8wpnc.htm/, Retrieved Sun, 28 Apr 2024 23:08:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60602, Retrieved Sun, 28 Apr 2024 23:08:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact125
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [link 4] [2009-11-20 11:59:00] [b5ba85a7ae9f50cb97d92cbc56161b32]
-    D        [Multiple Regression] [ws7model4] [2009-11-27 12:02:57] [454b2df2fae01897bad5ff38ed3cc924] [Current]
Feedback Forum

Post a new message
Dataseries X:
2.3	0	2.0	1.9	2.3	2.7
2.8	0	2.3	2.0	1.9	2.3
2.4	0	2.8	2.3	2.0	1.9
2.3	0	2.4	2.8	2.3	2.0
2.7	0	2.3	2.4	2.8	2.3
2.7	0	2.7	2.3	2.4	2.8
2.9	0	2.7	2.7	2.3	2.4
3.0	0	2.9	2.7	2.7	2.3
2.2	0	3.0	2.9	2.7	2.7
2.3	0	2.2	3.0	2.9	2.7
2.8	0	2.3	2.2	3.0	2.9
2.8	0	2.8	2.3	2.2	3.0
2.8	0	2.8	2.8	2.3	2.2
2.2	0	2.8	2.8	2.8	2.3
2.6	0	2.2	2.8	2.8	2.8
2.8	0	2.6	2.2	2.8	2.8
2.5	0	2.8	2.6	2.2	2.8
2.4	0	2.5	2.8	2.6	2.2
2.3	0	2.4	2.5	2.8	2.6
1.9	0	2.3	2.4	2.5	2.8
1.7	0	1.9	2.3	2.4	2.5
2.0	0	1.7	1.9	2.3	2.4
2.1	0	2.0	1.7	1.9	2.3
1.7	0	2.1	2.0	1.7	1.9
1.8	0	1.7	2.1	2.0	1.7
1.8	0	1.8	1.7	2.1	2.0
1.8	0	1.8	1.8	1.7	2.1
1.3	0	1.8	1.8	1.8	1.7
1.3	0	1.3	1.8	1.8	1.8
1.3	1	1.3	1.3	1.8	1.8
1.2	1	1.3	1.3	1.3	1.8
1.4	1	1.2	1.3	1.3	1.3
2.2	1	1.4	1.2	1.3	1.3
2.9	1	2.2	1.4	1.2	1.3
3.1	1	2.9	2.2	1.4	1.2
3.5	1	3.1	2.9	2.2	1.4
3.6	1	3.5	3.1	2.9	2.2
4.4	1	3.6	3.5	3.1	2.9
4.1	1	4.4	3.6	3.5	3.1
5.1	1	4.1	4.4	3.6	3.5
5.8	1	5.1	4.1	4.4	3.6
5.9	1	5.8	5.1	4.1	4.4
5.4	1	5.9	5.8	5.1	4.1
5.5	1	5.4	5.9	5.8	5.1
4.8	1	5.5	5.4	5.9	5.8
3.2	1	4.8	5.5	5.4	5.9
2.7	1	3.2	4.8	5.5	5.4
2.1	1	2.7	3.2	4.8	5.5
1.9	1	2.1	2.7	3.2	4.8
0.6	1	1.9	2.1	2.7	3.2
0.7	1	0.6	1.9	2.1	2.7
-0.2	1	0.7	0.6	1.9	2.1
-1.0	1	-0.2	0.7	0.6	1.9
-1.7	1	-1.0	-0.2	0.7	0.6
-0.7	1	-1.7	-1.0	-0.2	0.7
-1.0	1	-0.7	-1.7	-1.0	-0.2




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60602&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60602&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 0.539091205777179 + 0.573438557956526X[t] + 1.02829851557690Y1[t] + 0.0269671841106094Y2[t] + 0.0328180088795993Y3[t] -0.210413134181968Y4[t] + 0.136004659282262M1[t] -0.0605367365174084M2[t] + 0.0399923932085476M3[t] + 0.0210278026729679M4[t] + 0.120045150787521M5[t] -0.137283584804756M6[t] + 0.119908563240552M7[t] -0.0320928698935266M8[t] -0.136438669654607M9[t] -0.00629145184081034M10[t] + 0.196689637957487M11[t] -0.0196778006990444t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  0.539091205777179 +  0.573438557956526X[t] +  1.02829851557690Y1[t] +  0.0269671841106094Y2[t] +  0.0328180088795993Y3[t] -0.210413134181968Y4[t] +  0.136004659282262M1[t] -0.0605367365174084M2[t] +  0.0399923932085476M3[t] +  0.0210278026729679M4[t] +  0.120045150787521M5[t] -0.137283584804756M6[t] +  0.119908563240552M7[t] -0.0320928698935266M8[t] -0.136438669654607M9[t] -0.00629145184081034M10[t] +  0.196689637957487M11[t] -0.0196778006990444t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60602&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  0.539091205777179 +  0.573438557956526X[t] +  1.02829851557690Y1[t] +  0.0269671841106094Y2[t] +  0.0328180088795993Y3[t] -0.210413134181968Y4[t] +  0.136004659282262M1[t] -0.0605367365174084M2[t] +  0.0399923932085476M3[t] +  0.0210278026729679M4[t] +  0.120045150787521M5[t] -0.137283584804756M6[t] +  0.119908563240552M7[t] -0.0320928698935266M8[t] -0.136438669654607M9[t] -0.00629145184081034M10[t] +  0.196689637957487M11[t] -0.0196778006990444t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60602&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60602&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.539091205777179 + 0.573438557956526X[t] + 1.02829851557690Y1[t] + 0.0269671841106094Y2[t] + 0.0328180088795993Y3[t] -0.210413134181968Y4[t] + 0.136004659282262M1[t] -0.0605367365174084M2[t] + 0.0399923932085476M3[t] + 0.0210278026729679M4[t] + 0.120045150787521M5[t] -0.137283584804756M6[t] + 0.119908563240552M7[t] -0.0320928698935266M8[t] -0.136438669654607M9[t] -0.00629145184081034M10[t] + 0.196689637957487M11[t] -0.0196778006990444t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.5390912057771790.3752881.43650.159050.079525
X0.5734385579565260.325111.76380.08580.0429
Y11.028298515576900.1600396.425300
Y20.02696718411060940.2422230.11130.9119390.455969
Y30.03281800887959930.2545110.12890.8980810.44904
Y4-0.2104131341819680.175993-1.19560.2392690.119634
M10.1360046592822620.3673710.37020.7132810.356641
M2-0.06053673651740840.366645-0.16510.8697330.434866
M30.03999239320854760.3687880.10840.9142150.457108
M40.02102780267296790.3697170.05690.9549430.477471
M50.1200451507875210.3673970.32670.7456530.372827
M6-0.1372835848047560.369555-0.37150.7123410.35617
M70.1199085632405520.3718710.32240.7488820.374441
M8-0.03209286989352660.369313-0.08690.9312080.465604
M9-0.1364386696546070.386666-0.35290.7261440.363072
M10-0.006291451840810340.388555-0.01620.9871660.493583
M110.1966896379574870.3878530.50710.6149980.307499
t-0.01967780069904440.010447-1.88360.0672890.033645

\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.539091205777179 & 0.375288 & 1.4365 & 0.15905 & 0.079525 \tabularnewline
X & 0.573438557956526 & 0.32511 & 1.7638 & 0.0858 & 0.0429 \tabularnewline
Y1 & 1.02829851557690 & 0.160039 & 6.4253 & 0 & 0 \tabularnewline
Y2 & 0.0269671841106094 & 0.242223 & 0.1113 & 0.911939 & 0.455969 \tabularnewline
Y3 & 0.0328180088795993 & 0.254511 & 0.1289 & 0.898081 & 0.44904 \tabularnewline
Y4 & -0.210413134181968 & 0.175993 & -1.1956 & 0.239269 & 0.119634 \tabularnewline
M1 & 0.136004659282262 & 0.367371 & 0.3702 & 0.713281 & 0.356641 \tabularnewline
M2 & -0.0605367365174084 & 0.366645 & -0.1651 & 0.869733 & 0.434866 \tabularnewline
M3 & 0.0399923932085476 & 0.368788 & 0.1084 & 0.914215 & 0.457108 \tabularnewline
M4 & 0.0210278026729679 & 0.369717 & 0.0569 & 0.954943 & 0.477471 \tabularnewline
M5 & 0.120045150787521 & 0.367397 & 0.3267 & 0.745653 & 0.372827 \tabularnewline
M6 & -0.137283584804756 & 0.369555 & -0.3715 & 0.712341 & 0.35617 \tabularnewline
M7 & 0.119908563240552 & 0.371871 & 0.3224 & 0.748882 & 0.374441 \tabularnewline
M8 & -0.0320928698935266 & 0.369313 & -0.0869 & 0.931208 & 0.465604 \tabularnewline
M9 & -0.136438669654607 & 0.386666 & -0.3529 & 0.726144 & 0.363072 \tabularnewline
M10 & -0.00629145184081034 & 0.388555 & -0.0162 & 0.987166 & 0.493583 \tabularnewline
M11 & 0.196689637957487 & 0.387853 & 0.5071 & 0.614998 & 0.307499 \tabularnewline
t & -0.0196778006990444 & 0.010447 & -1.8836 & 0.067289 & 0.033645 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60602&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.539091205777179[/C][C]0.375288[/C][C]1.4365[/C][C]0.15905[/C][C]0.079525[/C][/ROW]
[ROW][C]X[/C][C]0.573438557956526[/C][C]0.32511[/C][C]1.7638[/C][C]0.0858[/C][C]0.0429[/C][/ROW]
[ROW][C]Y1[/C][C]1.02829851557690[/C][C]0.160039[/C][C]6.4253[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]0.0269671841106094[/C][C]0.242223[/C][C]0.1113[/C][C]0.911939[/C][C]0.455969[/C][/ROW]
[ROW][C]Y3[/C][C]0.0328180088795993[/C][C]0.254511[/C][C]0.1289[/C][C]0.898081[/C][C]0.44904[/C][/ROW]
[ROW][C]Y4[/C][C]-0.210413134181968[/C][C]0.175993[/C][C]-1.1956[/C][C]0.239269[/C][C]0.119634[/C][/ROW]
[ROW][C]M1[/C][C]0.136004659282262[/C][C]0.367371[/C][C]0.3702[/C][C]0.713281[/C][C]0.356641[/C][/ROW]
[ROW][C]M2[/C][C]-0.0605367365174084[/C][C]0.366645[/C][C]-0.1651[/C][C]0.869733[/C][C]0.434866[/C][/ROW]
[ROW][C]M3[/C][C]0.0399923932085476[/C][C]0.368788[/C][C]0.1084[/C][C]0.914215[/C][C]0.457108[/C][/ROW]
[ROW][C]M4[/C][C]0.0210278026729679[/C][C]0.369717[/C][C]0.0569[/C][C]0.954943[/C][C]0.477471[/C][/ROW]
[ROW][C]M5[/C][C]0.120045150787521[/C][C]0.367397[/C][C]0.3267[/C][C]0.745653[/C][C]0.372827[/C][/ROW]
[ROW][C]M6[/C][C]-0.137283584804756[/C][C]0.369555[/C][C]-0.3715[/C][C]0.712341[/C][C]0.35617[/C][/ROW]
[ROW][C]M7[/C][C]0.119908563240552[/C][C]0.371871[/C][C]0.3224[/C][C]0.748882[/C][C]0.374441[/C][/ROW]
[ROW][C]M8[/C][C]-0.0320928698935266[/C][C]0.369313[/C][C]-0.0869[/C][C]0.931208[/C][C]0.465604[/C][/ROW]
[ROW][C]M9[/C][C]-0.136438669654607[/C][C]0.386666[/C][C]-0.3529[/C][C]0.726144[/C][C]0.363072[/C][/ROW]
[ROW][C]M10[/C][C]-0.00629145184081034[/C][C]0.388555[/C][C]-0.0162[/C][C]0.987166[/C][C]0.493583[/C][/ROW]
[ROW][C]M11[/C][C]0.196689637957487[/C][C]0.387853[/C][C]0.5071[/C][C]0.614998[/C][C]0.307499[/C][/ROW]
[ROW][C]t[/C][C]-0.0196778006990444[/C][C]0.010447[/C][C]-1.8836[/C][C]0.067289[/C][C]0.033645[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60602&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60602&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.5390912057771790.3752881.43650.159050.079525
X0.5734385579565260.325111.76380.08580.0429
Y11.028298515576900.1600396.425300
Y20.02696718411060940.2422230.11130.9119390.455969
Y30.03281800887959930.2545110.12890.8980810.44904
Y4-0.2104131341819680.175993-1.19560.2392690.119634
M10.1360046592822620.3673710.37020.7132810.356641
M2-0.06053673651740840.366645-0.16510.8697330.434866
M30.03999239320854760.3687880.10840.9142150.457108
M40.02102780267296790.3697170.05690.9549430.477471
M50.1200451507875210.3673970.32670.7456530.372827
M6-0.1372835848047560.369555-0.37150.7123410.35617
M70.1199085632405520.3718710.32240.7488820.374441
M8-0.03209286989352660.369313-0.08690.9312080.465604
M9-0.1364386696546070.386666-0.35290.7261440.363072
M10-0.006291451840810340.388555-0.01620.9871660.493583
M110.1966896379574870.3878530.50710.6149980.307499
t-0.01967780069904440.010447-1.88360.0672890.033645







Multiple Linear Regression - Regression Statistics
Multiple R0.959090455556404
R-squared0.919854501939391
Adjusted R-squared0.88399993701754
F-TEST (value)25.6551572706100
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value9.9920072216264e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.542700801466578
Sum Squared Residuals11.1919180766737

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.959090455556404 \tabularnewline
R-squared & 0.919854501939391 \tabularnewline
Adjusted R-squared & 0.88399993701754 \tabularnewline
F-TEST (value) & 25.6551572706100 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 9.9920072216264e-16 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.542700801466578 \tabularnewline
Sum Squared Residuals & 11.1919180766737 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60602&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.959090455556404[/C][/ROW]
[ROW][C]R-squared[/C][C]0.919854501939391[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.88399993701754[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]25.6551572706100[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/C][/ROW]
[ROW][C]p-value[/C][C]9.9920072216264e-16[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.542700801466578[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]11.1919180766737[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60602&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60602&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.959090455556404
R-squared0.919854501939391
Adjusted R-squared0.88399993701754
F-TEST (value)25.6551572706100
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value9.9920072216264e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.542700801466578
Sum Squared Residuals11.1919180766737







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12.32.270618703456120.0293812965438833
22.82.436623830162480.363376169837522
32.43.12716162677177-0.727161626771766
42.32.67948751060737-0.379487510607374
52.72.598495397006160.101504602993843
62.72.611777777891710.0882222221082889
72.92.94096245166705-0.0409624516670454
833.00911143791934-0.00911143791933824
92.22.90914587216624-0.709145872166238
102.32.206236797006450.0937632029935468
112.82.431995364426470.368004635573525
122.82.685178181447580.114821818552423
132.82.98660094031963-0.186600940319633
142.22.76574943484252-0.565749434842521
152.62.124415087432310.475584912567689
162.82.480911791962080.31908820803792
172.52.75700711080945-0.257007110809452
182.42.316279540728200.0837204592717956
192.32.36527222938673-0.0652722293867272
201.92.03613839608458-0.136138396084581
211.71.557940810349270.142059189650733
2221.469723163234630.530276836765368
232.11.964036680051190.13596331994881
241.71.9361909000824-0.236190900082398
251.81.695823100346190.104176899653810
261.81.511804742394290.288195257605708
271.81.561184272862230.238815727137772
281.31.60998893618835-0.309988936188351
291.31.154137912397210.145862087602786
301.31.43708634200711-0.137086342007114
311.21.65819168491358-0.458191684913577
321.41.48888916661375-0.0888891666137487
332.21.567828550857940.632171449142057
342.92.503048416368380.396951583631625
353.13.45533932885406-0.355339328854061
363.53.447680402457620.0523195975423788
373.63.83536220296386-0.235362202963864
384.43.592034139515630.807965860484374
394.14.46926557613056-0.369265576130564
405.14.062823924726531.03717607527347
415.85.167584926171240.632415073828764
425.95.45917862488490.440821375115102
435.45.91434180180047-0.514341801800468
445.55.043769500623710.456230499376291
454.84.86508476662655-0.0650847666265526
463.24.22099162339054-1.02099162339054
472.72.84862862666827-0.148628626668274
482.12.030950516012400.0690494839875975
491.91.611595052914200.288404947085805
500.61.49378785308508-0.893787853085084
510.70.3179734368031320.382026563196868
52-0.20.466787836515665-0.666787836515665
53-1-0.377225346384058-0.622774653615942
54-1.7-1.22432228551193-0.475677714488072
55-0.7-1.778768167767821.07876816776782
56-1-0.777908501241377-0.222091498758623

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2.3 & 2.27061870345612 & 0.0293812965438833 \tabularnewline
2 & 2.8 & 2.43662383016248 & 0.363376169837522 \tabularnewline
3 & 2.4 & 3.12716162677177 & -0.727161626771766 \tabularnewline
4 & 2.3 & 2.67948751060737 & -0.379487510607374 \tabularnewline
5 & 2.7 & 2.59849539700616 & 0.101504602993843 \tabularnewline
6 & 2.7 & 2.61177777789171 & 0.0882222221082889 \tabularnewline
7 & 2.9 & 2.94096245166705 & -0.0409624516670454 \tabularnewline
8 & 3 & 3.00911143791934 & -0.00911143791933824 \tabularnewline
9 & 2.2 & 2.90914587216624 & -0.709145872166238 \tabularnewline
10 & 2.3 & 2.20623679700645 & 0.0937632029935468 \tabularnewline
11 & 2.8 & 2.43199536442647 & 0.368004635573525 \tabularnewline
12 & 2.8 & 2.68517818144758 & 0.114821818552423 \tabularnewline
13 & 2.8 & 2.98660094031963 & -0.186600940319633 \tabularnewline
14 & 2.2 & 2.76574943484252 & -0.565749434842521 \tabularnewline
15 & 2.6 & 2.12441508743231 & 0.475584912567689 \tabularnewline
16 & 2.8 & 2.48091179196208 & 0.31908820803792 \tabularnewline
17 & 2.5 & 2.75700711080945 & -0.257007110809452 \tabularnewline
18 & 2.4 & 2.31627954072820 & 0.0837204592717956 \tabularnewline
19 & 2.3 & 2.36527222938673 & -0.0652722293867272 \tabularnewline
20 & 1.9 & 2.03613839608458 & -0.136138396084581 \tabularnewline
21 & 1.7 & 1.55794081034927 & 0.142059189650733 \tabularnewline
22 & 2 & 1.46972316323463 & 0.530276836765368 \tabularnewline
23 & 2.1 & 1.96403668005119 & 0.13596331994881 \tabularnewline
24 & 1.7 & 1.9361909000824 & -0.236190900082398 \tabularnewline
25 & 1.8 & 1.69582310034619 & 0.104176899653810 \tabularnewline
26 & 1.8 & 1.51180474239429 & 0.288195257605708 \tabularnewline
27 & 1.8 & 1.56118427286223 & 0.238815727137772 \tabularnewline
28 & 1.3 & 1.60998893618835 & -0.309988936188351 \tabularnewline
29 & 1.3 & 1.15413791239721 & 0.145862087602786 \tabularnewline
30 & 1.3 & 1.43708634200711 & -0.137086342007114 \tabularnewline
31 & 1.2 & 1.65819168491358 & -0.458191684913577 \tabularnewline
32 & 1.4 & 1.48888916661375 & -0.0888891666137487 \tabularnewline
33 & 2.2 & 1.56782855085794 & 0.632171449142057 \tabularnewline
34 & 2.9 & 2.50304841636838 & 0.396951583631625 \tabularnewline
35 & 3.1 & 3.45533932885406 & -0.355339328854061 \tabularnewline
36 & 3.5 & 3.44768040245762 & 0.0523195975423788 \tabularnewline
37 & 3.6 & 3.83536220296386 & -0.235362202963864 \tabularnewline
38 & 4.4 & 3.59203413951563 & 0.807965860484374 \tabularnewline
39 & 4.1 & 4.46926557613056 & -0.369265576130564 \tabularnewline
40 & 5.1 & 4.06282392472653 & 1.03717607527347 \tabularnewline
41 & 5.8 & 5.16758492617124 & 0.632415073828764 \tabularnewline
42 & 5.9 & 5.4591786248849 & 0.440821375115102 \tabularnewline
43 & 5.4 & 5.91434180180047 & -0.514341801800468 \tabularnewline
44 & 5.5 & 5.04376950062371 & 0.456230499376291 \tabularnewline
45 & 4.8 & 4.86508476662655 & -0.0650847666265526 \tabularnewline
46 & 3.2 & 4.22099162339054 & -1.02099162339054 \tabularnewline
47 & 2.7 & 2.84862862666827 & -0.148628626668274 \tabularnewline
48 & 2.1 & 2.03095051601240 & 0.0690494839875975 \tabularnewline
49 & 1.9 & 1.61159505291420 & 0.288404947085805 \tabularnewline
50 & 0.6 & 1.49378785308508 & -0.893787853085084 \tabularnewline
51 & 0.7 & 0.317973436803132 & 0.382026563196868 \tabularnewline
52 & -0.2 & 0.466787836515665 & -0.666787836515665 \tabularnewline
53 & -1 & -0.377225346384058 & -0.622774653615942 \tabularnewline
54 & -1.7 & -1.22432228551193 & -0.475677714488072 \tabularnewline
55 & -0.7 & -1.77876816776782 & 1.07876816776782 \tabularnewline
56 & -1 & -0.777908501241377 & -0.222091498758623 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60602&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]2.3[/C][C]2.27061870345612[/C][C]0.0293812965438833[/C][/ROW]
[ROW][C]2[/C][C]2.8[/C][C]2.43662383016248[/C][C]0.363376169837522[/C][/ROW]
[ROW][C]3[/C][C]2.4[/C][C]3.12716162677177[/C][C]-0.727161626771766[/C][/ROW]
[ROW][C]4[/C][C]2.3[/C][C]2.67948751060737[/C][C]-0.379487510607374[/C][/ROW]
[ROW][C]5[/C][C]2.7[/C][C]2.59849539700616[/C][C]0.101504602993843[/C][/ROW]
[ROW][C]6[/C][C]2.7[/C][C]2.61177777789171[/C][C]0.0882222221082889[/C][/ROW]
[ROW][C]7[/C][C]2.9[/C][C]2.94096245166705[/C][C]-0.0409624516670454[/C][/ROW]
[ROW][C]8[/C][C]3[/C][C]3.00911143791934[/C][C]-0.00911143791933824[/C][/ROW]
[ROW][C]9[/C][C]2.2[/C][C]2.90914587216624[/C][C]-0.709145872166238[/C][/ROW]
[ROW][C]10[/C][C]2.3[/C][C]2.20623679700645[/C][C]0.0937632029935468[/C][/ROW]
[ROW][C]11[/C][C]2.8[/C][C]2.43199536442647[/C][C]0.368004635573525[/C][/ROW]
[ROW][C]12[/C][C]2.8[/C][C]2.68517818144758[/C][C]0.114821818552423[/C][/ROW]
[ROW][C]13[/C][C]2.8[/C][C]2.98660094031963[/C][C]-0.186600940319633[/C][/ROW]
[ROW][C]14[/C][C]2.2[/C][C]2.76574943484252[/C][C]-0.565749434842521[/C][/ROW]
[ROW][C]15[/C][C]2.6[/C][C]2.12441508743231[/C][C]0.475584912567689[/C][/ROW]
[ROW][C]16[/C][C]2.8[/C][C]2.48091179196208[/C][C]0.31908820803792[/C][/ROW]
[ROW][C]17[/C][C]2.5[/C][C]2.75700711080945[/C][C]-0.257007110809452[/C][/ROW]
[ROW][C]18[/C][C]2.4[/C][C]2.31627954072820[/C][C]0.0837204592717956[/C][/ROW]
[ROW][C]19[/C][C]2.3[/C][C]2.36527222938673[/C][C]-0.0652722293867272[/C][/ROW]
[ROW][C]20[/C][C]1.9[/C][C]2.03613839608458[/C][C]-0.136138396084581[/C][/ROW]
[ROW][C]21[/C][C]1.7[/C][C]1.55794081034927[/C][C]0.142059189650733[/C][/ROW]
[ROW][C]22[/C][C]2[/C][C]1.46972316323463[/C][C]0.530276836765368[/C][/ROW]
[ROW][C]23[/C][C]2.1[/C][C]1.96403668005119[/C][C]0.13596331994881[/C][/ROW]
[ROW][C]24[/C][C]1.7[/C][C]1.9361909000824[/C][C]-0.236190900082398[/C][/ROW]
[ROW][C]25[/C][C]1.8[/C][C]1.69582310034619[/C][C]0.104176899653810[/C][/ROW]
[ROW][C]26[/C][C]1.8[/C][C]1.51180474239429[/C][C]0.288195257605708[/C][/ROW]
[ROW][C]27[/C][C]1.8[/C][C]1.56118427286223[/C][C]0.238815727137772[/C][/ROW]
[ROW][C]28[/C][C]1.3[/C][C]1.60998893618835[/C][C]-0.309988936188351[/C][/ROW]
[ROW][C]29[/C][C]1.3[/C][C]1.15413791239721[/C][C]0.145862087602786[/C][/ROW]
[ROW][C]30[/C][C]1.3[/C][C]1.43708634200711[/C][C]-0.137086342007114[/C][/ROW]
[ROW][C]31[/C][C]1.2[/C][C]1.65819168491358[/C][C]-0.458191684913577[/C][/ROW]
[ROW][C]32[/C][C]1.4[/C][C]1.48888916661375[/C][C]-0.0888891666137487[/C][/ROW]
[ROW][C]33[/C][C]2.2[/C][C]1.56782855085794[/C][C]0.632171449142057[/C][/ROW]
[ROW][C]34[/C][C]2.9[/C][C]2.50304841636838[/C][C]0.396951583631625[/C][/ROW]
[ROW][C]35[/C][C]3.1[/C][C]3.45533932885406[/C][C]-0.355339328854061[/C][/ROW]
[ROW][C]36[/C][C]3.5[/C][C]3.44768040245762[/C][C]0.0523195975423788[/C][/ROW]
[ROW][C]37[/C][C]3.6[/C][C]3.83536220296386[/C][C]-0.235362202963864[/C][/ROW]
[ROW][C]38[/C][C]4.4[/C][C]3.59203413951563[/C][C]0.807965860484374[/C][/ROW]
[ROW][C]39[/C][C]4.1[/C][C]4.46926557613056[/C][C]-0.369265576130564[/C][/ROW]
[ROW][C]40[/C][C]5.1[/C][C]4.06282392472653[/C][C]1.03717607527347[/C][/ROW]
[ROW][C]41[/C][C]5.8[/C][C]5.16758492617124[/C][C]0.632415073828764[/C][/ROW]
[ROW][C]42[/C][C]5.9[/C][C]5.4591786248849[/C][C]0.440821375115102[/C][/ROW]
[ROW][C]43[/C][C]5.4[/C][C]5.91434180180047[/C][C]-0.514341801800468[/C][/ROW]
[ROW][C]44[/C][C]5.5[/C][C]5.04376950062371[/C][C]0.456230499376291[/C][/ROW]
[ROW][C]45[/C][C]4.8[/C][C]4.86508476662655[/C][C]-0.0650847666265526[/C][/ROW]
[ROW][C]46[/C][C]3.2[/C][C]4.22099162339054[/C][C]-1.02099162339054[/C][/ROW]
[ROW][C]47[/C][C]2.7[/C][C]2.84862862666827[/C][C]-0.148628626668274[/C][/ROW]
[ROW][C]48[/C][C]2.1[/C][C]2.03095051601240[/C][C]0.0690494839875975[/C][/ROW]
[ROW][C]49[/C][C]1.9[/C][C]1.61159505291420[/C][C]0.288404947085805[/C][/ROW]
[ROW][C]50[/C][C]0.6[/C][C]1.49378785308508[/C][C]-0.893787853085084[/C][/ROW]
[ROW][C]51[/C][C]0.7[/C][C]0.317973436803132[/C][C]0.382026563196868[/C][/ROW]
[ROW][C]52[/C][C]-0.2[/C][C]0.466787836515665[/C][C]-0.666787836515665[/C][/ROW]
[ROW][C]53[/C][C]-1[/C][C]-0.377225346384058[/C][C]-0.622774653615942[/C][/ROW]
[ROW][C]54[/C][C]-1.7[/C][C]-1.22432228551193[/C][C]-0.475677714488072[/C][/ROW]
[ROW][C]55[/C][C]-0.7[/C][C]-1.77876816776782[/C][C]1.07876816776782[/C][/ROW]
[ROW][C]56[/C][C]-1[/C][C]-0.777908501241377[/C][C]-0.222091498758623[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60602&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60602&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
12.32.270618703456120.0293812965438833
22.82.436623830162480.363376169837522
32.43.12716162677177-0.727161626771766
42.32.67948751060737-0.379487510607374
52.72.598495397006160.101504602993843
62.72.611777777891710.0882222221082889
72.92.94096245166705-0.0409624516670454
833.00911143791934-0.00911143791933824
92.22.90914587216624-0.709145872166238
102.32.206236797006450.0937632029935468
112.82.431995364426470.368004635573525
122.82.685178181447580.114821818552423
132.82.98660094031963-0.186600940319633
142.22.76574943484252-0.565749434842521
152.62.124415087432310.475584912567689
162.82.480911791962080.31908820803792
172.52.75700711080945-0.257007110809452
182.42.316279540728200.0837204592717956
192.32.36527222938673-0.0652722293867272
201.92.03613839608458-0.136138396084581
211.71.557940810349270.142059189650733
2221.469723163234630.530276836765368
232.11.964036680051190.13596331994881
241.71.9361909000824-0.236190900082398
251.81.695823100346190.104176899653810
261.81.511804742394290.288195257605708
271.81.561184272862230.238815727137772
281.31.60998893618835-0.309988936188351
291.31.154137912397210.145862087602786
301.31.43708634200711-0.137086342007114
311.21.65819168491358-0.458191684913577
321.41.48888916661375-0.0888891666137487
332.21.567828550857940.632171449142057
342.92.503048416368380.396951583631625
353.13.45533932885406-0.355339328854061
363.53.447680402457620.0523195975423788
373.63.83536220296386-0.235362202963864
384.43.592034139515630.807965860484374
394.14.46926557613056-0.369265576130564
405.14.062823924726531.03717607527347
415.85.167584926171240.632415073828764
425.95.45917862488490.440821375115102
435.45.91434180180047-0.514341801800468
445.55.043769500623710.456230499376291
454.84.86508476662655-0.0650847666265526
463.24.22099162339054-1.02099162339054
472.72.84862862666827-0.148628626668274
482.12.030950516012400.0690494839875975
491.91.611595052914200.288404947085805
500.61.49378785308508-0.893787853085084
510.70.3179734368031320.382026563196868
52-0.20.466787836515665-0.666787836515665
53-1-0.377225346384058-0.622774653615942
54-1.7-1.22432228551193-0.475677714488072
55-0.7-1.778768167767821.07876816776782
56-1-0.777908501241377-0.222091498758623







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.3851129391089840.7702258782179680.614887060891016
220.2389822983808700.4779645967617410.76101770161913
230.1315248438992200.2630496877984410.86847515610078
240.0725129608264650.145025921652930.927487039173535
250.0330092434573060.0660184869146120.966990756542694
260.01406353488492670.02812706976985340.985936465115073
270.005467727283987140.01093545456797430.994532272716013
280.002808412305465400.005616824610930790.997191587694535
290.0009342179566801620.001868435913360320.99906578204332
300.0002794596748412700.0005589193496825410.999720540325159
310.0001967524406271750.0003935048812543490.999803247559373
320.0009998829514865260.001999765902973050.999000117048513
330.01676511516392260.03353023032784520.983234884836077
340.009082763496189090.01816552699237820.99091723650381
350.006834739580621080.01366947916124220.993165260419379

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.385112939108984 & 0.770225878217968 & 0.614887060891016 \tabularnewline
22 & 0.238982298380870 & 0.477964596761741 & 0.76101770161913 \tabularnewline
23 & 0.131524843899220 & 0.263049687798441 & 0.86847515610078 \tabularnewline
24 & 0.072512960826465 & 0.14502592165293 & 0.927487039173535 \tabularnewline
25 & 0.033009243457306 & 0.066018486914612 & 0.966990756542694 \tabularnewline
26 & 0.0140635348849267 & 0.0281270697698534 & 0.985936465115073 \tabularnewline
27 & 0.00546772728398714 & 0.0109354545679743 & 0.994532272716013 \tabularnewline
28 & 0.00280841230546540 & 0.00561682461093079 & 0.997191587694535 \tabularnewline
29 & 0.000934217956680162 & 0.00186843591336032 & 0.99906578204332 \tabularnewline
30 & 0.000279459674841270 & 0.000558919349682541 & 0.999720540325159 \tabularnewline
31 & 0.000196752440627175 & 0.000393504881254349 & 0.999803247559373 \tabularnewline
32 & 0.000999882951486526 & 0.00199976590297305 & 0.999000117048513 \tabularnewline
33 & 0.0167651151639226 & 0.0335302303278452 & 0.983234884836077 \tabularnewline
34 & 0.00908276349618909 & 0.0181655269923782 & 0.99091723650381 \tabularnewline
35 & 0.00683473958062108 & 0.0136694791612422 & 0.993165260419379 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60602&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]21[/C][C]0.385112939108984[/C][C]0.770225878217968[/C][C]0.614887060891016[/C][/ROW]
[ROW][C]22[/C][C]0.238982298380870[/C][C]0.477964596761741[/C][C]0.76101770161913[/C][/ROW]
[ROW][C]23[/C][C]0.131524843899220[/C][C]0.263049687798441[/C][C]0.86847515610078[/C][/ROW]
[ROW][C]24[/C][C]0.072512960826465[/C][C]0.14502592165293[/C][C]0.927487039173535[/C][/ROW]
[ROW][C]25[/C][C]0.033009243457306[/C][C]0.066018486914612[/C][C]0.966990756542694[/C][/ROW]
[ROW][C]26[/C][C]0.0140635348849267[/C][C]0.0281270697698534[/C][C]0.985936465115073[/C][/ROW]
[ROW][C]27[/C][C]0.00546772728398714[/C][C]0.0109354545679743[/C][C]0.994532272716013[/C][/ROW]
[ROW][C]28[/C][C]0.00280841230546540[/C][C]0.00561682461093079[/C][C]0.997191587694535[/C][/ROW]
[ROW][C]29[/C][C]0.000934217956680162[/C][C]0.00186843591336032[/C][C]0.99906578204332[/C][/ROW]
[ROW][C]30[/C][C]0.000279459674841270[/C][C]0.000558919349682541[/C][C]0.999720540325159[/C][/ROW]
[ROW][C]31[/C][C]0.000196752440627175[/C][C]0.000393504881254349[/C][C]0.999803247559373[/C][/ROW]
[ROW][C]32[/C][C]0.000999882951486526[/C][C]0.00199976590297305[/C][C]0.999000117048513[/C][/ROW]
[ROW][C]33[/C][C]0.0167651151639226[/C][C]0.0335302303278452[/C][C]0.983234884836077[/C][/ROW]
[ROW][C]34[/C][C]0.00908276349618909[/C][C]0.0181655269923782[/C][C]0.99091723650381[/C][/ROW]
[ROW][C]35[/C][C]0.00683473958062108[/C][C]0.0136694791612422[/C][C]0.993165260419379[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60602&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60602&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
210.3851129391089840.7702258782179680.614887060891016
220.2389822983808700.4779645967617410.76101770161913
230.1315248438992200.2630496877984410.86847515610078
240.0725129608264650.145025921652930.927487039173535
250.0330092434573060.0660184869146120.966990756542694
260.01406353488492670.02812706976985340.985936465115073
270.005467727283987140.01093545456797430.994532272716013
280.002808412305465400.005616824610930790.997191587694535
290.0009342179566801620.001868435913360320.99906578204332
300.0002794596748412700.0005589193496825410.999720540325159
310.0001967524406271750.0003935048812543490.999803247559373
320.0009998829514865260.001999765902973050.999000117048513
330.01676511516392260.03353023032784520.983234884836077
340.009082763496189090.01816552699237820.99091723650381
350.006834739580621080.01366947916124220.993165260419379







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level50.333333333333333NOK
5% type I error level100.666666666666667NOK
10% type I error level110.733333333333333NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60602&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 level50.333333333333333NOK
5% type I error level100.666666666666667NOK
10% type I error level110.733333333333333NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}