Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 15:43:19 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/20/t12587570272tl98ttc1t0ougg.htm/, Retrieved Tue, 16 Apr 2024 22:25:27 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58481, Retrieved Tue, 16 Apr 2024 22:25:27 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact112
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]
-   PD      [Multiple Regression] [Seatbelt Law part 4] [2009-11-20 22:43:19] [befe6dd6a614b6d3a2a74a47a0a4f514] [Current]
Feedback Forum

Post a new message
Dataseries X:
7.2	1,9	7.5	8.3	8.8	8.9
7.4	1,6	7.2	7.5	8.3	8.8
8.8	1,7	7.4	7.2	7.5	8.3
9.3	1,6	8.8	7.4	7.2	7.5
9.3	1,4	9.3	8.8	7.4	7.2
8.7	2,1	9.3	9.3	8.8	7.4
8.2	1,9	8.7	9.3	9.3	8.8
8.3	1,7	8.2	8.7	9.3	9.3
8.5	1,8	8.3	8.2	8.7	9.3
8.6	2	8.5	8.3	8.2	8.7
8.5	2,5	8.6	8.5	8.3	8.2
8.2	2,1	8.5	8.6	8.5	8.3
8.1	2,1	8.2	8.5	8.6	8.5
7.9	2,3	8.1	8.2	8.5	8.6
8.6	2,4	7.9	8.1	8.2	8.5
8.7	2,4	8.6	7.9	8.1	8.2
8.7	2,3	8.7	8.6	7.9	8.1
8.5	1,7	8.7	8.7	8.6	7.9
8.4	2	8.5	8.7	8.7	8.6
8.5	2,3	8.4	8.5	8.7	8.7
8.7	2	8.5	8.4	8.5	8.7
8.7	2	8.7	8.5	8.4	8.5
8.6	1,3	8.7	8.7	8.5	8.4
8.5	1,7	8.6	8.7	8.7	8.5
8.3	1,9	8.5	8.6	8.7	8.7
8	1,7	8.3	8.5	8.6	8.7
8.2	1,6	8	8.3	8.5	8.6
8.1	1,7	8.2	8	8.3	8.5
8.1	1,8	8.1	8.2	8	8.3
8	1,9	8.1	8.1	8.2	8
7.9	1,9	8	8.1	8.1	8.2
7.9	1,9	7.9	8	8.1	8.1
8	2	7.9	7.9	8	8.1
8	2,1	8	7.9	7.9	8
7.9	1,9	8	8	7.9	7.9
8	1,9	7.9	8	8	7.9
7.7	1,3	8	7.9	8	8
7.2	1,3	7.7	8	7.9	8
7.5	1,4	7.2	7.7	8	7.9
7.3	1,2	7.5	7.2	7.7	8
7	1,3	7.3	7.5	7.2	7.7
7	1,8	7	7.3	7.5	7.2
7	2,2	7	7	7.3	7.5
7.2	2,6	7	7	7	7.3
7.3	2,8	7.2	7	7	7
7.1	3,1	7.3	7.2	7	7
6.8	3,9	7.1	7.3	7.2	7
6.4	3,7	6.8	7.1	7.3	7.2
6.1	4,6	6.4	6.8	7.1	7.3
6.5	5,1	6.1	6.4	6.8	7.1
7.7	5,2	6.5	6.1	6.4	6.8
7.9	4,9	7.7	6.5	6.1	6.4
7.5	5,1	7.9	7.7	6.5	6.1
6.9	4,8	7.5	7.9	7.7	6.5
6.6	3,9	6.9	7.5	7.9	7.7
6.9	3,5	6.6	6.9	7.5	7.9




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58481&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
TWIB[t] = + 0.86793374916331 + 0.0509126058020017GI[t] + 1.47563767426721TWIB1[t] -0.787676888382591TWIB2[t] -0.140644079346224TWIB3[t] + 0.349848893647999TWIB4[t] -0.144827600397996M1[t] -0.118927642048376M2[t] + 0.608833924114353M3[t] -0.392339280785223M4[t] -0.00254042804679102M5[t] + 0.120655167502287M6[t] + 0.0123581916177904M7[t] + 0.162523576349744M8[t] + 0.0094586184244671M9[t] -0.104618718579842M10[t] -0.0223453107403499M11[t] -0.00703422898260113t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
TWIB[t] =  +  0.86793374916331 +  0.0509126058020017GI[t] +  1.47563767426721TWIB1[t] -0.787676888382591TWIB2[t] -0.140644079346224TWIB3[t] +  0.349848893647999TWIB4[t] -0.144827600397996M1[t] -0.118927642048376M2[t] +  0.608833924114353M3[t] -0.392339280785223M4[t] -0.00254042804679102M5[t] +  0.120655167502287M6[t] +  0.0123581916177904M7[t] +  0.162523576349744M8[t] +  0.0094586184244671M9[t] -0.104618718579842M10[t] -0.0223453107403499M11[t] -0.00703422898260113t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58481&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]TWIB[t] =  +  0.86793374916331 +  0.0509126058020017GI[t] +  1.47563767426721TWIB1[t] -0.787676888382591TWIB2[t] -0.140644079346224TWIB3[t] +  0.349848893647999TWIB4[t] -0.144827600397996M1[t] -0.118927642048376M2[t] +  0.608833924114353M3[t] -0.392339280785223M4[t] -0.00254042804679102M5[t] +  0.120655167502287M6[t] +  0.0123581916177904M7[t] +  0.162523576349744M8[t] +  0.0094586184244671M9[t] -0.104618718579842M10[t] -0.0223453107403499M11[t] -0.00703422898260113t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58481&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58481&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
TWIB[t] = + 0.86793374916331 + 0.0509126058020017GI[t] + 1.47563767426721TWIB1[t] -0.787676888382591TWIB2[t] -0.140644079346224TWIB3[t] + 0.349848893647999TWIB4[t] -0.144827600397996M1[t] -0.118927642048376M2[t] + 0.608833924114353M3[t] -0.392339280785223M4[t] -0.00254042804679102M5[t] + 0.120655167502287M6[t] + 0.0123581916177904M7[t] + 0.162523576349744M8[t] + 0.0094586184244671M9[t] -0.104618718579842M10[t] -0.0223453107403499M11[t] -0.00703422898260113t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.867933749163310.6777241.28070.2080750.104037
GI0.05091260580200170.0287251.77240.0843410.042171
TWIB11.475637674267210.13641110.817600
TWIB2-0.7876768883825910.261456-3.01270.004590.002295
TWIB3-0.1406440793462240.262464-0.53590.5951770.297589
TWIB40.3498488936479990.1441112.42760.0200450.010022
M1-0.1448276003979960.102505-1.41290.165830.082915
M2-0.1189276420483760.105678-1.12540.2674870.133743
M30.6088339241143530.1073855.66972e-061e-06
M4-0.3923392807852230.140127-2.79990.0079910.003996
M5-0.002540428046791020.154355-0.01650.9869550.493477
M60.1206551675022870.122740.9830.331820.16591
M70.01235819161779040.100250.12330.902540.45127
M80.1625235763497440.1031431.57570.1233840.061692
M90.00945861842446710.111740.08460.9329850.466493
M10-0.1046187185798420.11305-0.92540.3605860.180293
M11-0.02234531074034990.106781-0.20930.835360.41768
t-0.007034228982601130.002396-2.93550.0056250.002812

\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.86793374916331 & 0.677724 & 1.2807 & 0.208075 & 0.104037 \tabularnewline
GI & 0.0509126058020017 & 0.028725 & 1.7724 & 0.084341 & 0.042171 \tabularnewline
TWIB1 & 1.47563767426721 & 0.136411 & 10.8176 & 0 & 0 \tabularnewline
TWIB2 & -0.787676888382591 & 0.261456 & -3.0127 & 0.00459 & 0.002295 \tabularnewline
TWIB3 & -0.140644079346224 & 0.262464 & -0.5359 & 0.595177 & 0.297589 \tabularnewline
TWIB4 & 0.349848893647999 & 0.144111 & 2.4276 & 0.020045 & 0.010022 \tabularnewline
M1 & -0.144827600397996 & 0.102505 & -1.4129 & 0.16583 & 0.082915 \tabularnewline
M2 & -0.118927642048376 & 0.105678 & -1.1254 & 0.267487 & 0.133743 \tabularnewline
M3 & 0.608833924114353 & 0.107385 & 5.6697 & 2e-06 & 1e-06 \tabularnewline
M4 & -0.392339280785223 & 0.140127 & -2.7999 & 0.007991 & 0.003996 \tabularnewline
M5 & -0.00254042804679102 & 0.154355 & -0.0165 & 0.986955 & 0.493477 \tabularnewline
M6 & 0.120655167502287 & 0.12274 & 0.983 & 0.33182 & 0.16591 \tabularnewline
M7 & 0.0123581916177904 & 0.10025 & 0.1233 & 0.90254 & 0.45127 \tabularnewline
M8 & 0.162523576349744 & 0.103143 & 1.5757 & 0.123384 & 0.061692 \tabularnewline
M9 & 0.0094586184244671 & 0.11174 & 0.0846 & 0.932985 & 0.466493 \tabularnewline
M10 & -0.104618718579842 & 0.11305 & -0.9254 & 0.360586 & 0.180293 \tabularnewline
M11 & -0.0223453107403499 & 0.106781 & -0.2093 & 0.83536 & 0.41768 \tabularnewline
t & -0.00703422898260113 & 0.002396 & -2.9355 & 0.005625 & 0.002812 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58481&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.86793374916331[/C][C]0.677724[/C][C]1.2807[/C][C]0.208075[/C][C]0.104037[/C][/ROW]
[ROW][C]GI[/C][C]0.0509126058020017[/C][C]0.028725[/C][C]1.7724[/C][C]0.084341[/C][C]0.042171[/C][/ROW]
[ROW][C]TWIB1[/C][C]1.47563767426721[/C][C]0.136411[/C][C]10.8176[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]TWIB2[/C][C]-0.787676888382591[/C][C]0.261456[/C][C]-3.0127[/C][C]0.00459[/C][C]0.002295[/C][/ROW]
[ROW][C]TWIB3[/C][C]-0.140644079346224[/C][C]0.262464[/C][C]-0.5359[/C][C]0.595177[/C][C]0.297589[/C][/ROW]
[ROW][C]TWIB4[/C][C]0.349848893647999[/C][C]0.144111[/C][C]2.4276[/C][C]0.020045[/C][C]0.010022[/C][/ROW]
[ROW][C]M1[/C][C]-0.144827600397996[/C][C]0.102505[/C][C]-1.4129[/C][C]0.16583[/C][C]0.082915[/C][/ROW]
[ROW][C]M2[/C][C]-0.118927642048376[/C][C]0.105678[/C][C]-1.1254[/C][C]0.267487[/C][C]0.133743[/C][/ROW]
[ROW][C]M3[/C][C]0.608833924114353[/C][C]0.107385[/C][C]5.6697[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M4[/C][C]-0.392339280785223[/C][C]0.140127[/C][C]-2.7999[/C][C]0.007991[/C][C]0.003996[/C][/ROW]
[ROW][C]M5[/C][C]-0.00254042804679102[/C][C]0.154355[/C][C]-0.0165[/C][C]0.986955[/C][C]0.493477[/C][/ROW]
[ROW][C]M6[/C][C]0.120655167502287[/C][C]0.12274[/C][C]0.983[/C][C]0.33182[/C][C]0.16591[/C][/ROW]
[ROW][C]M7[/C][C]0.0123581916177904[/C][C]0.10025[/C][C]0.1233[/C][C]0.90254[/C][C]0.45127[/C][/ROW]
[ROW][C]M8[/C][C]0.162523576349744[/C][C]0.103143[/C][C]1.5757[/C][C]0.123384[/C][C]0.061692[/C][/ROW]
[ROW][C]M9[/C][C]0.0094586184244671[/C][C]0.11174[/C][C]0.0846[/C][C]0.932985[/C][C]0.466493[/C][/ROW]
[ROW][C]M10[/C][C]-0.104618718579842[/C][C]0.11305[/C][C]-0.9254[/C][C]0.360586[/C][C]0.180293[/C][/ROW]
[ROW][C]M11[/C][C]-0.0223453107403499[/C][C]0.106781[/C][C]-0.2093[/C][C]0.83536[/C][C]0.41768[/C][/ROW]
[ROW][C]t[/C][C]-0.00703422898260113[/C][C]0.002396[/C][C]-2.9355[/C][C]0.005625[/C][C]0.002812[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58481&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58481&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.867933749163310.6777241.28070.2080750.104037
GI0.05091260580200170.0287251.77240.0843410.042171
TWIB11.475637674267210.13641110.817600
TWIB2-0.7876768883825910.261456-3.01270.004590.002295
TWIB3-0.1406440793462240.262464-0.53590.5951770.297589
TWIB40.3498488936479990.1441112.42760.0200450.010022
M1-0.1448276003979960.102505-1.41290.165830.082915
M2-0.1189276420483760.105678-1.12540.2674870.133743
M30.6088339241143530.1073855.66972e-061e-06
M4-0.3923392807852230.140127-2.79990.0079910.003996
M5-0.002540428046791020.154355-0.01650.9869550.493477
M60.1206551675022870.122740.9830.331820.16591
M70.01235819161779040.100250.12330.902540.45127
M80.1625235763497440.1031431.57570.1233840.061692
M90.00945861842446710.111740.08460.9329850.466493
M10-0.1046187185798420.11305-0.92540.3605860.180293
M11-0.02234531074034990.106781-0.20930.835360.41768
t-0.007034228982601130.002396-2.93550.0056250.002812







Multiple Linear Regression - Regression Statistics
Multiple R0.986273371796106
R-squared0.97273516391406
Adjusted R-squared0.960537737244034
F-TEST (value)79.7492118812622
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.147760839247470
Sum Squared Residuals0.829664093374437

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.986273371796106 \tabularnewline
R-squared & 0.97273516391406 \tabularnewline
Adjusted R-squared & 0.960537737244034 \tabularnewline
F-TEST (value) & 79.7492118812622 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.147760839247470 \tabularnewline
Sum Squared Residuals & 0.829664093374437 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58481&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.986273371796106[/C][/ROW]
[ROW][C]R-squared[/C][C]0.97273516391406[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.960537737244034[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]79.7492118812622[/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]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.147760839247470[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]0.829664093374437[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58481&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58481&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.986273371796106
R-squared0.97273516391406
Adjusted R-squared0.960537737244034
F-TEST (value)79.7492118812622
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.147760839247470
Sum Squared Residuals0.829664093374437







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
17.27.21835750945546-0.0183575094554583
27.47.44473681581612-0.0447368158161163
38.88.639576831597640.160423168402361
49.39.29694961231830.00305038768170033
59.39.171519424348060.128480575651940
68.78.80254923842953-0.102549238429532
78.28.2111193192758-0.0111193192757963
88.38.25377969658470.0462203034153002
98.58.72456042948277-0.224560429482775
108.68.69040393415576-0.0904039341557564
118.58.59213895090523-0.0921389509052281
128.28.36760960757275-0.167609607572754
138.17.907729535545230.19227046445477
147.98.07456638246013-0.174566382460129
158.68.591233468644340.00876653135565657
168.78.682617524265950.0173824757340503
178.78.649624759504930.0503752404950684
188.58.488050239479990.0119497605200076
198.48.323695099119030.0763049008809687
208.58.52705653622358-0.0270565362235826
218.78.606143839709330.0938561602906723
228.78.645486748942620.0545132510573787
238.68.478502428762170.121497571237829
248.58.373470858909560.126529141090445
258.38.23296525083050.0670347491695038
2688.03935302095656-0.039353020956557
278.28.44891269152266-0.248912691522662
288.17.970371046093350.129628953906652
298.18.025351230400410.0746487695995913
3088.0922880624217-0.0922880624216998
317.97.9134272767921-0.0134272767921033
327.97.9527774645882-0.0527774645881952
3387.89060163503340.109398364966601
3487.901224615623230.098775384376769
357.97.852528695116660.0474713048833375
3687.706211601513070.293788398486931
377.77.78511855428105-0.0851185542810496
387.27.29658970046427-0.096589700464271
397.57.471843230306350.0281567696936487
407.37.3671611349039-0.067161134903898
4177.18895378945042-0.188953789450422
4276.828297863686390.171702136313610
4377.10271825161851-0.102718251618515
447.27.23843789476294-0.038437894762935
457.37.27869409577450.0213059042255011
467.17.16288470127839-0.0628847012783912
476.86.87682992521594-0.0768299252159383
486.46.65270793200462-0.252707932004621
496.16.25582914988777-0.155829149887766
506.56.144754080302930.355245919697073
517.77.6484337779290.0515662220709958
527.97.9829006824185-0.0829006824185043
537.57.56455079629618-0.0645507962961778
546.96.888814595982390.0111854040176149
556.66.549040053194550.0509599468054454
566.96.827948407840590.0720515921594126

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 7.2 & 7.21835750945546 & -0.0183575094554583 \tabularnewline
2 & 7.4 & 7.44473681581612 & -0.0447368158161163 \tabularnewline
3 & 8.8 & 8.63957683159764 & 0.160423168402361 \tabularnewline
4 & 9.3 & 9.2969496123183 & 0.00305038768170033 \tabularnewline
5 & 9.3 & 9.17151942434806 & 0.128480575651940 \tabularnewline
6 & 8.7 & 8.80254923842953 & -0.102549238429532 \tabularnewline
7 & 8.2 & 8.2111193192758 & -0.0111193192757963 \tabularnewline
8 & 8.3 & 8.2537796965847 & 0.0462203034153002 \tabularnewline
9 & 8.5 & 8.72456042948277 & -0.224560429482775 \tabularnewline
10 & 8.6 & 8.69040393415576 & -0.0904039341557564 \tabularnewline
11 & 8.5 & 8.59213895090523 & -0.0921389509052281 \tabularnewline
12 & 8.2 & 8.36760960757275 & -0.167609607572754 \tabularnewline
13 & 8.1 & 7.90772953554523 & 0.19227046445477 \tabularnewline
14 & 7.9 & 8.07456638246013 & -0.174566382460129 \tabularnewline
15 & 8.6 & 8.59123346864434 & 0.00876653135565657 \tabularnewline
16 & 8.7 & 8.68261752426595 & 0.0173824757340503 \tabularnewline
17 & 8.7 & 8.64962475950493 & 0.0503752404950684 \tabularnewline
18 & 8.5 & 8.48805023947999 & 0.0119497605200076 \tabularnewline
19 & 8.4 & 8.32369509911903 & 0.0763049008809687 \tabularnewline
20 & 8.5 & 8.52705653622358 & -0.0270565362235826 \tabularnewline
21 & 8.7 & 8.60614383970933 & 0.0938561602906723 \tabularnewline
22 & 8.7 & 8.64548674894262 & 0.0545132510573787 \tabularnewline
23 & 8.6 & 8.47850242876217 & 0.121497571237829 \tabularnewline
24 & 8.5 & 8.37347085890956 & 0.126529141090445 \tabularnewline
25 & 8.3 & 8.2329652508305 & 0.0670347491695038 \tabularnewline
26 & 8 & 8.03935302095656 & -0.039353020956557 \tabularnewline
27 & 8.2 & 8.44891269152266 & -0.248912691522662 \tabularnewline
28 & 8.1 & 7.97037104609335 & 0.129628953906652 \tabularnewline
29 & 8.1 & 8.02535123040041 & 0.0746487695995913 \tabularnewline
30 & 8 & 8.0922880624217 & -0.0922880624216998 \tabularnewline
31 & 7.9 & 7.9134272767921 & -0.0134272767921033 \tabularnewline
32 & 7.9 & 7.9527774645882 & -0.0527774645881952 \tabularnewline
33 & 8 & 7.8906016350334 & 0.109398364966601 \tabularnewline
34 & 8 & 7.90122461562323 & 0.098775384376769 \tabularnewline
35 & 7.9 & 7.85252869511666 & 0.0474713048833375 \tabularnewline
36 & 8 & 7.70621160151307 & 0.293788398486931 \tabularnewline
37 & 7.7 & 7.78511855428105 & -0.0851185542810496 \tabularnewline
38 & 7.2 & 7.29658970046427 & -0.096589700464271 \tabularnewline
39 & 7.5 & 7.47184323030635 & 0.0281567696936487 \tabularnewline
40 & 7.3 & 7.3671611349039 & -0.067161134903898 \tabularnewline
41 & 7 & 7.18895378945042 & -0.188953789450422 \tabularnewline
42 & 7 & 6.82829786368639 & 0.171702136313610 \tabularnewline
43 & 7 & 7.10271825161851 & -0.102718251618515 \tabularnewline
44 & 7.2 & 7.23843789476294 & -0.038437894762935 \tabularnewline
45 & 7.3 & 7.2786940957745 & 0.0213059042255011 \tabularnewline
46 & 7.1 & 7.16288470127839 & -0.0628847012783912 \tabularnewline
47 & 6.8 & 6.87682992521594 & -0.0768299252159383 \tabularnewline
48 & 6.4 & 6.65270793200462 & -0.252707932004621 \tabularnewline
49 & 6.1 & 6.25582914988777 & -0.155829149887766 \tabularnewline
50 & 6.5 & 6.14475408030293 & 0.355245919697073 \tabularnewline
51 & 7.7 & 7.648433777929 & 0.0515662220709958 \tabularnewline
52 & 7.9 & 7.9829006824185 & -0.0829006824185043 \tabularnewline
53 & 7.5 & 7.56455079629618 & -0.0645507962961778 \tabularnewline
54 & 6.9 & 6.88881459598239 & 0.0111854040176149 \tabularnewline
55 & 6.6 & 6.54904005319455 & 0.0509599468054454 \tabularnewline
56 & 6.9 & 6.82794840784059 & 0.0720515921594126 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58481&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.2[/C][C]7.21835750945546[/C][C]-0.0183575094554583[/C][/ROW]
[ROW][C]2[/C][C]7.4[/C][C]7.44473681581612[/C][C]-0.0447368158161163[/C][/ROW]
[ROW][C]3[/C][C]8.8[/C][C]8.63957683159764[/C][C]0.160423168402361[/C][/ROW]
[ROW][C]4[/C][C]9.3[/C][C]9.2969496123183[/C][C]0.00305038768170033[/C][/ROW]
[ROW][C]5[/C][C]9.3[/C][C]9.17151942434806[/C][C]0.128480575651940[/C][/ROW]
[ROW][C]6[/C][C]8.7[/C][C]8.80254923842953[/C][C]-0.102549238429532[/C][/ROW]
[ROW][C]7[/C][C]8.2[/C][C]8.2111193192758[/C][C]-0.0111193192757963[/C][/ROW]
[ROW][C]8[/C][C]8.3[/C][C]8.2537796965847[/C][C]0.0462203034153002[/C][/ROW]
[ROW][C]9[/C][C]8.5[/C][C]8.72456042948277[/C][C]-0.224560429482775[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]8.69040393415576[/C][C]-0.0904039341557564[/C][/ROW]
[ROW][C]11[/C][C]8.5[/C][C]8.59213895090523[/C][C]-0.0921389509052281[/C][/ROW]
[ROW][C]12[/C][C]8.2[/C][C]8.36760960757275[/C][C]-0.167609607572754[/C][/ROW]
[ROW][C]13[/C][C]8.1[/C][C]7.90772953554523[/C][C]0.19227046445477[/C][/ROW]
[ROW][C]14[/C][C]7.9[/C][C]8.07456638246013[/C][C]-0.174566382460129[/C][/ROW]
[ROW][C]15[/C][C]8.6[/C][C]8.59123346864434[/C][C]0.00876653135565657[/C][/ROW]
[ROW][C]16[/C][C]8.7[/C][C]8.68261752426595[/C][C]0.0173824757340503[/C][/ROW]
[ROW][C]17[/C][C]8.7[/C][C]8.64962475950493[/C][C]0.0503752404950684[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.48805023947999[/C][C]0.0119497605200076[/C][/ROW]
[ROW][C]19[/C][C]8.4[/C][C]8.32369509911903[/C][C]0.0763049008809687[/C][/ROW]
[ROW][C]20[/C][C]8.5[/C][C]8.52705653622358[/C][C]-0.0270565362235826[/C][/ROW]
[ROW][C]21[/C][C]8.7[/C][C]8.60614383970933[/C][C]0.0938561602906723[/C][/ROW]
[ROW][C]22[/C][C]8.7[/C][C]8.64548674894262[/C][C]0.0545132510573787[/C][/ROW]
[ROW][C]23[/C][C]8.6[/C][C]8.47850242876217[/C][C]0.121497571237829[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]8.37347085890956[/C][C]0.126529141090445[/C][/ROW]
[ROW][C]25[/C][C]8.3[/C][C]8.2329652508305[/C][C]0.0670347491695038[/C][/ROW]
[ROW][C]26[/C][C]8[/C][C]8.03935302095656[/C][C]-0.039353020956557[/C][/ROW]
[ROW][C]27[/C][C]8.2[/C][C]8.44891269152266[/C][C]-0.248912691522662[/C][/ROW]
[ROW][C]28[/C][C]8.1[/C][C]7.97037104609335[/C][C]0.129628953906652[/C][/ROW]
[ROW][C]29[/C][C]8.1[/C][C]8.02535123040041[/C][C]0.0746487695995913[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]8.0922880624217[/C][C]-0.0922880624216998[/C][/ROW]
[ROW][C]31[/C][C]7.9[/C][C]7.9134272767921[/C][C]-0.0134272767921033[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]7.9527774645882[/C][C]-0.0527774645881952[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]7.8906016350334[/C][C]0.109398364966601[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]7.90122461562323[/C][C]0.098775384376769[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.85252869511666[/C][C]0.0474713048833375[/C][/ROW]
[ROW][C]36[/C][C]8[/C][C]7.70621160151307[/C][C]0.293788398486931[/C][/ROW]
[ROW][C]37[/C][C]7.7[/C][C]7.78511855428105[/C][C]-0.0851185542810496[/C][/ROW]
[ROW][C]38[/C][C]7.2[/C][C]7.29658970046427[/C][C]-0.096589700464271[/C][/ROW]
[ROW][C]39[/C][C]7.5[/C][C]7.47184323030635[/C][C]0.0281567696936487[/C][/ROW]
[ROW][C]40[/C][C]7.3[/C][C]7.3671611349039[/C][C]-0.067161134903898[/C][/ROW]
[ROW][C]41[/C][C]7[/C][C]7.18895378945042[/C][C]-0.188953789450422[/C][/ROW]
[ROW][C]42[/C][C]7[/C][C]6.82829786368639[/C][C]0.171702136313610[/C][/ROW]
[ROW][C]43[/C][C]7[/C][C]7.10271825161851[/C][C]-0.102718251618515[/C][/ROW]
[ROW][C]44[/C][C]7.2[/C][C]7.23843789476294[/C][C]-0.038437894762935[/C][/ROW]
[ROW][C]45[/C][C]7.3[/C][C]7.2786940957745[/C][C]0.0213059042255011[/C][/ROW]
[ROW][C]46[/C][C]7.1[/C][C]7.16288470127839[/C][C]-0.0628847012783912[/C][/ROW]
[ROW][C]47[/C][C]6.8[/C][C]6.87682992521594[/C][C]-0.0768299252159383[/C][/ROW]
[ROW][C]48[/C][C]6.4[/C][C]6.65270793200462[/C][C]-0.252707932004621[/C][/ROW]
[ROW][C]49[/C][C]6.1[/C][C]6.25582914988777[/C][C]-0.155829149887766[/C][/ROW]
[ROW][C]50[/C][C]6.5[/C][C]6.14475408030293[/C][C]0.355245919697073[/C][/ROW]
[ROW][C]51[/C][C]7.7[/C][C]7.648433777929[/C][C]0.0515662220709958[/C][/ROW]
[ROW][C]52[/C][C]7.9[/C][C]7.9829006824185[/C][C]-0.0829006824185043[/C][/ROW]
[ROW][C]53[/C][C]7.5[/C][C]7.56455079629618[/C][C]-0.0645507962961778[/C][/ROW]
[ROW][C]54[/C][C]6.9[/C][C]6.88881459598239[/C][C]0.0111854040176149[/C][/ROW]
[ROW][C]55[/C][C]6.6[/C][C]6.54904005319455[/C][C]0.0509599468054454[/C][/ROW]
[ROW][C]56[/C][C]6.9[/C][C]6.82794840784059[/C][C]0.0720515921594126[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58481&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58481&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.27.21835750945546-0.0183575094554583
27.47.44473681581612-0.0447368158161163
38.88.639576831597640.160423168402361
49.39.29694961231830.00305038768170033
59.39.171519424348060.128480575651940
68.78.80254923842953-0.102549238429532
78.28.2111193192758-0.0111193192757963
88.38.25377969658470.0462203034153002
98.58.72456042948277-0.224560429482775
108.68.69040393415576-0.0904039341557564
118.58.59213895090523-0.0921389509052281
128.28.36760960757275-0.167609607572754
138.17.907729535545230.19227046445477
147.98.07456638246013-0.174566382460129
158.68.591233468644340.00876653135565657
168.78.682617524265950.0173824757340503
178.78.649624759504930.0503752404950684
188.58.488050239479990.0119497605200076
198.48.323695099119030.0763049008809687
208.58.52705653622358-0.0270565362235826
218.78.606143839709330.0938561602906723
228.78.645486748942620.0545132510573787
238.68.478502428762170.121497571237829
248.58.373470858909560.126529141090445
258.38.23296525083050.0670347491695038
2688.03935302095656-0.039353020956557
278.28.44891269152266-0.248912691522662
288.17.970371046093350.129628953906652
298.18.025351230400410.0746487695995913
3088.0922880624217-0.0922880624216998
317.97.9134272767921-0.0134272767921033
327.97.9527774645882-0.0527774645881952
3387.89060163503340.109398364966601
3487.901224615623230.098775384376769
357.97.852528695116660.0474713048833375
3687.706211601513070.293788398486931
377.77.78511855428105-0.0851185542810496
387.27.29658970046427-0.096589700464271
397.57.471843230306350.0281567696936487
407.37.3671611349039-0.067161134903898
4177.18895378945042-0.188953789450422
4276.828297863686390.171702136313610
4377.10271825161851-0.102718251618515
447.27.23843789476294-0.038437894762935
457.37.27869409577450.0213059042255011
467.17.16288470127839-0.0628847012783912
476.86.87682992521594-0.0768299252159383
486.46.65270793200462-0.252707932004621
496.16.25582914988777-0.155829149887766
506.56.144754080302930.355245919697073
517.77.6484337779290.0515662220709958
527.97.9829006824185-0.0829006824185043
537.57.56455079629618-0.0645507962961778
546.96.888814595982390.0111854040176149
556.66.549040053194550.0509599468054454
566.96.827948407840590.0720515921594126







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.01390351178174990.02780702356349990.98609648821825
220.1489726478648480.2979452957296970.851027352135152
230.07959532106467930.1591906421293590.92040467893532
240.05084526120968930.1016905224193790.94915473879031
250.03493664921214560.06987329842429120.965063350787854
260.01862543357084940.03725086714169880.98137456642915
270.3333185788903940.6666371577807870.666681421109606
280.2381438674257340.4762877348514680.761856132574266
290.1606728254858810.3213456509717630.839327174514119
300.2036861789177090.4073723578354170.796313821082291
310.1546230161123080.3092460322246160.845376983887692
320.1382157638116010.2764315276232020.861784236188399
330.1027795374362830.2055590748725660.897220462563717
340.09724512301095460.1944902460219090.902754876989045
350.07799576924259290.1559915384851860.922004230757407

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.0139035117817499 & 0.0278070235634999 & 0.98609648821825 \tabularnewline
22 & 0.148972647864848 & 0.297945295729697 & 0.851027352135152 \tabularnewline
23 & 0.0795953210646793 & 0.159190642129359 & 0.92040467893532 \tabularnewline
24 & 0.0508452612096893 & 0.101690522419379 & 0.94915473879031 \tabularnewline
25 & 0.0349366492121456 & 0.0698732984242912 & 0.965063350787854 \tabularnewline
26 & 0.0186254335708494 & 0.0372508671416988 & 0.98137456642915 \tabularnewline
27 & 0.333318578890394 & 0.666637157780787 & 0.666681421109606 \tabularnewline
28 & 0.238143867425734 & 0.476287734851468 & 0.761856132574266 \tabularnewline
29 & 0.160672825485881 & 0.321345650971763 & 0.839327174514119 \tabularnewline
30 & 0.203686178917709 & 0.407372357835417 & 0.796313821082291 \tabularnewline
31 & 0.154623016112308 & 0.309246032224616 & 0.845376983887692 \tabularnewline
32 & 0.138215763811601 & 0.276431527623202 & 0.861784236188399 \tabularnewline
33 & 0.102779537436283 & 0.205559074872566 & 0.897220462563717 \tabularnewline
34 & 0.0972451230109546 & 0.194490246021909 & 0.902754876989045 \tabularnewline
35 & 0.0779957692425929 & 0.155991538485186 & 0.922004230757407 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58481&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.0139035117817499[/C][C]0.0278070235634999[/C][C]0.98609648821825[/C][/ROW]
[ROW][C]22[/C][C]0.148972647864848[/C][C]0.297945295729697[/C][C]0.851027352135152[/C][/ROW]
[ROW][C]23[/C][C]0.0795953210646793[/C][C]0.159190642129359[/C][C]0.92040467893532[/C][/ROW]
[ROW][C]24[/C][C]0.0508452612096893[/C][C]0.101690522419379[/C][C]0.94915473879031[/C][/ROW]
[ROW][C]25[/C][C]0.0349366492121456[/C][C]0.0698732984242912[/C][C]0.965063350787854[/C][/ROW]
[ROW][C]26[/C][C]0.0186254335708494[/C][C]0.0372508671416988[/C][C]0.98137456642915[/C][/ROW]
[ROW][C]27[/C][C]0.333318578890394[/C][C]0.666637157780787[/C][C]0.666681421109606[/C][/ROW]
[ROW][C]28[/C][C]0.238143867425734[/C][C]0.476287734851468[/C][C]0.761856132574266[/C][/ROW]
[ROW][C]29[/C][C]0.160672825485881[/C][C]0.321345650971763[/C][C]0.839327174514119[/C][/ROW]
[ROW][C]30[/C][C]0.203686178917709[/C][C]0.407372357835417[/C][C]0.796313821082291[/C][/ROW]
[ROW][C]31[/C][C]0.154623016112308[/C][C]0.309246032224616[/C][C]0.845376983887692[/C][/ROW]
[ROW][C]32[/C][C]0.138215763811601[/C][C]0.276431527623202[/C][C]0.861784236188399[/C][/ROW]
[ROW][C]33[/C][C]0.102779537436283[/C][C]0.205559074872566[/C][C]0.897220462563717[/C][/ROW]
[ROW][C]34[/C][C]0.0972451230109546[/C][C]0.194490246021909[/C][C]0.902754876989045[/C][/ROW]
[ROW][C]35[/C][C]0.0779957692425929[/C][C]0.155991538485186[/C][C]0.922004230757407[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58481&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58481&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.01390351178174990.02780702356349990.98609648821825
220.1489726478648480.2979452957296970.851027352135152
230.07959532106467930.1591906421293590.92040467893532
240.05084526120968930.1016905224193790.94915473879031
250.03493664921214560.06987329842429120.965063350787854
260.01862543357084940.03725086714169880.98137456642915
270.3333185788903940.6666371577807870.666681421109606
280.2381438674257340.4762877348514680.761856132574266
290.1606728254858810.3213456509717630.839327174514119
300.2036861789177090.4073723578354170.796313821082291
310.1546230161123080.3092460322246160.845376983887692
320.1382157638116010.2764315276232020.861784236188399
330.1027795374362830.2055590748725660.897220462563717
340.09724512301095460.1944902460219090.902754876989045
350.07799576924259290.1559915384851860.922004230757407







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

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

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



Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No 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')
}